• Post Reply Bookmark Topic Watch Topic
  • New Topic

EOF reached before promised bytes  RSS feed

Allen Bandela
Ranch Hand
Posts: 128
Eclipse IDE MS IE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the exception in question:

java.net.ProtocolException: EOF after reading only: '0' of: '85' promised bytes, out of which at least: '0' were already buffe
at weblogic.servlet.internal.PostInputStream.complain(PostInputStream.java:93)
at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:179)
at weblogic.servlet.internal.ServletInputStreamImpl$1.read(ServletInputStreamImpl.java:157)
at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:222)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.mergePostParams(ServletRequestImpl.java:1791)

I figure that ServletInputStream is reading the bytes from the stream. It first got the size of the stream. Created a buffer of that size. It then tries to load the stream into the buffer, but fails.

What could possibly cause the stream size to show '85' but have '0' bytes in it. Any ideas?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!