File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Exception accessing DB2 with Sun JDK Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Exception accessing DB2 with Sun JDK" Watch "Exception accessing DB2 with Sun JDK" New topic

Exception accessing DB2 with Sun JDK

Terry Milan

Joined: Feb 01, 2004
Posts: 15
I am using a Sun 1.4.2 JDK and the db2jcc.jar type 4 driver attempting to access a DB2 database running in OS/390. Each time I run I receive the following exception:

SQLException caught sending request:unsupported encoding Cp037

The type 4 driver trace facility shows that returned data is encoded as EBCDIC, character set cp037. When running with a Sun JVM this throws an exception, however, when I run the same application with an IBM JVM, there is no problem.

Can anyone suggest a work around?

wood burning stoves
subject: Exception accessing DB2 with Sun JDK
It's not a secret anymore!