Unit-tests fail when build by maven

Hi,

I was about to release a new plugin for diffusion trajectory classification. However, I do not know when I introduce that problem but if I try to build my plugin with maven all unit tests fail. However, If I use eclipse all unit tests succeed.

This is the repository:

Any Ideas what could be the reason for that oddly behavior?

I hope some of the maven experts ( @ctrueden ?) have some advice for me.

Cheers,
Thorsten

Hi @twagner,

could you please share one of the error messages (is it always the same?) so that we may have an idea before downloading all the stuff?

Thanks,
Robert

Hi @haesleinhuepf!

Sure! And yes, the message is always the same.

Running de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest
Tests run: 6, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 3.271 sec <<< FAILURE!
Classify_FreeDiffusionSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)  Time elapsed: 0.856 sec  <<< FAILURE!
java.lang.AssertionError
	at org.renjin.gcc.runtime.DoublePtr.memset(DoublePtr.java:106)
	at org.renjin.cran.randomForest.rfutils__.zeroDouble(rfutils.c:23)
	at org.renjin.cran.randomForest.rf__.classForest(rf.c:552)
	at org.renjin.cran.randomForest.randomForest.classForest(Unknown Source)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.renjin.primitives.Native.dotC(Native.java:104)
	at org.renjin.primitives.R$primitive$$C.apply(R$primitive$$C.java:73)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.IfFunction.apply(IfFunction.java:50)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Calls.applyClosure(Calls.java:57)
	at org.renjin.primitives.S3$GenericMethod.doApply(S3.java:597)
	at org.renjin.primitives.S3$GenericMethod.apply(S3.java:580)
	at org.renjin.primitives.S3.UseMethod(S3.java:48)
	at org.renjin.primitives.S3.UseMethod(S3.java:40)
	at org.renjin.primitives.R$primitive$UseMethod.doApply(R$primitive$UseMethod.java:77)
	at org.renjin.primitives.R$primitive$UseMethod.apply(R$primitive$UseMethod.java:31)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluate(Context.java:163)
	at org.renjin.sexp.Closure.doApply(Closure.java:107)
	at org.renjin.eval.ClosureDispatcher.apply(ClosureDispatcher.java:76)
	at org.renjin.eval.ClosureDispatcher.applyClosure(ClosureDispatcher.java:61)
	at org.renjin.sexp.Closure.apply(Closure.java:81)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluateExpressionVector(Context.java:266)
	at org.renjin.eval.Context.evaluate(Context.java:205)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:150)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:109)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:191)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:71)
	at de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest.Classify_FreeDiffusionSingleTrack_Test(RRFClassifierRenjinTest.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	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.InvokeMethod.evaluate(InvokeMethod.java:17)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Classify_AnomalousDiffusionSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)  Time elapsed: 0.257 sec  <<< FAILURE!
java.lang.AssertionError
	at org.renjin.gcc.runtime.DoublePtr.memset(DoublePtr.java:106)
	at org.renjin.cran.randomForest.rfutils__.zeroDouble(rfutils.c:23)
	at org.renjin.cran.randomForest.rf__.classForest(rf.c:552)
	at org.renjin.cran.randomForest.randomForest.classForest(Unknown Source)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.renjin.primitives.Native.dotC(Native.java:104)
	at org.renjin.primitives.R$primitive$$C.apply(R$primitive$$C.java:73)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.IfFunction.apply(IfFunction.java:50)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Calls.applyClosure(Calls.java:57)
	at org.renjin.primitives.S3$GenericMethod.doApply(S3.java:597)
	at org.renjin.primitives.S3$GenericMethod.apply(S3.java:580)
	at org.renjin.primitives.S3.UseMethod(S3.java:48)
	at org.renjin.primitives.S3.UseMethod(S3.java:40)
	at org.renjin.primitives.R$primitive$UseMethod.doApply(R$primitive$UseMethod.java:77)
	at org.renjin.primitives.R$primitive$UseMethod.apply(R$primitive$UseMethod.java:31)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluate(Context.java:163)
	at org.renjin.sexp.Closure.doApply(Closure.java:107)
	at org.renjin.eval.ClosureDispatcher.apply(ClosureDispatcher.java:76)
	at org.renjin.eval.ClosureDispatcher.applyClosure(ClosureDispatcher.java:61)
	at org.renjin.sexp.Closure.apply(Closure.java:81)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluateExpressionVector(Context.java:266)
	at org.renjin.eval.Context.evaluate(Context.java:205)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:150)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:109)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:191)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:71)
	at de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest.Classify_AnomalousDiffusionSingleTrack_Test(RRFClassifierRenjinTest.java:92)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	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.InvokeMethod.evaluate(InvokeMethod.java:17)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Classify_PureDirectedMotionSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)  Time elapsed: 0.215 sec  <<< FAILURE!
