Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9257

Intermittent failures when using CXF SOAP over JMS connecting to external AMQ-7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • fuse-7.3
    • fuse-7.0
    • CXF, Karaf
    • None
    • % %
    • Hide

      1. Create AMQ-7 broker on some machine
      1.1. e.g. try our OpenShift on url: https://master.sos.fuse-qe.eng.rdu2.redhat.com:8443/
      1.2 Use fuseqe:DreamTeam42 to login
      1.3. Create new namespace
      1.4. Create deployment by clicking on "Add to Project" -> "Import YAML/JSON" -> Copy the deployment.yaml file
      1.5. Create service by clicking on "Add to Project" -> "Import YAML/JSON" -> Copy the service.yaml file
      1.6. Click on Applications -> Services -> jboss-amq-7 and under Traffic / Route/Node Port there are two port which you can you to connect to

      2. Unzip the soapoverjms.zip
      3. Build it:

      mvn clean install -Dexternal.broker.host=master.sos.fuse-qe.eng.rdu2.redhat.com -Dexternal.broker.port=${Route/Node Port_neer to 61616} -DskipTests=true
      

      4. Run Karaf and install the build application with:

      feature:install artemis-jms-client
      bundle:install -s mvn:org.jboss.qe.cxf.ws.jms/soap-over-jms/1.0-SNAPSHOT
      

      5. Run test mupltiple times with and you hit the exception:

      mvn test -Dexternal.broker.host=master.sos.fuse-qe.eng.rdu2.redhat.com -Dexternal.broker.port=${Route/Node Port_neer to 61616} -DskipTests=false
      
      Show
      1. Create AMQ-7 broker on some machine 1.1. e.g. try our OpenShift on url: https://master.sos.fuse-qe.eng.rdu2.redhat.com:8443/ 1.2 Use fuseqe:DreamTeam42 to login 1.3. Create new namespace 1.4. Create deployment by clicking on "Add to Project" -> "Import YAML/JSON" -> Copy the deployment.yaml file 1.5. Create service by clicking on "Add to Project" -> "Import YAML/JSON" -> Copy the service.yaml file 1.6. Click on Applications -> Services -> jboss-amq-7 and under Traffic / Route/Node Port there are two port which you can you to connect to 2. Unzip the soapoverjms.zip 3. Build it: mvn clean install -Dexternal.broker.host=master.sos.fuse-qe.eng.rdu2.redhat.com -Dexternal.broker.port=${Route/Node Port_neer to 61616} -DskipTests= true 4. Run Karaf and install the build application with: feature:install artemis-jms-client bundle:install -s mvn:org.jboss.qe.cxf.ws.jms/soap-over-jms/1.0-SNAPSHOT 5. Run test mupltiple times with and you hit the exception: mvn test -Dexternal.broker.host=master.sos.fuse-qe.eng.rdu2.redhat.com -Dexternal.broker.port=${Route/Node Port_neer to 61616} -DskipTests= false
    • Fuse 7.2 Sprint 36

      I am hitting intermittent failures RUNNING test CXF SOAP over JMS against remote AMQ-7 broker (e.g. running in OpenShift or running in OpenStack provisioned machine). There might be problem in configuration of CXF JMS. It would be great, if this would be examined. I think the problem might be in configuring the timeToLive property. However, I increased the value from 10s to 60seconds. The test became much more stable.

      Also in 6.3, we run a lot of test against embedded broker in Karaf. So we haven't seen this problem in our application. Also

      I hit this Exception:

      java.lang.RuntimeException: Timeout receiving message with correlationId 7d49be8ab54949cbaea2e6ad952b23430000000000000001
              at org.apache.cxf.transport.jms.util.JMSUtil.convertJmsException(JMSUtil.java:65)
              at org.apache.cxf.transport.jms.JMSConduit.sendExchange(JMSConduit.java:161)
              at org.apache.cxf.transport.jms.MessageStreamUtil$SendingOutputStream.doClose(MessageStreamUtil.java:81)
              at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:213)
              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:518)
              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:427)
              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:328)
              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:281)
              at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
              at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)
              at com.sun.proxy.$Proxy33.greet(Unknown Source)
              at org.jboss.qe.cxf.ws.jms.jms.SoapJmsTest.testJndi(SoapJmsTest.java:30)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
              at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      Caused by: javax.jms.JMSException: Timeout receiving message with correlationId 7d49be8ab54949cbaea2e6ad952b23430000000000000001
              at org.apache.cxf.transport.jms.JMSConduit.sendAndReceiveMessage(JMSConduit.java:237)
              at org.apache.cxf.transport.jms.JMSConduit.sendExchange(JMSConduit.java:145)
              ... 39 more
      
      

        1. deployment.yaml
          1.0 kB
          Viliam Kasala
        2. service.yaml
          0.3 kB
          Viliam Kasala

              yfang@redhat.com Freeman(Yue) Fang
              vkasala@redhat.com Viliam Kasala
              Lukas Lowinger Lukas Lowinger
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: