APAR status
Closed as program error.
Error description
A NullPointerException is seen during the marshaling of a JAX-B object within Web Services. The JAX-B field in question is annotated with an @XmlElementRef, which was not considered in the Feature Pack for Web Services fixpacks. The following can be seen in the stack: javax.xml.ws.WebServiceException: org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperException: java.lang.NullPointerException javax.xml.ws.WebServiceException: org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperException: java.lang.NullPointerException at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceExceptio n (ExceptionFactory.java:180) at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException (ExceptionFactory.java:79) at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException (ExceptionFactory.java:134) at org.apache.axis2.jaxws.marshaller.impl.alt. DocLitWrappedMethodMarshaller.demarshalResponse (DocLitWrappedMethodMarshaller.java:184) at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler. createResponse(JAXWSProxyHandler.java:377) at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler. invokeSEIMethod(JAXWSProxyHandler.java:294) at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler. invoke(JAXWSProxyHandler.java:147) at $Proxy8.testOID(Unknown Source) at com.xxx.ibm.jaxbtesttypes.TestClient.runTest(TestClient.java:63) at com.xxx.ibm.jaxbtesttypes.TestClient.main(TestClient.java:45) Caused by: org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperException: java.lang.NullPointerException at org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperToolImpl. unWrap(JAXBWrapperToolImpl.java:86) at org.apache.axis2.jaxws.marshaller.impl.alt. DocLitWrappedMethodMarshaller.demarshalResponse (DocLitWrappedMethodMarshaller.java:137) ... 6 more Caused by: java.lang.NullPointerException at org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperToolImpl.unWrap (JAXBWrapperToolImpl.java:79) ... 7 more
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: IBM WebSphere Application Server * * users of JAX-WS web services * **************************************************************** * PROBLEM DESCRIPTION: A NullPointerException may occur when * * JAX-WS web services marshall JAX-B * * fields annotated with @XmlElementRef. * **************************************************************** * RECOMMENDATION: * **************************************************************** When a JAX-WS web service marshalls a JAX-B object, a NullPointerException may occur. The JAX-B field in question is annotated with an @XmlElementRef, which was not considered in the Feature Pack for Web Services. An exception like the following may be seen: javax.xml.ws.WebServiceException: org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperException: java.lang.NullPointerException javax.xml.ws.WebServiceException: org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperException: java.lang.NullPointerException at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceExceptio n (ExceptionFactory.java:180) at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException (ExceptionFactory.java:79) ...
Problem conclusion
The web services code was updated to consider the @XmlElementRef annotation when marshalling JAX-B fields. The fix for this APAR is currently targeted for inclusion in fixpack 6.1.0.23. 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
PK70352
Reported component name
WEBSERVIC FEATU
Reported component ID
5724J0850
Reported release
610
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2008-08-08
Closed date
2008-09-10
Last modified date
2008-09-10
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
WEBSERVIC FEATU
Fixed component ID
5724J0850
Applicable component levels
R610 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
10 February 2022