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 167173

Summary: "Grab Structure" throws "Unable to grab table: Java.sql.SQLException:Invalid Operation at Current Posistion"
Product: db Reporter: invented0 <invented0>
Component: CodeAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description invented0 2009-06-16 17:16:20 UTC
Netbeans 6.7 RC2 on Windows Vista Business 32-bit.
Reproducible: Always

Created a new database using the "Services -> Database -> Java DB" panel. Created one table with three columns and three 
rows. When I right click the table, click "Grab Structure" and then click on "Save" on the filechooser dialog, an error 
message pops up with the message: "Unable to grab table: Java.sql.SQLException:Invalid Operation at Current Position". I 
did not see any trace in the log file (viewed in the IDE and not from Windows Explorer).

After a couple of minutes, I see the following two exceptions in the IDE Log file (again from the IDE). 

"SEVERE [global] java.lang.IndexOutOfBoundsException: Invalid index  at 
javax.swing.DefaultRowSorter.convertRowIndexToModel(DefaultRowSorter.java:497)"

and

"SEVERE [global] java.lang.NullPointerException at javax.swing.JComponent.repaint(JComponent.java:4748)"

It did not look like the exceptions were thrown/logged right away when the above error dialog was shown. Also, the 
"exception" in the error message shown is not relevant to the exceptions logged in the IDE log file.
Comment 1 Petr Blaha 2009-06-17 11:18:28 UTC

*** This issue has been marked as a duplicate of 167175 ***