OK, thanks! Please let me know if I can test anything on my system. Egon On 17 Jan 2015 22:50, "Markus Krötzsch" <mar...@semantic-mediawiki.org> wrote:
> On 17.01.2015 22:43, Egon Willighagen wrote: > >> This last test from the cmd line is already with master from GitHub... >> > > Thanks, we will investigate. I created a bug report at > > https://github.com/Wikidata/Wikidata-Toolkit/issues/114 > > Markus > > >> Egon >> >> On 17 Jan 2015 22:40, "Markus Krötzsch" <mar...@semantic-mediawiki.org >> <mailto:mar...@semantic-mediawiki.org>> wrote: >> >> Hi Egon, >> >> WDTK 0.3.0 is rather old and we are about to prepare a new release >> (there are other issues with 0.3.0: the JSON format has changed >> since its release and it won't read the files anyway). Could you try >> if the problem occurs with the current development code at github? >> >> Cheers, >> >> Markus >> >> On 17.01.2015 16:59, Egon Willighagen wrote: >> >> Hi all, >> >> I have been trying today to get the Java library Wikidata-Toolkit >> going, but about to give up... I keep running with both 0.3.0 and >> current master into a NullPointerException... I thought it was >> how I >> called the code, and did add several System.out calls, and in >> the end >> just tried to get it running from the command line... I tried the >> example from the website (though replaced the Dump examples, >> which I >> don't see in master; btw, "mvn test" runs fine) using a pristine >> master: >> >> $ cd wdtk-examples/ >> $ mvn compile >> $ mvn exec:java >> -Dexec.mainClass="org.__wikidata.wdtk.examples.__ >> EntityStatisticsProcessor" >> >> In doing so, I get the same NPE: >> >> ******************************__**************************** >> **__******** >> *** Wikidata Toolkit: EntityStatisticsProcessor >> *** >> *** This program will download and process dumps from Wikidata. >> *** It will print progress information and some simple statistics. >> *** Results about property usage will be stored in a CSV file. >> *** See source code for further details. >> ******************************__**************************** >> **__******** >> 2015-01-17 16:53:00 INFO - Using download directory >> /home/egonw/var/Projects/__GitHub/Wikidata-Toolkit/wdtk-_ >> _examples/dumpfiles/__wikidatawiki >> [WARNING] >> java.lang.reflect.__InvocationTargetException >> at >> sun.reflect.__NativeMethodAccessorImpl.__invoke0(Native Method) >> at >> sun.reflect.__NativeMethodAccessorImpl.__invoke(__ >> NativeMethodAccessorImpl.java:__57) >> at >> sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__ >> DelegatingMethodAccessorImpl.__java:43) >> at java.lang.reflect.Method.__invoke(Method.java:606) >> at >> org.codehaus.mojo.exec.__ExecJavaMojo$1.run(__ >> ExecJavaMojo.java:293) >> at java.lang.Thread.run(Thread.__java:745) >> Caused by: java.lang.NullPointerException >> at >> org.wikidata.wdtk.dumpfiles.__DumpProcessingController.__ >> processDumpFile(__DumpProcessingController.java:__470) >> at >> org.wikidata.wdtk.dumpfiles.__DumpProcessingController.__ >> processMostRecentDump(__DumpProcessingController.java:__456) >> at >> org.wikidata.wdtk.dumpfiles.__DumpProcessingController.__ >> processMostRecentJsonDump(__DumpProcessingController.java:__426) >> at >> org.wikidata.wdtk.examples.__ExampleHelpers.__ >> processEntitiesFromWikidataDum__p(ExampleHelpers.java:158) >> at >> org.wikidata.wdtk.examples.__EntityStatisticsProcessor.__main(__ >> EntityStatisticsProcessor.__java:88) >> ... 6 more >> >> >> I tried finding what goes wrong, but cannot grasp all the magic >> that >> is going on... the directory it reports was created, but is >> empty... >> >> $ mvn --version >> Apache Maven 3.0.5 >> Maven home: /usr/share/maven >> Java version: 1.7.0_65, vendor: Oracle Corporation >> Java home: /usr/lib/jvm/java-7-openjdk-__i386/jre >> Default locale: en_US, platform encoding: UTF-8 >> OS name: "linux", version: "3.16.0-4-686-pae", arch: "i386", >> family: "unix" >> >> Can someone give me some pointers where and how it is testing of >> dump >> files exist? Is this problem something platform dependent? >> >> Thanks, >> >> Egon >> >> >> >> _________________________________________________ >> Wikidata-l mailing list >> Wikidata-l@lists.wikimedia.org <mailto:Wikidata-l@lists.wikimedia.org >> > >> https://lists.wikimedia.org/__mailman/listinfo/wikidata-l >> <https://lists.wikimedia.org/mailman/listinfo/wikidata-l> >> >> >> >> _______________________________________________ >> Wikidata-l mailing list >> Wikidata-l@lists.wikimedia.org >> https://lists.wikimedia.org/mailman/listinfo/wikidata-l >> >> > > _______________________________________________ > Wikidata-l mailing list > Wikidata-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikidata-l >
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l