Getting error : Unsupported ccsid, encoding, or locale: "Cp037". ERRORCODE=-4220, SQLSTATE=22021; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException
Tried changing the encoding to UTF-8 in jvm properties in Webspehere console but did not work. Updated DB2 from Db2 v9.9 to DB2 v10.5 but still getting same error. We have pointed java for our workspace to Websphere's java SDK 8.
Answer by Ayron Fears (2550) | Nov 22, 2017 at 04:33 AM
The following DB2 APAR addresses the SQLException "Unsupported ccsid, encoding, or locale" error...
IT07334: JCC DRIVER THROWS AN EXCEPTION: UNSUPPORTED CCSID, ENCODING, OR LOCALE: "CP1047". ERRORCODE=-4220, SQLSTATE=22021
http://www-01.ibm.com/support/docview.wss?uid=swg1IT07334
It is recommended to upgrade the DB2 driver to 10.1 FP 6 or higher. Here is a document which contains links to various DB2 driver versions...
DB2 JDBC Driver Versions and Downloads
https://www-304.ibm.com/support/docview.wss?uid=swg21363866
Why does the managesdk -listAvailable command not execute, or returns nothing ? 1 Answer
Why is WebSphere IBM Java 1.8 update failing on WebSphere 8.5.5, and how to resolve ? 1 Answer
IBM JDK 8 on Windows server 2008 R2 2 Answers
Could not find method getJMSDestination in class com.ibm.mq.jms.MQQueue. 0 Answers
Will BPM support WebSphere 9.0? 1 Answer