Injecting UserTransaction with @Resource into session scope bean causes replication failure
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
