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

SourceForge.net <[email protected]> Thu, 15 Mar 2012 01:55:03 -0700
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 bushwakko
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: Open
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: Anders Storsveen (bushwakko)
Date: 2012-03-15 01:55

Message:
I found them in the logs.... My bad on this one

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

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

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure