[ 
https://issues.apache.org/jira/browse/CAMEL-5543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826476#comment-13826476
 ] 

metatech commented on CAMEL-5543:
---------------------------------

This exception can happen when multiple CamelContext have the same ID. The 
CamelController class makes the assumption that CamelContext IDs are unique 
keys.  This is not true in an OSGi container, where several CamelContexts can 
be deployed in distinct bundles, which do not know each other.    


> Karaf Command 'camel:route-list' throws NullpointerException
> ------------------------------------------------------------
>
>                 Key: CAMEL-5543
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5543
>             Project: Camel
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 2.10.0
>            Reporter: Christoph Läubrich
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.4, 2.10.2, 2.11.0
>
>
> Sometimes I get an NPE when listing routes in Karaf:
> 2012-08-28 12:20:01,734 | INFO  | l Console Thread | Console                  
>         | 36 - org.apache.karaf.shell.console - 2.2.8 | Exception caught 
> while executing command
> java.lang.NullPointerException
>         at 
> org.apache.camel.karaf.commands.RouteList.doExecute(RouteList.java:65)[129:org.apache.camel.karaf.camel-karaf-commands:2.10.0]
>         at 
> org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[36:org.apache.karaf.shell.console:2.2.8]
>         at 
> org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[36:org.apache.karaf.shell.console:2.2.8]
>         at 
> org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[36:org.apache.karaf.shell.console:2.2.8]
>         at 
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[36:org.apache.karaf.shell.console:2.2.8]
>         at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[36:org.apache.karaf.shell.console:2.2.8]
>         at 
> org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[36:org.apache.karaf.shell.console:2.2.8]
>         at 
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[36:org.apache.karaf.shell.console:2.2.8]
>         at 
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[36:org.apache.karaf.shell.console:2.2.8]
>         at 
> org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[36:org.apache.karaf.shell.console:2.2.8]
>         at 
> org.apache.karaf.shell.console.jline.Console.run(Console.java:166)[36:org.apache.karaf.shell.console:2.2.8]
>         at java.lang.Thread.run(Thread.java:662)[:1.6.0_24]



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to