-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
5.12.5.Final
-
None
The DelegatingTransactionManager does not have a no-args constructor so the subclass NarayanaTransactionManager cannot be proxied.
When testing Wildfly 26.1.1 Java EE 8 / JSF app in clustered environment, after server failover to a second node we are seeing this exception, any referenced beans that contain the @Transactional annotation cause the exception to be thrown.
I have built a patched version which contains a no-args constructor and replaced the provided narayana-jts-idlj-5.12.5.Final.jar in Wildfly and the exception disappears.
[0m [31m11:31:47,479 ERROR [io.undertow.servlet.request] (default task-2) UT015005: Error invoking method requestInitialized on listener class org.jboss.weld.module.web.servlet.WeldInitialListener: org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001435: Normal scoped bean class com.arjuna.ats.jta.cdi.DelegatingTransactionManager is not proxyable because it has no no-args constructor - Managed Bean [class com.arjuna.ats.jta.cdi.NarayanaTransactionManager] with qualifiers [@Any @Default].
at org.jboss...@3.1.9.Final//org.jboss.weld.bean.proxy.DefaultProxyInstantiator.validateNoargConstructor(DefaultProxyInstantiator.java:50)
at org.jboss...@3.1.9.Final//org.jboss.weld.util.Proxies.getUnproxyableClassException(Proxies.java:249)
at org.jboss...@3.1.9.Final//org.jboss.weld.util.Proxies.getUnproxyableTypeException(Proxies.java:199)
at org.jboss...@3.1.9.Final//org.jboss.weld.util.Proxies.getUnproxyableTypesExceptionInt(Proxies.java:211)
at org.jboss...@3.1.9.Final//org.jboss.weld.util.Proxies.getUnproxyableTypesException(Proxies.java:190)