Fixes are available
DB2 Version 9.1 Fix Pack 7 for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 5 for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 6 for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 6a for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 7a for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 8 for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 9 for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 10 for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 11 for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 12 for Linux, UNIX and Windows
APAR status
Closed as program error.
Error description
From manual. http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?top ic=/com.ibm.db2.udb.apdv.embed.doc/doc/c0022545.htm For Java or .NET applications, no encoding declaration is added, unless you cast the data as the com.ibm.db2.jcc.DB2Xml type, and use a getDB2Xmlxxx method to retrieve the data. The declaration that is added depends on the getDB2Xmlxxx that you use. However Legacy JDBC Type 2 Driver is adding Byte Order Mark(BOM) and XML declaration. Here is result of output. ResultSet rset = stmt.executeQuery( "select info from customer where cid=1002 " ); info = rset.getString( "info" ); System.out.println(info); ?<?xml version="1.0" encoding="UTF-16" ?><customerinfo... First ? is BOM(0x0XFEFF) The following output is expected. <customerinfo...
Local fix
Add db2cli.ini in COMMON section as below [COMMON] XMLDeclaration=0
Problem summary
From manual. http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?top ic=/com.ibm.db2.udb.apdv.embed.doc/doc/c0022545.htm For Java or .NET applications, no encoding declaration is added, unless you cast the data as the com.ibm.db2.jcc.DB2Xml type, and use a getDB2Xmlxxx method to retrieve the data. The declaration that is added depends on the getDB2Xmlxxx that you use. However Legacy JDBC Type 2 Driver is adding Byte Order Mark(BOM) and XML declaration. Here is result of output. ResultSet rset = stmt.executeQuery( "select info from customer where cid=1002 " ); info = rset.getString( "info" ); System.out.println(info); ?<?xml version="1.0" encoding="UTF-16" ?><customerinfo... First ? is BOM(0x0XFEFF) The following output is expected. <customerinfo...
Problem conclusion
Problem was first fixed in DB2 UDB Version 9.1 FixPack 5
Temporary fix
Comments
APAR Information
APAR number
JR27844
Reported component name
DB2 UDB ESE WIN
Reported component ID
5765F4101
Reported release
910
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2007-11-30
Closed date
2008-06-24
Last modified date
2008-06-24
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
DB2 UDB ESE WIN
Fixed component ID
5765F4101
Applicable component levels
R910 PSN
UP
Document Information
Modified date:
07 October 2021