"ProtocolException: Exceeded stated content-length of: '0' byte" Thrown when Accessing Binary Content Using the ShowBinaryProperty Servlet or ShowDoc in a File System Based Virtual Content Repository (VCR) (Doc ID 858750.1)

Last updated on JULY 17, 2017

Applies to:

Oracle WebLogic Portal - Version 10.2.0 to 10.3.0
Information in this document applies to any platform.

Symptoms

When updating existing content in a File System based Virtual Content Repository (VCR) using the Portal Administration Tool (PAT) the document saves correctly but the preview image is no longer available (property not set error) and the document is no longer accessible using the ShowBinaryProperty servlet or ShowDoc.

When adding new documents to the VCR using the PAT, it works fine. The content does get updated in the File System Repository and it is downloadable using the download content button.

The following exception is thrown when accessing the document using the ShowBinaryProperty servlet or ShowDoc:

Servlet failed with IOException
java.net.ProtocolException: Exceeded stated content-length of: '0' bytes
at weblogic.servlet.internal.ServletOutputStreamImpl.checkCL(ServletOutputStreamImpl.java:220)
at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:167)
at com.bea.content.manager.servlets.ShowPropertyServlet.ioReadWrite(ShowPropertyServlet.java:736)
at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:615)
at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:137)
at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:124)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
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:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)


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