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 > Data Access, Manipulation & Batch Languages > JAVA > Exception in thread "main" java.lang.NoSuchMethodError

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-01-07, 07:02
vijaygandhi559 vijaygandhi559 is offline
Registered User
 
Join Date: Aug 2007
Posts: 1
Exception in thread "main" java.lang.NoSuchMethodError

Hi,
I am trying to access a database table from my java program, though my connection is successfull....i cannot access specified table, the exception is while retrieving the record set. However, i can retrieve some of the columns of the table, the issue might be with the some columns in the table, due to some character encoding.

Exception is during run time.
My installed jreversion is : JRE 1.5.0_11
The error message is as follows.

Exception in thread "main" java.lang.NoSuchMethodError: sun.io.ByteToCharSingleB
yte.createCharMap(Ljava/lang/String;Z)[C
at sun.io.ByteToCharCp037.<clinit>(ByteToCharCp037.ja va:84)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sun.io.Converters.getConverterClass(Unknown Source)
at sun.io.Converters.newConverter(Unknown Source)
at sun.io.ByteToCharConverter.getConverter(Unknown Source)
at com.ibm.db2.jcc.a.bs.b(bs.java:1989)
at com.ibm.db2.jcc.a.bs.a(bs.java:1926)
at com.ibm.db2.jcc.a.d.a(d.java:1079)
at com.ibm.db2.jcc.a.bd.a(bd.java:1452)
at com.ibm.db2.jcc.a.bd.m(bd.java:495)
at com.ibm.db2.jcc.a.bd.i(bd.java:217)
at com.ibm.db2.jcc.a.bd.c(bd.java:54)
at com.ibm.db2.jcc.a.r.c(r.java:53)
at com.ibm.db2.jcc.a.bp.h(bp.java:156)
at com.ibm.db2.jcc.b.ce.j(ce.java:880)
at com.ibm.db2.jcc.b.ce.a(ce.java:1313)
at com.ibm.db2.jcc.b.ce.executeQuery(ce.java:253)
at DB2Connector.main(DB2Connector.java:60)


I have tried adding the charsets.jar to the class path also.

Help would be greatly apprecitated . Thank you .
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On