日期:2014-05-20  浏览次数:20737 次

weblogic抛异常 java.net.ProtocolException: Didn't meet stated Content-Length, wrote
请各位高手帮忙看看,十万火急啊, 

我的项目部署在本机的weblogic8.1一点问题都没有,运行得很顺利,但是一放到外网上, 
也是weblogic8.1,则经常报这个异常,而且访问速度会变慢,必须要重新启动weblogic才行, 
请问这是怎么回事?怎么解决这个问题啊,谢谢大家,积极讨论! 


#### <2008-4-26 下午14时11分11秒 CST> <Error> <HTTP> <35sdfsdff> <myserver> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> < <WLS Kernel>> <> <BEA-101104> <Servlet execution in servlet context "ServletContext(id=7118607,name=NewChinese,context-path=)" failed, java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '12216' bytes instead of stated: '63295' bytes.. 
java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '12216' bytes instead of stated: '63295' bytes. 
at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:470) 
at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1176) 
at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1188) 
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2590) 
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) 
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) 
>  
#### <2008-4-26 下午14时11分11秒 CST> <Error> <HTTP> <35sdfsdff> <myserver> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> < <WLS Kernel>> <> <BEA-101083> <Connection failure. 
java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '12216' bytes instead of stated: '63295' bytes. 
at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:470) 
at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1176) 
at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1188) 
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2590) 
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) 
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

------解决方案--------------------
是weblogic的内部错误,如果你用英文windows系统就不会有这个问题,weblogic8以后的版本也不会有这样的问题。
------解决方案--------------------
lz去升级高版本的weblogic吧
------解决方案--------------------
探讨
是weblogic的内部错误,如果你用英文windows系统就不会有这个问题,weblogic8以后的版本也不会有这样的问题。