当前位置: 代码迷 >> J2EE >> Error From RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:10.5.1 500 Internal Server Error 200分解决有关问题
  详细解决方案

Error From RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:10.5.1 500 Internal Server Error 200分解决有关问题

热度:1117   发布时间:2016-04-22 02:07:43.0
Error From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:10.5.1 500 Internal Server Error 200分解决问题
原来在测试环境下weblogic9 和tomcat上运行系统都没有问题 可是在正式环境下用最新的weblogic9 mp3 下却出问题了,前台的错误是Error 
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.

后台日志:<Jul 19, 2008 9:53:02 AM GMT+08:00> <Error> <HTTP> <BEA-101083> <Connection failure.
java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '1880576' bytes.
  at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:410)
  at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1293)
  at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1335)
  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1375)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
  Truncated. see log file for complete stacktrace

<Jul 19, 2008 9:53:02 AM GMT+08:00> <Error> <HTTP> <BEA-101104> <Servlet execution in servlet context "weblogic.servlet.internal.WebAppServletContext@7a8ba4 - appName: 'app', name: 'app', 
context-path: '/app'" failed, java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '1880576' bytes..
java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '1880576' bytes.
  at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:410)
  at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1293)
  at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1335)
  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1375)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
  Truncated. see log file for complete stacktrace


到底是什么问题,请大家帮帮忙,着急,能解决问题再追加100分
>

------解决方案--------------------
没用过weblogic9 ,帮你顶吧
------解决方案--------------------
up
------解决方案--------------------
java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '1880576' bytes.

从错误信息看,你的程序缺少了 
Content-Length

这个文件头。普通的url不会有这个问题,是不是你的自定义的下载功能引起的,或者你的过滤器没有弄好!
------解决方案--------------------
帮顶..................
------解决方案--------------------
友情帮顶
------解决方案--------------------
顶吧
------解决方案--------------------
帮你顶吧...
------解决方案--------------------
顶个...
代码迷推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.daimami.com/search?q=317
  相关解决方案