Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8333

NPE in MongoDockerRule

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongomk
    • Labels:
      None

      Description

      Seen in <https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting/2432/consoleText>:

      [ERROR] testGC[DocumentMongoNodeStore_S3DataStore](org.apache.jackrabbit.oak.jcr.binary.BinaryAccessDSGCIT)  Time elapsed: 3.009 s  <<< ERROR!
      java.lang.NullPointerException
      	at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDockerRule.getPort(MongoDockerRule.java:70)
      	at org.apache.jackrabbit.oak.plugins.document.MongoConnectionFactory.getConnection(MongoConnectionFactory.java:58)
      	at org.apache.jackrabbit.oak.jcr.binary.fixtures.nodestore.DocumentMongoNodeStoreFixture.isAvailable(DocumentMongoNodeStoreFixture.java:77)
      	at org.apache.jackrabbit.oak.jcr.AbstractRepositoryTest.ignoreIfFixtureUnavailable(AbstractRepositoryTest.java:118)
      	at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:27)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      [ERROR] testGC[DocumentMongoNodeStore_AzureDataStore](org.apache.jackrabbit.oak.jcr.binary.BinaryAccessDSGCIT)  Time elapsed: 3.022 s  <<< ERROR!
      java.lang.NullPointerException
      	at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDockerRule.getPort(MongoDockerRule.java:70)
      	at org.apache.jackrabbit.oak.plugins.document.MongoConnectionFactory.getConnection(MongoConnectionFactory.java:58)
      	at org.apache.jackrabbit.oak.jcr.binary.fixtures.nodestore.DocumentMongoNodeStoreFixture.isAvailable(DocumentMongoNodeStoreFixture.java:77)
      	at org.apache.jackrabbit.oak.jcr.AbstractRepositoryTest.ignoreIfFixtureUnavailable(AbstractRepositoryTest.java:118)
      	at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:27)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Potentially related log entries from unit tests (<https://builds.apache.org/job/Apache%20Jackrabbit%20Oak%20matrix/Ubuntu%20Slaves=ubuntu,jdk=JDK%201.8%20(latest),nsfixtures=DOCUMENT_RDB,profile=integrationTesting/2432/artifact/trunk/oak-jcr/target/unit-tests.log>):

      04:20:57.280 WARN  [Thread-1] Container.java:621             Unable to kill docker container mongo:3.6 with id
      com.spotify.docker.client.exceptions.ContainerNotFoundException: Container not found: 947275a78db4f95f3f24952442cf0f6ba62dec62694c74681b319d54315c8f01
      	at com.spotify.docker.client.DefaultDockerClient.stopContainer(DefaultDockerClient.java:843)
      	at com.arakelian.docker.junit.Container.stopContainerQuietly(Container.java:618)
      	at com.arakelian.docker.junit.Container.doStop(Container.java:499)
      	at com.arakelian.docker.junit.Container.access$200(Container.java:67)
      	at com.arakelian.docker.junit.Container$1.run(Container.java:555)
      Caused by: com.spotify.docker.client.exceptions.DockerRequestException: Request error: POST unix://localhost:80/containers/947275a78db4f95f3f24952442cf0f6ba62dec62694c74681b319d54315c8f01/stop?t=10: 404, body: {"message":"No such container: 947275a78db4f95f3f24952442cf0f6ba62dec62694c74681b319d54315c8f01"}
      
      	at com.spotify.docker.client.DefaultDockerClient.propagate(DefaultDockerClient.java:2820)
      	at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:2714)
      	at com.spotify.docker.client.DefaultDockerClient.stopContainer(DefaultDockerClient.java:837)
      	... 4 common frames omitted
      Caused by: com.spotify.docker.client.shaded.javax.ws.rs.NotFoundException: HTTP 404 Not Found
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:1008)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:816)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.access$700(JerseyInvocation.java:92)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation$5.completed(JerseyInvocation.java:773)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime.processResponse(ClientRuntime.java:198)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime.access$300(ClientRuntime.java:79)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:180)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process(Errors.java:267)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:210)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      04:20:57.280 INFO  [Thread-1] Container.java:624             Docker container mongo:3.6 with id 947275a78db4f95f3f24952442cf0f6ba62dec62694c74681b319d54315c8f01 killed in 396ms
      04:20:57.280 INFO  [Thread-1] Container.java:566             Removing docker container mongo:3.6 with id 947275a78db4f95f3f24952442cf0f6ba62dec62694c74681b319d54315c8f01
      04:20:57.362 WARN  [Thread-1] Container.java:570             Unable to remove docker container mongo:3.6 with id 947275a78db4f95f3f24952442cf0f6ba62dec62694c74681b319d54315c8f01
      com.spotify.docker.client.exceptions.ContainerNotFoundException: Container not found: 947275a78db4f95f3f24952442cf0f6ba62dec62694c74681b319d54315c8f01
      	at com.spotify.docker.client.DefaultDockerClient.removeContainer(DefaultDockerClient.java:898)
      	at com.arakelian.docker.junit.Container.removeContainerQuietly(Container.java:567)
      	at com.arakelian.docker.junit.Container.doStop(Container.java:501)
      	at com.arakelian.docker.junit.Container.access$200(Container.java:67)
      	at com.arakelian.docker.junit.Container$1.run(Container.java:555)
      Caused by: com.spotify.docker.client.exceptions.DockerRequestException: Request error: DELETE unix://localhost:80/containers/947275a78db4f95f3f24952442cf0f6ba62dec62694c74681b319d54315c8f01?v=1: 404, body: {"message":"No such container: 947275a78db4f95f3f24952442cf0f6ba62dec62694c74681b319d54315c8f01"}
      
      	at com.spotify.docker.client.DefaultDockerClient.propagate(DefaultDockerClient.java:2820)
      	at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:2714)
      	at com.spotify.docker.client.DefaultDockerClient.removeContainer(DefaultDockerClient.java:892)
      	... 4 common frames omitted
      Caused by: com.spotify.docker.client.shaded.javax.ws.rs.NotFoundException: HTTP 404 Not Found
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:1008)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:816)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.access$700(JerseyInvocation.java:92)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation$5.completed(JerseyInvocation.java:773)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime.processResponse(ClientRuntime.java:198)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime.access$300(ClientRuntime.java:79)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:180)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process(Errors.java:267)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)
      	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:210)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              reschke Julian Reschke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: