camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Stubbing jms with an inprocess transport when using CamelTestSupport
Date Tue, 17 Dec 2013 20:03:50 GMT
You can use stub endpoint
http://camel.apache.org/stub

On Tue, Dec 17, 2013 at 8:48 PM, smadarapu <srikanth.madarapu@adp.com> wrote:
> I have the same issue, but the question here is if I can have jms selectors
> on a SEDA endpoint or not. Having different values based on the environment
> is secondary, i cant even configure the selectors with a SEDA endpoint. I
> must be missing something, forgive my ignorance.
>
> I see this exception as the OP
>
> org.apache.camel.FailedToCreateRouteException: Failed to create route
> com.workscape.isi.camelrouting.InputFileCollectorRouteBuilder:INPUT_FILE_COLLECTOR_ROUTE_MQ1:TenantActive:
> Route(com.workscape.isi.camelrouting.InputFileCollectorRoute... because of
> Failed to resolve endpoint:
> jms://queue1:msgs?selector=CustID+%3D+%27TenantActive%27 due to: Failed to
> resolve endpoint: jms://queue1:msgs?selector=CustID+%3D+%27TenantActive%27
> due to: There are 1 parameters that couldn't be set on the endpoint. Check
> the uri if the parameters are spelt correctly and that they are properties
> of the endpoint. Unknown parameters=[{selector=CustID = 'TenantActive'}]
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:182)
>         at
> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:770)
>         at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1914)
>         at
> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1670)
>         at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1544)
>         at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>         at
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1512)
>         at
> org.apache.camel.test.junit4.CamelTestSupport.startCamelContext(CamelTestSupport.java:476)
>         at
> org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:310)
>         at
> org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:216)
>         at
> com.workscape.isi.camelrouting.InputFileCollectorRouteTest.setUp(InputFileCollectorRouteTest.java:136)
>         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:597)
>         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.RunBefores.evaluate(RunBefores.java:27)
>         at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>         at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
>         at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
>         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.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>         at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
>         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: org.apache.camel.ResolveEndpointFailedException: Failed to
> resolve endpoint: jms://queue1:msgs?selector=CustID+%3D+%27TenantActive%27
> due to: Failed to resolve endpoint:
> jms://queue1:msgs?selector=CustID+%3D+%27TenantActive%27 due to: There are 1
> parameters that couldn't be set on the endpoint. Check the uri if the
> parameters are spelt correctly and that they are properties of the endpoint.
> Unknown parameters=[{selector=CustID = 'TenantActive'}]
>         at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:528)
>         at
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:63)
>         at
> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:192)
>         at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
>         at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
>         at
> org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
>         at
> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:890)
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
>         ... 36 more
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
> resolve endpoint: jms://queue1:msgs?selector=CustID+%3D+%27TenantActive%27
> due to: There are 1 parameters that couldn't be set on the endpoint. Check
> the uri if the parameters are spelt correctly and that they are properties
> of the endpoint. Unknown parameters=[{selector=CustID = 'TenantActive'}]
>         at
> org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:189)
>         at
> org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:134)
>         at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:508)
>         ... 44 more
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Stubbing-jms-with-an-inprocess-transport-when-using-CamelTestSupport-tp4685084p5744959.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Mime
View raw message