IBM Support

PI27556: USE OF INCORRECT NAMES IN REFERENCES IN WEB.XML CAUSE A NULL POINTER EXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When constructing a "web.xml", use of incorrect names in
    references, for example, between a servlet mapping element and a
    servlet, cause a very very difficult to diagnose null pointer
    exception.
    .
    The problem is a usability problem: Name mismatches should
    produce an error which can be linked to the incorrect values in
    the web.xml.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile version 8.5.5        *
    ****************************************************************
    * PROBLEM DESCRIPTION: A java.lang.NullPointerException occurs *
    *                      when there is no matching servlet       *
    *                      mapping defined for a servlet in the    *
    *                      web.xml                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
     Having no matching servlet mapping defined in the web.xml for
    a defined servlet causes a java.lang.NullPointerException. For
    example, this entry will cause a
    java.lang.NullPointerException:
    
    <servlet>
        <servlet-
    name>My_Servlet</servlet-name>
        <display-name>My
    servlet</display-name>
        <description>Test
    servlet</description>
        <servlet-class>My_Servlet</servlet-
    class>
      </servlet>
    
      <servlet-mapping>
        <servlet-name>My
    Servlet</servlet-name>
        <url-pattern>/MyTests</url-pattern>
    
    </servlet-mapping>
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI27556

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-10-14

  • Closed date

    2014-10-21

  • Last modified date

    2014-10-21

  • 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

  • R855 PSY

       UP

[{"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":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022