The code I'm running into issues with is here. It could well be I'm mis-using the library?<div><div>final SAXEventProvider osissep = bookData.getSAXEventProvider();</div><div>            TransformingSAXEventProvider htmlsep = null;</div>
<div>            htmlsep = (TransformingSAXEventProvider) new Converter() {</div><div><br></div><div>                public SAXEventProvider convert(final SAXEventProvider provider) throws TransformerException {</div><div>
                    try {</div><div>                        // for now, we just assume that we'll only have one option, but this may change later</div><div>                        // TODO, we can probably cache the resource</div>
<div>                        final TransformingSAXEventProvider tsep = new TransformingSAXEventProvider(getClass()</div><div>                                .getResource(requiredTransformation.iterator().next().getFile()).toURI(),</div>
<div>                                osissep);</div><div><br></div><div>                        // set parameters here</div><div>                        setOptions(tsep, options, version, reference);</div><div>                        setupInterlinearOptions(tsep, interlinearVersion, reference);</div>
<div>                        return tsep;</div><div>                    } catch (final URISyntaxException e) {</div><div>                        throw new StepInternalException("Failed to load resource correctly", e);</div>
<div>                    }</div><div>                }</div><div><br></div><div>            }.convert(osissep);</div><div><br></div><br><div class="gmail_quote">On 27 February 2011 16:52, Chris Burrell <span dir="ltr"><<a href="mailto:chris@burrell.me.uk">chris@burrell.me.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello...<div><br></div><div>I was just wondering if someone has come across this issue before?</div><div><br></div><div>
I have two panes loading two passages (1 ESV, 1 KJV). I am getting the following issue fairly frequently. (this is different to the issue I raised quite a while ago, in that the one before was corruption in the book reading driver).</div>

<div><br></div><div><div>Caused by: java.lang.IllegalStateException: Root element not set</div><div><span style="white-space:pre-wrap">       </span>at org.jdom.Document.getRootElement(Document.java:218)</div>
<div><span style="white-space:pre-wrap">  </span>at org.crosswire.jsword.book.filter.osis.OSISFilter.parse(OSISFilter.java:149)</div><div><span style="white-space:pre-wrap">   </span>at org.crosswire.jsword.book.filter.osis.OSISFilter.toOSIS(OSISFilter.java:74)</div>

<div><span style="white-space:pre-wrap">  </span>at org.crosswire.jsword.book.basic.AbstractPassageBook.getOsisIterator(AbstractPassageBook.java:90)</div><div><span style="white-space:pre-wrap">      </span>at org.crosswire.jsword.book.BookData.getOsisContent(BookData.java:157)</div>

<div><span style="white-space:pre-wrap">  </span>at org.crosswire.jsword.book.BookData.getOsisFragment(BookData.java:100)</div><div><span style="white-space:pre-wrap"> </span>at org.crosswire.jsword.book.BookData.getSAXEventProvider(BookData.java:113)</div>

<div><span style="white-space:pre-wrap">  </span>at com.tyndalehouse.step.core.service.impl.JSwordServiceImpl.getOsisText(JSwordServiceImpl.java:131)</div><div><span style="white-space:pre-wrap">     </span>at com.tyndalehouse.step.core.service.impl.BibleInformationServiceImpl.getPassageText(BibleInformationServiceImpl.java:57)</div>

<div><span style="white-space:pre-wrap">  </span>at com.tyndalehouse.step.rest.controllers.BibleController.getBibleText(BibleController.java:101)</div><div><span style="white-space:pre-wrap"> </span>at com.tyndalehouse.step.rest.controllers.BibleController.getBibleText(BibleController.java:60)</div>

<div><span style="white-space:pre-wrap">  </span>... 28 more</div></div><div><br></div><div>Also DM, have you started looking at JS-109? Just wondering...</div><div>Chris</div><font color="#888888"><div><br></div>
</font></blockquote></div><br></div>