SimpleIllegalSyntaxException when upgrating to Camel 2.9.0.fuse-70-097
patg_patrice.godard Oct 22, 2012 4:50 AMHello,
I'm migrating from Fuse ESB 4.4.1 to Fuse ESB Enterprise 7.0.2.fuse-097 (Camel 2.8.0-fuse-06-11 to Camel 2.9.0.fuse-70-097 and I have the following issue with an existing route that fails starting-up:
-
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route
opus-admin-route at: >>> Log[----
-
] <<< in route: Rout
e[[From[ref:opus-admin-jms-src]|http://fusesource.com/forums/] -> [OnException[[class ... because of Unary ope
rator -- has no left hand side token at location 0
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java
:874)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java
:171)
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelCont
ext.java:705)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(Defau
ltCamelContext.java:1747)
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelCo
ntext.java:1540)
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext
.java:1420)
at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext
.java:181)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.j
ava:1388)
at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelCont
ext.java:230)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringC
amelContext.java:120)
... 10 more
Caused by: org.apache.camel.language.simple.types.SimpleIllegalSyntaxException:
Unary operator -- has no left hand side token at location 0
-
There must have been a change in the DSL but the above SimpleIllegalSyntaxException won't tell me where. I'm surprise that a route that compiles won't start (I'm using the Java DSL only).
-
On top of the stacktrace I have this:
-
]
<<< in route: Route[[From[ref:opus-admin-jms-src]|http://fusesource.com/forums/] -> [OnException[[class ... b
ecause of Unary operator -- has no left hand side token at location 0
-
My route looks like this:
from("ref:opus-admin-jms-src")
.routeId("opus-admin-route")
.process(new CreateLogContextProcessor(Constants.LOG_BUNDLE_FILE_NAME))
.log(LoggingLevel.INFO, "Operation ${in.header.operationName}() received by the Database Writer component on the opus admin JMS queue.")
.choice()
.when(header(Constants.OPERATION_NAME).isEqualTo("createOpus")).beanRef("opusProcessor", "createOpus")
.when(header(Constants.OPERATION_NAME).isEqualTo("createOpusGroup")).beanRef("opusProcessor", "createOpusGroup")
.otherwise()
.log(LoggingLevel.ERROR, "Unknown Operation called : ${in.header.operationName}() !!!")
.to("ref:error-requests-dir")
.end();
-
I'm currently trying to comment-out part of the route in order to pinpoint what's wrong but I can't find out.