Response to Web Service is Leading to NullPointerException in JDK 1.7.0_161

(Doc ID 2335128.1)

Last updated on DECEMBER 11, 2017

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 to 12.2.1.2.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

Response to Web Service invocation is leading to NullPointerException in JDK 1.7.0_161. When the Web Service returns XML snippet as blow sample.

<?xml version="1.0" encoding="UTF-8"?><soap:Fault

xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

         <faultcode>soap:Client</faultcode>

         <faultstring>Invalid message format</faultstring>

         <faultactor>http://example.org/someactor</faultactor>

         <detail>

             <exception>

                 Test message

             </exception>

         </detail>

     </soap:Fault>

 

We can see below error message at client side when trying to invoke web service.

Exception in thread "main" javax.xml.ws.WebServiceException: java.lang.NullPointerException

at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:196)

at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:203)

at myTest.test.Class1.main(Class1.java:93)

Caused by: java.lang.NullPointerException

at com.sun.xml.internal.ws.fault.ExceptionBean.isStackTraceXml(ExceptionBean.java:166)

at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.attachServerException(SOAPFaultBuilder.java:276)

at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:117)

at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:184)

 

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms