Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-2854

Launching XD admin fails with ZK holding existing stream data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.2 M1
    • Component/s: None
    • Labels:
      None

      Description

      Following exception is thrown when starting XD admin withe ZK holding the stream data:

      2015-03-23 17:21:13,831 1.2.0.SNAP ERROR LeaderSelector-0 leader.LeaderSelector - The leader threw an exception
      java.lang.NullPointerException
      at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:822)
      at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:896)
      at org.springframework.xd.dirt.stream.zookeeper.ZooKeeperStreamDefinitionRepository.findOne(ZooKeeperStreamDefinitionRepository.java:157)
      at org.springframework.xd.dirt.stream.zookeeper.ZooKeeperStreamDefinitionRepository.findOne(ZooKeeperStreamDefinitionRepository.java:56)
      at org.springframework.xd.dirt.stream.dsl.StreamConfigParser.lookupStream(StreamConfigParser.java:654)
      at org.springframework.xd.dirt.stream.dsl.ChannelNode.resolve(ChannelNode.java:144)
      at org.springframework.xd.dirt.stream.dsl.SourceChannelNode.resolve(SourceChannelNode.java:54)
      at org.springframework.xd.dirt.stream.dsl.StreamNode.resolve(StreamNode.java:125)
      at org.springframework.xd.dirt.stream.dsl.StreamConfigParser.parse(StreamConfigParser.java:110)
      at org.springframework.xd.dirt.stream.XDStreamParser.parse(XDStreamParser.java:121)
      at org.springframework.xd.dirt.stream.StreamFactory.createStream(StreamFactory.java:84)
      at org.springframework.xd.dirt.server.admin.deployment.zk.DeploymentLoader.loadStream(DeploymentLoader.java:101)
      at org.springframework.xd.dirt.server.admin.deployment.zk.DefaultDeploymentStateRecalculator.recalculateStreamStates(DefaultDeploymentStateRecalculator.java:96)
      at org.springframework.xd.dirt.server.admin.deployment.zk.DefaultDeploymentStateRecalculator.onSupervisorElected(DefaultDeploymentStateRecalculator.java:182)
      at org.springframework.xd.dirt.server.admin.deployment.zk.DeploymentSupervisor$LeaderListener.takeLeadership(DeploymentSupervisor.java:468)
      at org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:536)
      at org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:398)
      at org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:443)
      at org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:63)
      at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:244)
      at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:238)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

            People

            Assignee:
            iperumal Ilayaperumal Gopinathan
            Reporter:
            iperumal Ilayaperumal Gopinathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: