By the way, do you have JMX enabled on your route (as a workaround) ?

> Le 22 janv. 2021 à 07:46, Jörg Jansen <jansen...@gmail.com> a écrit :
> 
> Hi everybody,
> 
> I'm running camel (3.7.0) in a karaf container (4.3.0).
> When trying to list all routes with command route-list, I receive the
> following error message:
> 
>      Error executing command: Cannot invoke
> "org.apache.camel.api.management.mbean.ManagedRouteMBean.getExchangesTotal()"
> because "mr" is null
> 
> 
> Stacktrace:
> 15:41:35.669 ERROR [Karaf local console user karaf] Exception caught
> while executing command
> java.lang.NullPointerException: Cannot invoke
> "org.apache.camel.api.management.mbean.ManagedRouteMBean.getExchangesTotal()"
> because "mr" is null
>        at 
> org.apache.camel.commands.AbstractLocalCamelController.getRoutes(AbstractLocalCamelController.java:291)
> ~[?:?]
>        at 
> org.apache.camel.commands.AbstractLocalCamelController.getRoutes(AbstractLocalCamelController.java:306)
> ~[?:?]
>        at 
> org.apache.camel.commands.AbstractLocalCamelController.getRoutes(AbstractLocalCamelController.java:271)
> ~[?:?]
>        at 
> org.apache.camel.commands.RouteListCommand.execute(RouteListCommand.java:54)
> ~[?:?]
>        at org.apache.camel.karaf.commands.RouteList.execute(RouteList.java:39)
> ~[?:?]
>        at 
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
> ~[?:?]
>        at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
> ~[?:?]
>        at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
> ~[?:?]
>        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599)
> ~[?:?]
>        at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526)
> ~[?:?]
>        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415)
> ~[?:?]
>        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
>        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
>        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
>        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
>        at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
> ~[?:?]
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
> ~[?:?]
>        at java.lang.Thread.run(Thread.java:832) [?:?]
> 
> Maybe I'm missing something, but have no idea, what.
> 
> Does anybody has an idea, what the reason could be.
> 
> Thanks in advance,
> Joerg

Reply via email to