-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shutdown task failed: java.lang.IllegalArgumentException - quarkus-hibernate-orm and quarkus-smallrye-fault-tolerance enabled #2710
Comments
Isn't there another issue about this that we fixed? |
I use latest master |
It's definitely related to context propagation. From what I see in the stack the
Yes, that confirms my assumption that it's a bug in |
So |
Seems to me that |
@mmusgrov do you agree we should add specific behaviour when CDI is present but there's no transaction manager? I can probably fix this. |
We call: private boolean isCdiUnavailable() {
try {
return CDI.current() == null;
} catch (IllegalStateException e) {
// no CDI provider found, CDI isn't available
return true;
}
} This is not the right way to do it? |
This should be a portable way. If you don't need to be portable, just use I'll fix our |
Ah, ArcContainer arc = Arc.container();
if (arc == null || !arc.isRunning()) { But CDI does not appear to have that, is this true @mkouba ? |
This needs to be portable, it's not in quarkus. |
OK, if your fix to |
I'll send a PR shortly... |
Trying out the PR with the problematic example project. |
And I confirm it fixes the issue. |
I see
java.lang.IllegalArgumentException
thrown at the end of test phase whenquarkus-hibernate-orm
andquarkus-smallrye-fault-tolerance
are enabled.Stacktrace includes keywords like HystrixThreadEventStream and io.quarkus.smallrye.faulttolerance. This error message is present only if quarkus-hibernate-orm extension is used too. There is no exception when only quarkus-smallrye-fault-tolerance is enabled.
The text was updated successfully, but these errors were encountered: