Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ArrayIndexOutOfBoundsException - Pls help

2 views
Skip to first unread message

gundamseed

unread,
Jul 1, 2004, 8:43:07 AM7/1/04
to
Brief description:

1) HTMLBrower (my class which extends JEditorPane) is initialized with an
HTML file.
2) I'm passing this HTMLBrowser object into a thread.
3) The thread is listening to a server process and will call setPage( ) from
HTMLBrowser when the condition is met.

Sometimes, I got the following exceptions. Problem is, it does not thrown
all the time.
java.lang.ArrayIndexOutOfBoundsException: 0
at
javax.swing.text.html.BlockView.layoutMinorAxis(BlockView.java:273)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java(Compiled
Code))
at javax.swing.text.BoxView.layout(BoxView.java(Compiled Code))
at javax.swing.text.BoxView.setSize(BoxView.java(Compiled Code))
at
javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1639)
at
javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1358)
at
javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:668)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:802)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:781)
at javax.swing.JComponent.paintComponent(JComponent.java:574)
at javax.swing.JComponent.paint(JComponent.java:841)
at
com.ibm.ws.install.htmlshell.uicomponents.HTMLBrowser.paint(HTMLBrowser.java
:114)
at
javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4910)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4863)
at javax.swing.JComponent._paintImmediately(JComponent.java:4808)
at javax.swing.JComponent.paintImmediately(JComponent.java:4611)
at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:438)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQu
eueUtilities.java:144)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:205)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:532)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:235)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:185)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:179)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:171)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:134)

I don't really know what is going on .... Thread problem? Is passing a
JEditorPane object into a Thread causing problem?
Any idea? Any insight would be much appreciated. Thanks in advance!!

Michael Cox

unread,
Jul 1, 2004, 7:19:44 PM7/1/04
to
> javax.swing.text.html.BlockView.layoutMinorAxis(BlockView.java:273)

Suggest you check out BlockView.java, line 273


0 new messages