camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfischer <bfisc...@gk-software.com>
Subject Re: Loading routes from XML files with Camel 2.4.0
Date Sat, 15 Jan 2011 09:53:23 GMT

Hi

your are right - my fault, sorry.

Now three from four tests are working ... still the one with <transacted/>
reports this error

org.apache.camel.FailedToCreateRouteException: Failed to create route
test02-route01 at: >>> From[direct:test02-route01] <<< in route:
Route[[From[direct:test02-route01]] -> [Transacted[ref:null]... because of
Route test02-route01 has no output processors. You need to add outputs to
the route such as to("log:foo").
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:750)
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:160)
	at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:698)
	at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1621)
	at
org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:649)
	at
com.gk_software.camel.testRouteLoading.TestCase.loadAdditionalRoute(TestCase.java:131)
	at com.gk_software.camel.testRouteLoading.TestCase.test02(TestCase.java:67)
	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:592)
	at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.IllegalArgumentException: Route test02-route01 has no
output processors. You need to add outputs to the route such as
to("log:foo").
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:748)
	... 30 more



-----
Bernd Fischer
GK Software AG
bfischer@gk-software.com
-- 
View this message in context: http://camel.465427.n5.nabble.com/Loading-routes-from-XML-files-with-Camel-2-4-0-tp3340082p3342458.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message