Expand my Community achievements bar.

SOLVED

I am getting error when trying to upload bundle in Apache Felix Console

Avatar

Level 1

org.apache.sling.installer.core.impl.tasks.BundleInstallTask Exception during install of bundle TaskResource(url=jcrinstall:/apps/xxx/install/xxx-yyy.core-1.20.1-SNAPSHOT.jar, entity=bundle:com.abc.xxx-yyy.core, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:24:21:, Bundle-SymbolicName=com.abc.xxx-yyy.core, Bundle-Version=1.20.1.SNAPSHOT], digest=1579766818874) : Unknown Provide-Capability attribute type for 'filter' : JavaSE:version:List. Retrying later.

---

org.osgi.framework.BundleException: Unknown Provide-Capability attribute type for 'filter' : JavaSE:version:List
at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeCapabilityClauses(ManifestParser.java:799)
at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:199)
at org.apache.felix.framework.BundleRevisionImpl.<init>(BundleRevisionImpl.java:117)
at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1282)
at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:113)
at org.apache.felix.framework.Felix.installBundle(Felix.java:3042)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167)
at org.apache.sling.installer.core.impl.tasks.BundleInstallTask.execute(BundleInstallTask.java:47) [org.apache.sling.installer.core:3.8.12]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:902) [org.apache.sling.installer.core:3.8.12]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:737) [org.apache.sling.installer.core:3.8.12]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:287) [org.apache.sling.installer.core:3.8.12]
at java.lang.Thread.run(Unknown Source)

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Issue is caused by missing Provider-Capability attribute:

 

Unknown Provide-Capability attribute type for 'filter' : JavaSE:version:List. Retrying late

 

Check [1] for more details, Add the attribute , rebuild the bundle and try again.

 

[1] https://bnd.bndtools.org/chapters/230-manifest-annotations.html

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Issue is caused by missing Provider-Capability attribute:

 

Unknown Provide-Capability attribute type for 'filter' : JavaSE:version:List. Retrying late

 

Check [1] for more details, Add the attribute , rebuild the bundle and try again.

 

[1] https://bnd.bndtools.org/chapters/230-manifest-annotations.html