Injecting UserTransaction with @Resource into session scope bean causes replication failure

Solution Unverified - Updated -

Issue

We see HTTP session replication errors from our application, which injects @UserTransction into a CDI Interceptor using @Resource

Caused by: org.infinispan.marshall.NotSerializableException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction
Caused by: an exception which occurred:
    in field utx
    in field instance
    in field c
    in field dependentInstances
    in field creationalContext
    in object java.util.HashMap@d086bcfc
    in object org.jboss.as.clustering.SimpleMarshalledValue@d086bcfc
    in object org.infinispan.atomic.PutOperation@d086c83f
    in object java.util.LinkedList@b5a0badb
    in object org.infinispan.atomic.AtomicHashMapDelta@4d3b8933
    in object org.infinispan.commands.write.PutKeyValueCommand@8f440757
    in object org.infinispan.commands.tx.PrepareCommand@ea2d1967

Environment

  • JBoss Enterprise Application Platform (EAP) 6

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