Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6410

SOAP over JMS does not work on Spring 4, Apache CXF 3.0+

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.1, 3.0.5
    • Invalid
    • JMS
    • None
    • Java 1.7, Spring Boot 1.2.3.RELEASE, Undertow web server, cxf-rt-transports-jms version 3.0.5, cxf-rt-frontend-jaxws version 3.0.5, activemq-camel version 5.10.0

    • Unknown

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            txhuy Huy Xuan Truong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: