glassfish
  1. glassfish
  2. GLASSFISH-16878

NPE on J2EETransaction on commit whent using a transaction manager in a remote client

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: v2.1.1
    • Fix Version/s: None
    • Component/s: jts
    • Labels:
      None
    • Environment:

      Windows XP Professional SP3 (32-bits),Intel Core 2 Duo T5200@1.60GHz, 2GB RAM

      Description

      When committing a remotely created XA transaction (using the container TransactionManager), the application is throwing a NPE (we are trying to send a JMS message from a remote client inside a distributed transaction).

      Stacktrace:

      java.lang.NullPointerException
      at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:511)
      at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371)
      at com.sun.enterprise.transaction.TransactionManagerHelper.commit(TransactionManagerHelper.java:63)
      at RemoteJtaTester.main(RemoteJtaTester.java:48)

      Source code attached.

        Activity

        Hide
        marina vatkina added a comment -

        NPE can happen only if the transaction.nonXA.optimizationis set to false, which is not a supported config.

        Show
        marina vatkina added a comment - NPE can happen only if the transaction.nonXA.optimizationis set to false, which is not a supported config.
        Hide
        olamiral added a comment -

        Thank you for your quick reply, Marina.

        Could you tell me where should check and set the value for this property, please?

        Thank you once again!

        Show
        olamiral added a comment - Thank you for your quick reply, Marina. Could you tell me where should check and set the value for this property, please? Thank you once again!
        Hide
        marina vatkina added a comment -

        It should not be set. Somehow it seems to be set to false in the server-config

        Show
        marina vatkina added a comment - It should not be set. Somehow it seems to be set to false in the server-config

          People

          • Assignee:
            marina vatkina
            Reporter:
            olamiral
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: