IllegalArgumentException: Either 'uri' or 'ref' must be specified on: org.apache.camel.impl.DefaultRouteContext

2015-12-20 Thread sunil4uing
I have written a test case as shown below. Though there are no system dependencies, This case case never fails in my system but it fails in all other systems. @Test public void testSOTBlock() throws Exception { context.getRouteDefinitions().get(0).adviceWith(context, new AdviceWithRout

Re: IllegalArgumentException: Either 'uri' or 'ref' must be specified on: org.apache.camel.impl.DefaultRouteContext

2015-12-21 Thread Claus Ibsen
Its hard to help when you do not provide more details. The stacktrace refers to route 17, so check that that route if its somewhat special. Also you can try upgrading Camel. And when you use advice-with in unit tests, then make sure to follow the box on this page with "telling Camel you are using