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 113482 - IllegalStateException appears after using DB Tables menu item "Recreate Table"
Summary: IllegalStateException appears after using DB Tables menu item "Recreate Table"
Status: NEW
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-22 12:54 UTC by _ alexpetrov
Modified: 2013-08-01 12:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (19.13 KB, image/jpeg)
2007-08-22 12:55 UTC, _ alexpetrov
Details
messages.log (1.61 KB, text/plain)
2007-08-22 12:56 UTC, _ alexpetrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexpetrov 2007-08-22 12:54:08 UTC
Product Version: NetBeans IDE Dev (Build 200708200000) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 
System: Windows XP version 5.1 running on x86

1. Connect to DB Derby Travel
2. Use popup menu item "Create Table..." for tree subnode "Tables" under the appropriate jdbc-connection.
3. In the dialog "Create Table" add 1 new column:
   - use "Table name": NEW_TABLE
   - mark the checkbox "Key"
   - use "Column name": data
   - use "Data type": VARCHAR (30)
   Click "OK".
4. Use popup menu item "Grab Structure..." for the created DB table and store the file "NEW_TABLE.grab".
5. Delete the created DB table.
6. Use popup menu item "Recreate Table..." for tree subnode "Tables" and 
   select the stored file "NEW_TABLE.grab".
7. Click "Edit table Script" in the dialog, delete a SQL definition "primary key" in the text area,
   click "OK".

Result:
- warning dialog with IllegalStateException will appear (see the attached screenshot and piece of messages.log)
Comment 1 _ alexpetrov 2007-08-22 12:55:46 UTC
Created attachment 47057 [details]
screenshot
Comment 2 _ alexpetrov 2007-08-22 12:56:12 UTC
Created attachment 47058 [details]
messages.log
Comment 3 David Vancouvering 2008-01-10 00:59:07 UTC
Interesting bug, but it seems pretty unlikely to occur "in the wild".  So I'm setting it to be done in "future" release.
Comment 4 David Vancouvering 2008-01-25 23:55:03 UTC
Lowering priority as it is not a common scenario and has not been reported by users.
Comment 5 Jiri Rechtacek 2009-07-01 07:57:32 UTC
Reassigned to new owner.