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

IIOP call does not work with transaction started on client side when run on IBM JDK

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Blocker Blocker
    • None
    • 7.2.0.GA
    • IIOP
    • Hide
      1. download 7.2.0.CD14.CR2
      2. clone crashrec testsuite and create repository by merging maven-repository and testsuite-maven-repository.zip (or download and unzip artifact precompiled.zip)
      3. run mvn clean verify -DfailIfNoTests=false -Dmaven.repo.local=path-to-repo -Djboss.dist=path-to-eap -Deap -Dversion.eap=7.2.0.CD14-redhat-00002 -Dtest=JMSCrashRecoveryTestCase#none -Dclient.side.transaction -Djbossts.noJTA
      Show
      download 7.2.0.CD14.CR2 clone crashrec testsuite and create repository by merging maven-repository and testsuite-maven-repository.zip (or download and unzip artifact precompiled.zip ) run mvn clean verify -DfailIfNoTests=false -Dmaven.repo.local=path-to-repo -Djboss.dist=path-to-eap -Deap -Dversion.eap=7.2.0.CD14-redhat-00002 -Dtest=JMSCrashRecoveryTestCase#none -Dclient.side.transaction -Djbossts.noJTA

      Issue is valid only for IBM JDK 8...scenario works on oracle jdk 8 and 11 and openjdk 8.

      Scenario (using CORBA):

      1. start transaction
      2. lookup
      3. IIOP call
      4. EJB perform a basic operation and return (no failure is expected)

      IIOP call fails with following exception:

      java.lang.NullPointerException: null
      	at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.sentFullMessage(CorbaMessageMediatorImpl.java:429)
      	at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.sendCancelRequestIfFinalFragmentNotSent(CorbaMessageMediatorImpl.java:394)
      	at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.endRequest(CorbaClientRequestDispatcherImpl.java:895)
      	at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.releaseReply(CorbaClientDelegateImpl.java:167)
      	at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:253)
      	at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:139)
      	at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:91)
      	at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:408)
      	at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:274)
      	at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:132)
      	at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:61)
      	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:695)
      	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:324)
      	at javax.naming.InitialContext.init(InitialContext.java:255)
      	at javax.naming.InitialContext.<init>(InitialContext.java:227)
      	at org.jboss.as.test.jbossts.client.utils.TxUtil.lookupIIOP(TxUtil.java:93)
      	at org.jboss.as.test.jbossts.client.utils.TxUtil.lookupIIOP(TxUtil.java:103)
      	at org.jboss.as.test.jbossts.crashrec.test.JMSCrashRecoveryTestCase.lookupCrashBeanOverIIOP(JMSCrashRecoveryTestCase.java:164)
      	at org.jboss.as.test.jbossts.crashrec.test.JMSCrashRecoveryTestCase.callCrashTest(JMSCrashRecoveryTestCase.java:126)
      

      When transaction is not started on client side, IIOP call works smoothly.

              tadamski@redhat.com Tomasz Adamski
              istraka@redhat.com Ivan Straka
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: