[ grinder-Bugs-3497581 ] Errors in workers just fail silently

SourceForge.net <[email protected]> Thu, 08 Mar 2012 10:30:30 -0800
Newsgroups gmane.comp.java.grinder.devel
Message-ID <[email protected]>
Bugs item #3497581, was opened at 2012-03-06 05:14
Message generated for change (Comment added) made by philipa
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3497581&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: Core engine
Group: None
>Status: Pending
>Resolution: Works For Me
>Priority: 3
Private: No
Submitted By: Anders Storsveen (bushwakko)
>Assigned to: Philip Aston (philipa)
Summary: Errors in workers just fail silently

Initial Comment:
If I do something wrong like: 


    urllib.urlencode("test")


inside the TestRunner class, the run just stops with :finished

I just tried with singleprocess, and it's the same thing. 

Doing the obvious error outside the TestRunner class gives error:

2012-03-06 14:13:25,797 ERROR worker-bootstrap: Error running worker process
net.grinder.scriptengine.jython.JythonScriptExecutionException: <type 'exceptions.TypeError'>: not a valid non-string sequence or mapping object
	raise TypeError
	File "/Users/wakko/jython2.5.2/Lib/urllib.py", line 1236, in urlencode
	urllib.urlencode("test")
	File "./../../Documents/workspaces/comoyo/grinder/src/withlogin.py", line 556, in <module>

Is there any way of getting error messages from inside workers?



----------------------------------------------------------------------

>Comment By: Philip Aston (philipa)
Date: 2012-03-08 10:30

Message:
This is by design. If an exception is thrown by the __call__() method will
be logged, and the run will be aborted, but the thread isn't terminated.

If you want to do something different, catch the exception in your
__call__() method. E.g. you could call grinder.stopThisWorkerThread().

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3497581&group_id=18598

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/