pilehvar / ADW

GNU General Public License v3.0
54 stars 26 forks source link

Null Pointer Exception when trying to run. #13

Open Achilles-96 opened 7 years ago

Achilles-96 commented 7 years ago

Is there any resource I am missing.

Apr 07, 2017 12:11:42 AM it.uniroma1.lcl.adw.ADWConfiguration INFO: Loading adw.properties FROM /home/raghuram/eclipse/workspace/PEAK/config/adw.properties Apr 07, 2017 12:11:42 AM it.uniroma1.lcl.jlt.Configuration INFO: Loading jlt.properties FROM /home/raghuram/eclipse/workspace/PEAK/config/jlt.properties java.lang.RuntimeException: Cannot init: java.lang.NullPointerException at it.uniroma1.lcl.jlt.pipeline.stanford.StanfordPOSTagger.(StanfordPOSTagger.java:39) at it.uniroma1.lcl.jlt.pipeline.stanford.StanfordPOSTagger.getInstance(StanfordPOSTagger.java:45) at it.uniroma1.lcl.jlt.pipeline.stanford.DataProcessor.processSentence(DataProcessor.java:87) at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.getStanfordSentence(TextualSimilarity.java:114) at it.uniroma1.lcl.adw.textual.similarity.TextualSimilarity.cookSentence(TextualSimilarity.java:252) at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.cookLexicalItem(PairSimilarity.java:119) at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getSimilarity(PairSimilarity.java:278) at it.uniroma1.lcl.adw.ADW.getPairSimilarity(ADW.java:123) at model1.step1.step1(step1.java:263) at model1.model1.main(model1.java:9) java.lang.NullPointerException at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.cookLexicalItem(PairSimilarity.java:120) at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getSimilarity(PairSimilarity.java:278) at it.uniroma1.lcl.adw.ADW.getPairSimilarity(ADW.java:123) at model1.step1.step1(step1.java:263) at model1.model1.main(model1.java:9) Exception in thread "main" java.lang.NullPointerException at it.uniroma1.lcl.adw.textual.similarity.PairSimilarity.getSimilarity(PairSimilarity.java:278) at it.uniroma1.lcl.adw.ADW.getPairSimilarity(ADW.java:123) at model1.step1.step1(step1.java:263) at model1.model1.main(model1.java:9)

Achilles-96 commented 7 years ago

Also, I am unable to find source for it.uniroma1.lcl.jlt . If I find that, I can debug the error myself.

saraswat commented 7 years ago

Make sure you do a mvn install. What command line did you use?

Achilles-96 commented 7 years ago

I am using eclipse.

saraswat commented 7 years ago

I am sorry, that does not help. For others to reproduce the problem (and hence help you), you need to communicate (a) did you run mvn install (depending on the options installed within Eclipse you could do this within Eclipse), and (b) What script/class did you run, and what arguments did you supply?