[
https://issues.apache.org/jira/browse/FELIX-3493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet resolved FELIX-3493.
------------------------------------
Resolution: Fixed
Fix Version/s: fileinstall-3.2.4
Assignee: Guillaume Nodet
URL: http://svn.apache.org/viewvc?rev=1348898&view=rev
> PackageAdminImpl thorws NPE - File Install does not handle a bundle uninstall
> gracefully
> ----------------------------------------------------------------------------------------
>
> Key: FELIX-3493
> URL: https://issues.apache.org/jira/browse/FELIX-3493
> Project: Felix
> Issue Type: Bug
> Components: File Install, Framework
> Affects Versions: framework-4.0.2, fileinstall-3.2.2
> Environment: Mac OSX (but it should not care)
> Reporter: Lucas Galfaso
> Assignee: Guillaume Nodet
> Priority: Minor
> Fix For: fileinstall-3.2.4
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira