[bd-users] bibledesktop 0.9.9: null pointer exception on startup

DM Smith dmsmith555 at gmail.com
Tue Mar 29 13:44:26 MST 2005


Justus,
Thanks for sharing your findings with us. It helps us provide what 
people want and need.

I will take a look at it. But it may have to wait till next week as I am 
on holiday with unreliable access to internet. And I won't be able to 
test on Linux till I get home.

We routinely test with 1.4.2 and that worked for me under Fedora Core 3.
Since we are doing cross-platform development of BibleDesktop for 
Windows, Mac and Linux, we are limited to develop under 1.4 as Mac does 
not yet support 1.5 and won't for the existing versions of their OS.

Anyway, you could try installing 1.4.2 as an "alternative" if you are 
running Fedora. You can find instructions on how to do that here:
www.crosswire.org/*jsword*/linux*java*.html

In looking at the trace, it appears that it is trying to get a font size 
from a font that does not exist. The default font is Serif 14pt.

You could play with ~/.jsword/desktop.properties (it may not exist, but 
you can create it) and add/modify a line like the following:
BibleDisplay.ConfigurableFont=Dialog,0,18
The first value is the name of the font as Java can handle it, the 
second value indicates whether it is plain, bold or italic.
0 is plain.

Justus Piater wrote:

