java.lang.UnsupportedOperationException: no transaction

JBoss Issue Tracker | Ron Šmeral | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    h4. Summary: Seam version: 2.2.5.EAP5 (included in EAP 5.1.2.GA) The seampay example from Seam 2.2 was migrated to EAP6 according to the migration guide on Documentation-Stage (http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/6/html/Beta_Documentation/Migrate_Seam_22_Archives_to_JBoss_Enterprise_Application_Platform_6.html) and the bug was verified to occur with EAP 6.0.0.ER1. This issue was fixed in Seam 2.3, so there is a patch available: https://github.com/maschmid/Seam2.3/commit/44a14986a9f6003c5a9ac13fcae9365a5860331e#diff-0 Related issue: https://issues.jboss.org/browse/AS7-1358 h4. Bug description: The ftest fails in 2 methods: {noformat} [testng] FAILED: payOnceTest [testng] java.lang.AssertionError: No money were subtracted from account expected:<991.46> but was:<1001.46> [testng] at org.jboss.seam.example.common.test.seampay.selenium.PaymentTest.payOnceTest(PaymentTest.java:77) [testng] ... Removed 25 stack frames [testng] FAILED: payEveryMinuteTest [testng] java.lang.AssertionError: No money were subtracted from account after a minute expected:<992.46> but was:<1002.46> [testng] at org.jboss.seam.example.common.test.seampay.selenium.PaymentTest.payEveryMinuteTest(PaymentTest.java:115) [testng] ... Removed 25 stack frames {noformat} The log contains: {noformat} 16:39:56,778 WARN [org.jboss.seam.contexts.Contexts] (pool-12-thread-1) Exception destroying context : java.lang.UnsupportedOperationException: no transaction at org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:36) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.util.Work.workInTransaction(Work.java:58) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:352) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:101) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.cleanup(Asynchronous.java:106) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:99) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.AsynchronousInvocation.execute(AsynchronousInvocation.java:45) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:142) [jboss-seam.jar:2.2.5.EAP5] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30] 16:39:56,783 ERROR [org.jboss.seam.async.AsynchronousExceptionHandler] (pool-12-thread-1) Exception thrown whilst executing asynchronous call: java.lang.RuntimeException: java.lang.UnsupportedOperationException: no transaction at org.jboss.seam.async.AsynchronousInvocation$1.process(AsynchronousInvocation.java:78) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:95) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.AsynchronousInvocation.execute(AsynchronousInvocation.java:45) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:142) [jboss-seam.jar:2.2.5.EAP5] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30] Caused by: java.lang.UnsupportedOperationException: no transaction at org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:36) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.util.Work.workInTransaction(Work.java:58) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.AsynchronousInvocation$1.process(AsynchronousInvocation.java:53) [jboss-seam.jar:2.2.5.EAP5] ... 12 more 16:39:56,789 WARN [org.jboss.seam.contexts.Contexts] (pool-12-thread-1) Exception destroying context : java.lang.UnsupportedOperationException: no transaction at org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:36) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.util.Work.workInTransaction(Work.java:58) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:352) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:101) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.cleanup(Asynchronous.java:106) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:99) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.AsynchronousInvocation.handleException(AsynchronousInvocation.java:95) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:146) [jboss-seam.jar:2.2.5.EAP5] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30] {noformat}

    JBoss Issue Tracker | 5 years ago | Ron Šmeral
    java.lang.UnsupportedOperationException: no transaction
  2. 0

    h4. Summary: Seam version: 2.2.5.EAP5 (included in EAP 5.1.2.GA) The seampay example from Seam 2.2 was migrated to EAP6 according to the migration guide on Documentation-Stage (http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/6/html/Beta_Documentation/Migrate_Seam_22_Archives_to_JBoss_Enterprise_Application_Platform_6.html) and the bug was verified to occur with EAP 6.0.0.ER1. This issue was fixed in Seam 2.3, so there is a patch available: https://github.com/maschmid/Seam2.3/commit/44a14986a9f6003c5a9ac13fcae9365a5860331e#diff-0 Related issue: https://issues.jboss.org/browse/AS7-1358 h4. Bug description: The ftest fails in 2 methods: {noformat} [testng] FAILED: payOnceTest [testng] java.lang.AssertionError: No money were subtracted from account expected:<991.46> but was:<1001.46> [testng] at org.jboss.seam.example.common.test.seampay.selenium.PaymentTest.payOnceTest(PaymentTest.java:77) [testng] ... Removed 25 stack frames [testng] FAILED: payEveryMinuteTest [testng] java.lang.AssertionError: No money were subtracted from account after a minute expected:<992.46> but was:<1002.46> [testng] at org.jboss.seam.example.common.test.seampay.selenium.PaymentTest.payEveryMinuteTest(PaymentTest.java:115) [testng] ... Removed 25 stack frames {noformat} The log contains: {noformat} 16:39:56,778 WARN [org.jboss.seam.contexts.Contexts] (pool-12-thread-1) Exception destroying context : java.lang.UnsupportedOperationException: no transaction at org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:36) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.util.Work.workInTransaction(Work.java:58) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:352) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:101) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.cleanup(Asynchronous.java:106) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:99) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.AsynchronousInvocation.execute(AsynchronousInvocation.java:45) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:142) [jboss-seam.jar:2.2.5.EAP5] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30] 16:39:56,783 ERROR [org.jboss.seam.async.AsynchronousExceptionHandler] (pool-12-thread-1) Exception thrown whilst executing asynchronous call: java.lang.RuntimeException: java.lang.UnsupportedOperationException: no transaction at org.jboss.seam.async.AsynchronousInvocation$1.process(AsynchronousInvocation.java:78) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:95) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.AsynchronousInvocation.execute(AsynchronousInvocation.java:45) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:142) [jboss-seam.jar:2.2.5.EAP5] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30] Caused by: java.lang.UnsupportedOperationException: no transaction at org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:36) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.util.Work.workInTransaction(Work.java:58) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.AsynchronousInvocation$1.process(AsynchronousInvocation.java:53) [jboss-seam.jar:2.2.5.EAP5] ... 12 more 16:39:56,789 WARN [org.jboss.seam.contexts.Contexts] (pool-12-thread-1) Exception destroying context : java.lang.UnsupportedOperationException: no transaction at org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:36) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.util.Work.workInTransaction(Work.java:58) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:352) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:101) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.cleanup(Asynchronous.java:106) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:99) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.AsynchronousInvocation.handleException(AsynchronousInvocation.java:95) [jboss-seam.jar:2.2.5.EAP5] at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:146) [jboss-seam.jar:2.2.5.EAP5] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_30] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_30] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30] {noformat}

    JBoss Issue Tracker | 5 years ago | Ron Šmeral
    java.lang.UnsupportedOperationException: no transaction

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      no transaction

      at org.jboss.seam.transaction.NoTransaction.begin()
    2. org.jboss.seam
      ThreadPoolDispatcher$RunnableAsynchronous.run
      1. org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:36)[jboss-seam.jar:2.2.5.EAP5]
      2. org.jboss.seam.util.Work.workInTransaction(Work.java:58)[jboss-seam.jar:2.2.5.EAP5]
      3. org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:352)[jboss-seam.jar:2.2.5.EAP5]
      4. org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:101)[jboss-seam.jar:2.2.5.EAP5]
      5. org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.cleanup(Asynchronous.java:106)[jboss-seam.jar:2.2.5.EAP5]
      6. org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:99)[jboss-seam.jar:2.2.5.EAP5]
      7. org.jboss.seam.async.AsynchronousInvocation.handleException(AsynchronousInvocation.java:95)[jboss-seam.jar:2.2.5.EAP5]
      8. org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:146)[jboss-seam.jar:2.2.5.EAP5]
      8 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[rt.jar:1.6.0_30]
      2. java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[rt.jar:1.6.0_30]
      3. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[rt.jar:1.6.0_30]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[rt.jar:1.6.0_30]
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[rt.jar:1.6.0_30]
      6. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[rt.jar:1.6.0_30]
      7. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[rt.jar:1.6.0_30]
      8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[rt.jar:1.6.0_30]
      9. java.lang.Thread.run(Thread.java:662)[rt.jar:1.6.0_30]
      9 frames