camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAMEL-550) NPE from came:run with below route codes
Date Wed, 18 Jun 2008 04:13:00 GMT

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

Willem Jiang closed CAMEL-550.
------------------------------


> NPE from came:run with below route codes
> ----------------------------------------
>
>                 Key: CAMEL-550
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-550
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core, camel-spring
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> With the following route:
> {noformat}
> 				from("timer://tutorial?fixedRate=true&period=10")
> 						.setBody(
> 								constant("<?xml version='1.0' encoding='UTF-8'?><greetMe>Hello World</greetMe>"))
> 						.setHeader("CBR1", constant("No")).choice().when(
> 								header("CBR1").isEqualTo("Yes")).setHeader(
> 								"CreditcardValidation", constant("Yes")).to(
> 								"log:CBRBean?level=INFO").to("log:XSLT for provider1?level=INFO")
> 						.when(header("CBR1").isEqualTo("No")).setHeader(
> 								"CreditcardValidation", constant("No")).to(
> 								"log:XSLT for provider2?level=INFO").end().choice()
> 						.when(header("CreditcardValidation").isEqualTo("Yes"))
> 						.to("log:CCVBean?level=INFO").to("log:XSLT for consumer1?level=INFO").when(
> 								header("CreditcardValidation").isEqualTo("No"))
> 						.to("log:XSLT for consumer2?level=INFO").otherwise()
> 						.to("log:test?level=INFO").end();
> {noformat}
> running mvn camel:run 
> I get the following stack trace:
> {noformat}
> java.lang.NullPointerException
> 	at org.apache.camel.view.NodeData.<init>(NodeData.java:136)
> 	at org.apache.camel.view.GraphGeneratorSupport.getNodeData(GraphGeneratorSupport.java:142)
> 	at org.apache.camel.view.RouteDotGenerator.printNode(RouteDotGenerator.java:101)
> 	at org.apache.camel.view.RouteDotGenerator.printNode(RouteDotGenerator.java:123)
> 	at org.apache.camel.view.RouteDotGenerator.printRoute(RouteDotGenerator.java:87)
> 	at org.apache.camel.view.RouteDotGenerator.printRoutes(RouteDotGenerator.java:64)
> 	at org.apache.camel.view.RouteDotGenerator.printRoutes(RouteDotGenerator.java:48)
> 	at org.apache.camel.view.RouteDotGenerator.generateFile(RouteDotGenerator.java:169)
> 	at org.apache.camel.view.GraphGeneratorSupport.generateFile(GraphGeneratorSupport.java:103)
> 	at org.apache.camel.view.GraphGeneratorSupport.drawRoutes(GraphGeneratorSupport.java:81)
> 	at org.apache.camel.spring.Main.generateDot(Main.java:392)
> 	at org.apache.camel.spring.Main.postProcessContext(Main.java:374)
> 	at org.apache.camel.spring.Main.doStart(Main.java:333)
> 	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> 	at org.apache.camel.spring.Main.run(Main.java:123)
> 	at org.apache.camel.spring.Main.run(Main.java:114)
> 	at org.apache.camel.spring.Main.main(Main.java:106)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:333)
> 	at java.lang.Thread.run(Thread.java:613)
> {noformat}
> the error seems related to the maven camel plugin failing generating the dot file for
the route.

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


Mime
View raw message