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 156964 - NullPointerException at org.netbeans.modules.db.dataview.output.SQLStatementGenerator.generateInsertStatement
Summary: NullPointerException at org.netbeans.modules.db.dataview.output.SQLStatementG...
Status: RESOLVED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks: 154926 155004
  Show dependency tree
 
Reported: 2009-01-16 17:19 UTC by Roman Mostyka
Modified: 2009-04-08 13:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 145276


Attachments
stacktrace (4.93 KB, text/plain)
2009-01-16 17:19 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2009-01-16 17:19:01 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments:
romanmostyka: 1. Install the NetBeans IDE 6.5 Full distribution.
2. Make sure that the 6.5 IDE home directory doesn't exist. If it exists, please delete it (or rename it).
3. Update the IDE with the latest patch from stable AUC.
4. After the IDE start, select the menu Tools -> Plugins and select the tab "Available Plugins".
5. Install the plugin "UML".
6. Exit the IDE and  start it again !!
7. Select menu Tools -> Plugins and select the tab "Settings"
8. Add two new UCs with following URLs: 
 - http://bits.netbeans.org/netbeans/6.5/fixes/2009-01-15_22-31-01/uc2/catalog.xml.gz
 - http://bits.netbeans.org/netbeans/6.5/fixes/2009-01-15_22-31-01/uc/catalog.xml.gz
9. Select the tab "Updates" and click on the button "Reload Catalog"
10. Click on the button "Update" and install all 22 plugins.
11. Connect to some DB and expand it's node.
12. Rightclick "Tables" node and choose "Create Table...".
13. Set table name, column name, set VARCHAR for the column type, set "test" as default value and click "OK".
14



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.db.dataview.output.SQLStatementGenerator.generateInsertStatement(SQLStatementGenerator.java:91)
        at org.netbeans.modules.db.dataview.output.InsertRecordDialog.executeBtnActionPerformed(InsertRecordDialog.java:281)
        at org.netbeans.modules.db.dataview.output.InsertRecordDialog.access$000(InsertRecordDialog.java:77)
        at org.netbeans.modules.db.dataview.output.InsertRecordDialog$3.actionPerformed(InsertRecordDialog.java:168)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
Comment 1 Roman Mostyka 2009-01-16 17:19:12 UTC
Created attachment 75913 [details]
stacktrace
Comment 2 Roman Mostyka 2009-01-16 17:24:28 UTC
14. Rightclick created table and choose "View Data...".
15. Press "Insert Record" button, press Ctrl + 1 and click "OK".

Result: NullPointerException appears.
Comment 3 Jiri Rechtacek 2009-02-10 16:07:05 UTC
Reproducible in NB7.0, need to specify size of VARCHAR column to create the table.
Comment 4 Jiri Rechtacek 2009-03-24 16:21:12 UTC
It's not reproducible in recent Nb6.7M3 builds.
Comment 5 pgebauer 2009-04-08 13:58:32 UTC
The status whiteboard "65fixes4-candidate" has been removed.
At this time our proactive patches for the NetBeans 6.5.x IDE have concluded.

If you own a Sun service plan contract for NetBeans, you may wish to contact
Sun Service http://www.sun.com/contact/support.jsp to request a fix via the
product defect escalation process.

For more information on purchasing a Sun service plan contract for NetBeans,
refer to the service plan item "Sun Software Service Plans (S3P) for Developers"
in the Sun Service table found on our NetBeans Support Resources
page http://www.netbeans.org/kb/support.html