Subject | InputStream Closed |
---|---|
Author | Robert DiFalco |
Post date | 2003-06-20T20:12:54Z |
I was wonder if anyone knew why I was getting this exception:
com.tripwire.space.core.SpaceException: Input stream is already closed.
java.io.IOException: Input stream is already closed.
at
org.firebirdsql.jdbc.FBBlob$FBBlobInputStream.checkClosed(FBBlob.java:41
9)
at
org.firebirdsql.jdbc.FBBlob$FBBlobInputStream.read(FBBlob.java:389)
at
java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at
java.util.zip.CheckedInputStream.read(CheckedInputStream.java:42)
at
java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:198)
at
java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:190)
at
java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:130)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68)
at
com.tripwire.space.core.element.DefaultImageManager.getImage(DefaultImag
eManager.java:70)
at
com.tripwire.space.core.element.TestDefaultImageManager.testSetGetImage(
TestDefaultImageManager.java:61)
On this line of code:
final InputStream in = m_mapping.load( txn, versionId );
Ugh.
R.
com.tripwire.space.core.SpaceException: Input stream is already closed.
java.io.IOException: Input stream is already closed.
at
org.firebirdsql.jdbc.FBBlob$FBBlobInputStream.checkClosed(FBBlob.java:41
9)
at
org.firebirdsql.jdbc.FBBlob$FBBlobInputStream.read(FBBlob.java:389)
at
java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at
java.util.zip.CheckedInputStream.read(CheckedInputStream.java:42)
at
java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:198)
at
java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:190)
at
java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:130)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68)
at
com.tripwire.space.core.element.DefaultImageManager.getImage(DefaultImag
eManager.java:70)
at
com.tripwire.space.core.element.TestDefaultImageManager.testSetGetImage(
TestDefaultImageManager.java:61)
On this line of code:
final InputStream in = m_mapping.load( txn, versionId );
>>>> return new GZIPInputStream( in );Damn. I bet it's because I'm closing the result set before I get there.
Ugh.
R.