[ grinder-Bugs-3008924 ] Jython 2.5 - assertion error if script has __del__ method

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.grinder.devel
Message-ID <[email protected]>
Bugs item #3008924, was opened at 2010-05-29 11:55
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3008924&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: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Philip Aston (philipa)
Assigned to: Philip Aston (philipa)
Summary: Jython 2.5 - assertion error if script has __del__ method

Initial Comment:
Thomas Falkenberg writes:

after upgrading to grinder 3.4 and jython 2.5.1 (windows XP, jdk 1.6)
and applying patch 2988755 I got my scripts basically working, but the
disableDel method throws the following error at the end of each run: 

Exception in thread "Grinder thread 4" java.lang.AssertionError:
java.lang.IllegalArgumentException: Can not set org.python.core.PyClass
field org.python.core.PyInstance.instclass to org.python.core.PyJavaType
    at
net.grinder.engine.process.jython.JythonScriptEngine$JythonVersionAdapte
r.disableDel(JythonScriptEngine.java:300)
    at
net.grinder.engine.process.jython.JythonScriptEngine$JythonWorkerRunnabl
e.shutdown(JythonScriptEngine.java:239)
    at
net.grinder.engine.process.GrinderThread.run(GrinderThread.java:160)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Can not set
org.python.core.PyClass field org.python.core.PyInstance.instclass to
org.python.core.PyJavaType
    at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Uns
afeFieldAccessorImpl.java:146)
    at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Uns
afeFieldAccessorImpl.java:150)
    at
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorI
mpl.java:63)
    at java.lang.reflect.Field.set(Field.java:657)
    at
net.grinder.engine.process.jython.JythonScriptEngine$JythonVersionAdapte
r.disableDel(JythonScriptEngine.java:297)
    ... 3 more



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

>Comment By: SourceForge Robot (sf-robot)
Date: 2010-06-29 02:20

Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 30 days (the time period specified by
the administrator of this Tracker).

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

Comment By: Philip Aston (philipa)
Date: 2010-05-29 13:17

Message:
http://grinder.svn.sourceforge.net/viewvc/grinder?view=rev&revision=4256

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

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

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.