Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: org/apache/commons/codec/digest/MurmurHash3 in Indexing Triplestore #192

Closed
davidemerlitti opened this issue May 17, 2023 · 4 comments

Comments

@davidemerlitti
Copy link

I get this error (MurmurHash3 class not found) while performing triplestore indexing by invoking the command:

curl -XPOST localhost:9080/reindexing -H"Content-Type: application/json" -d '["broker:queue:triplestore.reindex"]'

Is the dependency on the org.apache.commons.codec.digest package missing?

The error only comes up for the following resource which contains blank nodes:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

<http://localhost:8080/fcrepo/rest/itinerari-digitali/annotations/2916a139-7e1d-4413-8d65-9178611371aa>
        <http://www.w3.org/ns/oa#motivatedBy>  <http://www.w3.org/ns/oa#describing> ;
        <http://www.w3.org/ns/oa#hasBody>  _:b0 ;
        <http://www.w3.org/ns/oa#hasTarget>  _:b1 ;
        rdf:type  <http://www.w3.org/ns/oa#Annotation> .

_:b1    <http://www.w3.org/ns/oa#hasSource>  <http://localhost:8080/fcrepo/rest/itinerari-digitali/video/video1> ;
        <http://www.w3.org/ns/oa#hasSelector>  _:b2 .

_:b2    rdf:type            <http://www.w3.org/ns/oa#FragmentSelector> ;
        dcterms:conformsTo  <http://www.w3.org/TR/media-frags/> ;
        rdf:value           "t=0,6" .

_:b0    rdf:type   <http://www.w3.org/ns/oa#TextualBody> ;
        rdf:value  "Annotazione di prova." .

<http://localhost:8080/fcrepo/rest/itinerari-digitali/annotations/2916a139-7e1d-4413-8d65-9178611371aa>
        fedora:created       "2023-05-17T15:25:49.924575Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
        fedora:lastModified  "2023-05-17T15:25:49.924575Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
        rdf:type             ldp:BasicContainer ;
        rdf:type             ldp:Resource ;
        rdf:type             fedora:Resource ;
        rdf:type             ldp:RDFSource ;
        rdf:type             ldp:Container ;
        rdf:type             fedora:Container .

Is there any way to fix this?

Attached the fcrepo-camel-toolbox out.log file.

out.log

@davidemerlitti
Copy link
Author

Inside the jar I'm using to execute fcrepo-camel-toolbox (fcrepo-camel-toolbox-app-6.1.0-SNAPSHOT-driver.jar) there is 'org/infinispan/commons/hash/MurmurHash3.class' and not 'org/apache/commons/codec/digest/MurmurHash3'.

@whikloj
Copy link
Contributor

whikloj commented May 18, 2023

Good question, I'll try to replicate the issue and see if we can resolve it for you.

@davidemerlitti
Copy link
Author

Good question, I'll try to replicate the issue and see if we can resolve it for you.

@whikloj Thank you. My quick and dirty fix was to manually add the missing class into the jar. That was enough to make it work.

@whikloj
Copy link
Contributor

whikloj commented May 1, 2024

This was resolved in c959e0b, so I'm closing this ticket. If there is a problem please open a new ticket.

@whikloj whikloj closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants