Details
Description
When using SOAP over JMS on Spring 4+ & Apache CXF 3.0+, client can not send message to the queue. Clients throws out this exception:
java.lang.RuntimeException: Could not create Transport. Reason: java.io.IOException: Transport not scheme specified: [null]
at org.apache.cxf.transport.jms.util.JMSUtil.convertJmsException(JMSUtil.java:68)
at org.apache.cxf.transport.jms.JMSConduit.sendExchange(JMSConduit.java:162)
at org.apache.cxf.transport.jms.MessageStreamUtil$SendingOutputStream.doClose(MessageStreamUtil.java:81)
at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:212)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.jms.JMSConduit.close(JMSConduit.java:101)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138)
at com.sun.proxy.$Proxy22.doORC(Unknown Source)
at com.sps.vn.ocr.proxy.controller.OcrController$1.call(OcrController.java:86)
at com.sps.vn.ocr.proxy.controller.OcrController$1.call(OcrController.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport not scheme specified: [null]
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:317)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:330)
at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:251)
at org.apache.cxf.transport.jms.JMSFactory.createConnection(JMSFactory.java:102)
at org.apache.cxf.transport.jms.JMSConduit.getConnection(JMSConduit.java:109)
at org.apache.cxf.transport.jms.JMSConduit.sendExchange(JMSConduit.java:139)
... 19 common frames omitted
Caused by: java.io.IOException: Transport not scheme specified: [null]
at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:172)
at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:63)
at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:315)
... 24 common frames omitted