[jboss-user] [Clustering/JBoss] - Re: Invocation of startSingleton()

ablevine1 do-not-reply at jboss.com
Tue May 19 21:39:45 EDT 2009


I am using 5.01 and I can get a singleton MBean to deploy using the -service.xml configuration you describe above.  
I need to be able to store state in my MBean so I changed my MBean class to extend from org.jboss.ha.singleton.HASingletonSupport, but then I get the following error when deploying

  | 2009-05-19 18:25:52,611 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfszip:/usr/local/jboss-5.0.1.GA/server/batch/deploy/batch.sar/ state=PreReal mode=Manual requiredState=
  | Real
  | org.jboss.deployers.spi.DeploymentException: Error deploying: squaretrade:service=Semaphore
  |        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  |        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
  |        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
  |        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
  |        at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
  |        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
  |        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
  |        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
  |        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
  |        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
  |        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  |        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
  |        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  |        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
  |        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
  |        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
  |        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  |        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
  |        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
  |        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
  |        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
  |        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
  |        at org.jboss.Main.boot(Main.java:209)
  |        at org.jboss.Main$1.run(Main.java:547)
  |        at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.IllegalStateException: HAPartition property must be set before starting HAServiceMBeanSupport
  |        at org.jboss.ha.jmx.AbstractHAServiceMBeanSupport.startService(AbstractHAServiceMBeanSupport.java:175)
  |        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
  |        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
  |        at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
  |        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |        at java.lang.reflect.Method.invoke(Method.java:597)
  |        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
  |        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
  |        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  |        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
  |        at $Proxy36.start(Unknown Source)
  |        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
  |        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
  |        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
  |        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
  |        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  |        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  |        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
  |        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
  |        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  |        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
  |        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
  |        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
  |        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
  |        at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
  |        at org.jboss.system.ServiceController.start(ServiceController.java:460)
  |        at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
  |        at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
  |        ... 23 more
  | 

The reason I am extending org.jboss.ha.singleton.HASingletonSupport is to be able to access the setDistributedState and getDistributedState methods.  Is there some better/newer way to achieve this functionality that will not fail deployment?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232080#4232080

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232080



More information about the jboss-user mailing list