[JBoss JIRA] Created: (JOPR-81) restarting jmx server makes hibernate entities stay unavailable
by John Mazzitelli (JIRA)
restarting jmx server makes hibernate entities stay unavailable
---------------------------------------------------------------
Key: JOPR-81
URL: https://jira.jboss.org/jira/browse/JOPR-81
Project: Jopr
Issue Type: Bug
Components: Plugin - Hibernate
Reporter: John Mazzitelli
Assignee: John Mazzitelli
Fix For: 2.2
How to repeat:
See the steps for rhq-1600. After these steps, ctrl-C the java command you ran, wait a minute, and restart the same command as before.
Now browse back to the hibernate entities for helloworld and notice they stay red forever.
---
Stepping throught the code, this is caused by this NPE:
Caused by: java.lang.NullPointerException
at org.rhq.plugins.jmx.MBeanResourceComponent.loadBean(MBeanResourceComponent.java:101)
at org.rhq.plugins.jmx.MBeanResourceComponent.getEmsBean(MBeanResourceComponent.java:143)
at org.rhq.plugins.jmx.MBeanResourceComponent.getAvailability(MBeanResourceComponent.java:128)
at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:466)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
... 3 more
The debug output is "Call to org.rhq.plugins.hibernate.EntityComponent.getAvailability() with args [] failed."
MBeanResourceComponent line 100-101 is:
protected void loadBean() {
Configuration pluginConfig = this.resourceContext.getPluginConfiguration();
The resourceContent is null. This is due to misusing the MBeanServerComponent API.
(this was moved over from http://jira.rhq-project.org/browse/RHQ-1601 since this is Jopr plugin related)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira