Subject | RE: [Firebird-Java] InputStream Closed |
---|---|
Author | Robert DiFalco |
Post date | 2003-06-20T20:21:05Z |
What if I wanted to have a ResultSet open for the life of a transaction?
Will connection.commit() close any result sets opened in that
transaction?
R.
-----Original Message-----
From: Robert DiFalco
Sent: Friday, June 20, 2003 1:13 PM
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] InputStream Closed
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.
Yahoo! Groups Sponsor
To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Will connection.commit() close any result sets opened in that
transaction?
R.
-----Original Message-----
From: Robert DiFalco
Sent: Friday, June 20, 2003 1:13 PM
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] InputStream Closed
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 );
>>>> return new GZIPInputStream( in );Damn. I bet it's because I'm closing the result set before I get there.
Ugh.
R.
Yahoo! Groups Sponsor
To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.