"WFTXN0001: A transaction is already in progress" failure for JBeret batch after transaction timeout in JBoss EAP

Solution Verified - Updated -

Issue

  • Following a transaction timeout, chunks fail with the error below

    ... JBERET000007: Failed to run job ..., org.jberet.job.model.Chunk...: javax.transaction.NotSupportedException: WFTXN0001: A transaction is already in progress
        at org.wildfly.transaction.client.ContextTransactionManager.begin(ContextTransactionManager.java:60)
        at org.wildfly.transaction.client.ContextTransactionManager.begin(ContextTransactionManager.java:54)
        at org.jberet.runtime.runner.ChunkRunner.readProcessWriteItems(ChunkRunner.java:318)
        at org.jberet.runtime.runner.ChunkRunner.run(ChunkRunner.java:202)
        at org.jberet.runtime.runner.StepExecutionRunner.runBatchletOrChunk(StepExecutionRunner.java:226)
        at org.jberet.runtime.runner.StepExecutionRunner.run(StepExecutionRunner.java:147)
        at org.jberet.runtime.runner.CompositeExecutionRunner.runStep(CompositeExecutionRunner.java:164)
        at org.jberet.runtime.runner.CompositeExecutionRunner.runFromHeadOrRestartPoint(CompositeExecutionRunner.java:88)
        at org.jberet.runtime.runner.JobExecutionRunner.run(JobExecutionRunner.java:60)
        at org.wildfly.extension.batch.jberet.deployment.BatchEnvironmentService$WildFlyBatchEnvironment$1.run(BatchEnvironmentService.java:184)
        at org.wildfly.extension.requestcontroller.RequestController$QueuedTask$1.run(RequestController.java:497)
        at org.jberet.spi.JobExecutor$3.run(JobExecutor.java:161)
        at org.jberet.spi.JobExecutor$1.run(JobExecutor.java:99)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        at org.jboss.threads.JBossThread.run(JBossThread.java:320)
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • JBeret 1.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content