0 Replies Latest reply on Jan 21, 2005 9:03 AM by Marcelo Pitanga

    Using Filter to captured response content (HTML)...

    Marcelo Pitanga Newbie

      Hi,

      I´m using the Filter to captured and display the request and response result operation. All work fine until access Jboss web-console.

      2005-01-21 09:22:43,437 INFO [STDOUT]
      Start: 09:22:40.375
      Request address : 192.168.2.41
      RemoteHost : 192.168.2.41
      RemotePort : 1589
      sessionId : 119BEFD14CD214C88CD0191594C57F9A
      method : GET
      url : http://popshopdes/web-console/css/header_bg.jpg
      RemoteUser : null
      AuthType : null
      ContentType : null
      RequestURI : /web-console/css/header_bg.jpg
      QueryString : null
      Protocol : HTTP/1.1
      PathInfo : null
      HeaderNames : accept Content : */*
      HeaderNames : referer Content : http://popshopdes/web-console/ServerInfo.jsp
      HeaderNames : accept-language Content : pt-br
      HeaderNames : accept-encoding Content : gzip, deflate
      HeaderNames : user-agent Content : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
      HeaderNames : host Content : popshopdes
      HeaderNames : connection Content : Keep-Alive
      HeaderNames : cookie Content : JSESSIONID=119BEFD14CD214C88CD0191594C57F9A
      Response

      Finish: 09:22:40.375

      2005-01-21 09:22:50,812 DEBUG [org.jboss.console.remote.InvokerServlet] Invoke threw exception
      java.lang.IllegalStateException: getWriter() has already been called for this response
      at org.apache.coyote.tomcat5.CoyoteResponse.getOutputStream(CoyoteResponse.java:568)
      at org.apache.coyote.tomcat5.CoyoteResponseFacade.getOutputStream(CoyoteResponseFacade.java:148)
      at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:101)
      at org.jboss.console.remote.InvokerServlet.processRequest(InvokerServlet.java:98)
      at org.jboss.console.remote.InvokerServlet.doPost(InvokerServlet.java:133)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at middlog.interceptor.WEBInterceptor.doFilter(Unknown Source)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:595)