PM85842: JavaScript for-loop auto completion works sporadically and throws errors

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempts to use the Auto-complete feature to generate a 'for'
    loop within Javascript code may result in an error.
    
    Problem:
    
    1. You open an HTML/JSP page.
    2. You create a ?script type='text/javascript'? ?/script? block
    and move the cursor into it.
    3. You type 'for?ctrl+space?'
    4. An Auto complete popup box appears.
    5. Select the auto complete format you want to use.
    6. The action might work or it might fail with the following
    error in your workspace log file:
    
    java.lang.NullPointerException
    at java.lang.String.valueOf(Unknown Source)
    at org.eclipse.wst.jsdt.internal.corext.template.java.
    CompilationUnitCompletion.accept(Unknown Source)
    
    Local fix:
    
    There is no known workaround.
    

Local fix

Problem summary

  • When doing content assist on a for loop the template would not
    add the code to the file and a NullPointerException was thrown.
    

Problem conclusion

  • A check for null signature was added to avoid the
    NullPointerException when the template is properly added.
    The fix for this APAR is included in Rational Application
    Developer v8.5.5.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM85842

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    851

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-03-28

  • Closed date

    2013-10-15

  • Last modified date

    2013-10-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

  • R855 PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Application Developer for WebSphere Software

Software version:

8.5.1

Reference #:

PM85842

Modified date:

2013-10-15

Translate my page

Machine Translation

Content navigation