db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Katherine Marsden <kmarsdende...@sbcglobal.net>
Subject Re: 40XD0: "Container has been closed"?
Date Sat, 03 Nov 2012 19:06:08 GMT
On 11/3/2012 4:15 AM, John English wrote:
> S
> -------
> java.sql.SQLException: An IOException was thrown when reading a 
> 'java.lang.String' from an InputStream.
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
>     at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown 
> Source)
>     at 
> org.apache.derby.impl.jdbc.EmbedResultSet.noStateChangeException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.EmbedResultSet.getString(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.EmbedResultSet.getString(Unknown 
> Source)
>     at utils.Results.getString(Results.java:169)
>     at utils.TestDetails.<init>(TestDetails.java:202)
>     at utils.TestServer.run(TestServer.java:95)
> Caused by: java.sql.SQLException: An IOException was thrown when 
> reading a 'java.lang.String' from an InputStream.
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown 
> Source)
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown

> Source)
>     ... 10 more
> Caused by: java.sql.SQLException: Java exception: 'ERROR 40XD0: 
> Container has been closed.: java.io.IOException'.
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown 
> Source)
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown

> Source)
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
>     at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown 
> Source)
>     ... 7 more
> Caused by: java.io.IOException: ERROR 40XD0: Container has been closed.
>     at 
> org.apache.derby.impl.store.raw.data.OverflowInputStream.fillByteHolder(Unknown 
> Source)
>     at 
> org.apache.derby.impl.store.raw.data.BufferedByteHolderInputStream.read(Unknown 
> Source)
>     at java.io.DataInputStream.read(Unknown Source)
>     at org.apache.derby.iapi.types.SQLClob.readExternal(Unknown Source)
>     at org.apache.derby.iapi.types.SQLChar.getString(Unknown Source)
>     ... 5 more
> Caused by: ERROR 40XD0: Container has been closed.
>     at 
> org.apache.derby.iapi.error.StandardException.newException(Unknown 
> Source)
>     at 
> org.apache.derby.impl.store.raw.data.BaseContainerHandle.checkOpen(Unknown 
> Source)
>     at 
> org.apache.derby.impl.store.raw.data.BaseContainerHandle.getPage(Unknown 
> Source)
>     ... 10 more
> java.sql.SQLException: An IOException was thrown when reading a 
> 'java.lang.String' from an InputStream.
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
>     at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown 
> Source)
>     at 
> org.apache.derby.impl.jdbc.EmbedResultSet.noStateChangeException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.EmbedResultSet.getString(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.EmbedResultSet.getString(Unknown 
> Source)
>     at utils.Results.getString(Results.java:169)
>     at utils.TestDetails.<init>(TestDetails.java:183)
>     at utils.TestServer.run(TestServer.java:95)
> Caused by: java.sql.SQLException: An IOException was thrown when 
> reading a 'java.lang.String' from an InputStream.
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown 
> Source)
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown

> Source)
>     ... 10 more
> Caused by: java.sql.SQLException: Java exception: 'ERROR 40XD0: 
> Container has been closed.: java.io.IOException'.
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown 
> Source)
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown

> Source)
>     at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown 
> Source)
>     at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
>     at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown 
> Source)
>     ... 7 more
> Caused by: java.io.IOException: ERROR 40XD0: Container has been closed.
>     at 
> org.apache.derby.impl.store.raw.data.OverflowInputStream.fillByteHolder(Unknown 
> Source)
>     at 
> org.apache.derby.impl.store.raw.data.BufferedByteHolderInputStream.read(Unknown 
> Source)
>     at java.io.DataInputStream.read(Unknown Source)
>     at org.apache.derby.iapi.types.SQLClob.readExternal(Unknown Source)
>     at org.apache.derby.iapi.types.SQLChar.getString(Unknown Source)
>     ... 5 more
> Caused by: ERROR 40XD0: Container has been closed.
>     at 
> org.apache.derby.iapi.error.StandardException.newException(Unknown 
> Source)
>     at 
> org.apache.derby.impl.store.raw.data.BaseContainerHandle.checkOpen(Unknown 
> Source)
>     at 
> org.apache.derby.impl.store.raw.data.BaseContainerHandle.getPage(Unknown 
> Source)
>     ... 10 more
>
This has the feel of two threads using the same Connection and one 
commits or rolls back without coordination with the other. Typically 
each thread should have it's own connection.  Do you have a separate 
connection for each thread and if so, what is the isolation level?

Thanks

Kathey




Mime
View raw message