Jaydebeapi giving error in python for CharConversionException

242 Views Asked by At

Getting CharConversionException in python Jaydebeapi when trying to pull data ? Not sure where how to set db2.jcc.charsetDecoderEncoder property in python to resolve this.

Exact error - com.ibm.db2.jcc.am.SqlException: com.ibm.db2.jcc.am.SqlException: [jcc][t4][1065][12306][4.25.13] Caught java.io.CharConversionException. See attached Throwable for details. ERRORCODE=-4220, SQLSTATE=null

Please help in setting charsetDecoderEncoder property in python. Thanks in advance!

1

There are 1 best solutions below

3
On

Since you've tagged this with WebSphere, I assume you're trying to use wsadmin to invoke a jython script, if so do something like wsadmin -D<propName>=<propValue> -f myJythonScript.py.