Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when destroying a stream #516

Closed
ractive opened this issue Apr 12, 2016 · 1 comment
Closed

NullPointerException when destroying a stream #516

ractive opened this issue Apr 12, 2016 · 1 comment
Labels
status/duplicate There were an existing issue

Comments

@ractive
Copy link

ractive commented Apr 12, 2016

Destroying an undeployed stream fails:

dataflow:>stream create --name test --definition 'time | log'
Created new stream 'test'
dataflow:>stream destroy test
Command failed org.springframework.cloud.dataflow.rest.client.DataFlowClientException: NullPointerException
...

The stacktrace that leads to the NullPointerException:

java.lang.NullPointerException: null
    at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[na:1.8.0_66]
    at org.springframework.cloud.deployer.spi.local.LocalAppDeployer.status(LocalAppDeployer.java:180) ~[spring-cloud-deployer-local-1.0.0.BUILD-SNAPSHOT.jar:1.0.0.BUILD-SNAPSHOT]
    at org.springframework.cloud.dataflow.server.controller.StreamDeploymentController.undeployStream(StreamDeploymentController.java:371) ~[spring-cloud-dataflow-server-core-1.0.0.BUILD-SNAPSHOT.jar:1.0.0.BUILD-SNAPSHOT]
    at org.springframework.cloud.dataflow.server.controller.StreamDeploymentController.undeploy(StreamDeploymentController.java:130) ~[spring-cloud-dataflow-server-core-1.0.0.BUILD-SNAPSHOT.jar:1.0.0.BUILD-SNAPSHOT]
    at org.springframework.cloud.dataflow.server.controller.StreamDefinitionController.delete(StreamDefinitionController.java:160) ~[spring-cloud-dataflow-server-core-1.0.0.BUILD-SNAPSHOT.jar:1.0.0.BUILD-SNAPSHOT]

The variable id that is returned from this.deploymentIdRepository.findOne(key) is null in StreamDeploymentController.undeployStream(StreamDefinition)

@sabbyanandan sabbyanandan added the status/duplicate There were an existing issue label Apr 12, 2016
@sabbyanandan
Copy link
Contributor

Hi, @ractive; Thanks for reporting this!

We have a similar issue [#511]; I'll close this and please feel to add any other thoughts in the other issue. We will address this shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate There were an existing issue
Projects
None yet
Development

No branches or pull requests

2 participants