Crash on first time connect

Richard Houston <[email protected]>
Newsgroups gmane.comp.java.tn5250j.general
Message-ID <[email protected]>
I know this is not a big issue but I figured I would pass it on.

If I set up a new tn5250J install and I add a new connection, if I click
connect, right after creating the new connection, I get the following
exception.

[Java] 0    [main] INFO  org.tn5250j.framework.common.SessionManager  -
New session Manager initialized
     [java] 8    [main] INFO  org.tn5250j.framework.Tn5250jController  -
plugin directory is:
/usr/src/tn5250j/dist/tn5250j-0.5.8Alpha5-run/ext
     [java] 9    [main] INFO  org.tn5250j.framework.Tn5250jController  -
Tn5250j plugin manager created
     [java] 106  [Thread-1] INFO  org.tn5250j.framework.Tn5250jController 
- Tn5250j plugin manager started
     [java] Exception occurred during event dispatching:
     [java] java.lang.ArrayIndexOutOfBoundsException: -1
     [java]     at java.util.Vector.get(Vector.java:712)
     [java]     at
org.tn5250j.Connect$ConfigureTableModel.getPropValue(Unknown Source)
     [java]     at
org.tn5250j.Connect$ConfigureTableModel.getValueAt(Unknown Source)
     [java]     at org.tn5250j.Connect.doActionConnect(Unknown Source)
     [java]     at org.tn5250j.Connect.actionPerformed(Unknown Source)
     [java]     at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
     [java]     at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
     [java]     at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     [java]     at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     [java]     at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
     [java]     at java.awt.Component.processMouseEvent(Component.java:5488)
     [java]     at
javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
     [java]     at java.awt.Component.processEvent(Component.java:5253)
     [java]     at java.awt.Container.processEvent(Container.java:1966)
     [java]     at java.awt.Component.dispatchEventImpl(Component.java:3955)
     [java]     at java.awt.Container.dispatchEventImpl(Container.java:2024)
     [java]     at java.awt.Component.dispatchEvent(Component.java:3803)
     [java]     at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
     [java]     at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
     [java]     at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
     [java]     at java.awt.Container.dispatchEventImpl(Container.java:2010)
     [java]     at java.awt.Window.dispatchEventImpl(Window.java:1774)
     [java]     at java.awt.Component.dispatchEvent(Component.java:3803)
     [java]     at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
     [java]     at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     [java]     at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     [java]     at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
     [java]     at java.awt.Dialog$1.run(Dialog.java:515)
     [java]     at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     [java]     at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
     [java]     at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     [java]     at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     [java]     at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     [java]     at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     [java]     at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Then the hour glass just spins and spins. Now if I close the program down,
open it up again and connect to the new connection i just created it works
fine. Also if i open tn5250j again and create a new new connection, then
click connect it works fine.

I know it an issue that does not happen often put figured I would pass it
on. I am sure someone in user land will complain about it. ;)

Thanks


Regards,
+------------------------------------------+
| Richard Houston                  .^.     |
| R.L.H.  Consulting               /V\     |
| E-Mail  <[email protected]>    /(   )\   |
| WWW     <www.rlhc.net>          ^^-^^    |
+------------------------------------------+




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.