This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 6.8 (Build 200912041610) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Windows XP User Comments: _m4c0_: I have an Oracle connection. The DBMS was configured to kill the connection after a 5 minutes timeout. Steps: 1. Connect to database at Services TC 2. Right click on database, "Execute command" 3. Executed some random SQL 4. Wait until timeout 5. Tryed to run more SQL (the exception was thrown) 6. Right click on database, "Disconnect" 7. Repeated 2 and 3 (the exception was thrown again - that's the one I'm reporting) Stacktrace: java.sql.SQLException: Stream has already been closed at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:190) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:286) at oracle.jdbc.driver.LongAccessor.getBytes(LongAccessor.java:212) at oracle.jdbc.driver.LongAccessor.getString(LongAccessor.java:281) at oracle.jdbc.driver.T4CLongAccessor.getString(T4CLongAccessor.java:426)
Created attachment 93629 [details] stacktrace
I got this same exception when trying to execute a SELECT on a longvarchar type field (Oracle database)
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145309
The problem is probably caused by reading streamed values (e.g. LONG VARCHAR). In the current implementation, these steps are made to read data: 1. Create a ResultSet for the specified query. 2. Inspect the ResultSet, read database metadata for contained columns. 3. Read values from the ResultSet. In step 2, DatabaseMetaData.getPrimaryKeys is invoked, which closes streams in the result set, and therefore streamed values cannot be read in step 3.
http://hg.netbeans.org/core-main/rev/3e89be6d8ac3 Fixed.
Integrated into 'main-golden', will be available in build *201205100400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/3e89be6d8ac3 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #179959 - java.sql.SQLException: Stream has already been closed