Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
framework-4.0.2
-
None
Description
You may call it a bad bundle (because fragment is a R4 concept as I understand), but if someone forgets to set Bundle-ManifestVersion in a fragment, then Felix 4.0.2 won't start. Just copy the attached f1.jar to bundle/ in a felix installation and start felix to see the following exception:
ERROR: Bundle org.apache.felix.gogo.shell [5] Error starting file:/space/ss141213/software/felix-framework-4.0.2/bundle/org.apache.felix.gogo.shell-0.10.0.jar (java.lang.NullPointerException)
java.lang.NullPointerException
at org.apache.felix.framework.StatefulResolver$ResolverStateImpl.getCandidates(StatefulResolver.java:1263)
at org.apache.felix.framework.resolver.Candidates.populateFragmentOndemand(Candidates.java:347)
at org.apache.felix.framework.resolver.Candidates.populate(Candidates.java:148)
at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:115)
at org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:168)
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3819)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
at java.lang.Thread.run(Thread.java:619)
Attachments
Attachments
Issue Links
- is duplicated by
-
FELIX-3397 NPE when trying to resolve invalid fragments
- Resolved