WF 29.0.1.Final - JPA - NOT_SUPPORTED - giving IJ031040

277 views
Skip to first unread message

Arnie Morein

unread,
Oct 8, 2023, 1:32:44 PM10/8/23
to WildFly
Never seen this before, a DAO method annotated with NOT_SUPPORTED (it just returns a bunch of DTOs for a drop-down list) throws an error inside getResultList()!

IJ031040: Connection is not associated with a managed connection:org.jboss.jca.adapters.jdbc.jdk8.WrappedConnectionJDK8@42932039


The behavior seems to indicate that a connection is opened by the entityManager, the query run, results found, but when JPA calls .next to get the first result, that error is thrown.


If I set it to REQUIRES_NEW (so it doesn't participate in any transaction), it works as expected.

Is this a new bug?

Bartosz Baranowski

unread,
Oct 9, 2023, 3:12:23 AM10/9/23
to WildFly
Hey.
Im tad rusty on this front, but AFAIR, NOT_SUPPORTED and according to doc: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/transaction/annotation/Propagation.html#NOT_SUPPORTED - means that existing transaction is suspended and logic executed outside of it.
REQUIERS_NEW is slightly different, as it starts new transaction after suspending existing one: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/transaction/annotation/Propagation.html#REQUIRES_NEW

As to rest dont dare to guess. Could you share simple reproducer and/or config/setup ?

Arnie Morein

unread,
Oct 9, 2023, 4:14:19 PM10/9/23
to WildFly
Well aware of that.
But I am referring to the EJB/JEE version, not Spring.

Scott Marlow

unread,
Oct 10, 2023, 12:13:24 PM10/10/23
to Arnie Morein, WildFly
Could you give us an exception call stack that contains as much of the WildFly code as possible.  Feel free to change your application class + method names if they reveal anything that you don't want to be visible.

I think the call stack will give us a better idea of what is going on. 

An alternative could be enabling (WildFly) TRACE logging for "org.jboss.as.jpa" as mentioned in https://docs.wildfly.org/29/Developer_Guide.html#troubleshooting which I think would also be helpful to share as it should illustrate what is going on better than an exception call stack.

Scott
 

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/06d7b6af-fa90-4576-85f6-b8a261479b1cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages