Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Oracle, JDBC, LONG datatype problem... Help!

Oracle, JDBC, LONG datatype problem... Help!

From: JP Moresmau <jeffries_at_indigo.ie>
Date: Mon, 4 Oct 1999 11:01:32 +0100
Message-ID: <7t9tn8$nqk$1@ezekiel.eunet.ie>


Hi all, I am developping a site with servlets connecting back to an Oracl DB with JDBC. I have two different platform. One is running Oracle 8.0.5 on NT, the other Oracle 8i on HPUX. The databases are the same, one havn't been exported and imported into the other. Everything is working fine on the NT box, but the same servlet code failts on the HPUX machine with 8i when I try to retrieve a Long value. I tried the getString() method, and I tired to read the Stream directly, to no avail. This is what I get:

java.lang.ArrayIndexOutOfBoundsException: 1
at oracle.jdbc.ttc7.NonPlsqlTTCColumn.unmarshal(NonPlsqlTTCColumn.java)
at oracle.jdbc.ttc7.NonPlsqlTTCDataSet.unmarshalRow(NonPlsqlTTCDataSet.java)
at oracle.jdbc.ttc7.TTIrxd.unmarshal(TTIrxd.java)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java)
at oracle.jdbc.driver.OracleStatement.fetchNextColumns(OracleStatement.java)
at oracle.jdbc.driver.OracleInputStream.needBytes(OracleInputStream.java)
at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java)
at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java)
at oracle.jdbc.driver.OracleStatement.getBytesInternal(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java)
at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java) at ...
my code...

Somebody has an idea? I use Long values because varchar2 are too short for what I need, but varchar2 works fine...

Thanks very much!

JP Moresmau
jeffries_at_indigo.ie Received on Mon Oct 04 1999 - 05:01:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US