You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalArgumentException: pointer == 0
at org.jpy.PyObjectState.<init>(PyObjectState.java:20)
at org.jpy.PyObject.<init>(PyObject.java:72)
at org.jpy.PyObject.<init>(PyObject.java:67)
at org.jpy.PyObject.executeCode(PyObject.java:138)
importioimportjpy_j_out=jpy.get_type('java.lang.System').outclassBadFoo(io.TextIOBase):
def__init__(self):
raiseException("I hate fun")
defclose(self):
_j_out.println("time to close")
BadFoo()
With a java initiated python session, calling this as input to PyObject.executeCode(scriptAbove, PyInputMode.SCRIPT); causes the exception shown above.
The text was updated successfully, but these errors were encountered:
we dont know conclusively what the exact path is to failure, but the JPy_ON_JAVA_EXCEPTION_GOTO that happens in jmethod's InvokeMethod might be seeing the java exception set when it returns, and translating that back to python and TextIOBase's close just eats any exception that happens during finalize
With a java initiated python session, calling this as input to
PyObject.executeCode(scriptAbove, PyInputMode.SCRIPT);
causes the exception shown above.The text was updated successfully, but these errors were encountered: