我正在尝试在camel-blueprint-test中测试Camel Blueprint路线。这条路线可以加载karaf,在使用Camel和Spring时也可以使用。在这一点上,我得到了:
org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> Unmarshal[ref:IssRequest] <<< in route: Route(route1)[[From[seda:from_rraa]] -> [process[ref:issPrep... because of Data format 'json-jackson' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1028)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:185)
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:841)
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2911)
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2634)
...
其他帖子建议在pom.xml中添加camel-jackson,但我已经有了。还建议在karaf容器中加载该功能,但这是在camel-blueprint-test中运行单元测试时,而不是在真正的karaf中。
答案 0 :(得分:1)
该版本存在错误,请使用2.15.2或2.16.0或等待2.15.4