Issue861150

classification
Title: exception creating an nstance thrown by PyJavaClass.setConst
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki
Priority: normal Keywords:

Created on 2003-12-16.18:26:04 by anonymous, last changed 2005-10-31.19:12:23 by fwierzbicki.

Messages
msg882 (view) Author: Nobody/Anonymous (nobody) Date: 2003-12-16.18:26:04
Sometimes when creating an Instance of a class the
following Exception will happen:

java.lang.NullPointerException

        at
org.python.core.PyJavaClass.setConstructors(PyJavaClass.java)
        at
org.python.core.PyJavaClass.initConstructors(PyJavaClass.java)
        at
org.python.core.PyJavaClass.__call__(PyJavaClass.java)
        at org.python.core.PyObject.__call__(PyObject.java)

Jython appears to have trouble creating an instance of
classes that were dynamically added.


WORKAROUND...

To avoid this problem, put the class in Java's
Classpath before starting Jython.
msg883 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2005-10-31.19:12:23
Logged In: YES 
user_id=193969

This bug report is a little too vague to be useful.  A code
sample might have helped.  Closing.
History
Date User Action Args
2003-12-16 18:26:04anonymouscreate