[jsword-devel] [JIRA] Created: (BD-163) Show Difference between bible bug

Tonny Kohar (JIRA) jira at crosswire.org
Mon Nov 22 02:16:06 MST 2010


Show Difference between bible bug
---------------------------------

                 Key: BD-163
                 URL: http://www.crosswire.org/bugs/browse/BD-163
             Project: Bible Desktop
          Issue Type: Bug
         Environment: Tested in BibleDesktop/JSword nightly 2010-10-20 
Ubuntu Linux 10.4
Java 1.6.0_22
            Reporter: Tonny Kohar
            Assignee: DM Smith


Tested in BibleDesktop/JSword nightly 2010-10-20.

Toggle Show Differences (Menu - View) aka comparing bible, does not work. It show empty screen. The log/console show 

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at java.lang.String.charAt(String.java:686)
	at org.crosswire.jsword.book.OSISUtil.getCanonicalText(OSISUtil.java:666)
	at org.crosswire.jsword.book.BookData.getOsisContent(BookData.java:227)
	at org.crosswire.jsword.book.BookData.getOsisFragment(BookData.java:99)
	at org.crosswire.jsword.book.BookData.getSAXEventProvider(BookData.java:112)
	at org.crosswire.bibledesktop.display.basic.TextPaneBookDataDisplay.refresh(TextPaneBookDataDisplay.java:156)
...

Full error log

 org.crosswire.common.swing.ActionFactory(WARNING): Could not execute method org.crosswire.bibledesktop.desktop.DesktopActions.doCompareToggle()
 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:597)
	at org.crosswire.common.swing.ActionFactory.actionPerformed(ActionFactory.java:196)
	at org.crosswire.common.swing.CWAction.actionPerformed(CWAction.java:86)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
	at java.awt.Component.processMouseEvent(Component.java:6267)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6032)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at java.lang.String.charAt(String.java:686)
	at org.crosswire.jsword.book.OSISUtil.getCanonicalText(OSISUtil.java:666)
	at org.crosswire.jsword.book.BookData.getOsisContent(BookData.java:227)
	at org.crosswire.jsword.book.BookData.getOsisFragment(BookData.java:99)
	at org.crosswire.jsword.book.BookData.getSAXEventProvider(BookData.java:112)
	at org.crosswire.bibledesktop.display.basic.TextPaneBookDataDisplay.refresh(TextPaneBookDataDisplay.java:156)
	at org.crosswire.bibledesktop.display.basic.TextPaneBookDataDisplay.setCompareBooks(TextPaneBookDataDisplay.java:126)
	at org.crosswire.bibledesktop.display.basic.TextPaneBookDataDisplay.propertyChange(TextPaneBookDataDisplay.java:265)
	at org.crosswire.bibledesktop.display.basic.TabbedBookDataDisplay.propertyChange(TabbedBookDataDisplay.java:273)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:347)
	at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:75)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:318)
	at org.crosswire.bibledesktop.desktop.Desktop.setCompareShowing(Desktop.java:889)
	at org.crosswire.bibledesktop.desktop.DesktopActions.doCompareToggle(DesktopActions.java:321)
	... 35 more


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.crosswire.org/bugs/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jsword-devel mailing list