[ https://issues.apache.org/jira/browse/JOSHUA-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15284403#comment-15284403 ]
Tom Barber commented on JOSHUA-267: ----------------------------------- Okay well the above still counts, we're clearly swallowing something. For the trainer, I don't know enough about joshua but I'm pretty sure if I input testing testing 123 if passes but if I run My Complex sentence that contains lots of words with cat input.txt | ./prepare.sh | nc localhost 5675 An NPE probably isn't supposed to be the output :) > 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)