Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12659

[GSS](7.0.z) java.lang.RuntimeException: MQJCA1018: Only one session per connection is allowed

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Set useConduitIdSelector to false such as:

      <soap:address location="jms:jndi:jms/mq/requestQueue?jndiInitialContextFactory=org.jboss.as.naming.InitialContextFactory&jndiConnectionFactoryName=jms/mq/ExampleWSQueue&jndiURL=http-remoting://127.0.0.1:8080&useConduitIdSelector=false"></soap:address>
      
      Show
      Set useConduitIdSelector to false such as: <soap:address location= "jms:jndi:jms/mq/requestQueue?jndiInitialContextFactory=org.jboss.as.naming.InitialContextFactory&jndiConnectionFactoryName=jms/mq/ExampleWSQueue&jndiURL=http-remoting: //127.0.0.1:8080&useConduitIdSelector= false " ></soap:address>
    • +

    Description

      When using a JAX-WS Client to call a SOAP Webservice over JMS by using the Messaging Provider IBM WebSphere MQ. The WebService Provider of JBoss EAP (Apache CXF) produces an exception:

      2017-05-09 09:31:20,030 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (default task-3) Interceptor for

      {http://schema.hdigerling.de/testanwendung/kurzesLesen}

      kurzesLesen#

      {http://schema.hdigerling.de/testanwendung/kurzesLesen}
      kurzesLesen has thrown exception, unwinding now: java.lang.RuntimeException: MQJCA1018: Only one session per connection is allowed.
       at org.apache.cxf.transport.jms.util.JMSUtil.convertJmsException(JMSUtil.java:65)
       at org.apache.cxf.transport.jms.util.MessageListenerContainer.start(MessageListenerContainer.java:66)
       at org.apache.cxf.transport.jms.JMSConduit.setupReplyDestination(JMSConduit.java:183)
       at org.apache.cxf.transport.jms.JMSConduit.sendAndReceiveMessage(JMSConduit.java:195)
       at org.apache.cxf.transport.jms.JMSConduit.sendExchange(JMSConduit.java:145)
       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:308)
       at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
       at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
       at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139) 

      Attachments

        1. standalone-full-wmq.xml
          27 kB
          Brad Maxwell

        Issue Links

          Activity

            People

              spyrkob Bartosz Spyrko-Smietanko
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: