Wednesday, January 10, 2007

java.io.IOException: read past EOF on Lucene

Problem:
This is the error:
java.io.IOException: read past EOF

Lucene throws that error when you try to read an index.

Solution:
The lucene index was most likely corrupted at some point. In my case, it broke during the ant's copy in the deployment.

Other pages say that it may be because the index uses a weird char set where chars may be bigger or smaller then what you think they are, so if you think they are 8 bits, and they are actually 7, you will read past EOF.

2 comments:

  1. Thanks for saving me some time!

    ReplyDelete
  2. Be caferul with the numbers Index's elements

    ReplyDelete