IBM Support

PH53076: JAVA.LANG.INDEXOUTOFBOUNDSEXCEPTION DURING REMOTE DEBUG SESSION START UP  RECEIVED

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • ID/z  client receives the following NPE
    
    !MESSAGE Index 0 out of bounds for length 0
    !STACK 0
    java.lang.IndexOutOfBoundsException: Index 0 out of bounds for
    length 0
     at
    java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditi
    ons.java:64)
     at
    java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(
    Preconditions.java:70)
     at
    java.base/jdk.internal.util.Preconditions.checkIndex(Preconditio
    ns.java:248)
     at java.base/java.util.Objects.checkIndex(Objects.java:372)
     at java.base/java.util.ArrayList.get(ArrayList.java:459)
     at
    java.base/java.util.Collections$UnmodifiableList.get(Collections
    .java:1310)
     at
    com.ibm.debug.pdt.editors.rdz.ui.DebugPropertyGroupDialog.setIni
    tialSelection(DebugPropertyGroupDialog.java:85)
     at
    com.ibm.debug.pdt.editors.rdz.ui.DebugPropertyGroupDialog.create
    DialogArea(DebugPropertyGroupDialog.java:113)
     at
    org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:767)
     at
    com.ibm.debug.pdt.internal.ui.dialogs.DebugTrayDialog.createCont
    ents(DebugTrayDialog.java:43)
     at org.eclipse.jface.window.Window.create(Window.java:431)
     at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1094)
     at org.eclipse.jface.window.Window.open(Window.java:788)
     at
    com.ibm.debug.pdt.internal.editors.rdz.RdzEditorUtilities.getDeb
    ugPropertyGroup(RdzEditorUtilities.java:272)
     at
    com.ibm.debug.pdt.internal.editors.rdz.RdzEditorUtilities.retrie
    veAndAssociateDebugPropertyGroup(RdzEditorUtilities.java:344)
     at
    com.ibm.debug.pdt.internal.editors.rdz.COBOLWrapper.init(COBOLWr
    apper.java:63)
     at
    org.eclipse.ui.internal.EditorReference.initialize(EditorReferen
    ce.java:353)
     at
    org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.creat
    e(CompatibilityPart.java:344)
     at
    java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(
    Native Method)
     at
    java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(N
    ativeMethodAccessorImpl.java:62)
     at
    java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invo
    ke(DelegatingMethodAccessorImpl.java:43)
     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
     at
    org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRe
    questor.java:58)
     at
    org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(In
    jectorImpl.java:995)
     at
    org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(In
    jectorImpl.java:960)
     at
    org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(Inje
    ctorImpl.java:140)
     at
    org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(Inject
    orImpl.java:403)
     at
    org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.j
    ava:330)
     at
    org.eclipse.e4.core.contexts.ContextInjectionFactory.make(Contex
    tInjectionFactory.java:202)
     at
    org.eclipse.e4.ui.internal.workbench.ReflectionContributionFacto
    ry.createFromBundle(ReflectionContributionFactory.java:91)
     at
    org.eclipse.e4.ui.internal.workbench.ReflectionContributionFacto
    ry.doCreate(ReflectionContributionFactory.java:60)
     at
    org.eclipse.e4.ui.internal.workbench.ReflectionContributionFacto
    ry.create(ReflectionContributionFactory.java:42)
     at
    org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRendere
    r.createWidget(ContributedPartRenderer.java:132)
     at
    org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.cre
    ateWidget(PartRenderingEngine.java:995)
     at
    org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.saf
    eCreateGui(PartRenderingEngine.java:659)
     at
    org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.saf
    eCreateGui(PartRenderingEngine.java:763)
     at
    org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.r
    un(PartRenderingEngine.java:728)
     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
     at
    org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.cre
    ateGui(PartRenderingEngine.java:712)
     at
    org.eclipse.e4.ui.internal.workbench.PartServiceImpl.lambda$0(Pa
    rtServiceImpl.java:105)
     at
    org.eclipse.e4.ui.services.internal.events.UIEventHandler.lambda
    $0(UIEventHandler.java:38)
     at
    org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:
    236)
     at
    org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.j
    ava:133)
     at org.eclipse.swt.widgets.Display.syncExec(Display.java:4779)
     at
    org.eclipse.e4.ui.workbench.swt.DisplayUISynchronize.syncExec(Di
    splayUISynchronize.java:34)
     at
    org.eclipse.e4.ui.services.internal.events.UIEventHandler.handle
    Event(UIEventHandler.java:38)
     at
    org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEve
    nt(EventHandlerWrapper.java:205)
     at
    org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchE
    vent(EventHandlerTracker.java:203)
     at
    org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchE
    vent(EventHandlerTracker.java:1)
     at
    org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(E
    ventManager.java:234)
     at
    org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventS
    ynchronous(ListenerQueue.java:151)
     at
    org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(
    EventAdminImpl.java:133)
     at
    org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(Even
    tAdminImpl.java:75)
     at
    org.eclipse.equinox.internal.event.EventComponent.sendEvent(Even
    tComponent.java:44)
     at
    org.eclipse.e4.ui.services.internal.events.EventBroker.send(Even
    tBroker.java:55)
     at
    org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChan
    ged(UIEventPublisher.java:63)
     at
    org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(Bas
    icNotifierImpl.java:424)
     at
    org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl
    .setSelectedElementGen(ElementContainerImpl.java:170)
     at
    org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl
    .setSelectedElement(ElementContainerImpl.java:188)
     at
    org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElemen
    tInWindow(ModelServiceImpl.java:660)
     at
    org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop
    (ModelServiceImpl.java:624)
     at
    org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBri
    ngToTop(PartServiceImpl.java:787)
     at
    org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(
    PartServiceImpl.java:401)
     at
    org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(Pa
    rtServiceImpl.java:1261)
     at
    org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPa
    ge.java:3207)
     at
    org.eclipse.ui.internal.WorkbenchPage.lambda$9(WorkbenchPage.jav
    a:3097)
     at
    org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.jav
    a:74)
     at
    org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.j
    ava:3095)
     at
    org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.j
    ava:3065)
     at
    org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.
    lambda$0(SourceLookupFacility.java:567)
     at
    org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.jav
    a:74)
     at
    org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.
    openEditor(SourceLookupFacility.java:574)
     at
    org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.
    openEditor(SourceLookupFacility.java:469)
     at
    org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.
    display(SourceLookupFacility.java:410)
     at
    org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$
    SourceDisplayJob.runInUIThread(SourceLookupFacility.java:763)
     at org.eclipse.ui.progress.UIJob.lambda$0(UIJob.java:95)
     at
    org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
     at
    org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchroniz
    er.java:185)
     at
    org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:40
    35)
     at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:363
    5)
    ...
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users of IDz property groups that had two or more        *
    * property groups defined for a single connection, and 0       *
    * property groups defined for another conneciton.              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Due to improper array index checking, there was a runtime    *
    * error when trying to initialize the COBOL/PL1 editors when   *
    * the user had 2 property groups defined in one connection,    *
    * and 0 property groups defined in another connection.         *
    *                                                              *
    * This problem was fixed in version 15.0.7 and 16.0.2 of IDz   *
    * and IDzEE                                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The code was fixed to properly check the lengths of an
    arrayList.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH53076

  • Reported component name

    DEV FOR Z/OS

  • Reported component ID

    5724T0700

  • Reported release

    G00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-03-08

  • Closed date

    2023-06-15

  • Last modified date

    2023-06-15

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DEV FOR Z/OS

  • Fixed component ID

    5724T0700

Applicable component levels

[{"Business Unit":{"code":"BU029","label":"Software"},"Product":{"code":"SSJK49","label":"IBM Developer for z Systems"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"G00"}]

Document Information

Modified date:
15 June 2023