Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2520

HASingleton cannot be redeployed if stopSingleton() throws an Exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-4.0.3 SP1
    • Clustering
    • None

      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

              smarlow1@redhat.com Scott Marlow
              mnasato Mirko Nasato (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: