Issue while debugging

View: New views
1 Messages — Rating Filter:   Alert me  

Issue while debugging

by kamalakar vadla :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi ,

i am using grinderstone for debuging the script.
when debugging the script following error is throwing, could anybody tell why this error is ocured.?

PS: this script works fine in normal grinder run..

Strack Trace::
=============
5/11/09 8:04:30 PM (process kamalakar-desktop-0): Error running worker process (Java exception initialising test script
    File "/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/tasks/scritp1.py", line 268, in run
    File "/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/framework/Scenario.py", line 62, in run
    File "/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/tasks/Scenario1.py", line 24, in __call__
    File "<string>", line 1, in ?
    File "/home/kamalakar/eclipse3.5/plugins/com.googlecode.grinderstone_2.0.1/pysrc/grinder-debugger.py", line 55, in run
    File "/home/kamalakar/eclipse3.5/plugins/com.googlecode.grinderstone_2.0.1/pysrc/grinder-debugger.py", line 80, in ?)
Java exception initialising test script
    File "/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/tasks/scritp1.py", line 268, in run
    File "/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/framework/Scenario.py", line 62, in run
    File "/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/tasks/Scenario1.py", line 24, in __call__
    File "<string>", line 1, in ?
    File "/home/kamalakar/eclipse3.5/plugins/com.googlecode.grinderstone_2.0.1/pysrc/grinder-debugger.py", line 55, in run
    File "/home/kamalakar/eclipse3.5/plugins/com.googlecode.grinderstone_2.0.1/pysrc/grinder-debugger.py", line 80, in ?
Caused by: net.grinder.engine.common.EngineException: Only Worker Threads can invoke tests
    at net.grinder.engine.process.TestData$InstrumentationHolderThreadLocal.getHolder(TestData.java:135)
    at net.grinder.engine.process.TestData.startTest(TestData.java:100)
    at net.grinder.engine.process.jython.JythonScriptEngine$PyDispatcher.dispatch(JythonScriptEngine.java:478)
    at net.grinder.engine.process.jython.InstrumentationHelper.dispatch(InstrumentationHelper.java:103)
    at net.grinder.engine.process.jython.InstrumentedPyJavaInstanceForPyMethods.invoke(InstrumentedPyJavaInstanceForPyMethods.java:127)
    at org.python.core.PyInstance.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyInstance.invoke(Unknown Source)
    at torqueo.test.tasks.scritp1$py.run$11(/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/tasks/scritp1.py:268)
    at torqueo.test.tasks.scritp1$py.call_function(/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/tasks/scritp1.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyInstance.invoke(Unknown Source)
    at torqueo.test.framework.Scenario$py.run$8(/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/framework/Scenario.py:62)
    at torqueo.test.framework.Scenario$py.call_function(/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/framework/Scenario.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyInstance.invoke(Unknown Source)
    at org.python.pycode._pyx1.__call__$2(/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/tasks/Scenario1.py:24)
    at org.python.pycode._pyx1.call_function(/home/kamalakar/Performance/grinder-3.2/scripts/scripts/torqueo/test/tasks/Scenario1.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyInstance.invoke(Unknown Source)
    at org.python.pycode._pyx2.f$0(<string>:1)
    at org.python.pycode._pyx2.call_function(<string>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.Py.exec(Unknown Source)
    at org.python.pycode._pyx0.run$2(/home/kamalakar/eclipse3.5/plugins/com.googlecode.grinderstone_2.0.1/pysrc/grinder-debugger.py:55)
    at org.python.pycode._pyx0.call_function(/home/kamalakar/eclipse3.5/plugins/com.googlecode.grinderstone_2.0.1/pysrc/grinder-debugger.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx0.f$0(/home/kamalakar/eclipse3.5/plugins/com.googlecode.grinderstone_2.0.1/pysrc/grinder-debugger.py:80)
    at org.python.pycode._pyx0.call_function(/home/kamalakar/eclipse3.5/plugins/com.googlecode.grinderstone_2.0.1/pysrc/grinder-debugger.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.__builtin__.execfile_flags(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at net.grinder.engine.process.jython.JythonScriptEngine.initialise(JythonScriptEngine.java:96)
    at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:234)
    at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:87)
    at net.grinder.engine.agent.IsolatedGrinderProcessRunner.run(IsolatedGrinderProcessRunner.java:54)
    at net.grinder.engine.agent.DebugThreadWorker$1.run(DebugThreadWorker.java:65)


--
Kamalakar.Vadla
Pramati Technologies Pvt Ltd
Begumpet

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use