Gehel created this task.
Gehel added a project: Wikidata-Query-Service.
Herald added a subscriber: Aklapper.
Herald added projects: Wikidata, Discovery.

TASK DESCRIPTION

Some LDF queries on wdqs1003 fail with:

java.lang.NoClassDefFoundError: Could not initialize class com.github.jsonldjava.utils.JsonUtils
	at org.apache.jena.riot.out.JsonLDWriter.serialize(JsonLDWriter.java:101)
	at org.apache.jena.riot.out.JsonLDWriter.write(JsonLDWriter.java:67)
[...]

or with:

Feb 09 01:51:43 wdqs1003 bash[29110]: java.lang.NoSuchMethodError:
com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z

The following curl can be used to reproduce the error.

curl --header "Accept: application/ld+json" http://localhost:8888/bigdata/ldf?subject=\&predicate=http://www.wikidata.org/prop/direct/P3417

The same curl on wdqs1002 completes without error.

Investigation so far:

  • The following are identical on wdqs1002 and wdqs1003:
    • each file under /srv/deployment/wdqs/wdqs/ (md5sum of each file is identical)
    • Java version : OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-1~bpo8+1-b13)
    • /etc/wdqs/* (except for the data directory in RWStore.properties and vars.yaml)
  • 2 different versions of Jackson are packaged in the blazegraph-service WAR (1.9.2 and 2.2.3), this should not be an issue as the namespace for jackson has moved between 1.x and 2.x
  • the com.github.jsonldjava.utils.JsonUtils class is present in the WAR
  • jhades shows a 2521 duplicated classes (P4917) against 1768 in the latest version built from master (P4918). JsonFactory is one of the duplicated class. This is clearly an issue, even if it does not explain why this works on wdqs1002 and not on wdqs1003. This specific duplication is fixed in the latest build.

Ideas:

  • add a call to jhades at application startup to check for strange classpath issues

TASK DETAIL
https://phabricator.wikimedia.org/T157703

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Gehel
Cc: Gehel, Aklapper, EBjune, merbst, Avner, debt, D3r1ck01, Jonas, FloNight, Xmlizer, Izno, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to