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 144317 - Creating New Derby Table causes Result Set Not Open Exception
Summary: Creating New Derby Table causes Result Set Not Open Exception
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: John Baker
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-08-18 22:02 UTC by nthompson
Modified: 2008-08-22 02:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace, steps to reproduce. (2.85 KB, text/plain)
2008-08-18 22:20 UTC, nthompson
Details
invalid cursor position (1.75 KB, text/plain)
2008-08-19 07:48 UTC, John Baker
Details
log file with exception (64.49 KB, text/plain)
2008-08-22 00:12 UTC, John Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nthompson 2008-08-18 22:02:52 UTC
While working through the NetBeans tutorial, "Using Java Persistence API Within a Visual Web JSF Application," it is
necessary to first create a users table in the Derby sample database. A program exception, "Result Set not open," is
generated when the database Tables folder is refreshed after running the script to create and populate the table.
Comment 1 nthompson 2008-08-18 22:19:05 UTC
Correction version is NetBeans 6.5Beta.

The following attachment contains the exception output and the detailed steps necessary to reproduce the problem.
Comment 2 nthompson 2008-08-18 22:20:39 UTC
Created attachment 67747 [details]
Stack trace, steps to reproduce.
Comment 3 John Baker 2008-08-19 07:47:27 UTC
Thank you for the clear instructions to reproduce.  Very helpful.

An exception occurred for me to but somewhat different but related to some problem with the ResultSet.  I'll attach the
exception.

Comment 4 John Baker 2008-08-19 07:48:37 UTC
Created attachment 67762 [details]
invalid cursor position
Comment 5 John Baker 2008-08-20 02:25:40 UTC
I tried the steps again today and could not reproduce, but I wonder if there was a related bug that just got fixed.
Comment 6 John Baker 2008-08-20 22:49:28 UTC
Roman, could you please try to reproduce also
Comment 7 nthompson 2008-08-21 04:15:07 UTC
Just to satisfy my own curiosity and confirm that the problem was not limited to my heavily abused work environment, I
installed Java JDK 1.6.0_07 (32-bit) and the NetBeans 6.5 Beta to a machine running 64-bit Windows XP. This is a home
machine that has otherwise nothing running on it except a mail client and a word processor. The steps previously posted
to reproduce this problem were followed precisely, and thankfully for me anyway, the very same "ResultSet not open"
exception occurred. The problem seems to be repeatable. The Derby server version for what it's worth is  "Apache Derby
Network Server - 10.2.2.1 - (538595) started and ready to accept connections on port 1527 at 2008-08-21 02:46:49.875
GMT" when started. 
Comment 8 Roman Mostyka 2008-08-21 18:46:13 UTC
I wasn't able to reproduce this issue on my Mac OS X.
Comment 9 John Baker 2008-08-21 19:49:29 UTC
thanks Roman.

It's possible a bug was fixed since beta but I'll need to try some more using the same environment as the reporter
Comment 10 John Baker 2008-08-21 22:49:06 UTC
Finally, the Result set exception occurred, but only when I tried to delete the USERS table after it was created.
May be some race condition?
Comment 11 John Baker 2008-08-22 00:06:33 UTC
I tested using the latest trunk build and could not reproduce the exception, even when deleting the table.
http://bits.netbeans.org/download/trunk/nightly/latest/bundles/netbeans-trunk-nightly-200808210201-java-windows.exe

I'll ask to find out if any changes were made in the area where the exception occurred.

Also, if the reporter could try the latest trunk build to see if the exception still occurs.
Comment 12 John Baker 2008-08-22 00:12:52 UTC
Created attachment 68071 [details]
log file with exception
Comment 13 nthompson 2008-08-22 02:17:41 UTC
The development build NetBeans 6.5, 200808210102, was installed. The problem could not be reproduced after many 
attempts although it continues to exist in the 6.5 Beta version.
Comment 14 John Baker 2008-08-22 02:46:11 UTC
nthompson, thank you very much for trying out the latest nightly build.

I'll mark this issue as fixed.  If you run into this again you can reopen this issue.  Thanks and sorry it wasn't fixed
in beta