IBM Support

PM22438: A NULLPOINTEREXCEPTION ERROR MAY OCCUR WHEN RUNNING AN SCA APPLICATION

Fixes are available

7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for AIX
7.0.0.15: Java SDK 1.6 SR9 Cumulative Fix for WebSphere Application Server
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for HP-UX
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for IBM i
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Linux
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Solaris
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Windows
7.0.0.17: WebSphere Application Server V7.0 Fix Pack 17
7.0.0.17: Java SDK 1.6 SR9 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.19: WebSphere Application Server V7.0 Fix Pack 19
7.0.0.21: WebSphere Application Server V7.0 Fix Pack 21
7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • In WebSphere Application Server V7, with the Feature Pack for
    Service Component Architecture (SCA) 1.0.1.5 and the Feature
    Pack for XML 1.0.0.5 installed, an operation call might
    fail. The FFDC log might show the following error:
    
    FFDC Exception:org.apache.axis2.AxisFault
    SourceId:com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPos
    t ProbeId:516
    Reporter:com.ibm.ws.websvcs.transport.http.WASAxis2Servlet@40264
    026
    org.apache.axis2.AxisFault
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at
    org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMes
    sageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageRec
    eiver.java:214)
    at
    org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invo
    keBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
    at
    org.apache.axis2.receivers.AbstractMessageReceiver.receive(Abstr
    actMessageReceiver.java:112)
    at
    org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:188)
    at
    org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPo
    stRequest(HTTPTransportUtils.java:275)
    at
    com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis
    2Servlet.java:1351)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWr
    apper.java:1655)
    ...
    Caused by: java.lang.NullPointerException
    at
    org.apache.tuscany.sca.databinding.jaxb.axiom.OMElement2JAXB.doR
    egularUnmarshalling(OMElement2JAXB.java:190)
    at
    org.apache.tuscany.sca.databinding.jaxb.axiom.OMElement2JAXB.unm
    arshalAfterFastPathFailure(OMElement2JAXB.java:170)
    at
    org.apache.tuscany.sca.databinding.jaxb.axiom.OMElement2JAXB.tra
    nsform(OMElement2JAXB.java:122)
    at
    org.apache.tuscany.sca.databinding.jaxb.axiom.OMElement2JAXB.tra
    nsform(OMElement2JAXB.java:64)
    at
    org.apache.tuscany.sca.databinding.DefaultTransformerExtensionPo
    int$LazyPullTransformer.transform(DefaultTransformerExtensionPoi
    nt.java:200)
    at
    org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(Med
    iatorImpl.java:113)
    at
    org.apache.tuscany.sca.core.databinding.transformers.Input2Input
    Transformer.transform(Input2InputTransformer.java:254)
    at
    org.apache.tuscany.sca.core.databinding.transformers.Input2Input
    Transformer.transform(Input2InputTransformer.java:48)
    at
    org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediate(Med
    iatorImpl.java:113)
    at
    org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediateInpu
    t(MediatorImpl.java:431)
    at
    org.apache.tuscany.sca.core.databinding.wire.DataTransformationI
    nterceptor.invoke(DataTransformationInterceptor.java:65)
    at
    org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.inv
    okeTarget(Axis2ServiceProvider.java:1244)
    at
    org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMes
    sageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageRec
    eiver.java:170)
    ... 26 more
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All IBM WebSphere Application Server users  *
    *                  of JAXB and JAX-WS.                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: Unmarshalling of a document by the      *
    *                      IBM JAXB runtime may result in a        *
    *                      NullPointerException.                   *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this APAR. *
    ****************************************************************
    An application attempting to unmarshal a document containing
    values for a list property may get a NullPointerException
    from the JAXB runtime, such as the following:
    
    Caused by: java.lang.NullPointerException
     at
    com.ibm.demo.CTwoDTwo_JAXB_Deserialization_Stub.write(com.ibm.de
    mo.CTwoDTwo_JAXB_Deserialization_Stub.java)
     at
    com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationStub.end(De
    serializationStub.java:151)
     at
    com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.end
    ComplexType(DeserializationContext.java:673)
     at
    com.ibm.xml.xlxp2.jaxb.unmarshal.impl.DeserializationContext.han
    dleEndElementEvent(DeserializationContext.java:384)
     at
    com.ibm.xml.xlxp2.api.jaxb.JAXBXMLStreamReader.produceEndElement
    Event(JAXBXMLStreamReader.java:173)
     at
    com.ibm.xml.xlxp2.scan.DocumentScanner.scanEndElement(DocumentSc
    anner.java:2590)
     at
    com.ibm.xml.xlxp2.scan.DocumentScanner.scanMarkup(DocumentScanne
    r.java:2186)
     at
    com.ibm.xml.xlxp2.scan.DocumentScanner.scanElementContent(Docume
    ntScanner.java:1978)
     at
    com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner
    .java:1329)
     at
    com.ibm.xml.xlxp2.api.jaxb.JAXBXMLStreamReader.unmarshal(JAXBXML
    StreamReader.java:74)
     at
    com.ibm.xml.xlxp2.jaxb.unmarshal.UnmarshallerImpl.unmarshal(Unma
    rshallerImpl.java:259)
     at
    org.apache.tuscany.sca.databinding.jaxb.axiom.JAXBCustomBuilder.
    create(JAXBCustomBuilder.java:84)
     at
    org.apache.axiom.om.impl.builder.StAXOMBuilder.createWithCustomB
    uilder(StAXOMBuilder.java:300)
     at
    org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNe
    xtOMElement(StAXSOAPModelBuilder.java:178)
     at
    org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilde
    r.java:207)
    

Problem conclusion

  • The IBM JAXB Unmarshaller was assuming that the getter
    method for a List property would never return null, leading to
    a NullPointerException in the case when the getter does return
    null.
    
    The problem is resolved by adding code to the Unmarshaller to
    check for null and if encountered, create a new List to add to
    the JAXB object.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 7.0.0.15.  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

    PM22438

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-09-14

  • Closed date

    2010-09-28

  • Last modified date

    2010-09-28

  • 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

  • R700 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 7.0

Reference #: PM22438

Modified date: 28 September 2010