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

calls ManagementFactory.getPlatformMBeanServer too early #9

Open
dpocock opened this issue Mar 3, 2014 · 2 comments
Open

calls ManagementFactory.getPlatformMBeanServer too early #9

dpocock opened this issue Mar 3, 2014 · 2 comments

Comments

@dpocock
Copy link
Member

dpocock commented Mar 3, 2014

During pre-main class execution, there is a call to

ManagementFactory.getPlatformMBeanServer()

at line MBeanSampler.java:33

In JBoss, getPlatformMBeanServer() then tries to initialize a logger before it is safe to do so.

Therefore, we need to find a way to make this initialization take place later or catch the exception here and try again later.

@dpocock
Copy link
Member Author

dpocock commented Mar 4, 2014

Partial solution introduced by b8a9fd8

A more complete solution would find a way to test when it is safe to call getPlatformMBeanServer() although it doesn't appear that the MBean API provides such information to us.

@dpocock dpocock closed this as completed Mar 4, 2014
@dpocock dpocock reopened this Mar 4, 2014
@dpocock
Copy link
Member Author

dpocock commented Mar 4, 2014

Also discussed in JBoss Jira
https://issues.jboss.org/browse/WFLY-3054

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

No branches or pull requests

1 participant