Hi all,
I've run into some issues after uploading a jar file with client code I use in my tests to test a web socket product. The error seems to be related to the .jar itself and how it is loaded as I'm also unable to run even a very basic test based on the template you get when creating a new script. I really can't see what see what is going on here so any pointers would be greatly appreciated. Let me know if you want any additional information This is the result after creating a new script and just running it as is (the simple HTTP example) after just pointing the URL used to localhost:8080 (nGrinder admin). If I remove my jar from the lib folder the example runs to completion with no errors. This is the error message: 2015-08-05 12:07:47,009 INFO The Grinder version 3.9.1 2015-08-05 12:07:47,014 INFO Java(TM) SE Runtime Environment 1.7.0_72-b14: Java HotSpot(TM) 64-Bit Server VM (24.72-b04, mixed mode) on Mac OS X x86_64 10.10.4 2015-08-05 12:07:47,018 INFO time zone is CEST (+0200) 2015-08-05 12:07:47,114 INFO worker process 0 of agent number 0 2015-08-05 12:07:47,143 INFO Instrumentation agents: byte code transforming instrumenter for Java; byte code transforming instrumenter for Java 2015-08-05 12:07:47,798 ERROR Script error - Error while initialize test runner net.grinder.engine.common.EngineException: Error while initialize test runner at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:71) ~[ngrinder-groovy-3.3.jar:na] at net.grinder.scriptengine.groovy.GroovyScriptEngineService.createScriptEngine(GroovyScriptEngineService.java:109) ~[ngrinder-groovy-3.3.jar:na] at net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.java:105) ~[grinder-core-3.9.1.jar:na] at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:329) ~[ngrinder-runtime-3.3.jar:na] at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87) [grinder-core-3.9.1.jar:na] at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60) [grinder-core-3.9.1.jar:na] Caused by: net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyScriptExecutionException: Exception occurs in @BeforeProcess block. at net.grinder.scriptengine.groovy.GrinderContextExecutor.runBeforeProcess(GrinderContextExecutor.java:88) ~[ngrinder-groovy-3.3.jar:na] at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:64) ~[ngrinder-groovy-3.3.jar:na] ... 5 common frames omitted Caused by: java.lang.UnsupportedOperationException: null at java.util.Collections$UnmodifiableCollection.addAll(Collections.java:1085) ~[na:1.7.0_72] at net.grinder.scriptengine.groovy.junit.GrinderRunner.withBeforeProcess(GrinderRunner.java:268) ~[ngrinder-groovy-3.3.jar:na] at net.grinder.scriptengine.groovy.GrinderContextExecutor.runBeforeProcess(GrinderContextExecutor.java:85) ~[ngrinder-groovy-3.3.jar:na] ... 6 common frames omitted objc[39397]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. 2015-08-05 12:07:47,799 ERROR worker-bootstrap: Error running worker process net.grinder.engine.common.EngineException: Error while initialize test runner at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:71) ~[ngrinder-groovy-3.3.jar:na] at net.grinder.scriptengine.groovy.GroovyScriptEngineService.createScriptEngine(GroovyScriptEngineService.java:109) ~[ngrinder-groovy-3.3.jar:na] at net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.java:105) ~[grinder-core-3.9.1.jar:na] at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:329) ~[ngrinder-runtime-3.3.jar:na] at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87) [grinder-core-3.9.1.jar:na] at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60) [grinder-core-3.9.1.jar:na] Caused by: net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyScriptExecutionException: Exception occurs in @BeforeProcess block. at net.grinder.scriptengine.groovy.GrinderContextExecutor.runBeforeProcess(GrinderContextExecutor.java:88) ~[ngrinder-groovy-3.3.jar:na] at net.grinder.scriptengine.groovy.GroovyScriptEngine.<init>(GroovyScriptEngine.java:64) ~[ngrinder-groovy-3.3.jar:na] ... 5 common frames omitted Caused by: java.lang.UnsupportedOperationException: null at java.util.Collections$UnmodifiableCollection.addAll(Collections.java:1085) ~[na:1.7.0_72] at net.grinder.scriptengine.groovy.junit.GrinderRunner.withBeforeProcess(GrinderRunner.java:268) ~[ngrinder-groovy-3.3.jar:na] at net.grinder.scriptengine.groovy.GrinderContextExecutor.runBeforeProcess(GrinderContextExecutor.java:85) ~[ngrinder-groovy-3.3.jar:na] ... 6 common frames omitted + Thanks for any pointers or suggestions Niklas |
Free forum by Nabble | Edit this page |