java.lang.IllegalStateException: instance must be started before calling this method

Spring JIRA | Patrick Peralta | 2 years ago
  1. 0

    {noformat} 13:23:57,643 INFO main-EventThread server.ContainerRegistrar - Undeploying module [ModuleDescriptor@1c736092 moduleName = 'log', moduleLabel = 'log', group = 'paymenttap', sourceChannelName = 'tap:job:payment', sinkChannelName = [null], sinkChannelName = [null], index = 0, type = sink, parameters = map[[empty]], children = list[[empty]]] 13:23:57,643 ERROR main-EventThread imps.CuratorFrameworkImpl - Watcher exception java.lang.IllegalStateException: instance must be started before calling this method at com.google.common.base.Preconditions.checkState(Preconditions.java:176) at org.apache.curator.framework.imps.CuratorFrameworkImpl.delete(CuratorFrameworkImpl.java:344) at org.springframework.xd.dirt.server.ContainerRegistrar.unregisterTap(ContainerRegistrar.java:292) at org.springframework.xd.dirt.server.ContainerRegistrar.undeployModule(ContainerRegistrar.java:257) at org.springframework.xd.dirt.server.ContainerRegistrar$StreamModuleWatcher.process(ContainerRegistrar.java:711) at org.apache.curator.framework.imps.NamespaceWatcher.process(NamespaceWatcher.java:67) at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:522) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498) {noformat} Sequence of events: * Stream module ZK path is removed * Event is raised * ZK connection is closed * Event handler causes module undeployment which includes unregistration of tap * Since connection is closed, exception is thrown

    Spring JIRA | 2 years ago | Patrick Peralta
    java.lang.IllegalStateException: instance must be started before calling this method
  2. 0

    {noformat} 13:23:57,643 INFO main-EventThread server.ContainerRegistrar - Undeploying module [ModuleDescriptor@1c736092 moduleName = 'log', moduleLabel = 'log', group = 'paymenttap', sourceChannelName = 'tap:job:payment', sinkChannelName = [null], sinkChannelName = [null], index = 0, type = sink, parameters = map[[empty]], children = list[[empty]]] 13:23:57,643 ERROR main-EventThread imps.CuratorFrameworkImpl - Watcher exception java.lang.IllegalStateException: instance must be started before calling this method at com.google.common.base.Preconditions.checkState(Preconditions.java:176) at org.apache.curator.framework.imps.CuratorFrameworkImpl.delete(CuratorFrameworkImpl.java:344) at org.springframework.xd.dirt.server.ContainerRegistrar.unregisterTap(ContainerRegistrar.java:292) at org.springframework.xd.dirt.server.ContainerRegistrar.undeployModule(ContainerRegistrar.java:257) at org.springframework.xd.dirt.server.ContainerRegistrar$StreamModuleWatcher.process(ContainerRegistrar.java:711) at org.apache.curator.framework.imps.NamespaceWatcher.process(NamespaceWatcher.java:67) at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:522) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498) {noformat} Sequence of events: * Stream module ZK path is removed * Event is raised * ZK connection is closed * Event handler causes module undeployment which includes unregistration of tap * Since connection is closed, exception is thrown

    Spring JIRA | 2 years ago | Patrick Peralta
    java.lang.IllegalStateException: instance must be started before calling this method
  3. 0

    Start MetadataAPIService error

    GitHub | 1 year ago | edifecs-mohamed
    java.lang.IllegalStateException: instance must be started before calling this method
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 850#217412253

    GitHub | 7 months ago | magicdoom
    java.lang.IllegalStateException: instance must be started before calling this method
  6. 0

    Re: LeaderSelector throwing exception on mutex.acquire()

    curator-user | 2 years ago | Jordan Zimmerman
    java.lang.IllegalStateException: instance must be started before calling this method

  1. fervidnerd 2 times, last 1 week ago
  2. musketyr 1 times, last 3 weeks ago
  3. pnaranja 2 times, last 5 months ago
  4. regisso 1 times, last 6 months ago
  5. Bardh 2 times, last 7 months ago
5 more registered users
61 unregistered visitors
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

    instance must be started before calling this method

    at com.google.common.base.Preconditions.checkState()
  2. Guava
    Preconditions.checkState
    1. com.google.common.base.Preconditions.checkState(Preconditions.java:176)
    1 frame
  3. Curator Framework
    CuratorFrameworkImpl.delete
    1. org.apache.curator.framework.imps.CuratorFrameworkImpl.delete(CuratorFrameworkImpl.java:344)
    1 frame
  4. org.springframework.xd
    ContainerRegistrar$StreamModuleWatcher.process
    1. org.springframework.xd.dirt.server.ContainerRegistrar.unregisterTap(ContainerRegistrar.java:292)
    2. org.springframework.xd.dirt.server.ContainerRegistrar.undeployModule(ContainerRegistrar.java:257)
    3. org.springframework.xd.dirt.server.ContainerRegistrar$StreamModuleWatcher.process(ContainerRegistrar.java:711)
    3 frames
  5. Curator Framework
    NamespaceWatcher.process
    1. org.apache.curator.framework.imps.NamespaceWatcher.process(NamespaceWatcher.java:67)
    1 frame
  6. Zookeeper
    ClientCnxn$EventThread.run
    1. org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:522)
    2. org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498)
    2 frames