myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burke, Rodney" <bu...@ibiquity.com>
Subject Auto Page Refresh causes SocetException
Date Tue, 20 Dec 2005 18:06:07 GMT
All,

 

I have monitoring web application which uses myfaces.

The basic flow seems to work, but I keep getting a SocketException when
the META auto refresh kicks in.

 

I'm using HTML META refresh content with a timer as follows:

 

<f:view>   

   <f:verbatim>

   <head> 

      <%@include file="/inc/head.inc" %>

      <META HTTP-EQUIV="Pragma" CONTENT="no-cache">       

      <META HTTP-EQUIV="REFRESH" CONTENT="</f:verbatim><h:outputText
value="#{monitorGEM.refreshRate}"/><f:verbatim>;
URL=/mam-web/monitor.jsf?refresh=true" >

   </head>

   

   <body>

   </f:verbatim>     

 

Note: I have a JSF commandButton which users can push to do a manual
refresh and that works fine with no errors.

 

Any input is appreciated!

Thanks,

Rodney

 

 

Here's the SocketException:

 

12:24:03,254 WARN  [ReducedHTMLParser] Invalid HTML; bare lessthan sign
found at line 1

12:24:03,317 ERROR [AddResource] Error while serving resource: null

ClientAbortException:  java.net.SocketException: Connection reset

        at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.j
ava:366)

        at
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)

        at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314
)

        at
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:278)

        at
org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStrea
m.java:91)

        at
org.apache.myfaces.component.html.util.MyFacesResourceLoader.writeResour
ce(MyfacesResourceLoader.java:173)

        at
org.apache.myfaces.component.html.util.MyFacesResourceLoader.serveResour
ce(MyfacesResourceLoader.java:152)

        at
org.apache.myfaces.component.html.util.AddResource.serveResource(AddReso
urce.java:555)

        at
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensi
onsFilter.java:109)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)

        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:81)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)

        at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipa
lValve.java:39)

        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:153)

        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:59)

        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)

        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)

        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)

        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)

        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)

        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)

        at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
Thread.java:112)

        at java.lang.Thread.run(Thread.java:534)

12:24:03,319 ERROR [[default]] Servlet.service() for servlet default
threw exception

java.lang.IllegalStateException

        at
org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.ja
va:409)

        at
org.apache.myfaces.component.html.util.AddResource.serveResource(AddReso
urce.java:580)

        at
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensi
onsFilter.java:109)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)

        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:81)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)

        at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipa
lValve.java:39)

        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:153)

        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:59)

        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)

        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)

        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)

        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)

        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)

        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)

        at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
Thread.java:112)

        at java.lang.Thread.run(Thread.java:534)

 


Mime
View raw message