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 165117

Summary: [67cat] NullPointerException at org.apache.lucene.search.BooleanQuery.rewrite
Product: projects Reporter: neilg <neilg>
Component: MavenAssignee: David Simonek <dsimonek>
Status: RESOLVED FIXED    
Severity: blocker CC: ovk
Priority: P3 Keywords: RANDOM
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=147808
Issue Type: DEFECT Exception Reporter: 147808
Attachments: stacktrace
stacktrace

Description neilg 2009-05-13 23:24:47 UTC
Build: NetBeans IDE Dev (Build 200905100201)
VM: OpenJDK 64-Bit Server VM, 14.0-b08, OpenJDK Runtime Environment, 1.6.0_0-b14
OS: Linux, 2.6.28-11-generic, amd64

User Comments:
neilg: pasted block of text into "Query" field of "Add Dependency" window



Stacktrace: 
org.openide.util.RequestProcessor$Item: task failed: java.lang.NullPointerException
        at org.openide.util.RequestProcessor$Item.fillInStackTrace(RequestProcessor.java:853)
        at java.lang.Throwable.<init>(Throwable.java:198)
        at java.lang.Exception.<init>(Exception.java:46)
        at org.openide.util.RequestProcessor$Item.<init>(RequestProcessor.java:819)
        at org.openide.util.RequestProcessor$Task.schedule(RequestProcessor.java:629)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:295)
Comment 1 neilg 2009-05-13 23:24:56 UTC
Created attachment 82085 [details]
stacktrace
Comment 2 Jaroslav Pospisil 2009-05-20 12:21:35 UTC
Could you please try the same,running od JDK6?
Comment 3 neilg 2009-05-21 13:09:57 UTC
It seems to be working now.
Comment 4 David Simonek 2009-05-22 10:42:06 UTC
Such exception probably means that empty string was passed as text to search - perhaps due to request coalescing there
is possibility that when text is typed and deleted quickly afterwards, it will enter described situation. Needs to be
examined more.
Comment 5 Oleg Khokhlov 2009-05-26 12:34:45 UTC
Build: NetBeans IDE 6.7 RC1 (Build 200905232021)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 
find empty string in maven repository viewer

Stacktrace: 
java.lang.NullPointerException
        at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:385)
        at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:151)
        at org.apache.lucene.search.Query.weight(Query.java:94)
        at org.apache.lucene.search.Hits.<init>(Hits.java:72)
        at org.apache.lucene.search.Searcher.search(Searcher.java:55)
        at org.sonatype.nexus.index.DefaultSearchEngine.searchFlat(DefaultSearchEngine.java:118)
Comment 6 Oleg Khokhlov 2009-05-26 12:34:55 UTC
Created attachment 82791 [details]
stacktrace
Comment 7 David Simonek 2009-05-29 13:04:15 UTC
should be fixed now: d15c688e8b9a
I also checked AddDep dialog and it seems to be fine now.
Comment 8 Quality Engineering 2009-05-30 06:44:49 UTC
Integrated into 'main-golden', will be available in build *200905300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d15c688e8b9a
User: Dafe Simonek <dsimonek@netbeans.org>
Log: #165117: don't allow empty string as text to find