Tom Barber created JOSHUA-267:
---------------------------------
Summary: Java seems to swallow C exceptions
Key: JOSHUA-267
URL: https://issues.apache.org/jira/browse/JOSHUA-267
Project: Joshua
Issue Type: Bug
Reporter: Tom Barber
Priority: Minor
I compiled joshua on Ubuntu and copied it to another box of the same type, but
missing various C bits that were required at build time, but Joshua doesn't run
and tells me:
Input 0: <s> berkeley works fine , but the pipeline fails in next steps </s>
Input 0: Collecting options took 0.000 seconds
Input 0: FATAL UNCAUGHT EXCEPTION: null
java.lang.NullPointerException
at joshua.decoder.phrase.Candidate.score(Candidate.java:214)
at joshua.decoder.phrase.Candidate.compareTo(Candidate.java:136)
at joshua.decoder.phrase.Candidate.compareTo(Candidate.java:19)
at java.util.HashMap.compareComparables(HashMap.java:371)
at java.util.HashMap$TreeNode.treeify(HashMap.java:1920)
at java.util.HashMap.treeifyBin(HashMap.java:771)
at java.util.HashMap.putVal(HashMap.java:643)
at java.util.HashMap.put(HashMap.java:611)
at java.util.HashSet.add(HashSet.java:219)
at joshua.decoder.phrase.Stack.addCandidate(Stack.java:125)
at joshua.decoder.phrase.Stacks.search(Stacks.java:166)
at joshua.decoder.DecoderThread.translate(DecoderThread.java:113)
at joshua.decoder.Decoder$DecoderThreadRunner.run(Decoder.java:218)
Looking at the code its where it passes off to a decoder, which if it doesn't
appear, must surely throw some error that we don't see?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)