[ 
https://issues.apache.org/jira/browse/FELIX-3493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler closed FELIX-3493.
-----------------------------------

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to