Uploaded image for project: 'WildFly Transaction Client'
  1. WildFly Transaction Client
  2. WFTC-65

NullPointerException should not be thrown when txn provider for uri is not available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.1.4.Final
    • 1.1.2.Final
    • None

      When provider for uri is not available the XA resource enlistment throws NullPointerException. There should be thrown an exception informing that the provider for the uri is not available.

      Observed stacktrace

       
      WARN  [com.arjuna.ats.jta] (XNIO-1 task-1) ARJUNA016138: Failed to enlist XA resource Subordinate XAResource at http://127.0.0.1:8081/wildfly-services: java.lang.NullPointerException
       at org.wildfly.transaction.client.SubordinateXAResource.lookup(SubordinateXAResource.java:189)
       at org.wildfly.transaction.client.SubordinateXAResource.start(SubordinateXAResource.java:132)
       at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:662)
       at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:423)
       at org.wildfly.transaction.client.LocalTransaction.enlistResource(LocalTransaction.java:169)
       at org.wildfly.transaction.client.XAOutflowedResources.getOrEnlist(XAOutflowedResources.java:62)
       at org.wildfly.transaction.client.RemoteTransactionContext.outflowTransaction(RemoteTransactionContext.java:222)
       at org.wildfly.httpclient.ejb.HttpEJBReceiver.writeTransaction(HttpEJBReceiver.java:410)
       at org.wildfly.httpclient.ejb.HttpEJBReceiver.marshalEJBRequest(HttpEJBReceiver.java:360)
       at org.wildfly.httpclient.ejb.HttpEJBReceiver.lambda$processInvocation$1(HttpEJBReceiver.java:176)
       at org.wildfly.httpclient.common.HttpTargetContext$1.lambda$completed$0(HttpTargetContext.java:333)
       at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
       at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
       at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1349)
       at java.lang.Thread.run(Thread.java:748)
      
      
      WARN  [com.arjuna.ats.jta] (Periodic Recovery) ARJUNA016009: Caught:: java.lang.NullPointerException
       at org.wildfly.transaction.client.SubordinateXAResource.recover(SubordinateXAResource.java:201)
       at org.wildfly.transaction.client.SubordinateXAResource.recover(SubordinateXAResource.java:197)
       at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecoveryFirstPass(XARecoveryModule.java:609)
       at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkFirstPass(XARecoveryModule.java:201)
       at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkFirstPass(XARecoveryModule.java:146)
       at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:765)
       at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:377)
       

              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: