NutzCN Logo
问答 加载flv后台总是出现getOutputStream has been already called for this response异常
发布于 687天前 作者 qq_485261f3 797 次浏览 复制 上一个帖子 下一个帖子
标签: tomcat

加载flv后台总是出现getOutputStream has been already called for this response异常
tomcat7
ckplayer.js
flv文件大小:11M

var flashvars={
f:'/video/uo40.flv',
c:0,
b:1
};
var params={bgcolor:'#FFF',allowFullScreen:false,allowScriptAccess:'always',wmode:'transparent'};
CKobject.embedSWF('/ckplayer/ckplayer.swf','videoDiv','ckplayer_a1','1000','600',flashvars,params);

多谢!!

4 回复

后台堆栈信息贴一下哦

贴你的后端代码

一月 07, 2016 2:19:40 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [springServlet] in context with path [/test
h] threw exception [java.lang.IllegalStateException: getOutputStream() has alrea
dy been called for this response] with root cause
java.lang.IllegalStateException: getOutputStream() has already been called for t
his response
at org.apache.catalina.connector.Response.getWriter(Response.java:679)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade
.java:213)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper
.java:104)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper
.java:104)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:12
5)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.jav
a:118)
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.jav
a:186)
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(J
spFactoryImpl.java:126)
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactor
yImpl.java:80)
at org.apache.jsp.WEB_002dINF.views.error._500_jsp._jspService(_500_jsp.
java:262)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:439)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:747)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:603)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
patcher.java:542)
at org.springframework.web.servlet.view.InternalResourceView.renderMerge
dOutputModel(InternalResourceView.java:201)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView
.java:267)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherSe
rvlet.java:1221)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResu
lt(DispatcherServlet.java:1005)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch
erServlet.java:952)
at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche
rServlet.java:870)
at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
workServlet.java:961)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServl
et.java:852)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkSer
vlet.java:837)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52
)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:208)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilte
rChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.j
ava:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilt
er.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerReq
uestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilte
rChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(Abstrac
tShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiro
Filter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallab
le.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable
.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(Delegating
Subject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(Abs
tractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerReq
uestFilter.java:125)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(D
elegatingFilterProxy.java:344)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegat
ingFilterProxy.java:261)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterIntern
al(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:625)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpo
int.java:2517)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin
t.java:2506)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskTh
read.java:61)
at java.lang.Thread.run(Thread.java:745)

是其他原因吧, 你这个报错是500页面的时候呢

添加回复
请先登陆
回到顶部