camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kot Kot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5800) Something is wrong with dynamic destinations jms+cxf
Date Sun, 18 Nov 2012 06:52:12 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13499625#comment-13499625
] 

Kot Kot commented on CAMEL-5800:
--------------------------------

This is the service route 
        from("jms://queue:grabber-" + grabberName + "-command-queue").to( ExchangePattern.InOut,"direct:GrabberService");

                
> Something is wrong with dynamic destinations jms+cxf
> ----------------------------------------------------
>
>                 Key: CAMEL-5800
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5800
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, camel-cxf, camel-jms
>    Affects Versions: 2.10.2
>         Environment: jdk 1.7u9 mac os x 1.8
> activemq 5.7
> cxf 2.6.3
>            Reporter: Kot Kot
>
> I try to dynamicly route massages from cxf client to different cxf services...
> if I configure client route builder this way 
>         from("direct:grabberService").
>                 recipientList().simple("jms:queue:grabber-default-grabber-command-queue")
> It works fine: client correctly handles the message.
> but if I configure it using xpath which produces the same result as the constant above:
>       from("direct:grabberService").
>                 recipientList().
>                xpath("concat('jms:queue:grabber-',//grabberServerName/text(),'-command-queue')",
String.class)
> it produces an error on the server
> org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
> 	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:242)
~[cxf-rt-bindings-soap-2.6.3.jar:2.6.3]
> 	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:61)
~[cxf-rt-bindings-soap-2.6.3.jar:2.6.3]
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
~[cxf-api-2.6.3.jar:2.6.3]
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
[cxf-api-2.6.3.jar:2.6.3]
> 	at org.apache.camel.component.cxf.transport.CamelDestination.incoming(CamelDestination.java:163)
[camel-cxf-transport-2.10.2.jar:2.10.2]
> 	at org.apache.camel.component.cxf.transport.CamelDestination$ConsumerProcessor.process(CamelDestination.java:190)
[camel-cxf-transport-2.10.2.jar:2.10.2]
> 	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298) [camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117) [camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)
[camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:104)
[camel-jms-2.10.2.jar:2.10.2]
> 	at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)
[spring-jms-3.1.3.RELEASE.jar:3.1.3.RELEASE]
> 	at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)
[spring-jms-3.1.3.RELEASE.jar:3.1.3.RELEASE]
> 	at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)
[spring-jms-3.1.3.RELEASE.jar:3.1.3.RELEASE]
> 	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:326)
[spring-jms-3.1.3.RELEASE.jar:3.1.3.RELEASE]
> 	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:264)
[spring-jms-3.1.3.RELEASE.jar:3.1.3.RELEASE]
> 	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1071)
[spring-jms-3.1.3.RELEASE.jar:3.1.3.RELEASE]
> 	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1063)
[spring-jms-3.1.3.RELEASE.jar:3.1.3.RELEASE]
> 	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:960)
[spring-jms-3.1.3.RELEASE.jar:3.1.3.RELEASE]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_09]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_09]
> 	at java.lang.Thread.run(Thread.java:722) [na:1.7.0_09]
> Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
>  at [row,col {unknown-source}]: [1,0]
> 	at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:677) ~[woodstox-core-asl-4.1.4.jar:4.1.4]
> 	at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2116) ~[woodstox-core-asl-4.1.4.jar:4.1.4]
> 	at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2022) ~[woodstox-core-asl-4.1.4.jar:4.1.4]
> 	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1114) ~[woodstox-core-asl-4.1.4.jar:4.1.4]
> 	at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1137) ~[woodstox-core-asl-4.1.4.jar:4.1.4]
> 	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:139)
~[cxf-rt-bindings-soap-2.6.3.jar:2.6.3]
> 	... 50 common frames omitted
> and this error on the server
>  Error 2012-11-18 00:39:26,507 [http-bio-9090-exec-10] ERROR errors.GrailsExceptionResolver
 - SoapFault occurred when processing request: [POST] /camera/form_load/7
> Error reading XMLStreamReader.. Stacktrace follows:
> Message: Error reading XMLStreamReader.
>     Line | Method
> ->>   75 | unmarshalFault      in org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> |     46 | handleMessage       in     ''
> |     35 | handleMessage . . . in     ''
> |    262 | doIntercept         in org.apache.cxf.phase.PhaseInterceptorChain
> |    112 | onMessage . . . . . in org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver
> |     69 | handleMessage       in org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor
> |     34 | handleMessage . . . in     ''
> |    262 | doIntercept         in org.apache.cxf.phase.PhaseInterceptorChain
> |    801 | onMessage . . . . . in org.apache.cxf.endpoint.ClientImpl
> |    114 | handleResponse      in org.apache.camel.component.cxf.transport.CamelOutputStream
> |    102 | commitOutputMessage in     ''
> |     63 | doClose             in     ''
> |    186 | close . . . . . . . in org.apache.cxf.io.CachedOutputStream
> |     56 | close               in org.apache.cxf.transport.AbstractConduit
> |     62 | handleMessage . . . in org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor
> |    262 | doIntercept         in org.apache.cxf.phase.PhaseInterceptorChain
> |    531 | doInvoke . . . . .  in org.apache.cxf.endpoint.ClientImpl
> |    464 | invoke              in     ''
> |    367 | invoke . . . . . .  in     ''
> |    320 | invoke              in     ''
> |     89 | invokeSync . . . .  in org.apache.cxf.frontend.ClientProxy
> |    134 | invoke              in org.apache.cxf.jaxws.JaxWsClientProxy
> |     45 | getCameraSettings . in intellicams.web.source.GrabberManagerService
> |     68 | getCameraSettings   in intellicams.web.source.CameraService
> |     36 | form_load . . . . . in intellicams.web.source.service.CameraController
> |   1110 | runWorker           in java.util.concurrent.ThreadPoolExecutor
> |    603 | run . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
> ^    722 | run                 in java.lang.Thread
> let me know if you need more information 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message