My Oracle Support Banner

ProtocolException is Thrown if Multibyte Characters is Specified for HttpServletResponse.sendError Method (Doc ID 1902525.1)

Last updated on AUGUST 17, 2023

Applies to:

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


ProtocolException is thrown if javax.servlet.http.HttpServletResponse.sendError(int sc, String msg) method is executed with the second argument 'msg' that includes multibyte characters. HTTP client cannot receive all the error message specified for sendError method.

The exception and related error are logged in WLS server log.

####... <Error> <HTTP> ... <BEA-101083> <Connection failure. Didn't meet stated Content-Length, wrote: '9' bytes instead of stated: '3' bytes.
        at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(
        at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(
        at weblogic.servlet.internal.ServletResponseImpl.send(
        at weblogic.servlet.provider.ContainerSupportProviderImpl$

The code specified for the first argument 'sc' of sendError method is logged in access.log as HTTP status code. - - [...] "GET /SendErrorServlet/senderrorservlet HTTP/1.1" 500 3


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.