<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div>Thank you so much for looking into this! But, no, I don't think that's it. If I comment out the call to readStyledText(), I get this exception instead:<br></div><div><br></div><div>Exception in thread "main" java.util.MissingResourceException: Cannot find resource: xsl/cswing/simple.xsl<br></div><div> at org.crosswire.common.util.ResourceUtil.getResource(ResourceUtil.java:75)<br></div><div> at org.crosswire.common.util.ResourceUtil.getResource(ResourceUtil.java:57)<br></div><div> at com.selfdidactic.APIExamples.searchAndShow(APIExamples.java:286)<br></div><div> at com.selfdidactic.APIExamples.main(APIExamples.java:465)<br></div><div><br></div><div>That error does go away when I add that stylesheet from bibledesktop. So that should probably still be moved to jsword. But is seemingly unrelated to the NullPointerException I am getting when I call readStyledText() in the APIExamples.java<br></div><div><br></div><div>I've searched for other references for ConverterFactory.getConverter() in bibledesktop. I can see where it is being called, but am clueless why it seems to work for bibledesktop and not for the API examples.<br></div><div class="zmail_extra"><div id="Zm-_Id_-Sgn1"><div><br></div><div>---- On Wed, 20 Dec 2017 23:20:54 -0500 <b>DM Smith <dmsmith@crosswire.org></b> wrote ----<br></div></div><div><br></div><blockquote style="border-left: 1px solid #cccccc; padding-left: 6px; margin:0 0 0 5px"><div><div>I’ll check it out. I think that JSword’s example uses the xslt from BibleDesktop. I’ve been working on that. <br></div><div><br></div><div><div>I should move it into JSword. <br></div><div><br></div><div><div>— DM Smith<br></div><div><br></div></div><div><div><br></div><div>On Dec 20, 2017, at 7:54 PM, Tim Hawes <<a href="mailto:trhawes@althusius.net">trhawes@althusius.net</a>> wrote:<br></div></div><div><br></div><blockquote><div><div><span>_______________________________________________</span><br></div><div><span>jsword-devel mailing list</span><br></div><div><span><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a></span><br></div><div><span><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a></span><br></div></div></blockquote></div><div>_______________________________________________ <br></div><div>jsword-devel mailing list <br></div><div><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br></div><div><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a> <br></div></div><blockquote><div><div style="font-size: 10pt; font-family: Verdana, Arial, Helvetica, sans-serif"><div>When trying to run the APIExamples.java for JSword, it throws this exception:<br></div><div><br></div><div>Exception in thread "main" java.lang.NullPointerException<br></div><div>at org.crosswire.jsword.util.ConverterFactory.getConverter(ConverterFactory.java:51)<br></div><div>at com.selfdidactic.APIExamples.readStyledText(APIExamples.java:163)<br></div><div>at com.selfdidactic.APIExamples.main(APIExamples.java:461)<br></div><div><br></div><div>It is happening in the readStyledText method where...<br></div><div><br></div><div>Converter styler = ConverterFactory.getConverter();<br></div><div><br></div><div><br></div><div>Has JSword changed without updating the API examples?<br></div><div><br></div><div><br></div></div></div></blockquote></blockquote></div><div><br></div></div><br></body></html>