If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 9.5 Export in Codepage=1208 Fails

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-08, 05:19
sureshd1976 sureshd1976 is offline
Registered User
 
Join Date: Jul 2008
Posts: 4
DB2 9.5 Export in Codepage=1208 Fails

Hi,

We recently upgraded our DB2 Server and Client from DB2 8.1 FP14 to DB2 9.5FP1. After the upgrade we notice that the data exported in DEL format with "modified by codepage=1208" while being read by a java class fails with following exception.

sun.io.MalformedInputException
at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java: 270)
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(S treamDecoder.java:287)
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(Stre amDecoder.java:337)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:2 23)
at java.io.InputStreamReader.read(InputStreamReader.j ava:208)
at java.io.BufferedReader.fill(BufferedReader.java:15 3)
at java.io.BufferedReader.readLine(BufferedReader.jav a:316)
at java.io.BufferedReader.readLine(BufferedReader.jav a:379)
at Test.main(Test.java:35)

It works fine on DB2 8.1 FP14. And the database codepage on both the versions is 1208. Also I tried setting db2set parameter DB2CODEPAGE=1208 on the client but didn't help.

When the export is done on 8.1 and open the file in notepad, it shows the format to be UTF-8. And in the case of 9.5 the format is ANSI.

Further investigation shows that when I try to read the exported file with Sun JDK, it works fine for 8.1 and 9.5. However, it fails with above exception when I use IBM JDK only in 9.5.

Any help with this problem will be appreciated.

Suresh Durgappa
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On