IBM Support

PH34951: NullPointerException error may occur with Axis2 marshaller.

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 NullPointerException may be thrown for a class lookup out of
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils
    when using a custom web service fault which is or
    references inner classes. The top of the root cause exception
    will look like this:
    
    java.lang.NullPointerException
    at
    java.lang.Class.forNameImpl(Native Method)
    at
    java.lang.Class.forName(Class.java:407)
    at
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils
    $1.run(MethodMarshallerUtils.java:1256)
    at
    org.apache.axis2.java.security.AccessController.doPrivileged(Acc
    essController.java:132)
    at
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils
    .forName(MethodMarshallerUtils.java:1250)
    at
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils
    .loadClass(MethodMarshallerUtils.java:1220)
    at
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils
    .demarshalFaultResponse(MethodMarshallerUtils.java:1105)
    ... ...
    

Local fix

  • Remove the nested classes from the fault class if possible.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    *                  for JAX-WS Web services.                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException error may occur    *
    *                      with                                    *
    *                      Axis2 marshaller.                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A NullPointerException may be thrown for a class lookup out of
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtil
    s when using a custom web service fault which is or
    references inner classes.  The top of the root cause exception
    will look like this:
    java.lang.NullPointerException
    at
    java.lang.Class.forNameImpl(Native Method)
    at
    java.lang.Class.forName(Class.java:407)
    at
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtil
    s$1.run(MethodMarshallerUtils.java:1256)
    at
    org.apache.axis2.java.security.AccessController.doPrivileged(Ac
    cessController.java:132)
    at
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtil
    s.forName(MethodMarshallerUtils.java:1250)
    at
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtil
    s.loadClass(MethodMarshallerUtils.java:1220)
    at
    org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtil
    s.demarshalFaultResponse(MethodMarshallerUtils.java:1105)
    ... ...
    

Problem conclusion

  • Code changes have been made so that correct inner classes will
    be located for marshalling.
    
    The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.21 and 9.0.5.9. For more information, see 'Recommended
    Updates for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH34951

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-03-02

  • Closed date

    2021-06-01

  • Last modified date

    2021-06-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

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

Document Information

Modified date:
03 June 2021