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

Stream should not be in deployed state following module failure.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: M6
    • Fix Version/s: 1.0 RC1
    • Component/s: Runtime
    • Labels:
      None

      Description

      Run singlenode. Ensure twitterstream credentials are not valid. e.g., no consumerKey property. This is the default state.

      >stream create tweets --definition "twitterstream | log" --deploy
      Created and deployed stream 'tweets'

      Meanwhile, Singlenode throws an exception, the stacktrace below

      xd:>stream list
      Stream Name Stream Definition Status
      ----------- ------------------- --------
      tweets twitterstream | log deployed

      
      

      15:54:07,298 ERROR DeploymentsPathChildrenCache-0 cache.PathChildrenCache:550 -
      java.lang.RuntimeException: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'twitterTemplate' defined in URL file:/Users/dturanski/spring-xd/spring-xd-1.0.0.M6/xd/modules/source/twitterstream/config/twitterstream.xml: Could not resolve placeholder 'consumerKey' in string value "${consumerKey}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'consumerKey' in string value "${consumerKey}"
      at org.springframework.xd.dirt.server.ContainerRegistrar.deployStreamModule(ContainerRegistrar.java:448)
      at org.springframework.xd.dirt.server.ContainerRegistrar.onChildAdded(ContainerRegistrar.java:347)
      at org.springframework.xd.dirt.server.ContainerRegistrar.access$700(ContainerRegistrar.java:93)
      at org.springframework.xd.dirt.server.ContainerRegistrar$DeploymentListener.childEvent(ContainerRegistrar.java:678)
      at org.apache.curator.framework.recipes.cache.PathChildrenCache$5.apply(PathChildrenCache.java:494)
      at org.apache.curator.framework.recipes.cache.PathChildrenCache$5.apply(PathChildrenCache.java:488)
      at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:92)
      at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293)
      at org.apache.curator.framework.listen.ListenerContainer.forEach(ListenerContainer.java:83)
      at org.apache.curator.framework.recipes.cache.PathChildrenCache.callListeners(PathChildrenCache.java:485)
      at org.apache.curator.framework.recipes.cache.EventOperation.invoke(EventOperation.java:35)
      at org.apache.curator.framework.recipes.cache.PathChildrenCache$11.run(PathChildrenCache.java:755)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      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:744)
      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'twitterTemplate' defined in URL file:/Users/dturanski/spring-xd/spring-xd-1.0.0.M6/xd/modules/source/twitterstream/config/twitterstream.xml: Could not resolve placeholder 'consumerKey' in string value "${consumerKey}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'consumerKey' in string value "${consumerKey}"

      {/code}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pperalta Patrick Peralta
              Reporter:
              dturanski David Turanski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: