Compile of modeshape 5.3 fails at org.modeshape.jcr.value.binary.MongodbBinaryStoreTest
patrick01 Jan 5, 2017 11:10 AMI try to compile modeshape 5.3 and get the following error when I do not disable the tests:
==> default: Temporary directory for tests: /home/modeshape/modeshape/modeshape-jcr/target
==> default: Time to copy "postgresql-8.4.1-US.pdf" (17714435 bytes): 00:00:00.033,754
==> default: Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.98 sec - in org.modeshape.jcr.value.binary.FileSystemBinaryStoreTest
==> default: Running org.modeshape.jcr.value.binary.InMemoryBinaryValueTest
==> default: Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in org.modeshape.jcr.value.binary.InMemoryBinaryValueTest
==> default: Running org.modeshape.jcr.value.binary.MongodbBinaryStoreTest
==> default: Jan 04, 2017 8:40:55 PM de.flapdoodle.embed.mongo.AbstractMongoProcess stop
==> default: INFO: try to stop mongod
==> default: Jan 04, 2017 8:40:55 PM de.flapdoodle.embed.process.io.file.Files forceDelete
==> default: INFO: Could delete /home/modeshape/modeshape/modeshape-jcr/target/embedmongo-db-358aa428-a4ec-4e49-9aec-eb3d9f809e78
==> default: Jan 04, 2017 8:40:55 PM de.flapdoodle.embed.process.io.file.Files forceDelete
==> default: INFO: Could delete /home/modeshape/modeshape/modeshape-jcr/target/extract-8f69f40f-a6cc-404e-a0c1-710d07b02e33mongod
==> default: Tests run: 18, Failures: 0, Errors: 17, Skipped: 0, Time elapsed: 172.727 sec <<< FAILURE! - in org.modeshape.jcr.value.binary.MongodbBinaryStoreTest
==> default: shouldStoreSmallBinary(org.modeshape.jcr.value.binary.MongodbBinaryStoreTest) Time elapsed: 10.009 sec <<< ERROR!
==> default: com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=localhost:45247, type=Unknown, state=Connecting, exception={com.mongodb.MongoException$Network: Exception opening the socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]
==> default: at com.mongodb.BaseCluster.getServer(BaseCluster.java:82)
==> default: at com.mongodb.DBTCPConnector.getServer(DBTCPConnector.java:669)
==> default: at com.mongodb.DBTCPConnector.access$500(DBTCPConnector.java:40)
==> default: at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:518)
==> default: at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:461)
==> default: at com.mongodb.DBTCPConnector.getPrimaryPort(DBTCPConnector.java:415)
==> default: at com.mongodb.DBApiLayer.isServerVersionAtLeast(DBApiLayer.java:251)
==> default: at com.mongodb.DBApiLayer.getCollectionNames(DBApiLayer.java:151)
==> default: at com.mongodb.DB.collectionExists(DB.java:524)
==> default: at org.modeshape.jcr.value.binary.MongodbBinaryStore.storeValue(MongodbBinaryStore.java:189)
==> default: at org.modeshape.jcr.value.binary.AbstractBinaryStoreTest.storeAndValidate(AbstractBinaryStoreTest.java:147)
==> default: at org.modeshape.jcr.value.binary.AbstractBinaryStoreTest.shouldStoreSmallBinary(AbstractBinaryStoreTest.java:126)
==> default: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
==> default: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
==> default: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
==> default: at java.lang.reflect.Method.invoke(Method.java:498)
==> default: at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
==> default: at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
==> default: at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
==> default: at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
==> default: at org.junit.rules.RunRules.evaluate(RunRules.java:20)
==> default: at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
==> default: at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
==> default: at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
==> default: at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
==> default: at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
==> default: at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
==> default: at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
==> default: at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
==> default: at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
==> default: at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
==> default: at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
==> default: at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
==> default: at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
==> default: at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
==> default: at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
==> default: at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
==> default: at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
==> default: at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
==> default: shouldNotHaveKey(org.modeshape.jcr.value.binary.MongodbBinaryStoreTest) Time elapsed: 10.007 sec <<< ERROR!
==> default: com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches AnyServerSelector{}. Client view of cluster state is {type=Unknown, servers=[{address=localhost:45247, type=Unknown, state=Connecting, exception={com.mongodb.MongoException$Network: Exception opening the socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]
==> default: at com.mongodb.BaseCluster.getServer(BaseCluster.java:82)
==> default: at com.mongodb.DBTCPConnector.getServer(DBTCPConnector.java:669)
==> default: at com.mongodb.DBTCPConnector.access$500(DBTCPConnector.java:40)
==> default: at com.mongodb.DBTCPConnector$MyPort.getConnection(DBTCPConnector.java:518)
==> default: at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:461)
==> default: at com.mongodb.DBTCPConnector.getPrimaryPort(DBTCPConnector.java:415)
==> default: at com.mongodb.DBApiLayer.isServerVersionAtLeast(DBApiLayer.java:251)
==> default: at com.mongodb.DBApiLayer.getCollectionNames(DBApiLayer.java:151)
==> default: at com.mongodb.DB.collectionExists(DB.java:524)
==> default: at org.modeshape.jcr.value.binary.MongodbBinaryStore.getInputStream(MongodbBinaryStore.java:212)
==> default: at org.modeshape.jcr.value.binary.AbstractBinaryStore.hasBinary(AbstractBinaryStore.java:178)
==> default: at org.modeshape.jcr.value.binary.AbstractBinaryStoreTest.shouldNotHaveKey(AbstractBinaryStoreTest.java:142)
==> default: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
==> default: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
==> default: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
==> default: at java.lang.reflect.Method.invoke(Method.java:498)
My development Environment is based on vagrant with
config.vm.box = "bento/ubuntu-16.04"
vb.memory = "6144"
vb.cpus = "4"
MAVEN_OPTS are also set: MAVEN_OPTS="-Xms2048m -Xmx4096m"
openjdk-8-jdk-headless