Re: NonInstrumentableTypeException
qingyu wang <[email protected]> Fri, 12 Sep 2014 22:12:24 +0000
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <[email protected]> |
After some digging, I found that I should specify -javaagnet path on the commanding line. Sorry for posting such an obvious question... Qingyu From: [email protected] To: [email protected] Date: Fri, 12 Sep 2014 18:54:46 +0000 Subject: [Grinder-use] NonInstrumentableTypeException Hi all,I encountered the NonInstrumentableTypeException while trying to run the sample helloworld.py scripts.I searched the mailing list, it seems to be bug that has been fixed since 3.7.Any ideas ? Below is my debugging log. 2014-09-12 11:43:57,583 INFO : The Grinder version 3.112014-09-12 11:43:57,590 INFO : Java(TM) SE Runtime Environment 1.7.0_67-b01: Java HotSpot(TM) Client VM (24.65-b04, mixed mode, sharing) on Windows 7 x86 6.12014-09-12 11:43:57,592 INFO : time zone is PDT (-0700)2014-09-12 11:43:57,795 INFO : Java VM does not support instrumentation, DCR unavailable2014-09-12 11:43:57,870 INFO : worker process 02014-09-12 11:43:57,904 INFO : instrumentation agents: NO INSTRUMENTER COULD BE LOADED2014-09-12 11:44:00,813 ERROR : aborting process - Java exception initialising test scriptnet.grinder.scriptengine.jython.JythonScriptExecutionException: Java exception initialising test script test1.record(log) File ".\helloworld.py", line 23, in <module>net.grinder.script.NonInstrumentableTypeException: Failed to wrap <bound method net.grinder.engine.process.ExternalLogger.info of net.grinder.engine.process.ExternalLogger(worker.Q80035751-SC01-0)> at net.grinder.engine.process.MasterInstrumenter.instrument(MasterInstrumenter.java:91) ~[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.7.0_67] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_67] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_67] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_67] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186) ~[jython-standalone-2.5.3.jar:na] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204) ~[jython-standalone-2.5.3.jar:na] at org.python.core.PyObject.__call__(PyObject.java:404) ~[jython-standalone-2.5.3.jar:na] at org.python.core.PyObject.__call__(PyObject.java:408) ~[jython-standalone-2.5.3.jar:na] at org.python.core.PyMethod.__call__(PyMethod.java:124) ~[jython-standalone-2.5.3.jar:na] at org.python.pycode._pyx1.f$0(.\helloworld.py:27) ~[na:na] at org.python.pycode._pyx1.call_function(.\helloworld.py) ~[na:na] at org.python.core.PyTableCode.call(PyTableCode.java:165) ~[jython-standalone-2.5.3.jar:na] at org.python.core.PyCode.call(PyCode.java:18) ~[jython-standalone-2.5.3.jar:na] at org.python.core.Py.runCode(Py.java:1275) ~[jython-standalone-2.5.3.jar:na] at org.python.core.__builtin__.execfile_flags(__builtin__.java:522) ~[jython-standalone-2.5.3.jar:na] at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225) ~[jython-standalone-2.5.3.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.agent.IsolatedGrinderProcessRunner.run(IsolatedGrinderProcessRunner.java:53) [grinder-core-3.11.jar:na] at net.grinder.engine.agent.DebugThreadWorker$1.run(DebugThreadWorker.java:63) [grinder-core-3.11.jar:na]2014-09-12 11:44:00,818 INFO Q80035751-SC01-0 : communication shut down Thanks for your help! Qingyu ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ grinder-use mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/grinder-use ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ grinder-use mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/grinder-use