Java.lang.StackOverflowError Is Thrown When Calling The SoapMessage.writeto Method

(Doc ID 1992086.1)

Last updated on JUNE 09, 2016

Applies to:

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


When a consumer sends a SOAP message with white spaces in the SOAP body, a SoapHandler on producer side which calls SoapMessage.writeTo(OutputStream o) will endup with an endless recursion causing a StackOverflowError.

Normally, application servers and other consumers try to keep the SOAP message as short as possible for performance reasons. If however the consumer is a tool like SoapUI or an application with template based WebService calls (like Oracle OBPM), then it os likely that the SOAP message is formatted and contains spaces and line breaks between elements in the message.


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