Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
qpid-java-broker-8.0.6
-
None
Description
When building Broker-J under Java 17 there is an error thrown in unit test:
[INFO] Running org.apache.qpid.disttest.controller.config.ConfigReaderTest[INFO] Running org.apache.qpid.disttest.controller.config.ConfigReaderTest[ERROR] Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.574 s <<< FAILURE! - in org.apache.qpid.disttest.controller.config.ConfigReaderTest[ERROR] testReadsJS(org.apache.qpid.disttest.controller.config.ConfigReaderTest) Time elapsed: 0.058 s <<< ERROR!java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.eval(java.io.Reader)" because "engine" is null at org.apache.qpid.disttest.controller.config.ConfigReaderTest.testReadsJS(ConfigReaderTest.java:139)
[INFO] Running org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluatorTest[INFO] Running org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluatorTest[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.001 s <<< FAILURE! - in org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluatorTest[ERROR] testEvaluateJavaScript(org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluatorTest) Time elapsed: 0 s <<< ERROR!java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.eval(java.io.Reader)" because "engine" is null at org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluatorTest.testEvaluateJavaScript(JavaScriptConfigEvaluatorTest.java:94) [ERROR] testEvaluateJavaScriptWithReader(org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluatorTest) Time elapsed: 0.001 s <<< ERROR!java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.eval(java.io.Reader)" because "engine" is null at org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluatorTest.testEvaluateJavaScriptWithReader(JavaScriptConfigEvaluatorTest.java:106)
Those issues seem to be caused by removal of javascript Nashorn engine from JDK since Java 15. They should be resolved by adding Nashorn as a separate dependency.