ICEfaces
  1. ICEfaces
  2. ICE-6291

Fileupload throws exception in server when file is too large (Or other exceptions are caught)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.2-EE-GA_P02
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      jboss-seam-2.2.1.CR2, jsf1.2

      Description

      Fileupload is currently configured to catch exceptions and provide error messages regarding any problems found during the file upload. Unfortunately, the seam filter is also catching these exceptions and trying to redirect to a debug page. The appropriate faces message is generated for the component (eg: file is too large, etc), but the following exception also occurs on the server log:-
      09:30:59,912 ERROR [[uploadServlet]] Servlet.service() for servlet uploadServlet threw exception
      java.lang.IllegalArgumentException: no file extension in servlet path: /uploadHtml
      at org.jboss.seam.mock.MockViewHandler.getActionURL(MockViewHandler.java:45)
      at org.jboss.seam.jsf.SeamViewHandler.getActionURL(SeamViewHandler.java:74)
      at org.jboss.seam.faces.FacesManager.redirect(FacesManager.java:168)
      at org.jboss.seam.faces.Redirect.execute(Redirect.java:154)
      at org.jboss.seam.exception.DebugPageHandler.handle(DebugPageHandler.java:32)
      at org.jboss.seam.exception.Exceptions.handle(Exceptions.java:76)
      at org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:114)
      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:655)

        Activity

        Hide
        Judy Guglielmin added a comment -

        tried seam-2.2.1.CR1 and seam-2.2.0.GA as well as icefaces-1.8.0_P01 and still have same issue.

        Show
        Judy Guglielmin added a comment - tried seam-2.2.1.CR1 and seam-2.2.0.GA as well as icefaces-1.8.0_P01 and still have same issue.
        Hide
        Judy Guglielmin added a comment -

        went back to try all the different combinations and the only one that works is jboss-4.2.3.GA with any of these, so could this be the version of the servlet api that the different application servers are using? Tried the fileupload with and without the push server on jboss-4.2.3.GA and jboss-5.1.0.GA and only 4.2.3 does not display the exception on the server log.

        Show
        Judy Guglielmin added a comment - went back to try all the different combinations and the only one that works is jboss-4.2.3.GA with any of these, so could this be the version of the servlet api that the different application servers are using? Tried the fileupload with and without the push server on jboss-4.2.3.GA and jboss-5.1.0.GA and only 4.2.3 does not display the exception on the server log.

          People

          • Assignee:
            Unassigned
            Reporter:
            Judy Guglielmin
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: