8 Replies Latest reply on Sep 9, 2009 6:07 AM by Pavel Zelenka

    FileUpload problem

    Pavel Zelenka Newbie

      Hi,

      on my page I have rich:dataTable and i use rich:fielUpload for import data from file to this dataTable.

      <rich:fileUpload fileUploadListener="#{myBean.fileUploadListener}"
      maxFilesQuantity="1"
      listHeight="65px"
      autoclear="true"
      immediateUpload="true"
      acceptedTypes="xls">
      </rich:fileUpload>

      I have two problems:

      1. acceptedTypes doesn't work - file opend dialog shows all file types
      2. getter for dataTable data is fired three times before fileUploadListener is called and three times after.

      Could someone help?

        • 1. Re: FileUpload problem
          Nick Belaevski Master

          Hello,

          1. That's the specific of native file selection dialog. Use flash mode to fix the problem

          2. Please add

          Thread.dumpStack();
          and post results here.

          • 2. Re: FileUpload problem
            Pavel Zelenka Newbie

            java.lang.Exception: Stack trace
            at java.lang.Thread.dumpStack(Thread.java:1206)
            at cz.mediaservis.metro.RichFacesBean.fileUploadListener(RichFacesBean.java:274)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.el.parser.AstValue.invoke(AstValue.java:172)
            at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
            at org.richfaces.component.UIFileUpload.broadcast(UIFileUpload.java:189)
            at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
            at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:294)
            at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
            at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
            at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
            at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            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:365)
            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
            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:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
            at java.lang.Thread.run(Thread.java:619)

            • 3. Re: FileUpload problem
              Nick Belaevski Master

              Please add it to getter of data table data.

              • 4. Re: FileUpload problem
                Pavel Zelenka Newbie

                the previous dump was from FileUploadListener method.

                This one is from datatable getter invokd by rich:fileUpload:

                java.lang.Exception: Stack trace
                at java.lang.Thread.dumpStack(Thread.java:1206)
                at cz.mediaservis.metro.RichFacesBean.getVykazList(RichFacesBean.java:115)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
                at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
                at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
                at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                at javax.faces.component.UIData.getValue(UIData.java:609)
                at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1644)
                at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
                at org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
                at org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:125)
                at org.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:621)
                at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:339)
                at org.richfaces.renderkit.AbstractTableRenderer.encodeTableStructure(AbstractTableRenderer.java:124)
                at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:206)
                at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:194)
                at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:101)
                at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
                at javax.faces.component.UIData.encodeBegin(UIData.java:962)
                at org.ajax4jsf.component.UIDataAdaptor.encodeBegin(UIDataAdaptor.java:1220)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:934)
                at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
                at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                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:390)
                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                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:233)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
                at java.lang.Thread.run(Thread.java:619)
                java.lang.Exception: Stack trace
                at java.lang.Thread.dumpStack(Thread.java:1206)
                at cz.mediaservis.metro.RichFacesBean.getVykazList(RichFacesBean.java:115)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
                at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
                at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
                at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                at javax.faces.component.UIData.getValue(UIData.java:609)
                at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1644)
                at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
                at org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
                at org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:125)
                at org.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:621)
                at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:339)
                at org.ajax4jsf.component.UIDataAdaptor.iterate(UIDataAdaptor.java:1034)
                at org.ajax4jsf.component.UIDataAdaptor.encodeAjaxChild(UIDataAdaptor.java:496)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:104)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:67)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:115)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:67)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:115)
                at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:123)
                at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:677)
                at org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:548)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
                at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                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:390)
                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                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:233)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
                at java.lang.Thread.run(Thread.java:619)
                java.lang.Exception: Stack trace
                at java.lang.Thread.dumpStack(Thread.java:1206)
                at cz.mediaservis.metro.RichFacesBean.getVykazList(RichFacesBean.java:115)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
                at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
                at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
                at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                at javax.faces.component.UIData.getValue(UIData.java:609)
                at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1644)
                at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
                at org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
                at org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:125)
                at org.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:621)
                at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:339)
                at org.ajax4jsf.component.UIDataAdaptor.iterate(UIDataAdaptor.java:1034)
                at org.ajax4jsf.component.UIDataAdaptor.processDecodes(UIDataAdaptor.java:1158)
                at org.ajax4jsf.component.UIDataAdaptor.processDecodes(UIDataAdaptor.java:1168)
                at javax.faces.component.UIForm.processDecodes(UIForm.java:209)
                at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:392)
                at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
                at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
                at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                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:365)
                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                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:233)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
                at java.lang.Thread.run(Thread.java:619)
                java.lang.Exception: Stack trace
                at java.lang.Thread.dumpStack(Thread.java:1206)
                at cz.mediaservis.metro.RichFacesBean.getVykazList(RichFacesBean.java:115)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
                at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
                at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
                at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                at javax.faces.component.UIData.getValue(UIData.java:609)
                at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1644)
                at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
                at org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
                at org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:125)
                at org.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:621)
                at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:339)
                at org.ajax4jsf.component.UIDataAdaptor.iterate(UIDataAdaptor.java:1034)
                at org.ajax4jsf.component.UIDataAdaptor.encodeAjaxChild(UIDataAdaptor.java:496)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:104)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:67)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:115)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:67)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:115)
                at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:123)
                at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:677)
                at org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:548)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
                at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                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:390)
                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                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:233)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
                at java.lang.Thread.run(Thread.java:619)
                java.lang.Exception: Stack trace
                at java.lang.Thread.dumpStack(Thread.java:1206)
                at cz.mediaservis.metro.RichFacesBean.getVykazList(RichFacesBean.java:115)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
                at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
                at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
                at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                at javax.faces.component.UIData.getValue(UIData.java:609)
                at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1644)
                at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
                at org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
                at org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:125)
                at org.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:621)
                at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:339)
                at org.ajax4jsf.component.UIDataAdaptor.iterate(UIDataAdaptor.java:1034)
                at org.ajax4jsf.component.UIDataAdaptor.encodeAjaxChild(UIDataAdaptor.java:496)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:104)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:67)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:115)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:67)
                at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:115)
                at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:123)
                at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:677)
                at org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:548)
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
                at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                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:390)
                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                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:233)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
                at java.lang.Thread.run(Thread.java:619)

                • 5. Re: FileUpload problem
                  Nick Belaevski Master

                  Ok, I see, progress bar is being rendered + component is decoded, that's why data model is created.

                  • 6. Re: FileUpload problem
                    Pavel Zelenka Newbie

                    Thanks, but what should I do to avoid this? In fact I don't need the progress bar.
                    Or is there any way how to incorporate FileUpload from Tomahawk?

                    • 7. Re: FileUpload problem
                      Nick Belaevski Master

                      If you are ok with using Flash, then you can just turn it on, it will not use additional requests to provide progress information. Otherwise - configure your own progress bar for fileUpload using facet and disable it.

                      Or yes, you can use file upload components from Tomahawk or Seam.

                      • 8. Re: FileUpload problem
                        Pavel Zelenka Newbie

                         

                        "nbelaevski" wrote:

                        Or yes, you can use file upload components from Tomahawk or Seam.


                        I would prefer this way. Could you be please more specific how should I change faces-config.xml a web.xml to be able to use RichFaces and Tomahawk together?