java.lang.IllegalStateException: discoveryNodes must be set before calling toXContent with group_by=nodes

GitHub | dadoonet | 4 months ago
  1. 0

    discoveryNodes must be set before calling toXContent error when calling prepareListTasks().get()

    GitHub | 4 months ago | dadoonet
    java.lang.IllegalStateException: discoveryNodes must be set before calling toXContent with group_by=nodes
  2. 0

    Error loop

    curator-user | 1 year ago | Mike Lewis
    java.lang.IllegalStateException: instance must be started before calling this method
  3. 0

    Stack trace when using a PathChildrenCache or NodeCache for a short time

    curator-user | 2 years ago | Gabriel Reid
    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

    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
  6. 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

    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

      discoveryNodes must be set before calling toXContent with group_by=nodes

      at org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksResponse.toXContent()
    2. org.elasticsearch.action
      ListTasksResponse.toXContent
      1. org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksResponse.toXContent(ListTasksResponse.java:159)
      1 frame
    3. ElasticSearch
      Strings.toString
      1. org.elasticsearch.common.Strings.toString(Strings.java:901)
      2. org.elasticsearch.common.Strings.toString(Strings.java:887)
      2 frames
    4. org.elasticsearch.action
      ListTasksResponse.toString
      1. org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksResponse.toString(ListTasksResponse.java:208)
      1 frame
    5. Java RT
      StringBuilder.append
      1. java.lang.String.valueOf(String.java:2994)
      2. java.lang.StringBuilder.append(StringBuilder.java:131)
      2 frames
    6. org.elasticsearch.test
      AssertingLocalTransport.handleParsedResponse
      1. org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertVersionSerializable(ElasticsearchAssertions.java:678)
      2. org.elasticsearch.test.transport.AssertingLocalTransport.handleParsedResponse(AssertingLocalTransport.java:85)
      2 frames
    7. ElasticSearch
      ThreadContext$ContextPreservingRunnable.run
      1. org.elasticsearch.transport.local.LocalTransport.handleResponse(LocalTransport.java:386)
      2. org.elasticsearch.transport.local.LocalTransport.processReceivedMessage(LocalTransport.java:292)
      3. org.elasticsearch.transport.local.LocalTransport.lambda$receiveMessage$0(LocalTransport.java:252)
      4. org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:450)
      4 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames