Quicktipp: WebLogic Server 12c and BEA-101104: java.net.ProtocolException

The issue ist reported newly as a Bug from Oracle…

Technology, KeyWords:

WebLogic Server 12.1.3.0.0., 10.3, Exception; java.net.ProtocolException

Error Message: <BEA-101104> <Servlet execution in servlet context…>

Problem:

We have deployed our application on weblogic (12.1.3.0.0). In the deployed application there is a (or more) link(s) which executes an application jar. The Links are not available in browser and if we check log-files of WLS-Domain, we find the following error:

####… <Error> <HTTP> <$Host> <$ManagedServer> <[ACTIVE] ExecuteThread: ’12’ for queue: ‘weblogic.kernel.Default (self-tuning)’> <<WLS Kernel>> <> <> … <BEA-101104> <Servlet execution in servlet context “ServletContext@1754863796[app:myApp module:/myModule path:null spec-version:3.0]” failed, java.net.ProtocolException: Didn’t meet stated Content-Length, wrote: ‘0’ bytes instead of stated: ‘-1’ bytes..

java.net.ProtocolException: Didn’t meet stated Content-Length, wrote: ‘0’ bytes instead of stated: ‘-1’ bytes.  at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:481)            at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1549)            at  Weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1623)    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1582)   at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)            at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

Description

Weblogic declaration from:https://docs.oracle.com/cd/E17904_01/apirefs.1111/e14397/HTTP.html

BEA-101104

Error: Servlet execution in servlet context “ctx0” failed, t1.

Description  Servlet execution in servlet context “ctx0” failed, t1.

 Cause  Unexpected error occurred while serving the request. This is not a simple client connection reset error.

Action  Check the error message for the exact cause.

 But further analysis and newly reported Bug from Oracle help to solve this issue.

More detail and Background information:  Regarding the <Error> <HTTP> … <BEA-101104> <Servlet execution in servlet context…>

There is newly the Bug-Fix (Patch 20446229) available. Perhaps help you.

Solution

The Bug is reported in the following document:

Bug 20446229 : BEA-101104 JAVA.NET.PROTOCOLEXCEPTION TRYING TO ACCESS JAVAWEBSTART RESOURCE

Please go simply to “Patches and Updates” on the Oracle Support Portal and search for patch number 20446229. The Patch is available for 10.3.6 and 12.1.3.0.0

Refernces

MOS: BEA-101104 Java.net.ProtocolException While Downloading And Executing Webstart Resource (Doc ID 1988048.1)

Leave a comment