IBM Support

PH41892: Fix ECJ ClassCastException in JSP

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • A Open Liberty regression has been found in the jsp features
    after upgrading the ECJ (Eclipse Compiler for Java) in
    21.0.0.9.
    
    The following error can occur when inner classes are used
    within a JSP page:
    Error 500: java.lang.ClassCastException: class
    org.eclipse.jdt.internal.compiler.lookup.PlainPackageBinding
    cannot be cast to class
    org.eclipse.jdt.internal.compiler.lookup.TypeBinding
    
    The fix is targeted for 21.0.0.12.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Liberty users of JavaServer Pages (JSP) on  *
    *                  21.0.0.9, 21.0.0.10, or 21.0.0.11           *
    ****************************************************************
    * PROBLEM DESCRIPTION: Customers may encounter the following   *
    *                      java.lang.ClassCastException exception  *
    *                      on their JSP page:                      *
    *                      java.lang.ClassCastException: class     *
    *                      org.eclipse.jdt.internal.compiler.looku *
    *                      p.PlainPackageBinding cannot be cast to *
    *                      class                                   *
    *                      org.eclipse.jdt.internal.compiler.looku *
    *                      p.TypeBinding                           *
    *                      (org.eclipse.jdt.internal.compiler.look *
    *                      up.PlainPackageBinding and              *
    *                      org.eclipse.jdt.internal.compiler.looku *
    *                      p.TypeBinding are in unnamed module of  *
    *                      loader                                  *
    *                      org.eclipse.osgi.internal.loader.Equino *
    *                      xClassLoader @3522bc53)  This exception *
    *                      will occur if the JSP page defines and  *
    *                      uses an inner class.                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    This problem was introduced after an update to the Eclipse Java
    Compiler dependency (part of JDT) in the JSP features.  The
    compiler code within the JSP implementation did not properly
    differentiate an inner class from a package.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH41892

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-11-04

  • Closed date

    2021-11-24

  • Last modified date

    2021-11-24

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

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

Document Information

Modified date:
25 November 2021