Skip to content

Upgrading to rdf4j 4.0.1 NoClassDefFound org/eclipse/rdf4j/OpenRDFUtil #3916

Answered by abrokenjester
lewismc asked this question in Q&A
Discussion options

You must be logged in to vote

Like @hmottestad pointed out it has indeed been removed. It looks like I did not include this in the upgrade notes, apologies for that.

The only method this class offered was a verifyContextNotNull method:

public static void verifyContextNotNull(Resource... contexts) 

...which threw an exception when the supplied input param is null, and was used solely to check validity of the context vararg in RDF4J's public methods.

In RDF4J itself its use has just been replaced by:

Objects.requireNonNull(contexts,
				"contexts argument may not be null; either the value should be cast to Resource or an empty array should be supplied");

It shouldn't be hard to do the same replacement in the Any23 code.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hmottestad
Comment options

You must be logged in to vote
1 reply
@lewismc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants