Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3801

Wrong Transaction behaviour for EJBs if JTS is enabled

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.1.0.Final
    • Fix Version/s: 11.0.0.Final
    • Component/s: EJB
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      A reproducer project is attached.

      • use 'standalone.sh -c standalone-full.xml
      • run the enableJTS : jboss-cli.sh -c --file=enableJTS.cli
      • deploy target/ejb30-jpa.jar
      • run
      • java -cp JB/bin/client/jboss-client.jar:target/test-classes:target/classes org.jboss.wfink.ejb30.StatefulRemoveMain
      • java -cp JB/bin/client/jboss-client.jar:target/test-classes:target/classes org.jboss.wfink.ejb30.StatelessMain
      Show
      A reproducer project is attached. use 'standalone.sh -c standalone-full.xml run the enableJTS : jboss-cli.sh -c --file=enableJTS.cli deploy target/ejb30-jpa.jar run java -cp JB/bin/client/jboss-client.jar:target/test-classes:target/classes org.jboss.wfink.ejb30.StatefulRemoveMain java -cp JB/bin/client/jboss-client.jar:target/test-classes:target/classes org.jboss.wfink.ejb30.StatelessMain

      Description

      If JTS is enabled the invocation of EJB's might show a arjuna warning for each method invocation:
      WARN [com.arjuna.ats.jts] (RequestProcessor-5) ARJUNA022261: ServerTopLevelAction detected that the transaction was inactive
      This is only the case if other resources are involved, i.e. a DB via JPA.
      If a simple bean is used (like ejb-remote quickstart) this warning is not shown.

      It looks like the transaction is local commited but in case of a SFSB @Remove method the result is a " WFLYEE0006: Failed to destroy component instance Instance of SFTestBean" and the lifecycle method @PreDestroy is not invoked.

        Gliffy Diagrams

          Attachments

          1. 456a624-withDestroy.log
            662 kB
          2. 8d49872-error.log
            676 kB
          3. enableJTS.cli
            0.7 kB
          4. reproducer.zip
            29 kB
          5. server.log
            48 kB

            Issue Links

              Activity

                People

                • Assignee:
                  swd847 Stuart Douglas
                  Reporter:
                  wdfink Wolf-Dieter Fink
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  14 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: