IBM Support

PH39100: WASPOSTUPGRADE FROM 7.0 TO 9.0 FAILS WITH ARRAYINDEXOUTOFBOUNDSEXCEPTION

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

  • Customer is migrating from WAS 7.0.0.23 to 9.0.5.7 .
    
    
    Postupgrade is fails.??Command run: ./WASPostUpgrade.sh
    /opt/migration/CJ -profileName AppSrv01V9 -oldProfile AppSrv01
    -resolvePortConflicts incrementCurrent -backupConfig TRUE
    -includeApps false -username wpAdmin -password sabesp99
    -traceString "*=all=enabled"
    
    
    
    ?[07/13/2021 07:45:51:322 BRT] unresolved ports [07/13/2021
    07:45:51:322 BRT] 443, 80, 8008 [07/13/2021 07:45:51:322 BRT]
    [07/13/2021 07:45:55:716 BRT] Running $AdminTask installARSapp
    task [07/13/2021 07:45:59:353 BRT] WASX7357I: By request, this
    scripting client is not connected to any server process. Certain
    configuration and application operations will be available in
    local mode. [07/13/2021 07:46:21:839 BRT]
    java.lang.ArrayIndexOutOfBoundsException: Array index out of
    range: 0 com.ibm.ws.migration.utility.UpgradeException:
    java.lang.ArrayIndexOutOfBoundsException: Array index out of
    range: 0 at com.ibm.ws.migration.postupgrade.Restore.<init>(Res
    tore.java:270)at com.ibm.ws.migration.postupgrade.WASPostUpgrade
    ostUpgrade.java:387)at com.ibm.ws.migration.postupgrade.WASPostU
    Upgrade.java:567)at sun.reflect.NativeMethodAccessorImpl.invoke0
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssorImpl.java:90)at sun.reflect.DelegatingMethodAccessorImpl.inv
    thodAccessorImpl.java:55)at java.lang.reflect.Method.invoke(Meth
    wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:234)at com
    at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:82) at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso
    rImpl.java:90)at sun.reflect.DelegatingMethodAccessorImpl.invoke
    thodAccessorImpl.java:55)at java.lang.reflect.Method.invoke(Meth
    pse.equinox.internal.app.EclipseAppContainer.callMethodWithExce
    ption(EclipseAppContainer.java:587)at org.eclipse.equinox.intern
    eAppHandle.java:198)at org.eclipse.core.runtime.internal.adaptor
    .runApplication(EclipseAppLauncher.java:110)at org.eclipse.core.
    .start(EclipseAppLauncher.java:79)at org.eclipse.core.runtime.ad
    tarter.java:354)at org.eclipse.core.runtime.adaptor.EclipseStart
    tarter.java:181)at sun.reflect.NativeMethodAccessorImpl.invoke0(
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssorImpl.java:90)at sun.reflect.DelegatingMethodAccessorImpl.inv
    thodAccessorImpl.java:55)at java.lang.reflect.Method.invoke(Meth
    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.ws
    spi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:42
    2)at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.ja
    a:179)Caused by: java.lang.ArrayIndexOutOfBoundsException: Array
    out of range: 0 at com.ibm.wsspi.migration.document.XMLDocument
    .setEncoding(XMLDocument.java:251)at com.ibm.wsspi.migration.doc
    XMLDocument.java:311)at com.ibm.ws.migration.document.BasicDocum
    Document(BasicDocumentCollection.java:1052)at com.ibm.ws.migrati
    adOnlyDocument(BasicDocumentCollection.java:1210)at com.ibm.ws.m
    cument(BasicDocumentCollection.java:1170)at com.ibm.ws.migration
    roviderManager.getProviderNameForServer(TechnologyProviderManag
    er.java:195)at com.ibm.ws.migration.postupgrade.javaeeproviders.
    roviderManager.createBundleMetaDataHelper(TechnologyProviderMan
    ager.java:97)at com.ibm.ws.migration.postupgrade.javaeeproviders
    roviderManager.createBundleMetaData(TechnologyProviderManager.j
    ava:65)at com.ibm.ws.migration.postupgrade.BasicPostUpgradeManag
    eAll(BasicPostUpgradeManager.java:178)at com.ibm.ws.migration.po
    ager.migrate(ClientPostUpgradeManager.java:133)at com.ibm.ws.mig
    ore.java:481)at com.ibm.ws.migration.postupgrade.Restore.<init>(
    :263)... 28 more [07/13/2021 07:46:21:840 BRT] MIGR0286E: The
    migration failed to complete.
    

Local fix

  • L3-Mig provided Solution(Alex Motley):
    The root cause for the ArrayIndexOutOfBoundsException is the
    empty xml file located at /opt/IBM/WAS/profiles/AppSrv01/config
    /cells/corp285Node01Cell/nodes/corp285Node01/servers/nodeagent/
    server.xml(we try to load the encoding at the beginning of the f
    given it is empty there is nothing in the array). Given this
    appears to be a base install it is odd to see that node agent
    there. It seems like it was partially deleted, since the only
    file in the /opt/IBM/WAS/profiles/AppSrv01/config/cells/corp285
    Node01Cell/nodes/corp285Node01/servers/nodeagentdirectory is tha
    references to the nodeagent in the files for the corp285Node01
    node.
    
    The customer should be able to delete the empty /opt/IBM/WAS/pr
    ofiles/AppSrv01/config/cells/corp285Node01Cell/nodes/corp285Nod
    e01/servers/nodeagent/server.xmlfile and /opt/IBM/WAS/profiles/A
    e01Cell/nodes/corp285Node01/servers/nodeagentdirectory and retry
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: When running a migration with an        *
    *                      empty xml file an                       *
    *                      ARRAYINDEXOUTOFBOUNDSEXCEPTION is       *
    *                      recieved sometimes.                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When running a migration with an
    empty xml file an
    ARRAYINDEXOUTOFBOUNDSEXCEPTION is
    recieved sometimes.
    

Problem conclusion

  • The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.21 .
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH39100

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-07-19

  • Closed date

    2021-11-17

  • Last modified date

    2021-11-17

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0"}]

Document Information

Modified date:
18 November 2021