Yeah, it pukes if it hits an object that it isn’t prepared for.
Here is a pure Jython wrapper that should help.