IBM Support

[Db2] Java 8 に移行すると、JDBC アプリケーションがエラー -4220 で失敗することがある

Troubleshooting


Problem

Java アプリケーション・サーバーのアップグレードなどで、Java 8 にアップグレードした場合、これまで正常に動作していた JDBC アプリケーションが -4220 エラーをスローするようになることがあります。

Symptom

Unicode でないデータベースに接続した場合や、文字操作を行った場合に以下のような例外がスローされることがあります。

com.ibm.db2.jcc.am.SqlDataException:
[jcc][t4][10275][10041][3.68.61] サポートされない ccsid、エンコード、またはロケール: "Cp943C"。
ERRORCODE=-4220, SQLSTATE=22021
(コンバーター名は接続先 DB に依存して可変です。)

[jcc][t4][1065][12306][3.64.82] java.io.CharConversionException をキャッチしました。  詳しくは、添付の Throwable を参照してください。
ERRORCODE=-4220, SQLSTATE=null

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"ARM Category":[{"code":"a8m500000008PmVAAU","label":"Programming Interface-\u003EJDBC"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"10.5.0;11.1.0;11.5.0"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
01 May 2025

UID

swg22005262