Announcement Announcement Module
Collapse
No announcement yet.
ArrayIndexOutOfBoundsException in JTabbedPane when using OverlayValidationInterceptor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ArrayIndexOutOfBoundsException in JTabbedPane when using OverlayValidationInterceptor

    Hi

    I use the TabbedDialogPage to create a tabbed dialog.
    I added 2 FormBackedDialogPages.

    The dialog shows ok, but when i switch to the second page I get an ArrayIndexOutOfBoundsException:
    SEVERE: Exception on AWT Event Thread
    java.lang.ArrayIndexOutOfBoundsException: 7
    at java.awt.Container.validateTree(Container.java:147 6)
    at java.awt.Container.validateTree(Container.java:148 0)
    at java.awt.Container.validate(Container.java:1448)
    at javax.swing.RepaintManager.validateInvalidComponen ts(RepaintManager.java:379)
    at javax.swing.SystemEventQueueUtilities$ComponentWor kRequest.run(SystemEventQueueUtilities.java:113)
    at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 461)
    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at java.awt.Component.show(Component.java:1300)
    at java.awt.Component.setVisible(Component.java:1253)
    at org.springframework.richclient.dialog.ApplicationD ialog.showDialog(ApplicationDialog.java:274)
    ....

    I noticed that when I remove the OverlayValidationInterceptorFactory from the formComponentInterceptorFactory, no Exception is thrown!

    So is there a bug in this Interceptor?
    Does someone have a solution?

    Thanx
    Roll

  • #2
    Same here...

    Hi

    You may have already managed to identify an extra parameter... This has been bugging me for a while BUT if I run under JDK 1.5.0_02 it is ok... _04+ it is not!!!

    see RCP-216
    http://opensource.atlassian.com/proj...browse/RCP-216

    Is it what you're experiencing?

    Benoit

    Comment


    • #3
      Thanx

      Thanks a lot Benoit

      I just installed the latest revision, and it works!!!
      (btw: I am using jdk1.5.0_06)

      Thanks a lot for your work
      Roll

      Comment


      • #4
        Hi

        You have to thank Mathias for the fix, I only managed to come up with a test case. The fix is Waaaayyyy beyond me.

        Thanks Mathias!

        Benoit

        Comment

        Working...
        X