java.lang.AssertionError
	at org.renjin.gcc.runtime.DoublePtr.memset(DoublePtr.java:106)
	at org.renjin.cran.randomForest.rfutils__.zeroDouble(rfutils.c:23)
	at org.renjin.cran.randomForest.rf__.classForest(rf.c:552)
	at org.renjin.cran.randomForest.randomForest.classForest(Unknown Source)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.renjin.primitives.Native.dotC(Native.java:104)
	at org.renjin.primitives.R$primitive$$C.apply(R$primitive$$C.java:73)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.IfFunction.apply(IfFunction.java:50)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Calls.applyClosure(Calls.java:57)
	at org.renjin.primitives.S3$GenericMethod.doApply(S3.java:597)
	at org.renjin.primitives.S3$GenericMethod.apply(S3.java:580)
	at org.renjin.primitives.S3.UseMethod(S3.java:48)
	at org.renjin.primitives.S3.UseMethod(S3.java:40)
	at org.renjin.primitives.R$primitive$UseMethod.doApply(R$primitive$UseMethod.java:77)
	at org.renjin.primitives.R$primitive$UseMethod.apply(R$primitive$UseMethod.java:31)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluate(Context.java:163)
	at org.renjin.sexp.Closure.doApply(Closure.java:107)
	at org.renjin.eval.ClosureDispatcher.apply(ClosureDispatcher.java:76)
	at org.renjin.eval.ClosureDispatcher.applyClosure(ClosureDispatcher.java:61)
	at org.renjin.sexp.Closure.apply(Closure.java:81)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluateExpressionVector(Context.java:266)
	at org.renjin.eval.Context.evaluate(Context.java:205)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:150)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:109)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:191)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:71)
	at de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest.Classify_PureDirectedMotionSingleTrack_Test(RRFClassifierRenjinTest.java:123)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	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.InvokeMethod.evaluate(InvokeMethod.java:17)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Classify_ConfinedDiffusionSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)  Time elapsed: 0.18 sec  <<< FAILURE!
java.lang.AssertionError
	at org.renjin.gcc.runtime.DoublePtr.memset(DoublePtr.java:106)
	at org.renjin.cran.randomForest.rfutils__.zeroDouble(rfutils.c:23)
	at org.renjin.cran.randomForest.rf__.classForest(rf.c:552)
	at org.renjin.cran.randomForest.randomForest.classForest(Unknown Source)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.renjin.primitives.Native.dotC(Native.java:104)
	at org.renjin.primitives.R$primitive$$C.apply(R$primitive$$C.java:73)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.IfFunction.apply(IfFunction.java:50)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Calls.applyClosure(Calls.java:57)
	at org.renjin.primitives.S3$GenericMethod.doApply(S3.java:597)
	at org.renjin.primitives.S3$GenericMethod.apply(S3.java:580)
	at org.renjin.primitives.S3.UseMethod(S3.java:48)
	at org.renjin.primitives.S3.UseMethod(S3.java:40)
	at org.renjin.primitives.R$primitive$UseMethod.doApply(R$primitive$UseMethod.java:77)
	at org.renjin.primitives.R$primitive$UseMethod.apply(R$primitive$UseMethod.java:31)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluate(Context.java:163)
	at org.renjin.sexp.Closure.doApply(Closure.java:107)
	at org.renjin.eval.ClosureDispatcher.apply(ClosureDispatcher.java:76)
	at org.renjin.eval.ClosureDispatcher.applyClosure(ClosureDispatcher.java:61)
	at org.renjin.sexp.Closure.apply(Closure.java:81)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluateExpressionVector(Context.java:266)
	at org.renjin.eval.Context.evaluate(Context.java:205)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:150)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:109)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:191)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:71)
	at de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest.Classify_ConfinedDiffusionSingleTrack_Test(RRFClassifierRenjinTest.java:108)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	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.InvokeMethod.evaluate(InvokeMethod.java:17)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

