[ grinder-Bugs-3497560 ] Enabling grinder.debug.singleprocess = true breaks my script
SourceForge.net <[email protected]> Tue, 06 Mar 2012 05:09:58 -0800
| Newsgroups | gmane.comp.java.grinder.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3497560, was opened at 2012-03-06 04:57 Message generated for change (Comment added) made by bushwakko You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3497560&group_id=18598 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Open Resolution: None Priority: 3 Private: No Submitted By: Anders Storsveen (bushwakko) Assigned to: Philip Aston (philipa) Summary: Enabling grinder.debug.singleprocess = true breaks my script Initial Comment: I have a script that currently works, and wanted to enable singleprocess because I'm getting _no_ errors when things run by workers fail for some reason. However, just enabling singleprocess makes the script exit early with the following error: 2012-03-06 13:56:29,632 INFO agent: worker macwakko.local-0 started 2012-03-06 13:56:32,064 ERROR worker-bootstrap: Error running worker process net.grinder.scriptengine.jython.JythonScriptExecutionException: Java exception initialising test script request101 = Test(101, 'GET film').wrap(request101) File "./../../Documents/workspaces/comoyo/grinder/src/withlogin.py", line 116, in <module> net.grinder.script.NotWrappableTypeException: Failed to wrap https://staging.comoyo.no Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 at net.grinder.engine.process.MasterInstrumenter.createInstrumentedProxy(MasterInstrumenter.java:69) ~[grinder-core-3.7.1.jar:na] at net.grinder.engine.process.TestData.createProxy(TestData.java:105) ~[grinder-core-3.7.1.jar:na] at net.grinder.script.Test.wrap(Test.java:99) ~[grinder-core-3.7.1.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_29] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_29] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_29] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_29] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186) ~[jython.jar:na] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204) ~[jython.jar:na] at org.python.core.PyObject.__call__(PyObject.java:404) ~[jython.jar:na] at org.python.core.PyObject.__call__(PyObject.java:408) ~[jython.jar:na] at org.python.core.PyMethod.__call__(PyMethod.java:124) ~[jython.jar:na] at org.python.pycode._pyx1.f$0(./../../Documents/workspaces/comoyo/grinder/src/withlogin.py:1736) ~[na:na] at org.python.pycode._pyx1.call_function(./../../Documents/workspaces/comoyo/grinder/src/withlogin.py) ~[na:na] at org.python.core.PyTableCode.call(PyTableCode.java:165) ~[jython.jar:na] at org.python.core.PyCode.call(PyCode.java:18) ~[jython.jar:na] at org.python.core.Py.runCode(Py.java:1261) ~[jython.jar:na] at org.python.core.__builtin__.execfile_flags(__builtin__.java:522) ~[jython.jar:na] at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225) ~[jython.jar:na] at net.grinder.scriptengine.jython.JythonScriptEngine.<init>(JythonScriptEngine.java:119) ~[grinder-core-3.7.1.jar:na] at net.grinder.scriptengine.jython.JythonScriptEngineService.createScriptEngine(JythonScriptEngineService.java:105) ~[grinder-core-3.7.1.jar:na] at net.grinder.engine.process.ScriptEngineContainer.getScriptEngine(ScriptEngineContainer.java:105) ~[grinder-core-3.7.1.jar:na] at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:380) ~[grinder-core-3.7.1.jar:na] at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87) ~[grinder-core-3.7.1.jar:na] at net.grinder.engine.agent.IsolatedGrinderProcessRunner.run(IsolatedGrinderProcessRunner.java:53) [grinder-core-3.7.1.jar:na] at net.grinder.engine.agent.DebugThreadWorker$1.run(DebugThreadWorker.java:63) [grinder-core-3.7.1.jar:na] Why should setting single process change anything? ---------------------------------------------------------------------- >Comment By: Anders Storsveen (bushwakko) Date: 2012-03-06 05:09 Message: this worked: java -cp /Users/wakko/jython2.5.2/jython.jar:lib/* -javaagent:lib/grinder-dcr-agent-3.7.1.jar net.grinder.Grinder grinder.properties thank you ---------------------------------------------------------------------- Comment By: Philip Aston (philipa) Date: 2012-03-06 05:02 Message: You probably have no instrumenters. The Grinder log file will tell you that. NB, if you are relying on the DCR instrumenter (e.g. you are using Jython 2.5), you need to modify the command line when starting the agent. This is documented under grinder.debug.singleprocess at http://grinder.sourceforge.net/g3/properties.html ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3497560&group_id=18598 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d