MBean stop method in JBoss EAP?
Issue
-
I have an MBean that is deployed as a sar file and a stop method defined as:
@Override public void stop() { try { super.stop(); // here I get the exception } catch(Exception e) {} } -
When I undeploy the sar from jboss on (hot undeploy) I get this error on this code:
WARN [ServiceController] Problem stopping service system.test.com:service=EventDispatcher
java.lang.Error: INTERNAL ERROR: context not found in previous state Start context=name=system.test.com:service=EventDispatcher state=Start mode=Manual requiredState=Create
at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1205)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:828)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.stop(ServiceController.java:510)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Environment
- JBoss Enterprise Application Platform (EAP) 5.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.