1 Reply Latest reply on Jun 16, 2009 5:49 PM by ROSMON SIDHIK

    FileUpload controler giving java.lang.IllegalArgumentExcepti

    ROSMON SIDHIK Newbie

      I'm using the following tag:

       <r:fileUpload immediateUpload="true"
       fileUploadListener="#{PolicyControllerBean.fileUploaded}">
       <a4j:actionparam name="sortField" value="" />
       </r:fileUpload>
      


      Once I select the file and hit upload button, I get the following error:

      
      java.lang.IllegalArgumentException: FacesEvent of class org.richfaces.event.UploadAjaxActionEvent
      not supported by UIInput
       at javax.faces.component.UIInput.broadcast (UIInput.java:192)
       at org.richfaces.component.UIFileUpload.broadcast (UIFileUpload.java:221)
       at org.ajax4jsf.component.AjaxViewRoot.processEvents (AjaxViewRoot.java:321)
       at org.ajax4jsf.component.AjaxViewRoot.broadcastAjaxEvents (AjaxViewRoot.java:340)
       at org.ajax4jsf.application.AjaxViewHandler.processAjaxEvents (AjaxViewHandler.java:216)
       at org.ajax4jsf.application.AjaxViewHandler.renderView (AjaxViewHandler.java:169)
       at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute (RenderResponseExecutor.java:41)
       at org.apache.myfaces.lifecycle.LifecycleImpl.render (LifecycleImpl.java:140)
       at javax.faces.webapp.FacesServlet.service (FacesServlet.java:152)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter (ExtensionsFilter.java:147)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter (BaseXMLFilter.java:178)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest (BaseFilter.java:290)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest (BaseFilter.java:388)
       at org.ajax4jsf.webapp.BaseFilter.doFilter (BaseFilter.java:515)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206)