[ 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 12:55
Message generated for change (Tracker Item Submitted) made by philipa
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: Open
Resolution: None
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



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

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

------------------------------------------------------------------------------
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.