felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Galfaso (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-3493) PackageAdminImpl thorws NPE - File Install does not handle a bundle uninstall gracefully
Date Sun, 29 Apr 2012 21:49:49 GMT
Lucas Galfaso created FELIX-3493:
------------------------------------

             Summary: 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: fileinstall-3.2.2, framework-4.0.2
         Environment: Mac OSX (but it should not care)
            Reporter: Lucas Galfaso
            Priority: Minor


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

        

Mime
View raw message