You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2010/06/19 22:46:23 UTC

[jira] Closed: (FELIX-2423) NullPointer when starting org.apache.felix.http.jetty-2.0.4 bundle

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

Richard S. Hall closed FELIX-2423.
----------------------------------

    Resolution: Duplicate

Framework 3.0.1 is out with the fix included (its in the maven repos and I just updated our download page), so I'll close this bug a duplicate. Please reopen if you find out it is not fixed.

> NullPointer when starting org.apache.felix.http.jetty-2.0.4 bundle
> ------------------------------------------------------------------
>
>                 Key: FELIX-2423
>                 URL: https://issues.apache.org/jira/browse/FELIX-2423
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.0.0
>            Reporter: Christian Scharr
>
> When starting the org.apache.felix.http.jetty-2.0.4 bundle a NullPointerException is thrown by "org.apache.felix.framework.util.StringComparator.compare(StringComparator.java:40)"...
> ---
> config.properties
> ---
> felix.auto.deploy.action=disabled
> org.osgi.framework.startlevel.beginning=1
> felix.auto.start.1=file:bundle/org.apache.felix.bundlerepository-1.6.2.jar file:bundle/org.apache.felix.gogo.command-0.6.0.jar file:bundle/org.apache.felix.gogo.runtime-0.6.0.jar file:bundle org.apache.felix.gogo.shell-0.6.0.jar file:bundle/org.osgi.compendium-1.4.0.jar file:bundle/jetty-6.1.24.jar file:bundle/jetty-util-6.1.24.jar file:bundle/servlet-api-2.5.jar file:bundle/org.apache.felix.http.api-2.0.4.jar file:bundle/org.apache.felix.http.base-2.0.4.jar
> felix.auto.start.2=file:bundle/org.apache.felix.http.jetty-2.0.4.jar
> felix.auto.start.3=file:bundle/testproject-0.1.jar
> Level1 works fine so far, but when I switch to level2 the following Exception is thrown:
> ERROR: EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
> java.lang.NullPointerException
>         at org.apache.felix.framework.util.StringComparator.compare(StringComparator.java:40)
>         at java.util.TreeMap.getEntryUsingComparator(Unknown Source)
>         at java.util.TreeMap.getEntry(Unknown Source)
>         at java.util.TreeMap.get(Unknown Source)
>         at org.apache.felix.framework.util.StringMap.get(StringMap.java:88)
>         at org.apache.felix.framework.util.MapToDictionary.get(MapToDictionary.java:51)
>         at org.apache.felix.framework.FilterImpl$DictionaryCapability.getAttribute(FilterImpl.java:147)
>         at org.apache.felix.framework.capabilityset.CapabilitySet.matchesInternal(CapabilitySet.java:269)
>         at org.apache.felix.framework.capabilityset.CapabilitySet.matchesInternal(CapabilitySet.java:242)
>         at org.apache.felix.framework.capabilityset.CapabilitySet.matches(CapabilitySet.java:226)
>         at org.apache.felix.framework.FilterImpl.match(FilterImpl.java:59)
>         at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:872)
>         at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:732)
>         at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
>         at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3745)
>         at org.apache.felix.framework.Felix.access$000(Felix.java:80)
>         at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:717)
>         at org.apache.felix.framework.ServiceRegistry.servicePropertiesModified(ServiceRegistry.java:478)
>         at org.apache.felix.framework.ServiceRegistrationImpl.setProperties(ServiceRegistrationImpl.java:116)
>         at org.apache.felix.http.base.internal.HttpServiceController.setProperties(HttpServiceController.java:56)
>         at org.apache.felix.http.jetty.internal.JettyService.publishServiceProperties(JettyService.java:96)
>         at org.apache.felix.http.jetty.internal.JettyService.initializeJetty(JettyService.java:146)
>         at org.apache.felix.http.jetty.internal.JettyService.startJetty(JettyService.java:112)
>         at org.apache.felix.http.jetty.internal.JettyService.run(JettyService.java:203)
>         at java.lang.Thread.run(Unknown Source)
> [INFO] Started jetty 6.1.x at port 8080

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