Could not load codec 'Lucene62'. Did you forget to add lucene-backward-codecs.jar?

171 views
Skip to first unread message

Phil Ashworth

unread,
Jan 21, 2019, 7:48:44 AM1/21/19
to RDF4J Users
Hi All

I've created a native java with lucene rdf4J 2.4.1 repository. 
It loads data through workbench fine and the lucene index seems to be created. index directory is created.
However clearing a context through workbench 
gives the error even though the operation seems to complete.
org.eclipse.rdf4j.repository.RepositoryException: org.eclipse.rdf4j.repository.RepositoryException: org.eclipse.rdf4j.sail.SailException: java.lang.IllegalArgumentException: Could not load codec 'Lucene62'. Did you forget to add lucene-backward-codecs.jar?
I also get the error now on loading data to the repository ( which didn't happen on first load) 
Once again the operation seems to complete as I see data. 

I have also looked back to 2.3.2 and I see the lucene-backward-codecs.jar seems to have been included in the rdf4J-server libs directory.
But it is not present in the 2.4.1 libs directory.


Can anyone tell me what is going on?
Cheers
Phil

Bart Hanssens

unread,
Jan 22, 2019, 8:27:18 AM1/22/19
to RDF4J Users
Hi,


indeed, seems like the backwards-codecs jar aren't included anymore,.. 
Does downloading the codecs and putting the jar into the lib directory solve the problem ? 



Best regards

Bart

Bart Hanssens

unread,
Jan 22, 2019, 4:27:11 PM1/22/19
to RDF4J Users
Hi,

I've created a ticket on github: https://github.com/eclipse/rdf4j/issues/1256

Best regards

Bart

Phil Ashworth

unread,
Jan 23, 2019, 6:07:58 AM1/23/19
to RDF4J Users
I didn't try adding the codec. 
I could see the issue in the other post I put up. So I have had to bring all the repos up to the same level recreating everything which was a real pain.
Phil
Reply all
Reply to author
Forward
0 new messages