You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by amollin <as...@gmail.com> on 2012/07/13 21:56:20 UTC

info-route generating NullPointerException

Hello there,

I've a simple Camel beans.xml that I've deployed in karaf.  

When I execute info-route <NameOfTheRoute> command, I get a
NullPointerException as shown below:

2012-07-13 15:47:58,374 | INFO  | l Console Thread | Console                         
| ?                                   ? | 25 - org.apache.karaf.shell.cons
ole - 2.2.4 | Exception caught while executing command
java.lang.NullPointerException
        at java.util.Calendar.setTime(Calendar.java:1076)[:1.6.0_31]
        at
java.text.SimpleDateFormat.format(SimpleDateFormat.java:875)[:1.6.0_31]
        at
java.text.SimpleDateFormat.format(SimpleDateFormat.java:868)[:1.6.0_31]
        at java.text.DateFormat.format(DateFormat.java:316)[:1.6.0_31]
        at
org.apache.camel.karaf.commands.InfoRouteCommand.doExecute(InfoRouteCommand.java:96)[95:org.apache.camel.karaf.camel-karaf-commands:2.8.4]
        at
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[25:org.apache.karaf.shell.console:2.2.4]
        at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[25:org.apache.karaf.shell.console:2.2.4]
        at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:2.2.4]
        at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[25:org.apache.karaf.shell.console:2.2.4]
        at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[25:org.apache.karaf.shell.console:2.2.4]
        at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:2.2.4]
        at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:2.2.4]
        at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:2.2.4]
        at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[25:org.apache.karaf.shell.console:2.2.4]
        at
org.apache.karaf.shell.console.jline.Console.run(Console.java:218)[25:org.apache.karaf.shell.console:2.2.4]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_31]

Please advise.

Thanks,
Ashok

--
View this message in context: http://karaf.922171.n3.nabble.com/info-route-generating-NullPointerException-tp4025233.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.