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 > CLOB error in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-08, 22:39
lucky1981 lucky1981 is offline
Registered User
 
Join Date: Oct 2008
Posts: 1
CLOB error in DB2

Hi,

I'm not able to find solution for below problem. Can anybody suggest me any solution.

I'm using DB2 9.1 database with Hibernate3

ERROR - [IBM][CLI Driver][DB2/NT] SQL0423N
Locator variable "1" does not currently represent any value. SQLSTATE=0F001


I'm using this code to convert CLOB object to string object

StringBuffer strOut = new StringBuffer();
String aux;
BufferedReader br = new BufferedReader(clob.getCharacterStream());

while ((aux = br.readLine()) != null)
strOut.append(aux);

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-19-08, 08:50
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Turn off auto-commit. Besides WITH HOLD cursors being used by default, this is one of the stupid default configuration settings in JDBC.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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