You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-user@db.apache.org by wang lei <wl...@yahoo.com.cn> on 2005/11/06 15:21:49 UTC
"Stream is already closed" with Oracle9i
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)
---------------------------------
无限容量雅虎相册,原图等大下载,超快速度,赶快抢注!
Re: "Stream is already closed" with Oracle9i
Posted by Thorbjørn Ravn Andersen <th...@gmail.com>.
Thomas Dudziak wrote:
>I am using oracle9i and 10G driver(ojdbc14_g.jar)
>
>
I got the configuration you describe to work the other day with the
latest version from SVN and the 10g drivers (it failed with the version
9i jdbc driver).
Has this issue been reported to oracle?
--
Thorbjørn
Re: "Stream is already closed" with Oracle9i
Posted by Thomas Dudziak <to...@gmail.com>.
On 11/6/05, wang lei <wl...@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