Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2050

JTA 1.2 compliance: Calling UserTransaction methods from @Transactional bean

Attach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.0.4
    • None
    • None

    Description

      JTA 1.2, section 3.7:

      If an attempt is made to call any method of the UserTransaction interface from within the scope of a bean or method annotated with @Transactional and a Transactional.TxType other than NOT_SUPPORTED or NEVER, an IllegalStateException must be thrown.
      

      Instead TomEE throws:

      13:38:03.710 [http-nio-8080-exec-7] ERROR java.lang.Throwable - javax.transaction.NotSupportedException: Nested Transactions are not supported
      13:38:03.713 [http-nio-8080-exec-7] ERROR java.lang.Throwable -         at org.apache.geronimo.transaction.manager.TransactionManagerImpl.begin(TransactionManagerImpl.java:157)
      13:38:03.716 [http-nio-8080-exec-7] ERROR java.lang.Throwable -         at org.apache.geronimo.transaction.manager.TransactionManagerImpl.begin(TransactionManagerImpl.java:152)
      ...
      ...
      ...
      13:38:03.737 [http-nio-8080-exec-7] ERROR java.lang.Throwable -         at org.apache.webbeans.intercept.AbstractInvocationContext.directProceed(AbstractInvocationContext.java:113)
      13:38:03.758 [http-nio-8080-exec-7] ERROR java.lang.Throwable -         at org.apache.webbeans.intercept.AbstractInvocationContext.proceed(AbstractInvocationContext.java:106)
      13:38:03.761 [http-nio-8080-exec-7] ERROR java.lang.Throwable -         at org.apache.webbeans.intercept.InterceptorInvocationContext.proceed(InterceptorInvocationContext.java:67)
      13:38:03.766 [http-nio-8080-exec-7] ERROR java.lang.Throwable -         at org.apache.openejb.cdi.transactional.InterceptorBase.intercept(InterceptorBase.java:67)
      13:38:03.770 [http-nio-8080-exec-7] ERROR java.lang.Throwable -         at org.apache.openejb.cdi.transactional.RequiredInterceptor.intercept(RequiredInterceptor.java:35)
      

      Attachments

        1. ROOT.war
          4 kB
          Svetlin Zarev
        2. sample.zip
          18 kB
          Svetlin Zarev
        3. sample.zip
          17 kB
          Svetlin Zarev

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            romain.manni-bucau Romain Manni-Bucau
            SvetlinZarev Svetlin Zarev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment