Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

java.lang.NullPointerException #16

Closed
nrkkalyan opened this Issue · 12 comments

2 participants

@nrkkalyan

Got the exception when performing Search

Dec 25, 2011 3:38:24 AM org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
INFO: connected to embedded neo4j
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.neo4j.neoclipse.search.NeoSearchQuery.run(NeoSearchQuery.java:145)
at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:91)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
at org.apache.lucene.util.SimpleStringInterner.intern(SimpleStringInterner.java:54)
at org.apache.lucene.util.StringHelper.intern(StringHelper.java:36)
at org.apache.lucene.index.Term.(Term.java:38)
at org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:643)
at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1421)
at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1309)
at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
at org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1226)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
at org.neo4j.index.impl.lucene.IndexType.query(IndexType.java:281)
at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:207)
at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:218)
at org.neo4j.neoclipse.search.NeoSearchQuery.getMatchingNodesFromIndices(NeoSearchQuery.java:196)
at org.neo4j.neoclipse.search.NeoSearchQuery.access$0(NeoSearchQuery.java:174)
at org.neo4j.neoclipse.search.NeoSearchQuery$1.call(NeoSearchQuery.java:133)
at org.neo4j.neoclipse.search.NeoSearchQuery$1.call(NeoSearchQuery.java:1)
at org.neo4j.neoclipse.graphdb.GraphDbServiceManager$TaskWrapper.call(GraphDbServiceManager.java:242)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
!SESSION 2011-12-25 03:34:34.650 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.neo4j.neoclipse.neoclipseProduct
Command-line arguments: -product org.neo4j.neoclipse.neoclipseProduct -data C:\Kalyan\github\nrkkalyan\neoclipse\org.neo4j.neoclipse -dev file:C:/Kalyan/github/nrkkalyan/workspace/.metadata/.plugins/org.eclipse.pde.core/neoclipse.product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -data @noDefault

!ENTRY org.eclipse.core.jobs 4 2 2011-12-25 03:38:43.892
!MESSAGE An internal error occurred during: "Neo4j Search".
!STACK 0
java.lang.NullPointerException
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:70)

@ghost
@jexp
Owner

Yes, please provide the exact usecase (or better a test-case exposing this).

@nrkkalyan
@ghost
@nrkkalyan

I tested and observed that if we search without a key and search mode = 'Query' and Node Selected.

The cause of this is Line 196 in NeoSearchQuery.java
hits = nodeIndex.query( search.getValueOrQuery() );

It is is causing null pointer, Please let me know if the current implementation in neoclipse is ok or needs to be updated.

@ghost
@nrkkalyan
@ghost
@nrkkalyan
@ghost
@nrkkalyan
@ghost
@nrkkalyan nrkkalyan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.