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

NPE on shutdown using arquillian cube #957

Closed
dipak-pawar opened this issue Jan 18, 2018 · 1 comment · Fixed by #958
Closed

NPE on shutdown using arquillian cube #957

dipak-pawar opened this issue Jan 18, 2018 · 1 comment · Fixed by #958
Assignees
Milestone

Comments

@dipak-pawar
Copy link
Contributor

dipak-pawar commented Jan 18, 2018

Issue Overview

I get an NPE on shutdown, when arquillian cube is trying to kill a container. The NPE occurs while firing an event. It trying to get a scoped context, which is null, so triggers an NPE.

[WARNING] useSystemClassloader setting has no effect when not forking
Running org.apache.bookkeeper.tests.TestCompatUpgrade
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 116.721 sec - in org.apache.bookkeeper.tests.TestCompatUpgrade

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:15 min
[INFO] Finished at: 2018-01-18T12:35:47+01:00
[INFO] Final Memory: 362M/1541M
[INFO] ------------------------------------------------------------------------
Exception in thread "Thread-3" org.arquillian.cube.spi.CubeControlException: Could not stop bookkeeper3_f623d52e-92a0-442f-b926-f22f66f211bb
        at org.arquillian.cube.spi.CubeControlException.failedStop(CubeControlException.java:23)
        at org.arquillian.cube.docker.impl.model.DockerCube.stop(DockerCube.java:170)
        at org.arquillian.cube.impl.client.ForceStopDockerContainersShutdownHook$1.run(ForceStopDockerContainersShutdownHook.java:19)
Caused by: java.lang.NullPointerException
        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:128)
        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
        at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)
        at org.arquillian.cube.docker.impl.model.DockerCube.stop(DockerCube.java:152)
        ... 1 more
[INFO] Scanning for projects...
Expected Behaviour

No NPE, the docker container should be deleted.

Current Behaviour

NPE, docker container orphaned.

Steps To Reproduce
  1. Pull https://github.com/ivankelly/bookkeeper/tree/bc-tests-wip
  2. mvn install -Pdocker -DskipTests
  3. cd tests/backward-compat-upgrade/
  4. mvn test -DintegrationTests
Additional Information
~/src/bookkeeper $ mvn --version
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_IE, platform encoding: UTF-8
OS name: "linux", version: "4.9.0-5-amd64", arch: "amd64", family: "unix"
@bartoszmajsak
Copy link
Member

dipak-pawar added a commit to dipak-pawar/arquillian-cube that referenced this issue Jan 18, 2018
@lordofthejars lordofthejars added this to the 1.13.1 milestone Jan 18, 2018
ivankelly added a commit to ivankelly/bookkeeper that referenced this issue Feb 15, 2018
This gets rid of an ugly exception that the framework was throwing.
arquillian/arquillian-cube#957
ivankelly added a commit to apache/bookkeeper that referenced this issue Feb 15, 2018
This gets rid of an ugly exception that the framework was throwing.
arquillian/arquillian-cube#957

Author: Ivan Kelly <[email protected]>

Reviewers: Enrico Olivelli <[email protected]>

This closes #1150 from ivankelly/arq-upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants