IBM Support

PM23597: JSP compilation error when using duplicate script variables with NESTED scope.

Fixes are available

6.1.0.37: Java SDK 1.5 SR12 FP3 Cumulative Fix for WebSphere
7.0.0.17: Java SDK 1.6 SR9 FP1 Cumulative Fix for WebSphere Application Server
6.1.0.47: WebSphere Application Server V6.1 Fix Pack 47
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
6.1.0.39: Java SDK 1.5 SR12 FP4 Cumulative Fix for WebSphere Application Server
6.1.0.41: Java SDK 1.5 SR12 FP5 Cumulative Fix for WebSphere Application Server
6.1.0.43: Java SDK 1.5 SR13 Cumulative Fix for WebSphere Application Server
6.1.0.45: Java SDK 1.5 SR14 Cumulative Fix for WebSphere Application Server
6.1.0.47: Java SDK 1.5 SR16 Cumulative Fix for WebSphere Application Server
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An error occurs with JavaServer Pages(JSP) when using
    duplicate script variables with NESTED scope.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server versions   *
    *                  6.1 and 7.0 users of JavaServer Pages (JSP) *
    ****************************************************************
    * PROBLEM DESCRIPTION: There is a JSP compilation error when   *
    *                      using duplicate script variables with   *
    *                      NESTED scope.                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When using the WebContainer custom property
    'com.ibm.wsspi.jsp.useScriptVarDupInit' or the JSP attribute
    'useScriptVarDupInit',  the following error occurs if duplicate
    NESTED script variables are used:
    
    JSPG0049E: /iteratortag.jsp failed to compile :
    JSPG0091E: An error occurred at line: 16 in the file:
    /iteratortag.jsp
    JSPG0093E: Generated servlet error from file: /iteratortag.jsp
    /home/user/was/profiles/AppSrv01/temp/AppSrv01/server1/PM23597/P
    : 203 : Duplicate local variable index2
    An example JSP would be:
    
    <%@taglib uri="http://www.websphere.com/tags" prefix="cyc"%>
    
    <html>
    
    <body>
    
        <% if(2 == 2){ %>
        <cyc:iteratorTag index="10" name="index2">
            Index: <%=index2%> <br/>
            <cyc:defineVariable name="oneName" value="one"/>
        </cyc:iteratorTag>
       <% } %>
    
        <cyc:iteratorTag index="10" name="index2">
            Index: <%=index2%> <br/>
            <cyc:defineVariable name="oneName" value="one"/>
        </cyc:iteratorTag>
    
    </body>
    </html>
    

Problem conclusion

  • The JSP container was updated to not set duplicate scripting
    variables if the variables are of NESTED scope. Since nested
    variables do not get persisted past the end of the tag, there
    is no need to set them as duplicate variables when
    'com.ibm.wsspi.jsp.useScriptVarDupInit' is enabled.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 6.1.0.37 and 7.0.0.17.  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

    PM23597

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    61A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-10-01

  • Closed date

    2010-11-01

  • Last modified date

    2010-11-01

  • 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

  • R61A PSY

       UP

  • R61H PSY

       UP

  • R61I PSY

       UP

  • R61P PSY

       UP

  • R61S PSY

       UP

  • R61W PSY

       UP

  • R61Z PSY

       UP

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
24 October 2021