Actions
Architecture #11444
closedBug #11443: Make Rudder works with Java 9
Java 9: Rudder test fails because of JS engine
Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Architecture - Internal libs
Target version:
Pull Request:
Effort required:
Name check:
Fix check:
Regression:
Description
First problem with Java 9: test are failing with the following error:
com.normation.rudder.services.policies.TestJsEngine Time elapsed: 0.006 sec <<< ERROR! org.specs2.control.UserException: cannot create an instance for class com.normation.rudder.services.policies.TestJsEngine at org.specs2.reflect.Classes.newInstance(Classes.scala:85) at org.specs2.reflect.Classes.createInstanceForConstructor(Classes.scala:61) at org.specs2.reflect.Classes.findInstance(Classes.scala:47) at org.specs2.reflect.Classes.createInstanceFromClass(Classes.scala:29) at org.specs2.reflect.Classes.createInstanceFromClass$(Classes.scala:28) at org.specs2.reflect.Classes$.createInstanceFromClass(Classes.scala:109) at org.specs2.reflect.Classes.$anonfun$createInstance$1(Classes.scala:25) at org.specs2.control.eff.Arrs.go$2(Eff.scala:246) at org.specs2.control.eff.Arrs.apply(Eff.scala:253) at org.specs2.control.eff.Interpret$$anon$1.$anonfun$onEffect$1(Interpret.scala:53) at scalaz.$bslash$div.bimap(Either.scala:91) at org.specs2.control.eff.Interpret$$anon$1.onEffect(Interpret.scala:53) at org.specs2.control.eff.Interpret$$anon$1.onEffect(Interpret.scala:45) at org.specs2.control.eff.Interpret.go$1(Interpret.scala:131) at org.specs2.control.eff.Interpret.interpretLoop(Interpret.scala:142) at org.specs2.control.eff.Interpret.interpretLoop$(Interpret.scala:119) at org.specs2.control.eff.Interpret$.interpretLoop(Interpret.scala:230) at org.specs2.control.eff.Interpret.interpret(Interpret.scala:55) at org.specs2.control.eff.Interpret.interpret$(Interpret.scala:44) at org.specs2.control.eff.Interpret$.interpret(Interpret.scala:230) at org.specs2.control.eff.Interpret.interpret1(Interpret.scala:62) at org.specs2.control.eff.Interpret.interpret1$(Interpret.scala:61) at org.specs2.control.eff.Interpret$.interpret1(Interpret.scala:230) at org.specs2.control.eff.ErrorInterpretation.runError(ErrorEffect.scala:77) at org.specs2.control.eff.ErrorInterpretation.runError$(ErrorEffect.scala:64) at org.specs2.control.eff.ErrorEffect$.runError(ErrorEffect.scala:129) at org.specs2.control.eff.syntax.error$ErrorEffectOps.runError(error.scala:15) at org.specs2.control.package$.attemptExecuteAction(package.scala:56) at org.specs2.control.package$.runAction(package.scala:51) at org.specs2.runner.JUnitRunner.specification$lzycompute(JUnitRunner.scala:22) at org.specs2.runner.JUnitRunner.specification(JUnitRunner.scala:21) at org.specs2.runner.JUnitRunner.specStructure$lzycompute(JUnitRunner.scala:36) at org.specs2.runner.JUnitRunner.specStructure(JUnitRunner.scala:36) at org.specs2.runner.JUnitRunner.$anonfun$runWithEnv$12(JUnitRunner.scala:63) at org.specs2.control.eff.Arrs.go$2(Eff.scala:243) at org.specs2.control.eff.Arrs.apply(Eff.scala:253) at org.specs2.control.eff.Interpret$$anon$3.$anonfun$onEffect$3(Interpret.scala:160) at scalaz.$bslash$div.bimap(Either.scala:91) at org.specs2.control.eff.Interpret$$anon$3.onEffect(Interpret.scala:160) at org.specs2.control.eff.Interpret$$anon$3.onEffect(Interpret.scala:152) at org.specs2.control.eff.Interpret.go$2(Interpret.scala:187) at org.specs2.control.eff.Interpret.interceptLoop(Interpret.scala:198) at org.specs2.control.eff.Interpret.interceptLoop$(Interpret.scala:175) at org.specs2.control.eff.Interpret$.interceptLoop(Interpret.scala:230) at org.specs2.control.eff.Interpret.intercept(Interpret.scala:162) at org.specs2.control.eff.Interpret.intercept$(Interpret.scala:151) at org.specs2.control.eff.Interpret$.intercept(Interpret.scala:230) at org.specs2.control.eff.ErrorInterpretation.andFinally(ErrorEffect.scala:95) at org.specs2.control.eff.ErrorInterpretation.andFinally$(ErrorEffect.scala:85) at org.specs2.control.eff.ErrorEffect$.andFinally(ErrorEffect.scala:129) at org.specs2.control.eff.syntax.error$ErrorEffectOps.andFinally(error.scala:18) at org.specs2.runner.JUnitRunner.runWithEnv(JUnitRunner.scala:66) at org.specs2.runner.JUnitRunner.run(JUnitRunner.scala:40) 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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) 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) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488) at org.specs2.reflect.Classes.$anonfun$createInstanceForConstructor$1(Classes.scala:61) at org.specs2.reflect.Classes.newInstance(Classes.scala:83) ... 64 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at com.normation.rudder.services.policies.TestJsEngine.<init>(TestJsEngine.scala:82) ... 70 more Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488) at org.specs2.reflect.Classes.$anonfun$createInstanceForConstructor$1(Classes.scala:61) at org.specs2.reflect.Classes.newInstance(Classes.scala:83) ... 64 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at com.normation.rudder.services.policies.TestJsEngine.<init>(TestJsEngine.scala:82) ... 70 more
Actions