Oracle Community | 807573 | 8 years ago
  1. 0

    If I have the ExtensionsFilter configured in my web.xml it throws an error whenever a page is not found saying that the response is already committed instead of just displaying the 404 error page that I have created. java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter( at org.apache.catalina.connector.ResponseFacade.getWriter( at org.apache.jasper.runtime.JspWriterImpl.initOut( at org.apache.jasper.runtime.JspWriterImpl.flushBuffer( at org.apache.jasper.runtime.PageContextImpl.release( at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext( at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext( at org.apache.jsp.errors._404_jsp._jspService( If I comment out the ExtensionsFilter it works fine and displays the 404 splash page from my application as it should. Here is the snippet from my web.xml: <filter> <filter-name>MyFacesExtensionsFilter</filter-name> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class> <init-param> <description>Set the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB </description> <param-name>uploadMaxFileSize</param-name> <param-value>100m</param-value> </init-param> <init-param> <description>Set the threshold size - files below this limit are stored in memory, files above this limit are stored on disk. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB </description> <param-name>uploadThresholdSize</param-name> <param-value>100k</param-value> </init-param> </filter> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <url-pattern>*.jsf</url-pattern> </filter-mapping>

    Apache's JIRA Issue Tracker | 1 decade ago | Bryan Hansen
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0


    Oracle Community | 10 years ago | 843844
  4. 0

    i need help in JSF

    Oracle Community | 9 years ago | 843844

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at javax.faces.webapp.UIComponentTag.setupResponseWriter()
    2. JavaEE 7
      1. javax.faces.webapp.UIComponentTag.setupResponseWriter(
      2. javax.faces.webapp.UIComponentTag.doStartTag(
      2 frames