-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
6
-
x86
-
linux
FULL PRODUCT VERSION :
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux localhost 2.6.24.5-desktop-2mnb #1 SMP Thu Jun 12 14:37:30 EDT 2008 i686 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The following exception occurs regularly when I startup my application:
java.lang.ArrayIndexOutOfBoundsException: 1
at javax.swing.text.html.BlockView.layoutMinorAxis(BlockView.java:245)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:327)
at javax.swing.text.BoxView.layout(BoxView.java:691)
at javax.swing.text.BoxView.setSize(BoxView.java:380)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanelDecoratorUI.calculateSentenceRectangle(EventInstanceListPanelDecoratorUI.java:280)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanelDecoratorUI.calculateGeometry(EventInstanceListPanelDecoratorUI.java:168)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanelDecoratorUI.getPreferredSize(EventInstanceListPanelDecoratorUI.java:510)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1632)
at nl.semlab.swing.widgets.listpanel.ListPanelLayout.layoutContainer(ListPanelLayout.java:79)
at java.awt.Container.layout(Container.java:1432)
at java.awt.Container.doLayout(Container.java:1421)
at nl.semlab.swing.widgets.listpanel.ListPanel$AddPanelRunnable.validate(ListPanel.java:174)
at nl.semlab.swing.widgets.listpanel.ListPanel$AddPanelRunnable.run(ListPanel.java:147)
at nl.semlab.swing.widgets.listpanel.ListPanel.addObject(ListPanel.java:437)
at nl.semlab.swing.widgets.listpanel.ListPanelModel.addObject(ListPanelModel.java:299)
at nl.semlab.swing.widgets.listpanel.ListPanel.addObject(ListPanel.java:419)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanel.access$2(EventInstanceListPanel.java:1)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanel$AddRunnable.run(EventInstanceListPanel.java:233)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
The code I am executing looks like this:
[code]View view = sentencePane.getUI().getRootView(sentencePane).getView(0);
view.setSize(this.sentenceRectangle.width, Short.MAX_VALUE);
int height = (int) view.getPreferredSpan(View.Y_AXIS);[/code]
The "sentencePane" variable is of type JEditorPane and its contents is:
<html>
<head>
</head>
<body>
<br>
    Diversified miners <span class="event2"><a href="http://www.semlab.nl/?action=modifyEventInstance&startIndex=1009">Anglo
American shares rose 1.30 percent</a></span><br>to 346.45 rand and <span class="event2"><a href="http://www.semlab.nl/?action=modifyEventInstance&startIndex=1068">BHP
Billiton was up 1.53 percent</a></span> to 130.92<br>rand.
</body>
<body>
</body>
</html>
I have checked if I am executing my code on the EDT and this seems to be the case (you can also see this in the stack trace).
The exception does not seem to have any impact on how the JEditorPane looks. My applications GUI looks fine with and without the exception.
REPRODUCIBILITY :
This bug can be reproduced occasionally.
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux localhost 2.6.24.5-desktop-2mnb #1 SMP Thu Jun 12 14:37:30 EDT 2008 i686 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The following exception occurs regularly when I startup my application:
java.lang.ArrayIndexOutOfBoundsException: 1
at javax.swing.text.html.BlockView.layoutMinorAxis(BlockView.java:245)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:327)
at javax.swing.text.BoxView.layout(BoxView.java:691)
at javax.swing.text.BoxView.setSize(BoxView.java:380)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanelDecoratorUI.calculateSentenceRectangle(EventInstanceListPanelDecoratorUI.java:280)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanelDecoratorUI.calculateGeometry(EventInstanceListPanelDecoratorUI.java:168)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanelDecoratorUI.getPreferredSize(EventInstanceListPanelDecoratorUI.java:510)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1632)
at nl.semlab.swing.widgets.listpanel.ListPanelLayout.layoutContainer(ListPanelLayout.java:79)
at java.awt.Container.layout(Container.java:1432)
at java.awt.Container.doLayout(Container.java:1421)
at nl.semlab.swing.widgets.listpanel.ListPanel$AddPanelRunnable.validate(ListPanel.java:174)
at nl.semlab.swing.widgets.listpanel.ListPanel$AddPanelRunnable.run(ListPanel.java:147)
at nl.semlab.swing.widgets.listpanel.ListPanel.addObject(ListPanel.java:437)
at nl.semlab.swing.widgets.listpanel.ListPanelModel.addObject(ListPanelModel.java:299)
at nl.semlab.swing.widgets.listpanel.ListPanel.addObject(ListPanel.java:419)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanel.access$2(EventInstanceListPanel.java:1)
at nl.semlab.viewerpro.client.eventinstanceviewer.swing.EventInstanceListPanel$AddRunnable.run(EventInstanceListPanel.java:233)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
The code I am executing looks like this:
[code]View view = sentencePane.getUI().getRootView(sentencePane).getView(0);
view.setSize(this.sentenceRectangle.width, Short.MAX_VALUE);
int height = (int) view.getPreferredSpan(View.Y_AXIS);[/code]
The "sentencePane" variable is of type JEditorPane and its contents is:
<html>
<head>
</head>
<body>
<br>
    Diversified miners <span class="event2"><a href="http://www.semlab.nl/?action=modifyEventInstance&startIndex=1009">Anglo
American shares rose 1.30 percent</a></span><br>to 346.45 rand and <span class="event2"><a href="http://www.semlab.nl/?action=modifyEventInstance&startIndex=1068">BHP
Billiton was up 1.53 percent</a></span> to 130.92<br>rand.
</body>
<body>
</body>
</html>
I have checked if I am executing my code on the EDT and this seems to be the case (you can also see this in the stack trace).
The exception does not seem to have any impact on how the JEditorPane looks. My applications GUI looks fine with and without the exception.
REPRODUCIBILITY :
This bug can be reproduced occasionally.