jechlin-adaptavist / luke

Automatically exported from code.google.com/p/luke
0 stars 0 forks source link

Opening an index when one is open gets ClosedChannelException #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start Luke, specify index
2. File ->Open Lucene Index, specify another index
3. Error box with no message

What is the expected output? What do you see instead?
Should have message, from command line you get this exception, looks like you 
need to close the old index if one is open...:

java.nio.channels.ClosedChannelException
        at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:88)
        at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:603)
        at org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.readInternal(NIOFSDirectory.java:157)
        at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:160)
        at org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:119)
        at org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:94)
        at org.apache.lucene.index.TermBuffer.read(TermBuffer.java:82)
        at org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:131)
        at org.apache.lucene.index.SegmentMergeInfo.next(SegmentMergeInfo.java:69)
        at org.apache.lucene.index.DirectoryReader$MultiTermEnum.next(DirectoryReader.java:1019)
        at org.getopt.luke.HighFreqTerms.getHighFreqTerms(Unknown Source)
        at org.getopt.luke.Luke$5.execute(Unknown Source)
        at org.getopt.luke.Luke.actionTopTerms(Unknown Source)
        at org.getopt.luke.Luke$4.run(Unknown Source)

What version of the product are you using? On what operating system?
  lukeall-1.0.1.jar, Mac OSX

Please provide any additional information below.

Original issue reported on code.google.com by andrewrk...@gmail.com on 26 Apr 2011 at 12:40