Uploaded image for project: 'Bible Desktop'
  1. Bible Desktop
  2. BD-101

Exception thrown when starting verses on one line

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5 (was 1.0.7)
    • Component/s: book display
    • Labels:
      None
    • Environment:

      Mac OS 10.4.9
      Java 1.5.0_07
      BibleDesktop 2007-06-08 nightly build
      ESV Sword module

      Description

      I am getting an exception when turning on "Start verses on separate lines" using the 2007-06-08 nightly build. Here is the exception stack trace from my console:

      WARNING: Could not execute method org.crosswire.bibledesktop.desktop.DesktopActions.doVLine()
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.crosswire.common.swing.ActionFactory.actionPerformed(ActionFactory.java:108)
      at org.crosswire.common.swing.CWAction.actionPerformed(CWAction.java:63)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:269)
      at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
      at apple.laf.ScreenCheckboxMenuItem.itemStateChanged(ScreenCheckboxMenuItem.java:170)
      at java.awt.CheckboxMenuItem.processItemEvent(CheckboxMenuItem.java:360)
      at java.awt.CheckboxMenuItem.processEvent(CheckboxMenuItem.java:328)
      at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:298)
      at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:286)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:466)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      Caused by: org.jdom.IllegalAddException: The element "osis" could not be added as the root of the document: The Content already has an existing parent document
      at org.jdom.ContentList.add(ContentList.java:214)
      at org.jdom.ContentList.add(ContentList.java:140)
      at java.util.AbstractList.add(AbstractList.java:89)
      at org.jdom.Document.setRootElement(Document.java:236)
      at org.jdom.Document.<init>(Document.java:117)
      at org.jdom.Document.<init>(Document.java:154)
      at org.crosswire.jsword.book.BookData.getSAXEventProvider(BookData.java:113)
      at org.crosswire.bibledesktop.display.basic.TextPaneBookDataDisplay.refresh(TextPaneBookDataDisplay.java:141)
      at org.crosswire.bibledesktop.display.ProxyBookDataDisplay.refresh(ProxyBookDataDisplay.java:120)
      at org.crosswire.bibledesktop.display.basic.TabbedBookDataDisplay.refresh(TabbedBookDataDisplay.java:182)
      at org.crosswire.bibledesktop.desktop.DesktopActions.doVLine(DesktopActions.java:289)
      ... 22 more

      Here are the steps I followed to reproduce:

      1) Open up BD.
      2) Type in "rom 8" into the Show Passage field
      3) Go to the View menu and select "Start verses on separate lines"
      4) Check your Java consoel (or system console if using Mac OS for the exception

        Attachments

          Activity

            People

            • Assignee:
              dmsmith DM Smith
              Reporter:
              gee4vee Gabriel Valencia
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: