Quarkus 3.x - Mutiny, Fungy and Reactive Panache error with IllegalStateException: HR000068 #33253
Replies: 3 comments 1 reply
-
/cc @FroMage (panache), @cescoffier (mutiny), @jponge (mutiny), @loicmathieu (panache), @matejvasek (funqy), @patriot1burke (funqy) |
Beta Was this translation helpful? Give feedback.
-
@chengkuangan - Can notice the same issue on I was able to identify a workaround (not sure if it's correct - I am not necessarily a Java guy, so I am not sure if it's a good practice, but did the trick for me) - essentially if you implement a repository with a Something like this: @ApplicationScoped
public class MyEntityRepository {
@Inject
SessionFactory sessionFactory;
@Inject
Vertx vertx;
public Uni<MyEntity> save(MyEntity me) {
return sessionFactory.withTransaction((session, tx) -> session.persist(me))
.replaceWith(me)
.runSubscriptionOn(MutinyHelper.executor(vertx.getOrCreateContext()));
}
} What's more interesting is that when you try to enforce Panache to run on Vert.x Event Loop (via
Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
This sounds like the problem is that Funqy doesn't run on a Vert.x context, no? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am upgrading from Quarkus 2.x to 3.x with purpose to use the
@WithSession
forPanache
and I hit into the following error which can be seen from the bottom on this post.Current Quarkus version: 3.0.2.Final
I wonder if Reactive Panache supported in Fungy in version 3.x? When I was testing in Quarkus version 2.16.5.Final, the the code seems to work but with some hiccups as reported in 23739 , and that's the reason I move to 3.x.
Should this be coding mistake at my end or should this be a bug?
The following is the code snippet, with the
ProviderEntity
extendingio.quarkus.hibernate.reactive.panache.PanacheEntityBase
Error with
@WithSession
annotation:Error without
@WithSession
annotation:Beta Was this translation helpful? Give feedback.
All reactions