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 144308 - [65cat] NullPointerException at org.openide.NotifyDescriptor$Exception.<init>
Summary: [65cat] NullPointerException at org.openide.NotifyDescriptor$Exception.<init>
Status: RESOLVED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ ahimanikya
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-18 20:25 UTC by Michel Graciano
Modified: 2008-10-13 12:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 93725


Attachments
stacktrace (619 bytes, text/plain)
2008-08-18 20:25 UTC, Michel Graciano
Details
Updated dataview screen. (76.90 KB, image/jpeg)
2008-10-11 10:09 UTC, _ ahimanikya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2008-08-18 20:25:38 UTC
Build: NetBeans IDE Dev (Build 200808141419)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
Trying to update a value from result set table

Stacktrace: 
java.lang.NullPointerException
        at org.openide.NotifyDescriptor$Exception.<init>(NotifyDescriptor.java:808)
        at org.netbeans.modules.db.dataview.output.SQLStatementExecutor.commitOrRollback(SQLStatementExecutor.java:143)
        at org.netbeans.modules.db.dataview.output.SQLExecutionHelper$3.finished(SQLExecutionHelper.java:325)
        at org.netbeans.modules.db.dataview.output.SQLStatementExecutor.run(SQLStatementExecutor.java:109)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 Michel Graciano 2008-08-18 20:25:53 UTC
Created attachment 67738 [details]
stacktrace
Comment 2 Michel Graciano 2008-08-18 20:26:54 UTC
BTW, the database was updated correctly.
Comment 3 Michel Graciano 2008-08-18 20:40:51 UTC
Sorry... but the database was not updated, my mistake looking it, but the issue still valid.

Regards
Comment 4 _ ahimanikya 2008-08-19 12:54:57 UTC
In general update does works for me, please let me know which database, table etc your are using. 

If you are not using sample database, let me know the create schema, you can get the create script (get from the context
menu of dataview) and select the few rows and create insert script from the context menu. I will look into this if I can
reproduce this.
Comment 5 Roman Mostyka 2008-08-19 15:52:34 UTC
I'm also able to reproduce this issue.
Just tried to commit changes into MySQL server.
Comment 6 Michel Graciano 2008-08-19 16:02:53 UTC
Thanks. I am using oracle and can't send the DB details. BTW, I can't reproduce it now, but happen sometimes.

Regards
Comment 7 _ ahimanikya 2008-08-19 16:36:31 UTC
Roman, I just tried MySQL, and it did work as expected. I need reproducible steps for a given table and dataset. Please
try again and let me know.

Comment 8 Michel Graciano 2008-08-19 17:41:35 UTC
Hi,
as http://wiki.netbeans.org/IssueLifeCycle#section-IssueLifeCycle-EvaluatingIssues, this issue should be marked as
INCOMPLETE before closed as WORKSFORME
Comment 9 _ ahimanikya 2008-08-19 23:43:23 UTC
I did try various update use case on various databases, but I am not able to reproduce this. 
Comment 10 _ ahimanikya 2008-08-28 18:30:26 UTC
OK, Since there is further information from the submitter, I am closing this as INVALID. 
Comment 11 Michel Graciano 2008-08-28 19:16:08 UTC
ahimanikya, can you report more details about it? This is a random problem and I have no reproducible steps.

Regards 
Comment 12 _ ahimanikya 2008-08-28 19:55:43 UTC
Before we were not checking validity of connection, now that we do that I guess we will no longer see these kind Random
issues. Lets close this, when you see the same thing next time, please capture the steps and open a new issue.
Comment 13 Michel Graciano 2008-08-28 20:11:28 UTC
I will mark as verified since I can't simulate it for latest builds. If necessary I reopen it in the future.

Thanks
Comment 14 _ ahimanikya 2008-08-28 20:25:20 UTC
Thanks. Please do capture steps, in case you see this behavior again. 
Comment 15 sunbiz 2008-10-11 06:46:06 UTC
I reproduced this in the latest build 200810100201 with the following steps:
1.) Connect to MySQL Server from Netbeans
2.) Right-click on the MySQL Server and select Create Database
3.) From the dropdown, select Sample Database: vir and check grant full access to root@localhost and press OK
4.) In the connection to vir below, right-click employee table and press Add Column
5.) Give table name "major", keep type bit and press OK
6.) Expand employee table and right-click major and view data
7.) Change the <NULL> values to something and it will be changed to false
8.) Press the commit records icon and the exception is thrown
Comment 16 _ ahimanikya 2008-10-11 10:07:36 UTC
I just did as explained in the steps and it worked without any exception. 

Also this does not look like the same issue as reported earlier, so downgrading to P3, please send me the stacktrace.
Comment 17 _ ahimanikya 2008-10-11 10:09:23 UTC
Created attachment 71601 [details]
Updated dataview screen.
Comment 18 _ ahimanikya 2008-10-13 12:16:22 UTC
It works for me based on the steps both in Windows and Mac.