dbpedia / dbpedia-databus-collection-downloader

Apache License 2.0
2 stars 4 forks source link

NPE when ran out of the box #1

Open chrisrafferty-adaraga opened 4 years ago

chrisrafferty-adaraga commented 4 years ago

You get the following NPE when running straight out of the box. I've done a little investigation and it looks like query to retrieve the list files is too long, exceeding the uri length accepted by the dbpedia sparql endpoint? Maybe this should be changed to a 'post' rather than a 'get' with the query in the body?

databus-download_1 | java.lang.NullPointerException databus-download_1 | at java.io.StringReader.<init> (StringReader.java:50) databus-download_1 | at org.json.JSONTokener.<init> (JSONTokener.java:94) databus-download_1 | at org.json.JSONObject.<init> (JSONObject.java:399) databus-download_1 | at org.dbpedia.download.Client.main (Client.java:103) databus-download_1 | at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) databus-download_1 | at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) databus-download_1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) databus-download_1 | at java.lang.reflect.Method.invoke (Method.java:498) databus-download_1 | at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282) databus-download_1 | at java.lang.Thread.run (Thread.java:748)

holycrab13 commented 4 years ago

Switched the GET to a POST, this should be fixed