PM80259: AN ArrayIndexOutOfBoundsException might be thrown when building a JavaScript file

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempting to open a JavaScript File or building a JavaScript
    project might result in an ArrayIndexOutOfBoundsException in the
    method Parser#consumeEmptyStatement.
    
    Problem:
    
    Sometimes when you try to build a project that contains
    JavaScript code, an error message is shown in the workbench that
    indicates:
    ArrayIndexOutOfBoundsException
    In some scenario, attempting to open some JavaScript Files in
    JavaScript Editor also causes the same issue. If you look into
    your .log file in the .metadata directory or expand the error
    seen on the screen to view more details you may see similar
    stack trace:
    
    Internal validation error
    java.lang.ArrayIndexOutOfBoundsException: -2
    org.eclipse.wst.jsdt.internal.compiler.parser.Parser.consumeEmpt
    yStatement(unknown
    source)
    org.eclipse.wst.jsdt.internal.compiler.parser.Parser.consumeRule
    (unknown
    source)
    org.eclipse.wst.jsdt.internal.compiler.parser.Parser.parse(unkno
    wn
    source)
    org.eclipse.wst.jsdt.internal.compiler.parser.Parser.parse(unkno
    wn
    source)
    org.eclipse.wst.jsdt.internal.compiler.parser.Parser.parse(unkno
    wn
    source)
    
    
    Local fix:
    
    There is no known workaround at this time
    

Local fix

Problem summary

  • An ArrayIndexOutOfBoundsException was being thrown in files
    starting with a blank line followed by an HTML style comment.
    

Problem conclusion

  • Added a check to prevent the ArrayIndexOutOfBoundsException.
    
    The fix for this APAR is included in Rational Application
    Developer v8.0.4.3.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM80259

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-09

  • Closed date

    2013-10-28

  • Last modified date

    2013-10-28

  • 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 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Application Developer for WebSphere Software

Software version:

8.0

Reference #:

PM80259

Modified date:

2013-10-28

Translate my page

Machine Translation

Content navigation