Classify_DiffusionWithDriftSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)  Time elapsed: 0.18 sec  <<< FAILURE!
java.lang.AssertionError
	at org.renjin.gcc.runtime.DoublePtr.memset(DoublePtr.java:106)
	at org.renjin.cran.randomForest.rfutils__.zeroDouble(rfutils.c:23)
	at org.renjin.cran.randomForest.rf__.classForest(rf.c:552)
	at org.renjin.cran.randomForest.randomForest.classForest(Unknown Source)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.renjin.primitives.Native.dotC(Native.java:104)
	at org.renjin.primitives.R$primitive$$C.apply(R$primitive$$C.java:73)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.IfFunction.apply(IfFunction.java:50)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.BeginFunction.apply(BeginFunction.java:46)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Calls.applyClosure(Calls.java:57)
	at org.renjin.primitives.S3$GenericMethod.doApply(S3.java:597)
	at org.renjin.primitives.S3$GenericMethod.apply(S3.java:580)
	at org.renjin.primitives.S3.UseMethod(S3.java:48)
	at org.renjin.primitives.S3.UseMethod(S3.java:40)
	at org.renjin.primitives.R$primitive$UseMethod.doApply(R$primitive$UseMethod.java:77)
	at org.renjin.primitives.R$primitive$UseMethod.apply(R$primitive$UseMethod.java:31)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluate(Context.java:163)
	at org.renjin.sexp.Closure.doApply(Closure.java:107)
	at org.renjin.eval.ClosureDispatcher.apply(ClosureDispatcher.java:76)
	at org.renjin.eval.ClosureDispatcher.applyClosure(ClosureDispatcher.java:61)
	at org.renjin.sexp.Closure.apply(Closure.java:81)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.primitives.special.AssignLeftFunction.assignLeft(AssignLeftFunction.java:60)
	at org.renjin.primitives.special.AssignLeftFunction.apply(AssignLeftFunction.java:44)
	at org.renjin.eval.Context.evaluateCall(Context.java:283)
	at org.renjin.eval.Context.evaluate(Context.java:207)
	at org.renjin.eval.Context.evaluateExpressionVector(Context.java:266)
	at org.renjin.eval.Context.evaluate(Context.java:205)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:150)
	at org.renjin.script.RenjinScriptEngine.eval(RenjinScriptEngine.java:109)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:191)
	at de.biomedical_imaging.ij.trajectory_classifier.RRFClassifierRenjin.classify(RRFClassifierRenjin.java:71)
	at de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest.Classify_DiffusionWithDriftSingleTrack_Test(RRFClassifierRenjinTest.java:143)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	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.InvokeMethod.evaluate(InvokeMethod.java:17)
	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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)


Results :

Failed tests:   Classify_FreeDiffusionSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)
  Classify_AnomalousDiffusionSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)
  Classify_PureDirectedMotionSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)
  Classify_ConfinedDiffusionSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)
  Classify_DiffusionWithDriftSingleTrack_Test(de.biomedical_imaging.ij.trajectory_classifier.test.RRFClassifierRenjinTest)

Tests run: 6, Failures: 5, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.441 s
[INFO] Finished at: 2016-07-05T13:30:46+02:00
[INFO] Final Memory: 23M/279M
[INFO] ------------------------------------------------------------------------

Hello @twagner,

Hmm, it doesn’t seem to be the assertions failing even though you see an AssertionError, rather the tests fail when they call RRFClassifierRenjin.classify(ArrayList<Trajectory>). I wonder if your Eclipse environment uses a different version of JVM for the project than your Maven configuration.

@rimadoma
As you can see in the pom.xml maven should use java 1.7:

In eclipse it uses compliance level 1.7.

Edit:
Even if I change the pom and the compliance level to java 1.6 the error is still the same.

Here is the build-log on travis-ci:
https://travis-ci.org/thorstenwagner/ij-trajectory-classifier

I’ve made a crosspost on stackoverflow:

OK, the problem is fixed. I had to disable java assertions in maven. They are disabled in eclipse by default but enabled by default in maven.

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.12.4</version>
  <configuration>
    <reuseForks>false</reuseForks>
    <forkCount>1</forkCount>
    <enableAssertions>false</enableAssertions> <!-- ADDED LINE -->
  </configuration>
</plugin>
2 Likes