>Hi,
>
>I just downloaded bibledesktop 0.9.9, and when I launch it using
>jsword.sh (using Sun's JRE 1.5 under Linux), it crashes just after
>completing the progress bar in the startup screen.
>
>This happens regardless whether any sword modules are installed or
>not. If not, I can install using the provided interface, but
>afterwards the crash still happens.
>
>Any help is appreciated... Thanks!
>Justus
>
>
>29-mars-2005 18:50:51 org.crosswire.jsword.book.sword.SwordBookDriver getBooks
>INFO: Unsupported Book: josephus
>29-mars-2005 18:50:51 org.crosswire.jsword.book.sword.ConfigEntryTable loadContents
>INFO: Ignoring empty entry in pilgrim: CopyrightHolder=
>29-mars-2005 18:50:51 org.crosswire.jsword.book.sword.ConfigEntryTable loadContents
>INFO: Ignoring empty entry in pilgrim: CopyrightDate=
>29-mars-2005 18:50:51 org.crosswire.jsword.book.sword.ConfigEntryTable loadContents
>INFO: Ignoring empty entry in pilgrim: DistributionNotes=
>29-mars-2005 18:50:51 org.crosswire.jsword.book.sword.SwordBookDriver getBooks
>INFO: Unsupported Book: pilgrim
>29-mars-2005 18:50:55 org.crosswire.common.util.Reporter informUser
>INFO: null
>java.lang.NullPointerException
>	at javax.swing.text.html.CSS$FontSize.getValue(CSS.java:1672)
>	at javax.swing.text.html.CSS$FontSize.toStyleConstants(CSS.java:1805)
>	at javax.swing.text.html.StyleSheet$ViewAttributeSet.getAttribute(StyleSheet.java:2630)
>	at javax.swing.text.StyleConstants.getFontSize(StyleConstants.java:358)
>	at javax.swing.text.html.CSS$FontSize.getValue(CSS.java:1678)
>	at javax.swing.text.html.CSS$FontSize.toStyleConstants(CSS.java:1805)
>	at javax.swing.text.html.StyleSheet$ViewAttributeSet.getAttribute(StyleSheet.java:2630)
>	at javax.swing.text.StyleConstants.getFontSize(StyleConstants.java:358)
>	at javax.swing.text.html.CSS$FontSize.getValue(CSS.java:1678)
>	at javax.swing.text.html.CSS.getFontSize(CSS.java:614)
>	at javax.swing.text.html.CSS.getFont(CSS.java:574)
>	at javax.swing.text.html.StyleSheet.getFont(StyleSheet.java:867)
>	at javax.swing.text.DefaultStyledDocument.getFont(DefaultStyledDocument.java:777)
>	at javax.swing.text.LabelView.setPropertiesFromAttributes(LabelView.java:128)
>	at javax.swing.text.html.InlineView.setPropertiesFromAttributes(InlineView.java:229)
>	at javax.swing.text.LabelView.sync(LabelView.java:39)
>	at javax.swing.text.LabelView.getFont(LabelView.java:189)
>	at javax.swing.text.GlyphPainter1.sync(GlyphPainter1.java:194)
>	at javax.swing.text.GlyphPainter1.getSpan(GlyphPainter1.java:42)
>	at javax.swing.text.GlyphView.getPreferredSpan(GlyphView.java:536)
>	at javax.swing.text.FlowView$LogicalView.getPreferredSpan(FlowView.java:692)
>	at javax.swing.text.FlowView.calculateMinorAxisRequirements(FlowView.java:216)
>	at javax.swing.text.html.ParagraphView.calculateMinorAxisRequirements(ParagraphView.java:128)
>	at javax.swing.text.BoxView.checkRequests(BoxView.java:911)
>	at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:542)
>	at javax.swing.text.html.ParagraphView.getMinimumSpan(ParagraphView.java:257)
>	at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:879)
>	at javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:129)
>	at javax.swing.text.BoxView.checkRequests(BoxView.java:911)
>	at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:542)
>	at javax.swing.text.html.BlockView.getMinimumSpan(BlockView.java:362)
>	at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:879)
>	at javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:129)
>	at javax.swing.text.BoxView.checkRequests(BoxView.java:911)
>	at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:325)
>	at javax.swing.text.BoxView.layout(BoxView.java:682)
>	at javax.swing.text.BoxView.setSize(BoxView.java:379)
>	at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1631)
>	at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:830)
>	at javax.swing.JComponent.getPreferredSize(JComponent.java:1582)
>	at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1227)
>	at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
>	at java.awt.Container.layout(Container.java:1401)
>	at java.awt.Container.doLayout(Container.java:1390)
>	at java.awt.Container.validateTree(Container.java:1473)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validate(Container.java:1448)
>	at java.awt.Window.dispatchEventImpl(Window.java:1764)
>	at java.awt.Component.dispatchEvent(Component.java:3803)
>	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
>	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
>	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
>	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>29-mars-2005 18:50:55 org.crosswire.common.util.Reporter informUser
>INFO: null
>java.lang.NullPointerException
>	at javax.swing.text.html.CSS$FontSize.getValue(CSS.java:1672)
>	at javax.swing.text.html.CSS$FontSize.toStyleConstants(CSS.java:1805)
>	at javax.swing.text.html.StyleSheet$ViewAttributeSet.getAttribute(StyleSheet.java:2630)
>	at javax.swing.text.StyleConstants.getFontSize(StyleConstants.java:358)
>	at javax.swing.text.html.CSS$FontSize.getValue(CSS.java:1678)
>	at javax.swing.text.html.CSS$FontSize.toStyleConstants(CSS.java:1805)
>	at javax.swing.text.html.StyleSheet$ViewAttributeSet.getAttribute(StyleSheet.java:2630)
>	at javax.swing.text.StyleConstants.getFontSize(StyleConstants.java:358)
>	at javax.swing.text.html.CSS$FontSize.getValue(CSS.java:1678)
>	at javax.swing.text.html.CSS.getFontSize(CSS.java:614)
>	at javax.swing.text.html.CSS.getFont(CSS.java:574)
>	at javax.swing.text.html.StyleSheet.getFont(StyleSheet.java:867)
>	at javax.swing.text.DefaultStyledDocument.getFont(DefaultStyledDocument.java:777)
>	at javax.swing.text.LabelView.setPropertiesFromAttributes(LabelView.java:128)
>	at javax.swing.text.html.InlineView.setPropertiesFromAttributes(InlineView.java:229)
>	at javax.swing.text.LabelView.sync(LabelView.java:39)
>	at javax.swing.text.LabelView.getFont(LabelView.java:189)
>	at javax.swing.text.GlyphPainter1.sync(GlyphPainter1.java:194)
>	at javax.swing.text.GlyphPainter1.getSpan(GlyphPainter1.java:42)
>	at javax.swing.text.GlyphView.getPreferredSpan(GlyphView.java:536)
>	at javax.swing.text.FlowView$LogicalView.getPreferredSpan(FlowView.java:692)
>	at javax.swing.text.FlowView.calculateMinorAxisRequirements(FlowView.java:216)
>	at javax.swing.text.html.ParagraphView.calculateMinorAxisRequirements(ParagraphView.java:128)
>	at javax.swing.text.BoxView.checkRequests(BoxView.java:911)
>	at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:542)
>	at javax.swing.text.html.ParagraphView.getMinimumSpan(ParagraphView.java:257)
>	at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:879)
>	at javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:129)
>	at javax.swing.text.BoxView.checkRequests(BoxView.java:911)
>	at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:542)
>	at javax.swing.text.html.BlockView.getMinimumSpan(BlockView.java:362)
>	at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:879)
>	at javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:129)
>	at javax.swing.text.BoxView.checkRequests(BoxView.java:911)
>	at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:325)
>	at javax.swing.text.BoxView.layout(BoxView.java:682)
>	at javax.swing.text.BoxView.setSize(BoxView.java:379)
>	at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1631)
>	at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:830)
>	at javax.swing.JComponent.getPreferredSize(JComponent.java:1582)
>	at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1227)
>	at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
>	at java.awt.Container.layout(Container.java:1401)
>	at java.awt.Container.doLayout(Container.java:1390)
>	at java.awt.Container.validateTree(Container.java:1473)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validate(Container.java:1448)
>	at java.awt.Window.dispatchEventImpl(Window.java:1764)
>	at java.awt.Component.dispatchEvent(Component.java:3803)
>	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
>	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
>	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
>	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
>	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>java.lang.NullPointerException
>	at javax.swing.text.html.CSS$FontSize.getValue(CSS.java:1672)
>	at javax.swing.text.html.CSS$FontSize.toStyleConstants(CSS.java:1805)
>	at javax.swing.text.html.StyleSheet$ViewAttributeSet.getAttribute(StyleSheet.java:2630)
>	at javax.swing.text.StyleConstants.getFontSize(StyleConstants.java:358)
>	at javax.swing.text.html.CSS$FontSize.getValue(CSS.java:1678)
>	at javax.swing.text.html.CSS$FontSize.toStyleConstants(CSS.java:1805)
>	at javax.swing.text.html.StyleSheet$ViewAttributeSet.getAttribute(StyleSheet.java:2630)
>	at javax.swing.text.StyleConstants.getFontSize(StyleConstants.java:358)
>	at javax.swing.text.html.CSS$FontSize.getValue(CSS.java:1678)
>	at javax.swing.text.html.CSS.getFontSize(CSS.java:614)
>	at javax.swing.text.html.CSS.getFont(CSS.java:574)
>	at javax.swing.text.html.StyleSheet.getFont(StyleSheet.java:867)
>	at javax.swing.text.DefaultStyledDocument.getFont(DefaultStyledDocument.java:777)
>	at javax.swing.text.LabelView.setPropertiesFromAttributes(LabelView.java:128)
>	at javax.swing.text.html.InlineView.setPropertiesFromAttributes(InlineView.java:229)
>	at javax.swing.text.LabelView.sync(LabelView.java:39)
>	at javax.swing.text.LabelView.getFont(LabelView.java:189)
>	at javax.swing.text.GlyphPainter1.sync(GlyphPainter1.java:194)
>	at javax.swing.text.GlyphPainter1.getSpan(GlyphPainter1.java:42)
>	at javax.swing.text.GlyphView.getPreferredSpan(GlyphView.java:536)
>	at javax.swing.text.FlowView$LogicalView.getPreferredSpan(FlowView.java:692)
>	at javax.swing.text.FlowView.calculateMinorAxisRequirements(FlowView.java:216)
>	at javax.swing.text.html.ParagraphView.calculateMinorAxisRequirements(ParagraphView.java:128)
>	at javax.swing.text.BoxView.checkRequests(BoxView.java:911)
>	at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:542)
>	at javax.swing.text.html.ParagraphView.getMinimumSpan(ParagraphView.java:257)
>	at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:879)
>	at javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:129)
>	at javax.swing.text.BoxView.checkRequests(BoxView.java:911)
>	at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:542)
>	at javax.swing.text.html.BlockView.getMinimumSpan(BlockView.java:362)
>	at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:879)
>	at javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:129)
>	at javax.swing.text.BoxView.checkRequests(BoxView.java:911)
>	at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:325)
>	at javax.swing.text.BoxView.layout(BoxView.java:682)
>	at javax.swing.text.BoxView.setSize(BoxView.java:379)
>	at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1631)
>	at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:830)
>	at javax.swing.JComponent.getPreferredSize(JComponent.java:1582)
>	at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1227)
>	at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
>	at java.awt.Container.layout(Container.java:1401)
>	at java.awt.Container.doLayout(Container.java:1390)
>	at java.awt.Container.validateTree(Container.java:1473)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validateTree(Container.java:1480)
>	at java.awt.Container.validate(Container.java:1448)
>	at java.awt.Window.show(Window.java:507)
>	at org.crosswire.bibledesktop.desktop.Desktop$1.run(Desktop.java:129)
>[process hangs here]
>
>  
>


More information about the bibledesktop-users mailing list