nmadhire / jwpl

Automatically exported from code.google.com/p/jwpl
0 stars 0 forks source link

Indexgenerator throws NullPointerException #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import sql files into the database
2. run CREATE UNIQUE INDEX revisionIdx ON revisions(RevisionID); CREATE INDEX 
articleIdx ON revisions(ArticleID);
3. create config file for Indexgenerator (realize, that the 
nullpointerexception comes from the lack of a full path for the outputfile)
4. run  java -cp 
de.tudarmstadt.ukp.wikipedia.revisionmachine-0.9.2-jar-with-dependencies.jar 
de.tudarmstadt.ukp.wikipedia.revisionmachine.index.IndexGenerator 
indexgenerator.conf

What is the expected output? What do you see instead?
GENERATING INDEX STARTED
java.lang.NullPointerException
        at de.tudarmstadt.ukp.wikipedia.revisionmachine.index.Indexer.close(Indexer.java:258)
        at de.tudarmstadt.ukp.wikipedia.revisionmachine.index.IndexGenerator.generate(IndexGenerator.java:99)
        at de.tudarmstadt.ukp.wikipedia.revisionmachine.index.IndexGenerator.main(IndexGenerator.java:191)
TERMINATED

Original issue reported on code.google.com by lbene...@googlemail.com on 1 Jun 2014 at 12:32

GoogleCodeExporter commented 9 years ago
The steps you mention work just fine on my machine. Must be either a problem in 
your config or with the location of the config file, which has to be in the 
classpath.

Original comment by oliver.ferschke on 12 Jun 2014 at 10:23