db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <tom...@gmail.com>
Subject Re: "Stream is already closed" with Oracle9i
Date Sun, 06 Nov 2005 15:17:58 GMT
On 11/6/05, wang lei <wl_95421@yahoo.com.cn> wrote:
> Today j ust get the latest source code.
> I run it on Oracle9i.
> But i got a exception about "Stream is already closed"
>
> I readed all the archive of mail lists.
> i read one of  "Stream is already closed" with Oracle.
>
> http://issues.apache.org/jira/browse/DDLUTILS-29
>
> It told that the bug is fixed.
> I read the comments from 306 to 311 lines.
> But the problem is still there.
> I feel confued.
>
> I am using oracle9i and 10G driver(ojdbc14_g.jar)
> Is there anybody who can tell me about it.
>
> I run the same application on mssql and mysql.
> No exception.
>
> The following is the message of the exception.
>
> Exception in thread "main" java.sql.SQLException: Stream is already closed at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
>  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
>  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
>  at oracle.jdbc.ttc7.LongTTCItem.getChars(LongTTCItem.java:189)
>  at oracle.jdbc.dbaccess.DBDataSetImpl.getCharsStreamItem(DBDataSetImpl.java:1630)
>  at oracle.jdbc.driver.OracleStatement.getCharsInternal(OracleStatement.java:3347)
>  at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java:3556)
>  at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:434)
>  at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1482)
>  at org.apache.ddlutils.platform.JdbcModelReader.getValueAsString(JdbcModelReader.java:560)
>  at org.apache.ddlutils.platform.JdbcModelReader.getColumnsForTable(JdbcModelReader.java:312)
>  at org.apache.ddlutils.platform.JdbcModelReader.getTables(JdbcModelReader.java:258)
>  at org.apache.ddlutils.platform.JdbcModelReader.getDatabase(JdbcModelReader.java:194)
>  at org.apache.ddlutils.TestColumn.main(TestColumn.java:53)

Are you sure you use the latest version ? The line numbers in the
above stacktrace doesn't match with the source code in SVN, e.g. the
call to getColumnsForTable within getTables is on line 230 in the
latest source, not 258 as in the stacktrace.

Tom

Mime
View raw message