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.
Summary: | java.sql.SQLException: Stream has already been closed | ||
---|---|---|---|
Product: | db | Reporter: | Eduardo.m Costa <_m4c0_> |
Component: | Show Data | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | lukeester |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 145309 |
Attachments: | stacktrace |
Description
Eduardo.m Costa
2010-01-28 07:16:12 UTC
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. 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 |