Re: unable to use the jython2.7 with grinder3.11
olivier merlin <[email protected]> Wed, 23 Mar 2016 12:06:56 +0000
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <CAFjxuZMnoq2GS4jHV21d0U4gxhNj0JQiLEje4gMHvaOf5dN0sQ@mail.gmail.com> |
--===============4277507521800208365== Content-Type: multipart/alternative; boundary=001a114b30f62700fd052eb62b4f --001a114b30f62700fd052eb62b4f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I know the solution is around migrating to 3.12 as initial support was done for 2.7b1. I will test this option and come back to the community Le lun. 5 oct. 2015 07:54, olivier merlin <[email protected]> a =C3=A9cri= t : > Anyone using grinder with Jython27? > Cheers > > Le ven. 2 oct. 2015 18:37, olivier merlin <[email protected]> a =C3=A9c= rit : > >> 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", li= ne >> 13, in <module> >> java.lang.NoSuchFieldError: im_func >> at >> net.grinder.scriptengine.jython.instrumentation.dcr.AbstractJythonDCRIns= trumenter.instrument(AbstractJythonDCRInstrumenter.java:127) >> ~[grinder-core-3.11.jar:na] >> at >> net.grinder.scriptengine.AbstractDCRInstrumenter.instrument(AbstractDCRI= nstrumenter.java:93) >> ~[grinder-core-3.11.jar:na] >> at >> net.grinder.scriptengine.CompositeInstrumenter.instrument(CompositeInstr= umenter.java:103) >> ~[grinder-core-3.11.jar:na] >> at >> net.grinder.engine.process.MasterInstrumenter.instrument(MasterInstrumen= ter.java:85) >> ~[grinder-core-3.11.jar:na] >> at >> net.grinder.scriptengine.CompositeInstrumenter.instrument(CompositeInstr= umenter.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.jav= a:62) >> ~[na:1.8.0_60] >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:43) >> ~[na:1.8.0_60] >> at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_6= 0] >> at >> org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:18= 6) >> ~[jython-standalone-2.7.0.jar:na] >> at >> org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:20= 4) >> ~[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>(JythonScriptEn= gine.java:129) >> ~[grinder-core-3.11.jar:na] >> at >> net.grinder.scriptengine.jython.JythonScriptEngineService.createScriptEn= gine(JythonScriptEngineService.java:102) >> ~[grinder-core-3.11.jar:na] >> at >> net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptE= ngineContainer.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(WorkerProcessEntr= yPoint.java:86) >> [grinder-core-3.11.jar:na] >> at >> net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEnt= ryPoint.java:59) >> [grinder-core-3.11.jar:na] >> 2015-10-02 18:23:11,293 INFO agent: finished, waiting for console signa= l >> >> the grinder.properties file is: >> grinder.processes=3D1 >> grinder.threads=3D1 >> grinder.runs=3D1 >> grinder.script=3Dhelloworld.py >> grinder.jvm.arguments=3D-Dpython.home=3DC:/win64app/jython27 >> -Dgrinder.logLevel=3DINFO -Xms1024m -Xmx2048m -Xss228k >> grinder.logDirectory=3Dlog >> >> and i start my agent with: >> java -Dpython.home=3DC:/win64app/jython27 -classpath >> ..\grinder-3.11\lib\jython-standalone-2.7.0.jar;..\grinder-3.11\lib\grin= der.jar >> net.grinder.Grinder >> >> So i respect what is written here: >> http://grinder.sourceforge.net/g3/jython.html >> >> Any clue ? >> cheers, >> Olivier >> >> --001a114b30f62700fd052eb62b4f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">I know the solution is around migrating to 3.12 as initial s= upport was done for 2.7b1.<br> I will test this option and come back to the community</p> <br><div class=3D"gmail_quote"><div dir=3D"ltr">Le=C2=A0lun. 5 oct. 2015 07= :54,=C2=A0olivier merlin <<a href=3D"mailto:[email protected]">omerlin= [email protected]</a>> a =C3=A9crit=C2=A0:<br></div><blockquote class=3D"gmai= l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left= :1ex"><p dir=3D"ltr">Anyone using grinder with Jython27?<br> Cheers</p> <br><div class=3D"gmail_quote"><div dir=3D"ltr">Le=C2=A0ven. 2 oct. 2015 18= :37,=C2=A0olivier merlin <<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>> a =C3=A9crit=C2=A0:<br></div><block= quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc= solid;padding-left:1ex"><div dir=3D"ltr"><div><div><div><div><div><div><di= v><div>Hello,<br></div>Perhaps i miss something.<br></div>I get this stack = trace on the helloworld.py:<br>2015-10-02 18:23:11,135 ERROR C11TVY1-1: abo= rting process - Java exception initialising test script<br>net.grinder.scri= ptengine.jython.JythonScriptExecutionException: Java exception initialising= test script<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 test1.record(log= )<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 File "C:\grindertool3.= 11\temp\.\C11TVY1-file-store\current\helloworld.py", line 13, in <m= odule><br>java.lang.NoSuchFieldError: im_func<br>=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 at net.grinder.scriptengine.jython.instrumentation.dc= r.AbstractJythonDCRInstrumenter.instrument(AbstractJythonDCRInstrumenter.ja= va:127) ~[grinder-core-3.11.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 at net.grinder.scriptengine.AbstractDCRInstrumenter.instrument(Abstr= actDCRInstrumenter.java:93) ~[grinder-core-3.11.jar:na]<br>=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 at net.grinder.scriptengine.CompositeInstrument= er.instrument(CompositeInstrumenter.java:103) ~[grinder-core-3.11.jar:na]<b= r>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at net.grinder.engine.process.= MasterInstrumenter.instrument(MasterInstrumenter.java:85) ~[grinder-core-3.= 11.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at net.grinder.scr= iptengine.CompositeInstrumenter.instrument(CompositeInstrumenter.java:90) ~= [grinder-core-3.11.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at= net.grinder.engine.process.TestData.instrument(TestData.java:113) ~[grinde= r-core-3.11.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at net.gr= inder.script.Test.record(Test.java:113) ~[grinder-core-3.11.jar:na]<br>=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at sun.reflect.NativeMethodAccessor= Impl.invoke0(Native Method) ~[na:1.8.0_60]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethod= AccessorImpl.java:62) ~[na:1.8.0_60]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:43) ~[na:1.8.0_60]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60= ]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.python.core.PyReflec= tedFunction.__call__(PyReflectedFunction.java:186) ~[jython-standalone-2.7.= 0.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.python.core.= PyReflectedFunction.__call__(PyReflectedFunction.java:204) ~[jython-standal= one-2.7.0.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.pyth= on.core.PyObject.__call__(PyObject.java:478) ~[jython-standalone-2.7.0.jar:= na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.python.core.PyObje= ct.__call__(PyObject.java:482) ~[jython-standalone-2.7.0.jar:na]<br>=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.python.core.PyMethod.__call__(P= yMethod.java:141) ~[jython-standalone-2.7.0.jar:na]<br>=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 at org.python.pycode._pyx1.f$0(C:\grindertool3.11\= temp\.\C11TVY1-file-store\current\helloworld.py:17) ~[na:na]<br>=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.python.pycode._pyx1.call_function(= C:\grindertool3.11\temp\.\C11TVY1-file-store\current\helloworld.py) ~[na:na= ]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.python.core.PyTableC= ode.call(PyTableCode.java:167) ~[jython-standalone-2.7.0.jar:na]<br>=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.python.core.PyCode.call(PyCode.= java:18) ~[jython-standalone-2.7.0.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 at org.python.core.Py.runCode(Py.java:1386) ~[jython-standa= lone-2.7.0.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.pyt= hon.core.__builtin__.execfile_flags(__builtin__.java:535) ~[jython-standalo= ne-2.7.0.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.pytho= n.util.PythonInterpreter.execfile(PythonInterpreter.java:286) ~[jython-stan= dalone-2.7.0.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at net.g= rinder.scriptengine.jython.JythonScriptEngine.<init>(JythonScriptEngi= ne.java:129) ~[grinder-core-3.11.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 at net.grinder.scriptengine.jython.JythonScriptEngineService.c= reateScriptEngine(JythonScriptEngineService.java:102) ~[grinder-core-3.11.j= ar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at net.grinder.engine.= process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.java:81= ) ~[grinder-core-3.11.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:404) = ~[grinder-core-3.11.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 a= t net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntry= Point.java:86) [grinder-core-3.11.jar:na]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 at net.grinder.engine.process.WorkerProcessEntryPoint.main(Wor= kerProcessEntryPoint.java:59) [grinder-core-3.11.jar:na]<br>2015-10-02 18:2= 3:11,293 INFO=C2=A0 agent: finished, waiting for console signal<br><br></di= v>the grinder.properties file is:<br>grinder.processes=3D1<br>grinder.threa= ds=3D1<br>grinder.runs=3D1<br>grinder.script=3Dhelloworld.py<br>grinder.jvm= .arguments=3D-Dpython.home=3DC:/win64app/jython27=C2=A0 -Dgrinder.logLevel= =3DINFO -Xms1024m -Xmx2048m -Xss228k <br>grinder.logDirectory=3Dlog<br><br>= </div>and i start my agent with:<br>java -Dpython.home=3DC:/win64app/jython= 27 -classpath ..\grinder-3.11\lib\jython-standalone-2.7.0.jar;..\grinder-3.= 11\lib\grinder.jar net.grinder.Grinder<br><br></div>So i respect what is wr= itten here:<br><a href=3D"http://grinder.sourceforge.net/g3/jython.html" ta= rget=3D"_blank">http://grinder.sourceforge.net/g3/jython.html</a><br><br></= div>Any clue ?<br></div>cheers,<br></div>Olivier<br><div><div><div><div><di= v><br></div></div></div></div></div></div> </blockquote></div></blockquote></div> --001a114b30f62700fd052eb62b4f-- --===============4277507521800208365== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 --===============4277507521800208365== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ grinder-use mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/grinder-use --===============4277507521800208365==--