Unix Technical Forum

Problem CLOB with Weblogic 7

This is a discussion on Problem CLOB with Weblogic 7 within the Oracle Database forums, part of the Database Server Software category; --> I have a problem with weblogic 7sp2: trying to select a CLOB object from an Oracle 8 DB we ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 08:12 AM
satifal
 
Posts: n/a
Default Problem CLOB with Weblogic 7

I have a problem with weblogic 7sp2:
trying to select a CLOB object from an Oracle 8 DB we are able to get
it but we can not

read it due to the following error (see below).
Using weblogic 6 and the same program code, we do not have any
problem: we get the clob

and we are able to read it.
By the way, the clob's size is only 1 kB!!!!



Salve, ho un problema con weblogic 7 SP2:
recupero un CLOB da un DB Oracle 8 mediante una select e l'oggetto
viene regolarmente

restituito.
Purtroppo quando cerco di leggere il contenuto del CLOB si verifica
l'errore riportato in

fondo insieme al codice coinvolto.
Lo stesso codice funziona correttamente con weblogic 6.
Inoltre il contenuto del CLOB è molto piccolo, circa 1 Kb per cui
l'errore non è dovuto

alle dimensioni eccessive del CLOB.
Se qualcuno ha avuto lo stesso genere di problema potrebbe venirmi
incontro.
Grazie mille.



Codice:

BufferedReader inBuf = null;
Reader in = null;

Clob clob = result.getClob(1);

if (clob != null)
{
in = clob.getCharacterStream();
inBuf = new BufferedReader(in);
String curr = null;
StringBuffer sb = new StringBuffer();
while ((curr = inBuf.readLine()) != null)
sb.append(curr);

text = sb.toString();
}


Errore:

java.io.IOException: La lunghezza del tipo Þ superiore al valore
massimo
at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBEr ror.java:716)
at oracle.jdbc.driver.OracleClobReader.needChars(Orac leClobReader.java:222)
at oracle.jdbc.driver.OracleClobReader.read(OracleClo bReader.java:163)
at java.io.BufferedReader.fill(BufferedReader.java:13 4)
at java.io.BufferedReader.readLine(BufferedReader.jav a:294)
at java.io.BufferedReader.readLine(BufferedReader.jav a:357)
at com.dsdata.gblw.bo.dao.GblwDAOImpl.selectBibliogra fia(GblwDAOImpl.java:1713)
at com.dsdata.gblw.bo.dao.GblwDAOImpl.selectElencoSch edeTit(GblwDAOImpl.java:801)
at com.dsdata.gblw.bo.gblwmgr.helper.GblwHelperImpl.r etrieveElencoSchede
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:41 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com