java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When I have a class that is indexed and I call a query to search through all nodes on it, I get a NoSuchMethodException on lucene. See stacktrace below. When I search lucene for the method involved, I did not find it, it seemed they removed it after deprecating it earlier Attached is a maven project to reproduce the issue. PS: I know that I could do findAll, but the query I use in my own environment is more complicated, this is just to show the issue. java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.lucene.search.MatchAllDocsQuery.getField() at org.neo4j.index.impl.lucene.FullTxData.getFieldViaReflection(FullTxData.java:293) at org.neo4j.index.impl.lucene.FullTxData.extractTermField(FullTxData.java:274) at org.neo4j.index.impl.lucene.FullTxData.injectOrphans(FullTxData.java:244) at org.neo4j.index.impl.lucene.FullTxData.includeOrphans(FullTxData.java:223) at org.neo4j.index.impl.lucene.FullTxData.internalQuery(FullTxData.java:200) at org.neo4j.index.impl.lucene.FullTxData.query(FullTxData.java:185) at org.neo4j.index.impl.lucene.ExactTxData.query(ExactTxData.java:135) at org.neo4j.index.impl.lucene.TxDataHolder.query(TxDataHolder.java:51) at org.neo4j.index.impl.lucene.LuceneTransaction.getRemovedIds(LuceneTransaction.java:157) at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:259) at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:227) at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:238) at org.neo4j.cypher.internal.spi.gdsimpl.GDSBackedQueryContext$$anon$1.indexQuery(GDSBackedQueryContext.scala:87) at org.neo4j.cypher.internal.executionplan.builders.IndexQueryBuilder$$anonfun$getNodeGetter$2.apply(IndexQueryBuilder.scala:83) at org.neo4j.cypher.internal.executionplan.builders.IndexQueryBuilder$$anonfun$getNodeGetter$2.apply(IndexQueryBuilder.scala:81) at org.neo4j.cypher.internal.pipes.StartPipe$$anonfun$internalCreateResults$1.apply(StartPipe.scala:36) at org.neo4j.cypher.internal.pipes.StartPipe$$anonfun$internalCreateResults$1.apply(StartPipe.scala:35) at scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371) at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply$mcZ$sp(ClosingIterator.scala:36) at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:35) at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:35) at org.neo4j.cypher.internal.ClosingIterator.failIfThrows(ClosingIterator.scala:86) at org.neo4j.cypher.internal.ClosingIterator.hasNext(ClosingIterator.scala:35) at org.neo4j.cypher.PipeExecutionResult.hasNext(PipeExecutionResult.scala:157) at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327) at scala.collection.convert.Wrappers$IteratorWrapper.hasNext(Wrappers.scala:29) at org.neo4j.cypher.PipeExecutionResult$$anon$1.hasNext(PipeExecutionResult.scala:73) at org.neo4j.helpers.collection.IteratorWrapper.hasNext(IteratorWrapper.java:42) at QueryTest.testQuery(QueryTest.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.lang.NoSuchMethodException: org.apache.lucene.search.MatchAllDocsQuery.getField() at java.lang.Class.getMethod(Class.java:1655) at org.neo4j.index.impl.lucene.FullTxData.getFieldViaReflection(FullTxData.java:288) ... 59 more
    via by Wouter de Vaal,
  • When I have a class that is indexed and I call a query to search through all nodes on it, I get a NoSuchMethodException on lucene. See stacktrace below. When I search lucene for the method involved, I did not find it, it seemed they removed it after deprecating it earlier Attached is a maven project to reproduce the issue. PS: I know that I could do findAll, but the query I use in my own environment is more complicated, this is just to show the issue. java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.lucene.search.MatchAllDocsQuery.getField() at org.neo4j.index.impl.lucene.FullTxData.getFieldViaReflection(FullTxData.java:293) at org.neo4j.index.impl.lucene.FullTxData.extractTermField(FullTxData.java:274) at org.neo4j.index.impl.lucene.FullTxData.injectOrphans(FullTxData.java:244) at org.neo4j.index.impl.lucene.FullTxData.includeOrphans(FullTxData.java:223) at org.neo4j.index.impl.lucene.FullTxData.internalQuery(FullTxData.java:200) at org.neo4j.index.impl.lucene.FullTxData.query(FullTxData.java:185) at org.neo4j.index.impl.lucene.ExactTxData.query(ExactTxData.java:135) at org.neo4j.index.impl.lucene.TxDataHolder.query(TxDataHolder.java:51) at org.neo4j.index.impl.lucene.LuceneTransaction.getRemovedIds(LuceneTransaction.java:157) at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:259) at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:227) at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:238) at org.neo4j.cypher.internal.spi.gdsimpl.GDSBackedQueryContext$$anon$1.indexQuery(GDSBackedQueryContext.scala:87) at org.neo4j.cypher.internal.executionplan.builders.IndexQueryBuilder$$anonfun$getNodeGetter$2.apply(IndexQueryBuilder.scala:83) at org.neo4j.cypher.internal.executionplan.builders.IndexQueryBuilder$$anonfun$getNodeGetter$2.apply(IndexQueryBuilder.scala:81) at org.neo4j.cypher.internal.pipes.StartPipe$$anonfun$internalCreateResults$1.apply(StartPipe.scala:36) at org.neo4j.cypher.internal.pipes.StartPipe$$anonfun$internalCreateResults$1.apply(StartPipe.scala:35) at scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371) at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply$mcZ$sp(ClosingIterator.scala:36) at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:35) at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:35) at org.neo4j.cypher.internal.ClosingIterator.failIfThrows(ClosingIterator.scala:86) at org.neo4j.cypher.internal.ClosingIterator.hasNext(ClosingIterator.scala:35) at org.neo4j.cypher.PipeExecutionResult.hasNext(PipeExecutionResult.scala:157) at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327) at scala.collection.convert.Wrappers$IteratorWrapper.hasNext(Wrappers.scala:29) at org.neo4j.cypher.PipeExecutionResult$$anon$1.hasNext(PipeExecutionResult.scala:73) at org.neo4j.helpers.collection.IteratorWrapper.hasNext(IteratorWrapper.java:42) at QueryTest.testQuery(QueryTest.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.lang.NoSuchMethodException: org.apache.lucene.search.MatchAllDocsQuery.getField() at java.lang.Class.getMethod(Class.java:1655) at org.neo4j.index.impl.lucene.FullTxData.getFieldViaReflection(FullTxData.java:288) ... 59 more
    via by Wouter de Vaal,
  • MFR registry problem?
    via GitHub by iarspider
    ,
    • java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.lucene.search.MatchAllDocsQuery.getField() at org.neo4j.index.impl.lucene.FullTxData.getFieldViaReflection(FullTxData.java:293) at org.neo4j.index.impl.lucene.FullTxData.extractTermField(FullTxData.java:274) at org.neo4j.index.impl.lucene.FullTxData.injectOrphans(FullTxData.java:244) at org.neo4j.index.impl.lucene.FullTxData.includeOrphans(FullTxData.java:223) at org.neo4j.index.impl.lucene.FullTxData.internalQuery(FullTxData.java:200) at org.neo4j.index.impl.lucene.FullTxData.query(FullTxData.java:185) at org.neo4j.index.impl.lucene.ExactTxData.query(ExactTxData.java:135) at org.neo4j.index.impl.lucene.TxDataHolder.query(TxDataHolder.java:51) at org.neo4j.index.impl.lucene.LuceneTransaction.getRemovedIds(LuceneTransaction.java:157) at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:259) at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:227) at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:238) at org.neo4j.cypher.internal.spi.gdsimpl.GDSBackedQueryContext$$anon$1.indexQuery(GDSBackedQueryContext.scala:87) at org.neo4j.cypher.internal.executionplan.builders.IndexQueryBuilder$$anonfun$getNodeGetter$2.apply(IndexQueryBuilder.scala:83) at org.neo4j.cypher.internal.executionplan.builders.IndexQueryBuilder$$anonfun$getNodeGetter$2.apply(IndexQueryBuilder.scala:81) at org.neo4j.cypher.internal.pipes.StartPipe$$anonfun$internalCreateResults$1.apply(StartPipe.scala:36) at org.neo4j.cypher.internal.pipes.StartPipe$$anonfun$internalCreateResults$1.apply(StartPipe.scala:35) at scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371) at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply$mcZ$sp(ClosingIterator.scala:36) at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:35) at org.neo4j.cypher.internal.ClosingIterator$$anonfun$hasNext$1.apply(ClosingIterator.scala:35) at org.neo4j.cypher.internal.ClosingIterator.failIfThrows(ClosingIterator.scala:86) at org.neo4j.cypher.internal.ClosingIterator.hasNext(ClosingIterator.scala:35) at org.neo4j.cypher.PipeExecutionResult.hasNext(PipeExecutionResult.scala:157) at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327) at scala.collection.convert.Wrappers$IteratorWrapper.hasNext(Wrappers.scala:29) at org.neo4j.cypher.PipeExecutionResult$$anon$1.hasNext(PipeExecutionResult.scala:73) at org.neo4j.helpers.collection.IteratorWrapper.hasNext(IteratorWrapper.java:42) at QueryTest.testQuery(QueryTest.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.lang.NoSuchMethodException: org.apache.lucene.search.MatchAllDocsQuery.getField() at java.lang.Class.getMethod(Class.java:1655) at org.neo4j.index.impl.lucene.FullTxData.getFieldViaReflection(FullTxData.java:288) ... 57 more

    Users with the same issue

    Sacchi
    3 times, last one,
    Unknown User
    1 times, last one,
    Hiren Amaliyar
    4 times, last one,
    Indri Yunita
    12 times, last one,
    olle.hallin
    2 times, last one,
    93 more bugmates