IBM Support

PI97986: StringIndexOutOfBoundsException occurs when reading custom routing policies for OSGi applications

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • 'XDTreeBuilder W OCSP0002E: Exception:
    java.lang.StringIndexOutOfBoundsException' is logged in
    SystemOutlog when reading custom routing policies for OSGi
    applications.
    
    Corresponding FFDC:
    
    FFDC Exception:java.lang.StringIndexOutOfBoundsException
    SourceId:com.ibm.ws.odc.xd.XDTreeBuilder
    ProbeId:handleWorkClassChange
    Reporter:com.ibm.ws.odc.xd.XDTreeBuilder@52f17e81
    java.lang.StringIndexOutOfBoundsException
            at java.lang.String.substring(String.java:1402)
    at
    com.ibm.ws.odc.xd.XDTreeBuilder.processWorkClassModules(XDTr
    eeBuilder.java:2175)
    at
    com.ibm.ws.odc.xd.XDTreeBuilder.handleWorkClassChange(XDTree
    Builder.java:1895)
    at
    com.ibm.ws.odc.xd.XDTreeBuilder.readWorkClasses(XDTreeBuilde
    r.java:1328)
    at
    com.ibm.ws.odc.xd.XDTreeBuilder.readApplicationWorkClasses(X
    DTreeBuilder.java:1237)
    at
    com.ibm.ws.odc.xd.XDTreeBuilder.start(XDTreeBuilder.java:320
    )
          at com.ibm.ws.odc.ODCService.start(ODCService.java:94)
    at
    com.ibm.ws.runtime.component.ContainerHelper.startComponents
    (ContainerHelper.java:540)
    at
    com.ibm.ws.runtime.component.ContainerImpl.startComponents(C
    ontainerImpl.java:627)
    at
    com.ibm.ws.runtime.component.ContainerImpl.start(ContainerIm
    pl.java:618)
    at
    com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.jav
    a:540)
    at
    com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServer
    Impl.java:316)
    at
    com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:229)
    at
    com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:702)
           at com.ibm.ws.runtime.WsServer.main(WsServer.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssorImpl.java:95)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
    thodAccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:508)
    at
    com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.jav
    a:234)
    at
    com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:96)
    at
    com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:77)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssorImpl.java:95)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
    thodAccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:508)
    at
    org.eclipse.equinox.internal.app.EclipseAppContainer.callMet
    hodWithException(EclipseAppContainer.java:587)
    at
    org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
    eAppHandle.java:198)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
    .runApplication(EclipseAppLauncher.java:110)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
    .start(EclipseAppLauncher.java:79)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
    tarter.java:369)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
    tarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssorImpl.java:95)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
    thodAccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:508)
    at
    org.eclipse.core.launcher.Main.invokeFramework(Main.java:340
    )
       at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
            at org.eclipse.core.launcher.Main.run(Main.java:981)
    at
    com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLau
    ncher.java:402)
    at
    com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.jav
    a:165)
    
    
    
     
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server WAS ND edition- Virtual              *
    *                  Enterprise/IM Component                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: 'XDTreeBuilder W OCSP0002E: Exception:  *
    *                      java.lang.StringIndexOutOfBoundsExcepti *
    *                      on' is logged in SystemOut.log          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When reading custom routing policies associated with OSGi
    applications a java.lang.StringIndexOutOfBoundsException is
    encountered and logs the following FFDC:
    
    FFDC Exception:java.lang.StringIndexOutOfBoundsException
    SourceId:com.ibm.ws.odc.xd.XDTreeBuilder
    ProbeId:handleWorkClassChange
    Reporter:com.ibm.ws.odc.xd.XDTreeBuilder@52f17e81
    java.lang.StringIndexOutOfBoundsException
            at java.lang.String.substring(String.java:1402)
            at
    com.ibm.ws.odc.xd.XDTreeBuilder.processWorkClassModules(XDTreeBu
    ilder.java:2175)
            at
    com.ibm.ws.odc.xd.XDTreeBuilder.handleWorkClassChange(XDTreeBuil
    der.java:1895)
            at
    com.ibm.ws.odc.xd.XDTreeBuilder.readWorkClasses(XDTreeBuilder.ja
    va:1328)
            at
    com.ibm.ws.odc.xd.XDTreeBuilder.readApplicationWorkClasses(XDTre
    eBuilder.java:1237)
            at
    com.ibm.ws.odc.xd.XDTreeBuilder.start(XDTreeBuilder.java:320)
            at com.ibm.ws.odc.ODCService.start(ODCService.java:94)
            at
    com.ibm.ws.runtime.component.ContainerHelper.startComponents(Con
    tainerHelper.java:540)
            at
    com.ibm.ws.runtime.component.ContainerImpl.startComponents(Conta
    inerImpl.java:627)
            at
    com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.j
    ava:618)
            at
    com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:54
    0)
            at
    com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl
    .java:316)
            at
    com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:229)
            at
    com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:702)
            at com.ibm.ws.runtime.WsServer.main(WsServer.java:59)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:95)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:508)
            at
    com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:23
    4)
            at
    com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:96)
            at
    com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:77)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:95)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:508)
            at
    org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodW
    ithException(EclipseAppContainer.java:587)
            at
    org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseApp
    Handle.java:198)
            at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.run
    Application(EclipseAppLauncher.java:110)
            at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.sta
    rt(EclipseAppLauncher.java:79)
            at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStart
    er.java:369)
            at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStart
    er.java:179)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:95)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:508)
            at
    org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
            at
    org.eclipse.core.launcher.Main.basicRun(Main.java:282)
            at org.eclipse.core.launcher.Main.run(Main.java:981)
            at
    com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLaunche
    r.java:402)
            at
    com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:16
    5)
    

Problem conclusion

  • The On Demand Configuration (ODC) component was modified to
    build the correct configuration repository path for workclass
    routing policies associated with OSGi applications which was the
    root cause of the java.lang.StringIndexOutOfBoundsException.
    
    The fix for this APAR is currently targeted for inclusion in fix
    packs 8.5.5.14 and 9.0.0.8.  Please refer to the Recommended
    Updates page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI97986

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-05-15

  • Closed date

    2018-10-25

  • Last modified date

    2018-10-25

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
18 October 2021