[
https://jira.jboss.org/jira/browse/JBAS-2520?page=com.atlassian.jira.plug...
]
Jason T. Greene reassigned JBAS-2520:
-------------------------------------
Assignee: Brian Stansberry (was: Scott Marlow)
Brian, this issue looks out of date. Can you verify?
HASingleton cannot be redeployed if stopSingleton() throws an
Exception
-----------------------------------------------------------------------
Key: JBAS-2520
URL:
https://jira.jboss.org/jira/browse/JBAS-2520
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Clustering
Affects Versions: JBossAS-4.0.3 SP1
Environment: Java 1.5.0_04 on RHEL 4
Reporter: Mirko Nasato
Assignee: Brian Stansberry
Fix For: JBossAS-5.1.0.Beta1
Attachments: ha-test.sar.zip
If a Service MBean is a Clustered HA Singleton (it extends HASingletonSupport, or it is
run by HASingletonController) and it throws an Exception when stopping then it is
impossible to redeploy that Service until the whole JBoss is restarted.
Any attempts at deploying the Service will results in the following error
15:47:43,766 WARN [ServiceController] Problem starting service
hatest:service=MyHASingletonService
java.lang.NullPointerException
at
org.jboss.ha.jmx.HAServiceMBeanSupport.getServiceHAName(HAServiceMBeanSupport.java:361)
at
org.jboss.ha.jmx.HAServiceMBeanSupport$1.replicantsChanged(HAServiceMBeanSupport.java:195)
...
and then
--- MBeans waiting for other MBeans ---
ObjectName: hatest:service=MyHASingletonService
State: FAILED
Reason: java.lang.NullPointerException
I Depend On:
jboss:service=DefaultPartition
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: hatest:service=MyHASingletonService
State: FAILED
Reason: java.lang.NullPointerException
I Depend On:
jboss:service=DefaultPartition
--
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