IBM Support

PM94792: EXCEPTIONS ARE THROWN IF THERE IS A NEW LINE AFTER "${". THE JSP WILL NOT LOAD CORRECTLY.

Fixes are available

8.0.0.8: WebSphere Application Server V8.0 Fix Pack 8
8.5.5.2: WebSphere Application Server V8.5.5 Fix Pack 2
8.0.0.9: WebSphere Application Server V8.0 Fix Pack 9
8.5.5.3: WebSphere Application Server V8.5.5 Fix Pack 3
8.5.5.4: WebSphere Application Server V8.5.5 Fix Pack 4
8.0.0.10: WebSphere Application Server V8.0 Fix Pack 10
8.5.5.5: WebSphere Application Server V8.5.5 Fix Pack 5
8.5.5.6: WebSphere Application Server V8.5.5 Fix Pack 6
8.0.0.11: WebSphere Application Server V8.0 Fix Pack 11
8.5.5.7: WebSphere Application Server V8.5.5 Fix Pack 7
8.5.5.8: WebSphere Application Server V8.5.5 Fix Pack 8
8.0.0.12: WebSphere Application Server V8.0 Fix Pack 12
8.5.5.9: WebSphere Application Server V8.5.5 Fix Pack 9
8.5.5.10: WebSphere Application Server V8.5.5 Fix Pack 10
8.5.5.11: WebSphere Application Server V8.5.5 Fix Pack 11
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
8.5.5.12: WebSphere Application Server V8.5.5 Fix Pack 12
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
8.5.5.13: WebSphere Application Server V8.5.5 Fix Pack 13
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
8.5.5.14: WebSphere Application Server V8.5.5 Fix Pack 14
8.5.5.15: WebSphere Application Server V8.5.5 Fix Pack 15
8.5.5.14: WebSphere Application Server V8.5.5 Fix Pack 14
8.5.5.17: WebSphere Application Server V8.5.5 Fix Pack 17
8.5.5.20: WebSphere Application Server V8.5.5.20
8.5.5.18: WebSphere Application Server V8.5.5 Fix Pack 18
8.5.5.19: WebSphere Application Server V8.5.5 Fix Pack 19
8.5.5.16: WebSphere Application Server V8.5.5 Fix Pack 16
8.5.5.21: WebSphere Application Server V8.5.5.21

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Exceptions are thrown if there is a new line after "${". The
    JavaServer Pages (JSP) will not load correctly. If the code is
    in the same line, no exceptions are thrown.
    
    The following exception is thrown:
    
    Exception created: [javax.el.ELException: Error Parsing:
    ${\r\nTestExpression}
    at
    org.apache.el.lang.ExpressionBuilder.createNodeInternal(Expressi
    onBuilder.java:147)
    at
    org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.jav
    a:172)
    at
    org.apache.el.lang.ExpressionBuilder.createValueExpression(Expre
    ssionBuilder.java:216)
    ...
    Caused by: org.apache.el.parser.ParseException: Encountered
    "<ILLEGAL_CHARACTER> "\\ "" at line 1, column 3.
    Was expecting one of:
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <STRING_LITERAL> ...
    "true" ...
    "false" ...
    "null" ...
    "(" ...
    "!" ...
    "not" ...
    "empty" ...
    "-" ...
    <IDENTIFIER> ...
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Full       *
    *                  Profile verions 8.0 and 8.5.5 or Liberty    *
    *                  Profile version 8.5.5 users of JavaServer   *
    *                  Pages (JSP).                                *
    ****************************************************************
    * PROBLEM DESCRIPTION: An Expression Language (EL)             *
    *                      expression cannot be parsed if it       *
    *                      contains a carriage return, new line,   *
    *                      or tab characters.                      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If an EL expression contains a carriage return (\r), new line
    (\n), or tab (\t) characters within the syntax of the
    expression a javax.el.ELException will be thrown while parsing
    the expression.  The cause of the exception is because the JSP
    Container adds an extra backslash (\) before the carriage
    return, new line, and tab characters within the expression.
    An example of the EL expression is:
    ${\r\n\tTestExpression}
    

Problem conclusion

  • The JSP Container was modified to not add an extra escape
    character during JSP translation, therefore allowing the EL
    expression to be parsed properly.
    
    To enable this behavior, the following JSP attribute must be
    set to true in the application's ibm-web-ext.xml file:
    
    doNotEscapeWhitespaceCharsInExpression
    
    valid values are: true / false (default)
    
    Alternatively, the following WebContainer custom property can
    be set to enable this behavior for all applications within the
    WebContainer:
    
    com.ibm.ws.jsp.doNotEscapeWhitespaceCharsInExpression
    
    valid values are: true / false (default)
    
    The instructions to set a WebContainer custom property are here:
    http://www-01.ibm.com/support/docview.wss?uid=swg21284395
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.8 and 8.5.5.2.  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

    PM94792

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-08-08

  • Closed date

    2013-10-11

  • Last modified date

    2013-10-11

  • 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

  • R800 PSY

       UP

  • R850 PSY

       UP

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

Document Information

Modified date:
28 April 2022