Share

xtn5250

Tracker: Bugs

5 ArrayIndexOutOfBoundsException in AWT-EventQueue - ID: 2791111
Last Update: Settings changed ( vproietti )

I tried to add some controls to my 5250 panels via a instance of
PanelHandler. It works pretty well but sometimes the AWT-EventQueue throws
an ArrayIndexOutOfBoundsException after returning to a panel without
controls:

Exception in thread "AWT-EventQueue-0"
java.lang.ArrayIndexOutOfBoundsException: No such child: 1
at java.awt.Container.getComponent(Unknown Source)
at javax.swing.JComponent.rectangleIsObscured(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at net.infordata.em.crt.XICrt.paint(XICrt.java:366)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown
Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown
Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)


Martin Fellmann ( datariesa ) - 2009-05-13 10:44

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 3 )

Date: 2009-05-15 09:06
Sender: vproiettiProject Admin

release 1.18h


Date: 2009-05-14 11:24
Sender: nobody

I have tested your version for a while. It would seem the bug has been
fixed! The ArrayIndexOutOfBoundsException did not appear anymore. Thanks
for the help!


Date: 2009-05-13 11:06
Sender: vproiettiProject Admin

I'm not able, at the moment, to do some tests with the code you provided.
Neverthenless I've attached a test version of xtn5250 called
xtn5250_118gb.jar which I think can solve the bug.
If you can test it for me, it will be great.

Keep me updated.

Thanks


Attached Files ( 2 )

Filename Description Download
MyPanelHandler.java simplified PanelHandler Download
xtn5250_118gb.jar 1.18g-beta Download

Changes ( 6 )

Field Old Value Date By
status_id Open 2009-05-15 09:06 vproietti
resolution_id None 2009-05-15 09:06 vproietti
allow_comments 1 2009-05-15 09:06 vproietti
close_date - 2009-05-15 09:06 vproietti
File Added 326849: xtn5250_118gb.jar 2009-05-13 11:01 vproietti
File Added 326846: MyPanelHandler.java 2009-05-13 10:44 datariesa