IBM Support

PH29291: NullPointerException might be thrown during ejb invocation on 19.0.0.9

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

  • There is a potential that NullPointerException might be
    thrown while composing an audit data for ejb, when an
    application's enterprise bean does not implement hashCode
    method.
    Then this condition, the following is an example of the
    error which would be logged when this condition happened.
    CNTR0020E: EJB threw an unexpected (non-declared) exception
    during invocation of method "someMethod" on bean
    "BeanId(someweb#ejb.jar#SomeBean, null)". Exception data:
    java.lang.NullPointerException
    at some.application.bean.hashCode(someBean.java:100)
    at java.lang.Object.toString(Object.java:161)
    at java.lang.String.valueOf(String.java:3422)
    at java.lang.StringBuilder.append(StringBuilder.java:516)
    at
    java.util.AbstractCollection.toString(AbstractCollection.jav
    a:473)
    at java.lang.String.valueOf(String.java:3422)
    at java.lang.StringBuilder.append(StringBuilder.java:516)
    at
    java.util.AbstractCollection.toString(AbstractCollection.jav
    a:473)
    at
    com.ibm.ws.ejbcontainer.security.internal.EJBSecurityCollabo
    ratorImpl.populateAuditEJBHashMap(EJBSecurityCollaboratorImp
    l.java:413)
    at
    com.ibm.ws.ejbcontainer.security.internal.EJBSecurityCollabo
    ratorImpl.authorizeEJB(EJBSecurityCollaboratorImpl.java:440)
    at
    com.ibm.ws.ejbcontainer.security.internal.EJBSecurityCollabo
    ratorImpl.preInvoke(EJBSecurityCollaboratorImpl.java:194)
    at
    com.ibm.ws.ejbcontainer.security.internal.EJBSecurityCollabo
    ratorImpl.preInvoke(EJBSecurityCollaboratorImpl.java:69)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty with ejb feature enabled     *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException might be thrown    *
    *                      during ejb invocation                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    There is a potential that NullPointerException might be thrown
    while composing an audit data for ejb, when an application's
    enterprise bean does not implement hashCode method.
    The following is an example of the error which would be logged
    when this condition happens.
    
    CNTR0020E: EJB threw an unexpected (non-declared) exception
    during invocation of method "someMethod" on bean
    "BeanId(someweb#ejb.jar#SomeBean, null)". Exception data:
    java.lang.NullPointerException
    at some.application.bean.hashCode(someBean.java:100)
    at java.lang.Object.toString(Object.java:161)
    at java.lang.String.valueOf(String.java:3422)
    at java.lang.StringBuilder.append(StringBuilder.java:516)
    at
    java.util.AbstractCollection.toString(AbstractCollection.java:47
    3)
    at java.lang.String.valueOf(String.java:3422)
    at java.lang.StringBuilder.append(StringBuilder.java:516)
    at
    java.util.AbstractCollection.toString(AbstractCollection.java:47
    3)
    at
    com.ibm.ws.ejbcontainer.security.internal.EJBSecurityCollaborato
    rImpl.populateAuditEJBHashMap(EJBSecurityCollaboratorImpl.java:4
    13)
    
    This issue started happening from 19.0.0.9
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH29291

  • 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

    2020-09-09

  • Closed date

    2020-09-14

  • Last modified date

    2020-09-14

  • 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":"LOB36","label":"IBM Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0"}]

Document Information

Modified date:
15 September 2020