Sorry for being imprecise java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
- Clemens -----Ursprüngliche Nachricht----- Von: Michael McCandless [mailto:[email protected]] Gesendet: Sonntag, 18. Mai 2014 16:51 An: Lucene Users Betreff: Re: [lucene 4.6] NPE when calling IndexReader#openIfChanged But what is the output of "java -fullversion"? Mike McCandless http://blog.mikemccandless.com On Sun, May 18, 2014 at 5:24 AM, Clemens Wyss DEV <[email protected]> wrote: >> What java version? > We are still on (1.)6 > > -----Ursprüngliche Nachricht----- > Von: Michael McCandless [mailto:[email protected]] > Gesendet: Donnerstag, 15. Mai 2014 11:43 > An: Lucene Users > Betreff: Re: [lucene 4.6] NPE when calling IndexReader#openIfChanged > > delGen=-1 means there are no deletions, but the exception makes no > sense because up above SegmentReader.java calls si.hasDeletions() > which returns delGen != -1 which should have mean > Lucene40LiveDocsFormat.readLiveDocs should not have been called. It > seems impossible :) > > What java version? > > Mike McCandless > > http://blog.mikemccandless.com > > > On Wed, May 14, 2014 at 2:16 AM, Clemens Wyss DEV <[email protected]> > wrote: >> Tackled this down a little bit more: >> Lucene40LiveDocsFormat#readLiveDocs calls >> IndexFileNames#fileNameForGeneration >> If I get this right, param 'gen' seems to be -1. >> Gen is being gathered from SegmentCommitInfo#getDelGen >> >> What does "delGen == -1" mean? >> >> -----Ursprüngliche Nachricht----- >> Von: Clemens Wyss DEV [mailto:[email protected]] >> Gesendet: Dienstag, 13. Mai 2014 18:23 >> An: [email protected] >> Betreff: [lucene 4.6] NPE when calling IndexReader#openIfChanged >> >> I am facing the following stacktrace: >> java.lang.NullPointerException: null >> at java.io.File.<init>(File.java:305) ~[na:1.6.0_26] >> at >> org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:80) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.codecs.lucene40.BitVector.<init>(BitVector.java:327) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.codecs.lucene40.Lucene40LiveDocsFormat.readLiveDocs(Lucene40LiveDocsFormat.java:90) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:131) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:194) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:326) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.StandardDirectoryReader$2.doBody(StandardDirectoryReader.java:320) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:843) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.StandardDirectoryReader.doOpenFromCommit(StandardDirectoryReader.java:315) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.StandardDirectoryReader.doOpenNoWriter(StandardDirectoryReader.java:311) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:262) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:250) >> ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 11:05:50] >> at >> org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader. >> java:170) ~[lucene-core.jar:4.6.0 1543363 - simon - 2013-11-19 >> 11:05:50] >> >> Unfortunately not always. Looks like j.i.File<init> is getting param child >> == null What might go wrong in openIfChanged? >> Thanks for any advices/hints >> Clemens >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
