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
PAYARA-2923 Fix OpenTracing IllegalStateException #2974
Conversation
beanManager = CDI.current().getBeanManager(); | ||
} catch (IllegalStateException ise) { | ||
// *Should* only get here if CDI hasn't been initialised, indicating that the app isn't using it | ||
logger.log(Level.FINE, "Error getting Bean Manager, presumably due to this application not using CDI", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this log message not going to get logged twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but it is possible for the two filter methods to execute on separate threads.
Jenkins test please |
Quick build and test passed! |
PAYARA-2923 Fix OpenTracing IllegalStateException
PAYARA-2923 Fix OpenTracing IllegalStateException
Fixes an IllegalStateException that can occur when a JAX-RS method of an app with no CDI beans is called with request tracing enabled.