Skip to content

ENTER key press on TN 3270 is causing IndexOutOfBoundsException #47

Description

@ketankalia

Protocol - TN3270

Steps

  1. Tried to record a session using TN3270 emulator on JMeter 5.6.3, RTE plugin version 3.3.1
  2. Entered username and pressed enter
    Observed
    Enter key was not accepted
    In Debug log level - saw following exception

(java.awt.event.KeyEvent[KEY_PRESSED,keyCode=10,keyText=Enter,keyChar=Enter,keyLocation=KEY_LOCATION_STANDARD,rawCode=13,primaryLevelUnicode=13,scancode=28,extendedKeyCode=0xa] on Terminal)
2025-08-15 14:11:34,363 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[#37,AWT-EventQueue-0,6,main]
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
at java.base/java.util.ArrayList.rangeCheckForAdd(ArrayList.java:838) ~[?:?]
at java.base/java.util.ArrayList.listIterator(ArrayList.java:1005) ~[?:?]
at com.blazemeter.jmeter.rte.recorder.emulator.FieldBasedEmulator.getInputFields(FieldBasedEmulator.java:53) ~[DEL_jmeter-bzm-rte-3.3.1.jar:?]
at com.blazemeter.jmeter.rte.recorder.emulator.XI5250CrtBase.processAttentionKey(XI5250CrtBase.java:122) ~[DEL_jmeter-bzm-rte-3.3.1.jar:?]
at com.blazemeter.jmeter.rte.recorder.emulator.XI5250CrtBase.processKeyEvent(XI5250CrtBase.java:96) ~[DEL_jmeter-bzm-rte-3.3.1.jar:?]
at java.desktop/java.awt.Component.processEvent(Component.java:6398) ~[?:?]

Expected
Recording should be able to identify Enter key press

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions