java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '32618' bytes.

JFrog JIRA | Noam Y. Tenne | 4 years ago
  1. 0

    Creating the content-length header and settings it to a non-zero value when the response body is empty seems to be in violation of [RFC-2616|http://www.ietf.org/rfc/rfc2616.txt] (page 52). The content length header should not be added at all. This also causes WebLogic to throw an exception: {noformat} ####<Jun 26, 2012 4:20:02 PM GMT> <Error> <HTTP> <CLSITA03D> <VWV-MS-3> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <848107a3740a82bd:-71f8dc07:1380eed6709:-8000-0000000000007cfa> <1340727602721> <BEA-101104> <Servlet execution in servlet context "ServletContext@470489645[app:artifactory-ear-2.6.1 module:/artifactory path:/artifactory spec-version:2.5]" failed, java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '32618' bytes.. java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '32618' bytes. at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:422) at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1432) at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1506) at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) {noformat}

    JFrog JIRA | 4 years ago | Noam Y. Tenne
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '32618' bytes.
  2. 0

    Creating the content-length header and settings it to a non-zero value when the response body is empty seems to be in violation of [RFC-2616|http://www.ietf.org/rfc/rfc2616.txt] (page 52). The content length header should not be added at all. This also causes WebLogic to throw an exception: {noformat} ####<Jun 26, 2012 4:20:02 PM GMT> <Error> <HTTP> <CLSITA03D> <VWV-MS-3> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <848107a3740a82bd:-71f8dc07:1380eed6709:-8000-0000000000007cfa> <1340727602721> <BEA-101104> <Servlet execution in servlet context "ServletContext@470489645[app:artifactory-ear-2.6.1 module:/artifactory path:/artifactory spec-version:2.5]" failed, java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '32618' bytes.. java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '32618' bytes. at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:422) at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1432) at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1506) at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) {noformat}

    JFrog JIRA | 4 years ago | Noam Y. Tenne
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '32618' bytes.
  3. 0

    Weblogic deployment error using WLST

    Stack Overflow | 2 years ago | user3387474
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '3244032' bytes instead of stated: '172590500' bytes.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    &quot;java.net.ProtocolException: Didn't meet s... | Oracle Community

    oracle.com | 1 year ago
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '94846976' bytes instead of stated: '219383760' bytes.
  6. 0

    Cognos:Cognos SDK and Diagnostics:context-path: '/p2pd'" failed, java.net.ProtocolException: Didn't meet stat - Cognos SDK and Diagnostics Forum

    ibm.com | 11 months ago
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '5795' bytes instead of stated: '5966' bytes.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.ProtocolException

      Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '32618' bytes.

      at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength()
    2. Atmosphere weblogic
      ServletRequestImpl.run
      1. weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:422)
      2. weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1432)
      3. weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1506)
      4. weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
      4 frames
    3. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
      2 frames