felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (FELIX-346) Bundle.getHeaders() fails with NullPointerException
Date Thu, 23 Aug 2007 13:54:31 GMT

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

Richard S. Hall reassigned FELIX-346:
-------------------------------------

    Assignee: Richard S. Hall

> Bundle.getHeaders() fails with NullPointerException
> ---------------------------------------------------
>
>                 Key: FELIX-346
>                 URL: https://issues.apache.org/jira/browse/FELIX-346
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 1.0.0
>            Reporter: Peter Kriens
>            Assignee: Richard S. Hall
>
> It seems the code assumes the locale != null, I think the local can be legally null
> java.lang.NullPointerException
> 	at org.apache.felix.framework.BundleInfo.createResourceList(BundleInfo.java:339)
> 	at org.apache.felix.framework.BundleInfo.getCurrentLocalizedHeader(BundleInfo.java:278)
> 	at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1278)
> 	at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:137)
> 	at org.eclipse.soda.sat.core.util.BundleManifestUtility.getHeader(BundleManifestUtility.java:357)
> 	at org.eclipse.soda.sat.core.util.BundleManifestUtility.getHeader(BundleManifestUtility.java:343)
> 	at org.eclipse.soda.sat.core.util.BundleManifestUtility.getBundleVendor(BundleManifestUtility.java:265)
> 	at org.eclipse.soda.sat.core.internal.record.ExportServiceRecord.setBundleVendorProperty(ExportServiceRecord.java:298)
> 	at org.eclipse.soda.sat.core.internal.record.ExportServiceRecord.populateWithAdditionalProperties(ExportServiceRecord.java:217)
> 	at org.eclipse.soda.sat.core.internal.record.ExportServiceRecord.registerServiceWithFramework(ExportServiceRecord.java:285)
> 	at org.eclipse.soda.sat.core.internal.record.ExportServiceRecord.register(ExportServiceRecord.java:273)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.addExportedService(BundleActivationManager.java:187)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.addExportedService(BundleActivationManager.java:199)
> 	at org.eclipse.soda.sat.core.framework.BaseBundleActivator.addExportedService(BaseBundleActivator.java:205)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.Activator.addExportedBundleDependencyService(Activator.java:97)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.Activator.activate(Activator.java:85)
> 	at org.eclipse.soda.sat.core.framework.BaseBundleActivator$1.activate(BaseBundleActivator.java:308)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.activate(BundleActivationManager.java:151)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.performActivation(BundleActivationManager.java:1283)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.access$0(BundleActivationManager.java:1269)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager$1.acquired(BundleActivationManager.java:411)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer.serviceAcquired(ImportServiceRecordContainer.java:470)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer.access$0(ImportServiceRecordContainer.java:458)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer$4.serviceAcquired(ImportServiceRecordContainer.java:282)
> 	at org.eclipse.soda.sat.core.internal.record.ImportServiceRecord.acquire(ImportServiceRecord.java:115)
> 	at org.eclipse.soda.sat.core.internal.record.ImportServiceRecord.acquire(ImportServiceRecord.java:124)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer$1.execute(ImportServiceRecordContainer.java:58)
> 	at org.eclipse.soda.sat.core.internal.record.container.ServiceRecordContainer.doForService(ServiceRecordContainer.java:353)
> 	at org.eclipse.soda.sat.core.internal.record.container.ServiceRecordContainer.doForEach(ServiceRecordContainer.java:321)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer.acquire(ImportServiceRecordContainer.java:237)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.acquireImportedServices(BundleActivationManager.java:126)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.startSync(BundleActivationManager.java:1684)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.start(BundleActivationManager.java:1653)
> 	at org.eclipse.soda.sat.core.framework.BaseBundleActivator.start(BaseBundleActivator.java:1102)
> 	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
> 	at org.apache.felix.framework.Felix._startBundle(Felix.java:1535)
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:1469)
> 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:348)
> 	at aQute.fileinstall.DirectoryWatcher.doInstalled(DirectoryWatcher.java:188)
> 	at aQute.fileinstall.DirectoryWatcher.run(DirectoryWatcher.java:59)
> Fail to start bundle C:\aQute\aQute.multifw\.\load\org.eclipse.soda.sat.core_1.0.0.200703181504.jar:
org.osgi.framework.BundleException: Activator start error.
> java.lang.NullPointerException
> 	at org.apache.felix.framework.BundleInfo.createResourceList(BundleInfo.java:339)
> 	at org.apache.felix.framework.BundleInfo.getCurrentLocalizedHeader(BundleInfo.java:278)
> 	at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1278)
> 	at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:137)
> 	at org.eclipse.soda.sat.core.util.BundleManifestUtility.getHeader(BundleManifestUtility.java:357)
> 	at org.eclipse.soda.sat.core.util.BundleManifestUtility.getHeader(BundleManifestUtility.java:343)
> 	at org.eclipse.soda.sat.core.util.BundleManifestUtility.getBundleVendor(BundleManifestUtility.java:265)
> 	at org.eclipse.soda.sat.core.internal.record.ExportServiceRecord.setBundleVendorProperty(ExportServiceRecord.java:298)
> 	at org.eclipse.soda.sat.core.internal.record.ExportServiceRecord.populateWithAdditionalProperties(ExportServiceRecord.java:217)
> 	at org.eclipse.soda.sat.core.internal.record.ExportServiceRecord.registerServiceWithFramework(ExportServiceRecord.java:285)
> 	at org.eclipse.soda.sat.core.internal.record.ExportServiceRecord.register(ExportServiceRecord.java:273)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.addExportedService(BundleActivationManager.java:187)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.addExportedService(BundleActivationManager.java:199)
> 	at org.eclipse.soda.sat.core.framework.BaseBundleActivator.addExportedService(BaseBundleActivator.java:205)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.Activator.addExportedBundleDependencyService(Activator.java:97)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.Activator.activate(Activator.java:85)
> 	at org.eclipse.soda.sat.core.framework.BaseBundleActivator$1.activate(BaseBundleActivator.java:308)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.activate(BundleActivationManager.java:151)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.performActivation(BundleActivationManager.java:1283)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.access$0(BundleActivationManager.java:1269)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager$1.acquired(BundleActivationManager.java:411)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer.serviceAcquired(ImportServiceRecordContainer.java:470)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer.access$0(ImportServiceRecordContainer.java:458)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer$4.serviceAcquired(ImportServiceRecordContainer.java:282)
> 	at org.eclipse.soda.sat.core.internal.record.ImportServiceRecord.acquire(ImportServiceRecord.java:115)
> 	at org.eclipse.soda.sat.core.internal.record.ImportServiceRecord.acquire(ImportServiceRecord.java:124)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer$1.execute(ImportServiceRecordContainer.java:58)
> 	at org.eclipse.soda.sat.core.internal.record.container.ServiceRecordContainer.doForService(ServiceRecordContainer.java:353)
> 	at org.eclipse.soda.sat.core.internal.record.container.ServiceRecordContainer.doForEach(ServiceRecordContainer.java:321)
> 	at org.eclipse.soda.sat.core.internal.record.container.ImportServiceRecordContainer.acquire(ImportServiceRecordContainer.java:237)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.acquireImportedServices(BundleActivationManager.java:126)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.startSync(BundleActivationManager.java:1684)
> 	at org.eclipse.soda.sat.core.internal.framework.bundle.BundleActivationManager.start(BundleActivationManager.java:1653)
> 	at org.eclipse.soda.sat.core.framework.BaseBundleActivator.start(BaseBundleActivator.java:1102)
> 	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
> 	at org.apache.felix.framework.Felix._startBundle(Felix.java:1535)
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:1469)
> 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:348)
> 	at aQute.fileinstall.DirectoryWatcher.doInstalled(DirectoryWatcher.java:188)
> 	at aQute.fileinstall.DirectoryWatcher.run(DirectoryWatcher.java:59)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message