IBM Support

PM71056: Building an imported WAR results in a java.lang.ArrayIndexOutOfBoundsException

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempts to build an imported WAR file might result in a
    java.lang.ArrayIndexOutOfBoundsException.
    
    Problem:
    
    To reproduce this exception:
    
    1) Under Windows ? Preferences ? Validators, check the 'Suspend
    all Validators' option.  Save.
    2) Import your WAR file.
    
    RESULT:  During the building of the WAR file, you might receive
    the following exception:
    
    !ENTRY org.eclipse.core.resources 4 2 2012-08-07 18:29:54.683
    !MESSAGE Problems occurred when invoking code from plug-in:
    'org.eclipse.core.resources'.
    !STACK 0
    java.lang.ArrayIndexOutOfBoundsException
        at
    org.eclipse.wst.jsdt.internal.compiler.flow.UnconditionalFlowInf
    o.markAsDefinitelyNonNull(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.compiler.ast.FieldReference.analys
    eAssignment(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.compiler.ast.Assignment.analyseCod
    e(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.compiler.ast.Block.analyseCode(Unk
    nown
    Source)
        at
    org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.analyseCo
    de(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclar
    ation.analyseCode(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.
    compile(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.com
    pile(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.
    compile(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.bui
    ld(Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(
    Unknown
    Source)
        at
    org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(Unk
    nown
    Source)
        at
    org.eclipse.core.internal.events.BuildManager$2.run(Unknown
    Source)
        at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
        at
    org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown
    Source)
        at
    org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown
    Source)
        at
    org.eclipse.core.internal.events.BuildManager$1.run(Unknown
    Source)
        at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
        at
    org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown
    Source)
        at
    org.eclipse.core.internal.events.BuildManager.basicBuildLoop(Unk
    nown
    Source)
        at
    org.eclipse.core.internal.events.BuildManager.build(Unknown
    Source)
        at
    org.eclipse.core.internal.events.AutoBuildJob.doBuild(Unknown
    Source)
        at org.eclipse.core.internal.events.AutoBuildJob.run(Unknown
    Source)
        at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
    
    
    
    Local fix:
    
    Disable the 'Suspend all Validators' option.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The JavaScript validation code was running multiple times on
    the same file, leading to the
    ArrayIndexOutOfBoundsException.
    

Problem conclusion

  • A fix is being put in 8.0.4.2 that prevents multiple passes
    of the JavaScript code analysis.
    
    The fix for this APAR is included in Rational Application
    Developer v8.0.4.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM71056

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    804

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-16

  • Closed date

    2012-12-15

  • Last modified date

    2012-12-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

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R804 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 December 2012