You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Guillaume Nodet <gn...@gmail.com> on 2009/06/18 16:08:10 UTC
NPE in Bundle#findEntries
I've just hit the following NPE while testing karaf with the latest
felix framework:
ERROR: Error starting
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxp-api-1.4/1.4-SNAPSHOT
(org.osgi.framework.BundleException: Activator start error in bundle
org.apache.servicemix.specs.jaxp-api-1.4 [1].)
java.lang.NullPointerException
at org.apache.felix.framework.ModuleImpl.getEntries(ModuleImpl.java:437)
at org.apache.felix.framework.FindEntriesEnumeration.<init>(FindEntriesEnumeration.java:37)
at org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1307)
at org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:238)
at org.apache.servicemix.specs.locator.Activator.register(Activator.java:97)
at org.apache.servicemix.specs.locator.Activator.start(Activator.java:70)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1602)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1524)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:991)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
at java.lang.Thread.run(Thread.java:613)
Any ideas ?
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
Re: NPE in Bundle#findEntries
Posted by Guillaume Nodet <gn...@gmail.com>.
It works, thx !
On Thu, Jun 18, 2009 at 16:27, Richard S. Hall<he...@ungoverned.org> wrote:
> Ok, it should be working now. I needed to special case the system bundle.
>
> -> richard
>
> On 6/18/09 10:18 AM, Richard S. Hall wrote:
>>
>> I just modified/added this code yesterday, so I likely introduced a
>> bug...I will check.
>>
>> -> richard
>>
>> On 6/18/09 10:08 AM, Guillaume Nodet wrote:
>>>
>>> I've just hit the following NPE while testing karaf with the latest
>>> felix framework:
>>>
>>> ERROR: Error starting
>>>
>>> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxp-api-1.4/1.4-SNAPSHOT
>>> (org.osgi.framework.BundleException: Activator start error in bundle
>>> org.apache.servicemix.specs.jaxp-api-1.4 [1].)
>>> java.lang.NullPointerException
>>> at
>>> org.apache.felix.framework.ModuleImpl.getEntries(ModuleImpl.java:437)
>>> at
>>> org.apache.felix.framework.FindEntriesEnumeration.<init>(FindEntriesEnumeration.java:37)
>>> at org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1307)
>>> at
>>> org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:238)
>>> at
>>> org.apache.servicemix.specs.locator.Activator.register(Activator.java:97)
>>> at
>>> org.apache.servicemix.specs.locator.Activator.start(Activator.java:70)
>>> at
>>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
>>> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1602)
>>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1524)
>>> at
>>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:991)
>>> at
>>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
>>> at java.lang.Thread.run(Thread.java:613)
>>>
>>> Any ideas ?
>>>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
Re: NPE in Bundle#findEntries
Posted by "Richard S. Hall" <he...@ungoverned.org>.
Ok, it should be working now. I needed to special case the system bundle.
-> richard
On 6/18/09 10:18 AM, Richard S. Hall wrote:
> I just modified/added this code yesterday, so I likely introduced a
> bug...I will check.
>
> -> richard
>
> On 6/18/09 10:08 AM, Guillaume Nodet wrote:
>> I've just hit the following NPE while testing karaf with the latest
>> felix framework:
>>
>> ERROR: Error starting
>> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxp-api-1.4/1.4-SNAPSHOT
>>
>> (org.osgi.framework.BundleException: Activator start error in bundle
>> org.apache.servicemix.specs.jaxp-api-1.4 [1].)
>> java.lang.NullPointerException
>> at
>> org.apache.felix.framework.ModuleImpl.getEntries(ModuleImpl.java:437)
>> at
>> org.apache.felix.framework.FindEntriesEnumeration.<init>(FindEntriesEnumeration.java:37)
>>
>> at
>> org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1307)
>> at
>> org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:238)
>> at
>> org.apache.servicemix.specs.locator.Activator.register(Activator.java:97)
>>
>> at
>> org.apache.servicemix.specs.locator.Activator.start(Activator.java:70)
>> at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
>>
>> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1602)
>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1524)
>> at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:991)
>> at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
>> at java.lang.Thread.run(Thread.java:613)
>>
>> Any ideas ?
>>
Re: NPE in Bundle#findEntries
Posted by "Richard S. Hall" <he...@ungoverned.org>.
I just modified/added this code yesterday, so I likely introduced a
bug...I will check.
-> richard
On 6/18/09 10:08 AM, Guillaume Nodet wrote:
> I've just hit the following NPE while testing karaf with the latest
> felix framework:
>
> ERROR: Error starting
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxp-api-1.4/1.4-SNAPSHOT
> (org.osgi.framework.BundleException: Activator start error in bundle
> org.apache.servicemix.specs.jaxp-api-1.4 [1].)
> java.lang.NullPointerException
> at org.apache.felix.framework.ModuleImpl.getEntries(ModuleImpl.java:437)
> at org.apache.felix.framework.FindEntriesEnumeration.<init>(FindEntriesEnumeration.java:37)
> at org.apache.felix.framework.Felix.findBundleEntries(Felix.java:1307)
> at org.apache.felix.framework.BundleImpl.findEntries(BundleImpl.java:238)
> at org.apache.servicemix.specs.locator.Activator.register(Activator.java:97)
> at org.apache.servicemix.specs.locator.Activator.start(Activator.java:70)
> at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1602)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1524)
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:991)
> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
> at java.lang.Thread.run(Thread.java:613)
>
> Any ideas ?
>
>