Details
-
Bug
-
Resolution: Done
-
Major
-
2.1.0
-
None
-
None
Description
The camel-example-spring from Apache Camel uses routes in Java code.
Opening the spring xml file in Fuse IDE shows an empty route section. And inserts an empty <route> tag. Which then when you run the example causes Camel to fail.
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.910s [INFO] Finished at: Mon May 07 14:40:23 CEST 2012 [INFO] Final Memory: 15M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.camel:camel-maven-plugin:2.10-SNAPSHOT:run (default-cli) on project camel-example-spring: null: MojoExecutionException: InvocationTargetException: Error creating bean with name 'template': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Route has no inputs: Route[[] -> []] -> [Help 1]
And this is the XML generated
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <package>org.apache.camel.example.spring</package> <route/> </camelContext>
The original source file is just
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <package>org.apache.camel.example.spring</package> </camelContext>