db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Borgoltz <alexandre.borgo...@smartjog.com>
Subject Stream already closed
Date Wed, 12 Oct 2005 07:49:40 GMT
Hi,

This is the first time I use DdlUtils and I am facing a problem:

I get a SQLException stating that the "stream is already closed".
It occurs in at org.apache.ddlutils.io.JdbcModelReader.getValueAsString
for the "COLUMN_DEF" column.

I am using an oracle 8.1.7 DB with 10g jdbc drivers.

Here is the stack trace - as you can see, I am using the ant task, with 
the sample xml provided on DdlUtils' site.

java.sql.SQLException: Le flux de données est déjà fermé
at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.LongAccessor.getBytes(LongAccessor.java:166)
at oracle.jdbc.driver.LongAccessor.getString(LongAccessor.java:207)
at oracle.jdbc.driver.T4CLongAccessor.getString(T4CLongAccessor.java:390)
at 
oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:355)
at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1559)
at 
org.apache.ddlutils.io.JdbcModelReader.getValueAsString(JdbcModelReader.java:494)
at 
org.apache.ddlutils.io.JdbcModelReader.getColumnsForTable(JdbcModelReader.java:277)
at 
org.apache.ddlutils.io.JdbcModelReader.getTables(JdbcModelReader.java:205)
at 
org.apache.ddlutils.io.JdbcModelReader.getDatabase(JdbcModelReader.java:140)
at 
org.apache.ddlutils.task.DatabaseToDdlTask.readSchema(DatabaseToDdlTask.java:194)
at 
org.apache.ddlutils.task.DatabaseToDdlTask.execute(DatabaseToDdlTask.java:214)

Is it a bug or something I am doing wrong?

TIA,

-- 
Alexandre BORGOLTZ
Head of Technology

SmartJog SA
Phone: +33 (0)1 4996 6324
Fax: +33 (0)1 4996 6405
Mobile: +33 (0)6 8882 1417
alexandre.borgoltz@smartjog.com

Mime
View raw message