After Applying WLS PSU: "java.lang.VerifyError: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message" and "stack shape inconsistent; class=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl"

(Doc ID 2358521.1)

Last updated on FEBRUARY 12, 2018

Applies to:

Oracle WebLogic Server - Version 10.3.6 to 10.3.6
Information in this document applies to any platform.

Symptoms

When application serves a SOAP based web service, using SOAP 1.2 specifications clients started to get the following exception:

[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' ERROR util.EdgeWebServiceUowFilter - Caught exception in unit of work filter, rolling back unit of work
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.ws.soap.SoapMessageCreationException: Could not create message from InputStream: Unable to internalize message; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
       at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
       at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
       at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
       at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
       at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
       at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
       at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
       at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
       at com.erac.fleetsystems.strutsx.ExpirationFilter.doFirstTimeFilter(ExpirationFilter.java:70)
       at com.erac.fleetsystems.strutsx.FirstTimeOnlyFilter.doFilter(FirstTimeOnlyFilter.java:50)
       at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
       at com.erac.edge.plumbing.spring.SpringRequestScopedBeanFilter.doOnceFilter(SpringRequestScopedBeanFilter.java:66)
       at com.erac.arch.inf.common.filters.OnceOnlyHttpFilter.doFilter(OnceOnlyHttpFilter.java:101)
       at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
       at com.efleets.edge.webservice.util.EdgeWebServiceUowFilter.doFirstTimeFilter(EdgeWebServiceUowFilter.java:88)
       at com.erac.fleetsystems.strutsx.FirstTimeOnlyFilter.doFilter(FirstTimeOnlyFilter.java:50)
       at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
       at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3748)
       at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3714)
       at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
       at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
       at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2283)
       at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2182)
       at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1499)
       at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
       at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: org.springframework.ws.soap.SoapMessageCreationException: Could not create message from InputStream: Unable to internalize message; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
       at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.createWebServiceMessage(SaajSoapMessageFactory.java:216)
       at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.createWebServiceMessage(SaajSoapMessageFactory.java:60)
       at org.springframework.ws.transport.AbstractWebServiceConnection.receive(AbstractWebServiceConnection.java:92)
       at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:87)
       at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:61)
       at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:293)
       at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
       ... 27 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
       at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:506)
       at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:309)
       at com.sun.xml.messaging.saaj.soap.ver1_2.Message1_2Impl.<init>(Message1_2Impl.java:92)
       at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl.createMessage(SOAPMessageFactory1_2Impl.java:93)
       at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.createWebServiceMessage(SaajSoapMessageFactory.java:188)
       ... 33 more
Caused by: java.lang.VerifyError: SERVER stack shape inconsistent; class=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl, method=createDocumentFragment()Lorg/w3c/dom/DocumentFragment;, pc=5
       at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)
       at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.<init>(SOAPPart1_2Impl.java:88)
       at com.sun.xml.messaging.saaj.soap.ver1_2.Message1_2Impl.getSOAPPart(Message1_2Impl.java:102)
       at com.sun.xml.messaging.saaj.soap.MessageImpl.initCharsetProperty(MessageImpl.java:1362)
       at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:399)
  ... 37 more



Changes

After enabling -verbose:class in the server startup arguments, the below showed which identified which jar is the problem.

class load: com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl from: file:/opt/wls/10.3.6.0/patch_wls1036/patch_jars/glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar
class load: com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl from: file:/opt/wls/10.3.6.0/patch_wls1036/patch_jars/glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar
 2017-10-25 14:04:52.827 UTC [00001e20] info    [native] Class com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl triggered a VerifyError but was not transformed
 java.lang.VerifyError: SERVER stack shape inconsistent; class=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl, method=createDocumentFragment()Lorg/w3c/dom/DocumentFragment;, pc=5
 at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]
 at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]
 at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.<init>(SOAPPart1_1Impl.java:89) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]
 at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.<init>(SOAPPart1_1Impl.java:89) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]
 at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]
 at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]
 at org.springframework.ws.soap.saaj.SaajSoapMessage.getEnvelope(SaajSoapMessage.java:140) ~[spring-ws-core-2.2.0.RELEASE.jar:2.2.0.RELEASE]
 at org.springframework.ws.soap.saaj.SaajSoapMessage.getEnvelope(SaajSoapMessage.java:140) ~[spring-ws-core-2.2.0.RELEASE.jar:2.2.0.RELEASE]
 at org.springframework.ws.soap.saaj.SaajSoapMessage.getEnvelope(SaajSoapMessage.java:140) ~[spring-ws-core-2.2.0.RELEASE.jar:2.2.0.RELEASE]
2017-10-25 09:04:52,883 ERROR FleetWebAuthenticationProvider [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] Unknown Authentication Exception: java.lang.VerifyError: SERVER stack shape inconsistent; class=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl, method=createDocumentFragment()Lorg/w3c/dom/DocumentFragment;, pc=5
Line 29668: java.lang.VerifyError: SERVER stack shape inconsistent; class=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl, method=createDocumentFragment()Lorg/w3c/dom/DocumentFragment;, pc=5
 Caused by: java.lang.VerifyError: SERVER stack shape inconsistent; class=com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl, method=createDocumentFragment()Lorg/w3c/dom/DocumentFragment;, pc=5
 at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]
 at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]
 at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.<init>(SOAPPart1_1Impl.java:89) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]
 at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.<init>(SOAPPart1_1Impl.java:89) ~[glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar:2.1.5]

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