Skip to content
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

Merged
merged 2 commits into from Aug 6, 2018

Conversation

Pandrex247
Copy link
Member

Fixes an IllegalStateException that can occur when a JAX-RS method of an app with no CDI beans is called with request tracing enabled.

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",
Copy link
Contributor

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?

Copy link
Member Author

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.

@mulderbaba mulderbaba added this to the Payara 5.183 milestone Jul 28, 2018
@Pandrex247
Copy link
Member Author

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test passed!

@Pandrex247 Pandrex247 merged commit bc40643 into payara:master Aug 6, 2018
@Pandrex247 Pandrex247 deleted the PAYARA-2923 branch August 6, 2018 08:02
Pandrex247 added a commit to Pandrex247/Payara that referenced this pull request Aug 15, 2018
PAYARA-2923 Fix OpenTracing IllegalStateException
Pandrex247 added a commit to Pandrex247/Payara that referenced this pull request Aug 15, 2018
PAYARA-2923 Fix OpenTracing IllegalStateException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants