java.lang.IllegalStateException: Cannot start an unitialised service.

MuleSoft JIRA | Angelo Bresci | 8 years ago
  1. 0

    Unable to use HashMap optimization in JRockit JDK, because it causes errors due to this assumption. Changing HashSet to LinkedHashMap does not seem to eliminate problem. Here's the stack trace: ******************************************************************************** Message : Failed to invoke lifecycle phase "start" on object: _jerseyConnector3836657138366571 Type : org.mule.api.lifecycle.LifecycleException Code : MULE_ERROR-70228 JavaDoc : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/LifecycleException.html ******************************************************************************** Exception stack is: 1. Cannot start an unitialised service. (java.lang.IllegalStateException) org.mule.service.AbstractService:275 (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html) 2. Failed to invoke lifecycle phase "start" on object: _jerseyConnector3836657138366571 (org.mule.api.lifecycle.LifecycleException) org.mule.lifecycle.DefaultLifecyclePhase:278 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/LifecycleException.html) ******************************************************************************** Root Exception stack trace: java.lang.IllegalStateException: Cannot start an unitialised service. at org.mule.service.AbstractService.start(AbstractService.java:275) at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.mule.lifecycle.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:274) at org.mule.lifecycle.GenericLifecycleManager.applyCompletedPhases(GenericLifecycleManager.java:157) at org.mule.registry.TransientRegistry.registerObject(TransientRegistry.java:221) at org.mule.registry.AbstractRegistryBroker.registerObject(AbstractRegistryBroker.java:130) at org.mule.registry.MuleRegistryHelper.registerService(MuleRegistryHelper.java:505) at com.gsicommerce.mule.transport.jersey.JerseyConnector.onNotification(JerseyConnector.java:158) at org.mule.context.notification.Sender.dispatch(Sender.java:40) at org.mule.context.notification.Policy.dispatch(Policy.java:127) at org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:211) at org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:164) at org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:351) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:166) at org.mule.config.builders.MuleXmlBuilderContextListener.initialize(MuleXmlBuilderContextListener.java:81) at org.mule.config.builders.MuleXmlBuilderContextListener.contextInitialized(MuleXmlBuilderContextListener.java:56) at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:458) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:168) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1744) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2909) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:973) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80) at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:182) at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:359) at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51) at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196) at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30) at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233) at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169) at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123) at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173) at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89) at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200) at weblogic.work.ExecuteThread.run(ExecuteThread.java:172) ********************************************************************************

    MuleSoft JIRA | 8 years ago | Angelo Bresci
    java.lang.IllegalStateException: Cannot start an unitialised service.
  2. 0

    Unable to use HashMap optimization in JRockit JDK, because it causes errors due to this assumption. Changing HashSet to LinkedHashMap does not seem to eliminate problem. Here's the stack trace: ******************************************************************************** Message : Failed to invoke lifecycle phase "start" on object: _jerseyConnector3836657138366571 Type : org.mule.api.lifecycle.LifecycleException Code : MULE_ERROR-70228 JavaDoc : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/LifecycleException.html ******************************************************************************** Exception stack is: 1. Cannot start an unitialised service. (java.lang.IllegalStateException) org.mule.service.AbstractService:275 (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html) 2. Failed to invoke lifecycle phase "start" on object: _jerseyConnector3836657138366571 (org.mule.api.lifecycle.LifecycleException) org.mule.lifecycle.DefaultLifecyclePhase:278 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/LifecycleException.html) ******************************************************************************** Root Exception stack trace: java.lang.IllegalStateException: Cannot start an unitialised service. at org.mule.service.AbstractService.start(AbstractService.java:275) at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.mule.lifecycle.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:274) at org.mule.lifecycle.GenericLifecycleManager.applyCompletedPhases(GenericLifecycleManager.java:157) at org.mule.registry.TransientRegistry.registerObject(TransientRegistry.java:221) at org.mule.registry.AbstractRegistryBroker.registerObject(AbstractRegistryBroker.java:130) at org.mule.registry.MuleRegistryHelper.registerService(MuleRegistryHelper.java:505) at com.gsicommerce.mule.transport.jersey.JerseyConnector.onNotification(JerseyConnector.java:158) at org.mule.context.notification.Sender.dispatch(Sender.java:40) at org.mule.context.notification.Policy.dispatch(Policy.java:127) at org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:211) at org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:164) at org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:351) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:166) at org.mule.config.builders.MuleXmlBuilderContextListener.initialize(MuleXmlBuilderContextListener.java:81) at org.mule.config.builders.MuleXmlBuilderContextListener.contextInitialized(MuleXmlBuilderContextListener.java:56) at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:458) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:168) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1744) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2909) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:973) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80) at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:182) at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:359) at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51) at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196) at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30) at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233) at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169) at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123) at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173) at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89) at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200) at weblogic.work.ExecuteThread.run(ExecuteThread.java:172) ********************************************************************************

    MuleSoft JIRA | 8 years ago | Angelo Bresci
    java.lang.IllegalStateException: Cannot start an unitialised service.
  3. 0
    All look like I had something else running on my machine that was interfering with it. Once I rebooted it runs without issue.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    The solution is to run as root using sudo or to set different port in "application.properties" file, e.g. server.port=${port:8181}
  6. 0
    JHipster only supports java 7 and 8.
    via GitHub by atomfrede

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot start an unitialised service.

      at org.mule.service.AbstractService.start()
    2. Mule Core
      AbstractService.start
      1. org.mule.service.AbstractService.start(AbstractService.java:275)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    4. Mule Core
      MuleRegistryHelper.registerService
      1. org.mule.lifecycle.DefaultLifecyclePhase.applyLifecycle(DefaultLifecyclePhase.java:274)
      2. org.mule.lifecycle.GenericLifecycleManager.applyCompletedPhases(GenericLifecycleManager.java:157)
      3. org.mule.registry.TransientRegistry.registerObject(TransientRegistry.java:221)
      4. org.mule.registry.AbstractRegistryBroker.registerObject(AbstractRegistryBroker.java:130)
      5. org.mule.registry.MuleRegistryHelper.registerService(MuleRegistryHelper.java:505)
      5 frames
    5. com.gsicommerce.mule
      JerseyConnector.onNotification
      1. com.gsicommerce.mule.transport.jersey.JerseyConnector.onNotification(JerseyConnector.java:158)
      1 frame
    6. Mule Core
      MuleXmlBuilderContextListener.contextInitialized
      1. org.mule.context.notification.Sender.dispatch(Sender.java:40)
      2. org.mule.context.notification.Policy.dispatch(Policy.java:127)
      3. org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:211)
      4. org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:164)
      5. org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:351)
      6. org.mule.DefaultMuleContext.start(DefaultMuleContext.java:166)
      7. org.mule.config.builders.MuleXmlBuilderContextListener.initialize(MuleXmlBuilderContextListener.java:81)
      8. org.mule.config.builders.MuleXmlBuilderContextListener.contextInitialized(MuleXmlBuilderContextListener.java:56)
      8 frames
    7. Atmosphere weblogic
      EventsManager$FireContextListenerAction.run
      1. weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:458)
      1 frame
    8. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    9. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(Unknown Source)
      1 frame
    10. Atmosphere weblogic
      WebAppModule.start
      1. weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:168)
      2. weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1744)
      3. weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2909)
      4. weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:973)
      5. weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
      5 frames
    11. weblogic.application.internal
      ModuleStateDriver$3.next
      1. weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
      1 frame
    12. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
      1 frame
    13. weblogic.application.internal
      ModuleStateDriver$3.next
      1. weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
      2. weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
      3. weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
      4. weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
      4 frames
    14. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
      1 frame
    15. weblogic.application.internal
      BaseDeployment$2.next
      1. weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
      2. weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
      3. weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
      3 frames
    16. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
      1 frame
    17. weblogic.application.internal
      DeploymentStateChecker.activate
      1. weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
      2. weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
      2 frames
    18. weblogic.deploy.internal
      BasicDeployment.activateFromServerLifecycle
      1. weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
      2. weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:182)
      3. weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:359)
      3 frames
    19. weblogic.management.deploy
      DeploymentServerService.start
      1. weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
      2. weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
      3. weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
      4. weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
      5. weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
      6. weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
      7. weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
      8. weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
      8 frames
    20. weblogic.t3.srvr
      SubsystemRequest.run
      1. weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      1 frame
    21. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
      2 frames