Re: unable to use the jython2.7 with grinder3.11
olivier merlin <[email protected]> Mon, 05 Oct 2015 05:54:25 +0000
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <CAFjxuZOeMHgnMhpERWdVus9K7xiNBZsBHaiNoi3eMe6r3Co=Nw@mail.gmail.com> |
Anyone using grinder with Jython27? Cheers Le ven. 2 oct. 2015 18:37, olivier merlin <[email protected]> a écrit : > Hello, > Perhaps i miss something. > I get this stack trace on the helloworld.py: > 2015-10-02 18:23:11,135 ERROR C11TVY1-1: aborting process - Java exception > initialising test script > net.grinder.scriptengine.jython.JythonScriptExecutionException: Java > exception initialising test script > test1.record(log) > File > "C:\grindertool3.11\temp\.\C11TVY1-file-store\current\helloworld.py", line > 13, in <module> > java.lang.NoSuchFieldError: im_func > at > net.grinder.scriptengine.jython.instrumentation.dcr.AbstractJythonDCRInstrumenter.instrument(AbstractJythonDCRInstrumenter.java:127) > ~[grinder-core-3.11.jar:na] > at > net.grinder.scriptengine.AbstractDCRInstrumenter.instrument(AbstractDCRInstrumenter.java:93) > ~[grinder-core-3.11.jar:na] > at > net.grinder.scriptengine.CompositeInstrumenter.instrument(CompositeInstrumenter.java:103) > ~[grinder-core-3.11.jar:na] > at > net.grinder.engine.process.MasterInstrumenter.instrument(MasterInstrumenter.java:85) > ~[grinder-core-3.11.jar:na] > at > net.grinder.scriptengine.CompositeInstrumenter.instrument(CompositeInstrumenter.java:90) > ~[grinder-core-3.11.jar:na] > at > net.grinder.engine.process.TestData.instrument(TestData.java:113) > ~[grinder-core-3.11.jar:na] > at net.grinder.script.Test.record(Test.java:113) > ~[grinder-core-3.11.jar:na] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[na:1.8.0_60] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > ~[na:1.8.0_60] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[na:1.8.0_60] > at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60] > at > org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186) > ~[jython-standalone-2.7.0.jar:na] > at > org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204) > ~[jython-standalone-2.7.0.jar:na] > at org.python.core.PyObject.__call__(PyObject.java:478) > ~[jython-standalone-2.7.0.jar:na] > at org.python.core.PyObject.__call__(PyObject.java:482) > ~[jython-standalone-2.7.0.jar:na] > at org.python.core.PyMethod.__call__(PyMethod.java:141) > ~[jython-standalone-2.7.0.jar:na] > at > org.python.pycode._pyx1.f$0(C:\grindertool3.11\temp\.\C11TVY1-file-store\current\helloworld.py:17) > ~[na:na] > at > org.python.pycode._pyx1.call_function(C:\grindertool3.11\temp\.\C11TVY1-file-store\current\helloworld.py) > ~[na:na] > at org.python.core.PyTableCode.call(PyTableCode.java:167) > ~[jython-standalone-2.7.0.jar:na] > at org.python.core.PyCode.call(PyCode.java:18) > ~[jython-standalone-2.7.0.jar:na] > at org.python.core.Py.runCode(Py.java:1386) > ~[jython-standalone-2.7.0.jar:na] > at > org.python.core.__builtin__.execfile_flags(__builtin__.java:535) > ~[jython-standalone-2.7.0.jar:na] > at > org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:286) > ~[jython-standalone-2.7.0.jar:na] > at > net.grinder.scriptengine.jython.JythonScriptEngine.<init>(JythonScriptEngine.java:129) > ~[grinder-core-3.11.jar:na] > at > net.grinder.scriptengine.jython.JythonScriptEngineService.createScriptEngine(JythonScriptEngineService.java:102) > ~[grinder-core-3.11.jar:na] > at > net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.java:81) > ~[grinder-core-3.11.jar:na] > at > net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:404) > ~[grinder-core-3.11.jar:na] > at > net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:86) > [grinder-core-3.11.jar:na] > at > net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:59) > [grinder-core-3.11.jar:na] > 2015-10-02 18:23:11,293 INFO agent: finished, waiting for console signal > > the grinder.properties file is: > grinder.processes=1 > grinder.threads=1 > grinder.runs=1 > grinder.script=helloworld.py > grinder.jvm.arguments=-Dpython.home=C:/win64app/jython27 > -Dgrinder.logLevel=INFO -Xms1024m -Xmx2048m -Xss228k > grinder.logDirectory=log > > and i start my agent with: > java -Dpython.home=C:/win64app/jython27 -classpath > ..\grinder-3.11\lib\jython-standalone-2.7.0.jar;..\grinder-3.11\lib\grinder.jar > net.grinder.Grinder > > So i respect what is written here: > http://grinder.sourceforge.net/g3/jython.html > > Any clue ? > cheers, > Olivier > > ------------------------------------------------------------------------------ _______________________________________________ grinder-use mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/grinder-use