Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6956

config for EndToEndTest#testHillClimbing fails to evaluate on some JVMs

    XMLWordPrintableJSON

    Details

      Description

      EndToEndTest#testHillClimbing config fails to evaluate on certain JVMs, giving an exception:

      org.apache.qpid.disttest.DistributedTestException: Exception while evaluating test config
              at org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluator.evaluateJavaScript(JavaScriptConfigEvaluator.java:77) ~[qpid-perftests-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluator.evaluateJavaScript(JavaScriptConfigEvaluator.java:51) ~[qpid-perftests-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at org.apache.qpid.disttest.controller.config.ConfigReader.getConfigReader(ConfigReader.java:69) ~[qpid-perftests-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at org.apache.qpid.disttest.controller.config.ConfigReader.getConfigFromFile(ConfigReader.java:40) ~[qpid-perftests-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at org.apache.qpid.disttest.ControllerRunner.buildTestConfigFrom(ControllerRunner.java:260) ~[qpid-perftests-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at org.apache.qpid.disttest.ControllerRunner.createClientsIfNotDistributed(ControllerRunner.java:226) ~[qpid-perftests-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at org.apache.qpid.disttest.ControllerRunner.runController(ControllerRunner.java:121) ~[qpid-perftests-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at org.apache.qpid.systest.disttest.endtoend.EndToEndTest.runController(EndToEndTest.java:228) ~[test-classes/:na]
              at org.apache.qpid.systest.disttest.endtoend.EndToEndTest.testHillClimbing(EndToEndTest.java:175) ~[test-classes/:na]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_91]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_91]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_91]
              at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_91]
              at junit.framework.TestCase.runTest(TestCase.java:176) [junit-4.11.jar:na]
              at org.apache.qpid.test.utils.QpidTestCase.runTest(QpidTestCase.java:171) [qpid-test-utils-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at junit.framework.TestCase.runBare(TestCase.java:141) [junit-4.11.jar:na]
              at org.apache.qpid.test.utils.QpidBrokerTestCase.runBare(QpidBrokerTestCase.java:332) ~[qpid-systests-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at junit.framework.TestResult$1.protect(TestResult.java:122) [junit-4.11.jar:na]
              at junit.framework.TestResult.runProtected(TestResult.java:142) [junit-4.11.jar:na]
              at junit.framework.TestResult.run(TestResult.java:125) [junit-4.11.jar:na]
              at junit.framework.TestCase.run(TestCase.java:129) [junit-4.11.jar:na]
              at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:156) [qpid-test-utils-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              at junit.framework.TestSuite.runTest(TestSuite.java:255) [junit-4.11.jar:na]
              at junit.framework.TestSuite.run(TestSuite.java:250) [junit-4.11.jar:na]
              at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) [junit-4.11.jar:na]
              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:254) [surefire-junit4-2.17.jar:2.17]
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:149) [surefire-junit4-2.17.jar:2.17]
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) [surefire-junit4-2.17.jar:2.17]
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) [surefire-booter-2.17.jar:2.17]
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) [surefire-booter-2.17.jar:2.17]
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) [surefire-booter-2.17.jar:2.17]
      

      Checking the logs, the cause is listed as:

      Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.EvaluatorException: Java class "[Ljava.lang.annotation.Annotation;" has no public instance field or method named "toJSON". (<Unknown source>#1) in <Unknown source> at line number 1
              at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:224) ~[na:1.7.0_91]
              at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:240) ~[na:1.7.0_91]
              at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264) ~[na:1.7.0_91]
              at org.apache.qpid.disttest.controller.config.JavaScriptConfigEvaluator.evaluateJavaScript(JavaScriptConfigEvaluator.java:73) ~[qpid-perftests-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
              ... 30 common frames omitted
      Caused by: sun.org.mozilla.javascript.EvaluatorException: Java class "[Ljava.lang.annotation.Annotation;" has no public instance field or method named "toJSON". (<Unknown source>#1)
              at sun.org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:77) ~[na:1.7R4]
              at sun.org.mozilla.javascript.Context.reportRuntimeError(Context.java:913) ~[na:1.7R4]
              at sun.org.mozilla.javascript.Context.reportRuntimeError(Context.java:969) ~[na:1.7R4]
              at sun.org.mozilla.javascript.Context.reportRuntimeError2(Context.java:939) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJavaArray.get(NativeJavaArray.java:67) ~[na:1.7R4]
              at sun.org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2184) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:268) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.jo(NativeJSON.java:349) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:312) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.jo(NativeJSON.java:349) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:312) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.jo(NativeJSON.java:349) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:312) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.jo(NativeJSON.java:349) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:312) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.ja(NativeJSON.java:392) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:310) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.jo(NativeJSON.java:349) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:312) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.ja(NativeJSON.java:392) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:310) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.jo(NativeJSON.java:349) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:312) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.ja(NativeJSON.java:392) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:310) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.jo(NativeJSON.java:349) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:312) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.ja(NativeJSON.java:392) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:310) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.jo(NativeJSON.java:349) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:312) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.ja(NativeJSON.java:392) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:310) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.jo(NativeJSON.java:349) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.str(NativeJSON.java:312) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.stringify(NativeJSON.java:254) ~[na:1.7R4]
              at sun.org.mozilla.javascript.NativeJSON.execIdCall(NativeJSON.java:101) ~[na:1.7R4]
              at sun.org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) ~[na:1.7R4]
              at sun.org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473) ~[na:1.7R4]
              at sun.org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) ~[na:1.7R4]
              at sun.org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) ~[na:1.7R4]
              at sun.org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) ~[na:1.7R4]
              at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(RhinoScriptEngine.java:116) ~[na:1.7.0_91]
              at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(RhinoScriptEngine.java:109) ~[na:1.7.0_91]
              at sun.org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) ~[na:1.7R4]
              at sun.org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) ~[na:1.7R4]
              at sun.org.mozilla.javascript.Context.evaluateReader(Context.java:1110) ~[na:1.7R4]
              at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:214) ~[na:1.7.0_91]
              ... 33 common frames omitted
      

        Attachments

          Activity

            People

            • Assignee:
              robbie Robbie Gemmell
              Reporter:
              robbie Robbie Gemmell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: