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.

Bug 184846 - [69cat] org.postgresql.util.PSQLException: ResultSet not positioned properly, perhaps you need to call next.
Summary: [69cat] org.postgresql.util.PSQLException: ResultSet not positioned properly,...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: REGRESSION
: 184700 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-23 13:37 UTC by gholmer
Modified: 2010-04-24 05:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168438


Attachments
stacktrace (1.10 KB, text/plain)
2010-04-23 13:37 UTC, gholmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gholmer 2010-04-23 13:37:09 UTC
Build: NetBeans IDE Dev (Build 201004220200)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
gholmer: In an SQL command window, entered a query which returned no rows.
Actually, running the same query at the Postgres command line shows me that there should have been exactly one row in the result set.




Stacktrace: 
org.postgresql.util.PSQLException: ResultSet not positioned properly, perhaps you need to call next.
   at org.postgresql.jdbc2.AbstractJdbc2ResultSet.checkResultSet(AbstractJdbc2ResultSet.java:2635)
   at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getInt(AbstractJdbc2ResultSet.java:2005)
   at org.netbeans.modules.db.dataview.util.DBReadWriteHelper.readResultSet(DBReadWriteHelper.java:158)
   at org.netbeans.modules.db.dataview.output.SQLExecutionHelper.loadDataFrom(SQLExecutionHelper.java:509)
   at org.netbeans.modules.db.dataview.output.SQLExecutionHelper.initialDataLoad(SQLExecutionHelper.java:131)
   at org.netbeans.modules.db.dataview.output.DataView.create(DataView.java:102)
Comment 1 gholmer 2010-04-23 13:37:14 UTC
Created attachment 97924 [details]
stacktrace
Comment 2 Jiri Rechtacek 2010-04-23 14:43:28 UTC
A regression caused by changeset rev/1890fa6dbb69, thanks for catching it. Must be fixed ASAP.
Comment 3 Jiri Rechtacek 2010-04-23 14:45:48 UTC
*** Bug 184700 has been marked as a duplicate of this bug. ***
Comment 4 Jiri Rechtacek 2010-04-23 16:29:00 UTC
core-main/rev/2be8b1f0fefa
Comment 5 Quality Engineering 2010-04-24 05:31:01 UTC
Integrated into 'main-golden', will be available in build *201004240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2be8b1f0fefa
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #184846: org.postgresql.util.PSQLException: ResultSet not positioned properly, perhaps you need to call next.