Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
framework-4.0.2, fileinstall-3.2.2
-
None
-
Mac OSX (but it should not care)
Description
PackageAdminImpl throws NPE.
In the specific case that happen to me, I had to revisions of the same bundle installed using FileInstall and both where throwing on the activator and I uninstalled the bundle using the console.
The issue with File Install happens in the same case as it is not able to handle the exception on the call to PackageAdmin
This is the stack trace generated
In main loop, we have serious trouble: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.felix.framework.PackageAdminImpl.getBundleType(PackageAdminImpl.java:112)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.isFragment(DirectoryWatcher.java:653)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1225)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1206)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:491)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:286)
In main loop, we have serious trouble: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.felix.framework.PackageAdminImpl.getBundleType(PackageAdminImpl.java:112)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.isFragment(DirectoryWatcher.java:653)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1225)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1206)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:491)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:286)
In main loop, we have serious trouble: java.lang.NullPointerException
java.lang.NullPointerException
Mark the bug as minor as the entire PackageAdmin is deprecated.