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 156142 - NullPointerException at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery
Summary: NullPointerException at org.netbeans.modules.db.sql.editor.completion.SQLComp...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL: http://statistics.netbeans.org/except...
Keywords:
: 159553 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-30 01:28 UTC by minoleg
Modified: 2009-03-21 08:32 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 144750


Attachments
stacktrace (1.06 KB, text/plain)
2008-12-30 01:28 UTC, minoleg
Details
stacktrace (1.06 KB, text/plain)
2009-01-05 14:03 UTC, Peter Pis
Details
stacktrace (1.06 KB, text/plain)
2009-01-27 12:22 UTC, Exceptions Reporter
Details
stacktrace (1.06 KB, text/plain)
2009-02-02 14:01 UTC, jdwyah
Details
stacktrace (1.06 KB, text/plain)
2009-03-03 16:59 UTC, Filip Zamboj
Details
stacktrace (1.06 KB, text/plain)
2009-03-03 17:17 UTC, Filip Zamboj
Details
stacktrace (1.06 KB, text/plain)
2009-03-13 15:41 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description minoleg 2008-12-30 01:28:22 UTC
Build: NetBeans IDE Dev (Build 200812180001)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows Vista, 6.0, x86

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:162)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:147)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:134)
        at org.netbeans.modules.db.metadata.model.JDBCConnMetadataModel.runReadAction(JDBCConnMetadataModel.java:94)
        at org.netbeans.modules.db.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:89)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:134)
Comment 1 minoleg 2008-12-30 01:28:41 UTC
Created attachment 75355 [details]
stacktrace
Comment 2 Peter Pis 2009-01-05 14:03:23 UTC
Build: NetBeans IDE Dev (Build 200901050201)
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.5, i386

User Comments: 
editing the sql command throws Exception.

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:162)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:147)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:134)
        at org.netbeans.modules.db.metadata.model.JDBCConnMetadataModel.runReadAction(JDBCConnMetadataModel.java:94)
        at org.netbeans.modules.db.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:89)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:134)
Comment 3 Peter Pis 2009-01-05 14:03:40 UTC
Created attachment 75450 [details]
stacktrace
Comment 4 Exceptions Reporter 2009-01-27 12:22:32 UTC
Build: NetBeans IDE Dev (Build 200901151401)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:162)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:147)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:134)
        at org.netbeans.modules.db.metadata.model.JDBCConnMetadataModel.runReadAction(JDBCConnMetadataModel.java:94)
        at org.netbeans.modules.db.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:89)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:134)
Comment 5 Exceptions Reporter 2009-01-27 12:22:42 UTC
Created attachment 76266 [details]
stacktrace
Comment 6 jdwyah 2009-02-02 14:00:52 UTC
Build: NetBeans IDE Dev (Build 200901201401)
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: 
In a SQL command. Typed a ;  and did auto-complete.

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:162)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:147)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:134)
        at org.netbeans.modules.db.metadata.model.JDBCConnMetadataModel.runReadAction(JDBCConnMetadataModel.java:94)
        at org.netbeans.modules.db.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:89)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:134)
Comment 7 jdwyah 2009-02-02 14:01:01 UTC
Created attachment 76468 [details]
stacktrace
Comment 8 Jiri Rechtacek 2009-02-10 15:14:09 UTC
Reassigned to new owner.
Comment 9 Exceptions Reporter 2009-03-02 17:04:31 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=144750
Comment 10 Filip Zamboj 2009-03-03 16:59:10 UTC
Build: NetBeans IDE Dev (Build Parsing_API-191-on-090302)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02
OS: Linux, 2.6.27-11-generic, amd64

User Comments: 
I was trying to invoke code completion in sql file and when I got too mad about it I deleted what I wrote ... then I got this exception

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:162)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:147)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:134)
        at org.netbeans.modules.db.metadata.model.JDBCConnMetadataModel.runReadAction(JDBCConnMetadataModel.java:94)
        at org.netbeans.modules.db.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:89)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:134)
Comment 11 Filip Zamboj 2009-03-03 16:59:14 UTC
Created attachment 77649 [details]
stacktrace
Comment 12 Filip Zamboj 2009-03-03 17:16:50 UTC
Build: NetBeans IDE Dev (Build Parsing_API-191-on-090302)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02
OS: Linux, 2.6.27-11-generic, amd64

User Comments: 
wiriting into sql file and invoking code completion

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:162)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:147)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:134)
        at org.netbeans.modules.db.metadata.model.JDBCConnMetadataModel.runReadAction(JDBCConnMetadataModel.java:94)
        at org.netbeans.modules.db.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:89)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:134)
Comment 13 Filip Zamboj 2009-03-03 17:17:00 UTC
Created attachment 77654 [details]
stacktrace
Comment 14 Tomas Mysik 2009-03-13 15:41:35 UTC
Build: NetBeans IDE Dev (Build 090313)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.5.0_16-b02, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b02
OS: Linux, 2.6.27-11-generic, amd64

User Comments: 
- create java db (name: test, user: test, pwd: test)
- open SQL editor for this db
- invoke code completion in SQL editor

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:165)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:150)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:137)
        at org.netbeans.modules.db.metadata.model.JDBCConnMetadataModel.runReadAction(JDBCConnMetadataModel.java:94)
        at org.netbeans.modules.db.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:89)
        at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:137)
Comment 15 Tomas Mysik 2009-03-13 15:41:45 UTC
Created attachment 78150 [details]
stacktrace
Comment 16 Jiri Rechtacek 2009-03-20 10:21:38 UTC
*** Issue 159553 has been marked as a duplicate of this issue. ***
Comment 17 Jiri Rechtacek 2009-03-20 10:42:08 UTC
core-main/rev/b7187b8fec35
Comment 18 Quality Engineering 2009-03-21 08:32:51 UTC
Integrated into 'main-golden', will be available in build *200903210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b7187b8fec35
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #156142: NullPointerException at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery