9 Replies Latest reply on Jan 19, 2007 6:14 PM by milestone

    iceFaces inputFile component

    milestone Newbie

      Hi all,

      has anyone successfully integrated the <ice:inputFile/> Component? I am trying to get this to work, but I keep getting an 404 inside the genrated iframe.

      I am new to seam and icefaces.

      So any help is highly appreciated.

      Here is my setup:

      I am using the web.xml from the seam 1.1.GA examples/icefaces example booking application. I also copied the icefaces jars into my lib folder. That made most errors disappear. But this error stays. Any help is highly appreciated.

      this is how my current page looks like:

       <h:form id="upload">
       <div>
       <ice:inputFile style="border:none; width:400px; height:70px;" progressListener="#{inputFile.progress}" actionListener="#{inputFile.action}"/>
       <ice:outputProgress id="pro" value="#{inputFile.percent}"/>
       <h:commandButton id="uploadPicture" value="upload Picture!" action="#{upload.uploadPicture}"/>
       </div>
       </h:form>
      


      The commandButton was generated by seam-gen new-action i don't know if I have to provide a inputFile bean. Plus I don't know how to get the thing with the events working, since (as for my understanding) the icefaces component showcase schos bean examples when one uses icefaces framework standalone.

      Kind regards

      Juergen Hoffmann

        • 1. Re: iceFaces inputFile component
          milestone Newbie

          Ok, I have come a bit closer.

          I have created my own Stateful SessionBean, which exposes all the necessary methods...

          package de.ellumination.share.sb;
          
          import java.util.EventObject;
          
          import javax.ejb.Remove;
          import javax.ejb.Stateful;
          import javax.ejb.Stateless;
          import javax.faces.application.FacesMessage;
          import javax.faces.event.ActionEvent;
          
          import org.jboss.seam.annotations.Destroy;
          import org.jboss.seam.annotations.Name;
          import org.jboss.seam.annotations.In;
          import org.jboss.seam.annotations.Logger;
          import org.jboss.seam.log.Log;
          import org.jboss.seam.core.FacesMessages;
          
          import com.icesoft.faces.component.inputfile.InputFile;
          import com.icesoft.faces.webapp.xmlhttp.PersistentFacesState;
          import com.icesoft.faces.webapp.xmlhttp.RenderingException;
          
          @Stateful
          @Name("upload")
          public class UploadBean implements UploadHome
          {
          
           @Logger
           private Log log;
          
           private PersistentFacesState state = null;
          
           @In
           FacesMessages facesMessages;
          
           private int percent = -1;
          
           public UploadBean()
           {
           state = PersistentFacesState.getInstance();
           }
          
           // seam-gen method
           public String uploadPicture()
           {
           // implement your business logic here
           log.info("upload.uploadPicture() action called");
           facesMessages.add("uploadPicture");
           return "success";
           }
          
           public void action(ActionEvent event)
           {
           InputFile inputFile = (InputFile) event.getSource();
           // file has been saved
           if(inputFile.getStatus() == InputFile.SAVED)
           {
           String fileName = inputFile.getFileInfo().getFileName();
           String contentType = inputFile.getFileInfo().getContentType();
           FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL,
           "File uploaded successfully name: #0 content/type: #1", fileName, contentType);
           }
          
           // invalid file, happens when clicking on upload without selecting a
           // file, or a file with no contents.
           if(inputFile.getStatus() == InputFile.INVALID)
           {
           inputFile.getFileInfo().getException().printStackTrace();
           FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, "Please select a File");
           }
          
           // file size exceeded the limit
           if(inputFile.getStatus() == InputFile.SIZE_LIMIT_EXCEEDED)
           {
           inputFile.getFileInfo().getException().printStackTrace();
           FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, "File too big");
           }
          
           // indicate that the request size is not specified.
           if(inputFile.getStatus() == InputFile.UNKNOWN_SIZE)
           {
           inputFile.getFileInfo().getException().printStackTrace();
           FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, "Filesize unknown");
          
           }
           }
          
           @Destroy
           @Remove
           public void destroy()
           {
           }
          
           public String getPercent()
           {
           return Integer.toString(percent);
           }
          
           public void progress(EventObject event)
           {
           InputFile file = (InputFile) event.getSource();
           percent = file.getFileInfo().getPercent();
           try
           {
           if(state != null)
           {
           state.render();
           }
           }
           catch (RenderingException e)
           {
           log.error("Unable to render progress", e);
           }
           }
          
           // add additional action methods
          
          }
          


          and configuring my facelet page like so:

           <h:form>
           <table border="5" cellpadding="15">
           <tr>
           <td>
           <ice:inputFile style="border:none; width:400px; height:70px;" progressListener="#{upload.progress}" actionListener="#{upload.action}" label="lads hoch"/>
           </td>
           </tr>
           <tr>
           <td>
           <ice:inputFile/>
           </td>
           </tr>
           <tr>
           <td>
           <ice:outputProgress id="pro" value="#{upload.percent}"/>
           </td>
           </tr>
           </table>
           </h:form>
          


          the second input item, and the borders ar just fpr debugging purposes. But the problem is, that the inputfile component tries to create an iframe, which should be loaded from uploadHtml of course there is no such page.

          Is there something I am missing?

          Here is the generated html code

          <form action="iceSubmit('_id18');" context_type="class com.icesoft.faces.context.BridgeFacesContext" enctype="application/x-www-form-urlencoded" id="_id18" method="post" onsubmit="return false;" style="">
           <input name="_id18" type="hidden" value="_id18"></input>
           <input name="icefacesCssUpdates" type="hidden" value=""></input>
           <input name="viewNumber" type="hidden" value="1"></input>
           <input name="icefacesID" type="hidden" value="zvus_a9YRw5_dCgr8r_kzQ"></input>
          <table border="5" cellpadding="15">
           <tr>
           <td>
           <table id="_id18:_id22" style="border:none; width:400px; height:70px;">
           <tbody>
           <tr>
           <td id="uploadTd" style="height:60px;">
           <iframe class="iceFileUpload" frameborder="0" height="60" name="fileUpload_id18:_id22" src="/share/uploadHtml?fileUploadComponentId=fileUpload_id18:_id2211008164&disabled=false&inputTextClass=iceFileUploadText&buttonClass=iceFileUploadButton&label=lads hoch&uniqueFolder=true&cssFile=./xmlhttp/css/xp/xp.css" style="border:none; width:400px; height:70px;" width="400">
           </iframe>
           </td>
           </tr>
           <tr>
           <td id="detailTd" style=""></td>
           </tr>
           </tbody>
           </table>
           </td>
          </tr>
          <tr><td><table id="_id18:_id25" style="border:none; width:400px; height:50px; padding-top:0px;"><tbody><tr><td id="uploadTd" style="height:60px;"><iframe class="iceFileUpload" frameborder="0" height="60" name="fileUpload_id18:_id25" src="/share/uploadHtml?fileUploadComponentId=fileUpload_id18:_id256115998&disabled=false&inputTextClass=iceFileUploadText&buttonClass=iceFileUploadButton&label=Upload&uniqueFolder=true&cssFile=./xmlhttp/css/xp/xp.css" style="border:none; width:400px; height:50px; padding-top:0px;" width="400"></iframe></td></tr>
          <tr><td id="detailTd" style=""></td></tr></tbody></table></td></tr>
          <tr><td><table border="0" cellpadding="0" cellspacing="0" class="iceOutputProgress" id="_id18:pro" style=""><tbody><tr><td><div class="iceOutputProgressBackground" style="position:relative;"><div class="iceOutputProgressFill" id="_id18:probar" style="position:absolute;width:0%;"></div>
          <div class="iceOutputProgressText" style="text-align:center;position:relative;background-color:transparent;width:100%;z-index:1;">0 %</div></div></td></tr></tbody></table></td></tr></table>
          <input command_link_hidden_field="command_link_hidden_field" name="focus_hidden_field" type="hidden"></input></form>
          


          Kind regards

          Juergen Hoffmann

          • 2. Re: iceFaces inputFile component
            milestone Newbie

            Hi Folks,

            I found, that I was missing entries in my web.xml

             <servlet>
             <servlet-name>uploadServlet</servlet-name>
             <servlet-class>com.icesoft.faces.component.inputfile.FileUploadServlet</servlet-class>
             <load-on-startup> 1 </load-on-startup>
             </servlet>
             <servlet-mapping>
             <servlet-name>uploadServlet</servlet-name>
             <url-pattern>/uploadHtml</url-pattern>
             </servlet-mapping>
            


            I inserted them. Now the upload Component renders fine.

            No when uploading a file, I get the following Error(s):


            21:54:56,458 ERROR [STDERR] java.lang.reflect.InvocationTargetException
            21:54:56,458 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
            21:54:56,458 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            21:54:56,458 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            21:54:56,458 ERROR [STDERR] at com.icesoft.faces.component.inputfile.InputFile.fireEvent(InputFile.java:305)
            21:54:56,458 ERROR [STDERR] at com.icesoft.faces.component.inputfile.ProgressOutputStream.setSaved(ProgressOutputStream.java:80)
            21:54:56,458 ERROR [STDERR] at com.icesoft.faces.component.inputfile.DiskFileUpload.parseRequest(DiskFileUpload.java:256)
            21:54:56,458 ERROR [STDERR] at com.icesoft.faces.component.inputfile.FileUploadServlet.processMultipartContent(FileUploadServlet.java:160)
            21:54:56,458 ERROR [STDERR] at com.icesoft.faces.component.inputfile.FileUploadServlet.doPost(FileUploadServlet.java:146)
            21:54:56,458 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            21:54:56,458 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            21:54:56,458 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            21:54:56,458 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            21:54:56,458 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            21:54:56,458 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            21:54:56,458 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            21:54:56,458 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            21:54:56,458 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            21:54:56,458 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
            21:54:56,498 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
            21:54:56,498 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            21:54:56,498 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            21:54:56,498 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
            21:54:56,498 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            21:54:56,498 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            21:54:56,498 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            21:54:56,498 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
            21:54:56,498 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            21:54:56,498 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            21:54:56,498 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
            21:54:56,498 ERROR [STDERR] Caused by: javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 5c4o07-npi3ii-ewb32xv5-1-ewb33p7c-d
            21:54:56,498 ERROR [STDERR] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:268)
            21:54:56,498 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:61)
            21:54:56,498 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            21:54:56,498 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
            21:54:56,498 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
            21:54:56,498 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            21:54:56,498 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
            21:54:56,498 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            21:54:56,498 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
            21:54:56,498 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            21:54:56,498 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
            21:54:56,498 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
            21:54:56,498 ERROR [STDERR] at $Proxy148.progress(Unknown Source)
            21:54:56,588 ERROR [STDERR] at de.ellumination.share.sb.UploadHome$$FastClassByCGLIB$$13259d82.invoke(<generated>)
            21:54:56,598 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            21:54:56,598 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
            21:54:56,598 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
            21:54:56,598 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
            21:54:56,598 ERROR [STDERR] at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
            21:54:56,598 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
            21:54:56,598 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            21:54:56,979 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
            21:54:56,979 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
            21:54:56,979 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            21:54:56,979 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:112)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:82)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
            21:54:56,979 ERROR [STDERR] at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$b7ee210f.progress(<generated>)
            21:54:56,979 ERROR [STDERR] ... 29 more
            21:54:56,989 ERROR [STDERR] java.lang.reflect.InvocationTargetException
            21:54:56,989 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
            21:54:56,989 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            21:54:56,989 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            21:54:56,989 ERROR [STDERR] at com.icesoft.faces.component.inputfile.InputFile.fireEvent(InputFile.java:305)
            21:54:56,989 ERROR [STDERR] at com.icesoft.faces.component.inputfile.FileUploadServlet.SaveFile(FileUploadServlet.java:194)
            21:54:56,989 ERROR [STDERR] at com.icesoft.faces.component.inputfile.FileUploadServlet.processMultipartContent(FileUploadServlet.java:161)
            21:54:56,989 ERROR [STDERR] at com.icesoft.faces.component.inputfile.FileUploadServlet.doPost(FileUploadServlet.java:146)
            21:54:56,989 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            21:54:56,989 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            21:54:56,989 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            21:54:56,989 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
            21:54:56,989 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            21:54:56,989 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            21:54:56,989 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            21:54:56,989 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            21:54:56,989 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
            21:54:56,989 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            21:54:56,989 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            21:54:56,989 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
            21:54:56,989 ERROR [STDERR] Caused by: javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 5c4o07-npi3ii-ewb32xv5-1-ewb33p7c-d
            21:54:56,989 ERROR [STDERR] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:268)
            21:54:56,989 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:61)
            21:54:56,989 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            21:54:56,989 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
            21:54:56,989 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
            21:54:56,989 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            21:54:56,989 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
            21:54:56,989 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            21:54:56,989 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
            21:54:56,989 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            21:54:56,989 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
            21:54:56,989 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
            21:54:56,989 ERROR [STDERR] at $Proxy148.progress(Unknown Source)
            21:54:56,989 ERROR [STDERR] at de.ellumination.share.sb.UploadHome$$FastClassByCGLIB$$13259d82.invoke(<generated>)
            21:54:56,989 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            21:54:56,989 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
            21:54:56,989 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
            21:54:56,989 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
            21:54:56,989 ERROR [STDERR] at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
            21:54:56,989 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
            21:54:56,989 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            21:54:56,989 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            21:54:56,989 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            21:54:56,989 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            21:54:56,989 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            21:54:56,989 ERROR [STDERR] at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
            21:54:56,989 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
            21:54:56,989 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            21:54:56,999 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
            21:54:57,029 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            21:54:57,029 ERROR [STDERR] at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            21:54:57,029 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            21:54:57,029 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
            21:54:57,029 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
            21:54:57,029 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:112)
            21:54:57,029 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:82)
            21:54:57,029 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
            21:54:57,029 ERROR [STDERR] at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$b7ee210f.progress(<generated>)
            21:54:57,029 ERROR [STDERR] ... 28 more
            21:54:57,189 INFO [Exceptions] no exceptions.xml file found
            21:54:57,189 ERROR [Exceptions] redirecting to debug page
            javax.ejb.EJBTransactionRolledbackException: java.lang.ClassCastException: com.icesoft.faces.component.inputfile.InputFile cannot be cast to com.icesoft.faces.component.input
            at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
            at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
            at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
            at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
            at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
            at $Proxy148.action(Unknown Source)
            at de.ellumination.share.sb.UploadHome$$FastClassByCGLIB$$13259d82.invoke(<generated>)
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
            at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
            at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
            at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
            at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
            at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
            at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:82)
            at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
            at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$b7ee210f.action(<generated>)
            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 com.sun.el.parser.AstValue.invoke(AstValue.java:151)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
            at org.jboss.seam.ui.facelet.OptionalParameterMethodExpression.invoke(OptionalParameterMethodExpression.java:34)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
            at javax.faces.component.UICommand.broadcast(UICommand.java:86)
            at com.icesoft.faces.component.inputfile.InputFile.broadcast(InputFile.java:501)
            at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
            at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
            at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
            at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.execute(PersistentFacesState.java:305)
            at com.icesoft.faces.webapp.xmlhttp.FileUploadServlet.execute(FileUploadServlet.java:85)
            at com.icesoft.faces.component.inputfile.FileUploadServlet.SaveFile(FileUploadServlet.java:233)
            at com.icesoft.faces.component.inputfile.FileUploadServlet.processMultipartContent(FileUploadServlet.java:161)
            at com.icesoft.faces.component.inputfile.FileUploadServlet.doPost(FileUploadServlet.java:146)
            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:252)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            at java.lang.Thread.run(Thread.java:619)
            Caused by: java.lang.ClassCastException: com.icesoft.faces.component.inputfile.InputFile cannot be cast to com.icesoft.faces.component.inputfile.InputFile
            at de.ellumination.share.sb.UploadBean.action(UploadBean.java:53)
            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.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
            at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
            at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
            at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
            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.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:39)
            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.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
            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.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
            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.jboss.seam.util.Reflections.invoke(Reflections.java:18)
            at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
            at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
            at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
            at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
            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.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
            at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
            at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
            ... 82 more


            Called Bean is the UploadBean posted before.

            Any Help is highly appreciated

            Kind regards

            Juergen Hoffmann

            • 3. Re: iceFaces inputFile component
              milestone Newbie

              Hi Folks,

              I have received the following reply over at the http://www.icefaces.org/JForum/posts/list/3270.page#15506...

              Kind regards

              Juergen

              • 4. Question about Classloading
                milestone Newbie

                Hi Folks,

                the afore mentioned application is packaged inside an EAR by seam-gen. I have my beans inside a JAR and my Web Application inside my WAR.

                With my Icefaces inputfile component it seems that there are events triggered inside the webapp forwarded to the beans, where they are then evaluated.

                To solve this, I have the icefaces jars inside the WEB-INF/lib folder of my WAR. To make the beans being able to access icefaces classes, I have added the icefaces jar files to my JBOSS_HOME/server/default/lib folder. Maybe this is wrong and this is why I am getting the strange exception...

                java.lang.ClassCastException: com.icesoft.faces.context.BridgeFacesContext cannot be cast to com.icesoft.faces.context.BridgeFacesContext
                 at com.icesoft.faces.context.BridgeExternalContext.getRequestMap(BridgeExternalContext.java:365)
                 at com.icesoft.faces.context.BridgeExternalContext.resetRequestMap(BridgeExternalContext.java:402)
                 at com.icesoft.faces.context.BridgeFacesContext.release(BridgeFacesContext.java:325)
                 at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:440)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                 at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                 at java.lang.Thread.run(Thread.java:619)
                


                Dis I package my application correctly, or should I do this in a different way?

                Kind regards

                Juergen

                • 5. Re: iceFaces inputFile component
                  milestone Newbie

                  Hi,

                  finally, thanks to norman richards i have edited my application.xml and put my 3rd party libraries to my ear root. That way the ClassCastExceptions are gone, but now I am getting a different error...

                  00:07:31,017 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforePhase.
                  java.lang.IllegalStateException: No page context active
                   at org.jboss.seam.core.FacesPage.instance(FacesPage.java:87)
                   at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:219)
                   at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
                   at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
                   at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
                   at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:180)
                   at de.ellumination.share.sb.UploadBean.progress(UploadBean.java:109)
                   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.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                   at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                   at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
                   at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
                   at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                   at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                   at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
                   at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                   at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                   at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
                   at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                   at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                   at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
                   at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
                   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
                   at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
                   at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
                   at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                   at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                   at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                   at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
                   at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
                   at $Proxy97.progress(Unknown Source)
                   at de.ellumination.share.sb.UploadHome$$FastClassByCGLIB$$13259d82.invoke(<generated>)
                   at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
                   at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
                   at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
                   at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
                   at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                   at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                   at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
                   at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                   at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                   at org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:30)
                   at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                   at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                   at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
                   at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
                   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:112)
                   at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:82)
                   at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
                   at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$7feb9379.progress(<generated>)
                   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 com.icesoft.faces.component.inputfile.InputFile.fireEvent(InputFile.java:305)
                   at com.icesoft.faces.component.inputfile.FileUploadServlet.SaveFile(FileUploadServlet.java:194)
                   at com.icesoft.faces.component.inputfile.FileUploadServlet.processMultipartContent(FileUploadServlet.java:161)
                   at com.icesoft.faces.component.inputfile.FileUploadServlet.doPost(FileUploadServlet.java:146)
                   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:252)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                   at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                   at java.lang.Thread.run(Thread.java:619)
                  


                  In the UploadBean row 109 I am doing the following...

                   state.render();
                  


                  state is an instance of private PersistentFacesState state = null; which is instantiated inside the beans constructor.

                  According to the icefaces documentation, this has to be done though...

                  So I am wondering if this is a seam integration issue.

                  Kind regards

                  Juergen

                  • 6. Re: iceFaces inputFile component
                    milestone Newbie

                    Hi Folks,

                    upon philips request on the icefaces forum, I have rewritten my application now to be like so...

                    UploadBean.java

                    @Stateful
                    @Scope(ScopeType.SESSION)
                    @Name("upload")
                    public class UploadBean implements UploadHome
                    {
                    
                     @Logger
                     private Log log;
                    
                     private PersistentFacesState state = null;
                    
                     @In
                     FacesMessages facesMessages;
                    
                     @In(value="renderer", create=true)
                     RenderManagerBean renderer;
                    
                     private int percent = -1;
                    
                     public UploadBean()
                     {
                     state = PersistentFacesState.getInstance();
                     }
                    
                     // seam-gen method
                     public String uploadPicture()
                     {
                     // implement your business logic here
                     log.info("upload.uploadPicture() action called");
                     facesMessages.add("uploadPicture");
                     return "success";
                     }
                    
                     public void action(ActionEvent event)
                     {
                     InputFile inputFile = (InputFile) event.getSource();
                     // file has been saved
                     if(inputFile.getStatus() == InputFile.SAVED)
                     {
                     String fileName = inputFile.getFileInfo().getFileName();
                     String contentType = inputFile.getFileInfo().getContentType();
                     FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL,
                     "File uploaded successfully name: #0 content/type: #1", fileName, contentType);
                     }
                    
                     // invalid file, happens when clicking on upload without selecting a
                     // file, or a file with no contents.
                     if(inputFile.getStatus() == InputFile.INVALID)
                     {
                     inputFile.getFileInfo().getException().printStackTrace();
                     FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, "Please select a File");
                     }
                    
                     // file size exceeded the limit
                     if(inputFile.getStatus() == InputFile.SIZE_LIMIT_EXCEEDED)
                     {
                     inputFile.getFileInfo().getException().printStackTrace();
                     FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, "File too big");
                     }
                    
                     // indicate that the request size is not specified.
                     if(inputFile.getStatus() == InputFile.UNKNOWN_SIZE)
                     {
                     inputFile.getFileInfo().getException().printStackTrace();
                     FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, "Filesize unknown");
                    
                     }
                     }
                    
                     @Destroy
                     @Remove
                     public void destroy()
                     {
                     }
                    
                     public int getPercent()
                     {
                     return percent;
                     }
                    
                     public void progress(EventObject event)
                     {
                     InputFile file = (InputFile) event.getSource();
                     percent = file.getFileInfo().getPercent();
                    // try
                    // {
                    // if(state != null)
                    // {
                    // state.render();
                    // }
                    // }
                    // catch (RenderingException e)
                    // {
                    // log.error("Unable to render progress", e);
                    // }
                     renderer.renderRequest();
                     }
                    
                     public void setPercent(int i)
                     {
                     this.percent = i;
                     }
                    
                     // add additional action methods
                    
                    }
                    


                    RenderManagerBean.java...

                    @Name("renderer")
                    @Scope(ScopeType.APPLICATION)
                    public class RenderManagerBean implements RenderManagerHome
                    {
                    
                     private PersistentFacesState state = null;
                    
                     @Logger
                     private Log log;
                    
                     public RenderManagerBean()
                     {
                     state = PersistentFacesState.getInstance();
                     }
                    
                     public void renderRequest()
                     {
                     if(state != null)
                     {
                     try
                     {
                     state.render();
                     }
                     catch (RenderingException e)
                     {
                     log.error("Unable to render icefaces components", e);
                     }
                     }
                     }
                    
                     @Destroy
                     @Remove
                     public void destroy()
                     {
                    
                     }
                    }
                    


                    I am still getting the same exception though...

                    11:57:20,898 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforePhase.
                    java.lang.IllegalStateException: No page context active
                     at org.jboss.seam.core.FacesPage.instance(FacesPage.java:87)
                     at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:219)
                     at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
                     at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
                     at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
                     at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:180)
                     at de.ellumination.share.sb.RenderManagerBean.renderRequest(RenderManagerBean.java:37)
                     at de.ellumination.share.sb.RenderManagerBean$$FastClassByCGLIB$$e05d1045.invoke(<generated>)
                     at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
                     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
                     at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
                     at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:33)
                     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.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
                     at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
                     at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
                     at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
                     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
                     at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:144)
                     at org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:79)
                     at de.ellumination.share.sb.RenderManagerBean$$EnhancerByCGLIB$$6d353b79.renderRequest(<generated>)
                     at de.ellumination.share.sb.UploadBean.progress(UploadBean.java:119)
                     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.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                     at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                     at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
                     at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
                     at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
                     at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
                     at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
                     at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
                     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
                     at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
                     at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
                     at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                     at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
                     at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
                     at $Proxy97.progress(Unknown Source)
                     at de.ellumination.share.sb.UploadHome$$FastClassByCGLIB$$13259d82.invoke(<generated>)
                     at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
                     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
                     at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
                     at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
                     at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
                     at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:30)
                     at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                     at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                     at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
                     at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
                     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:112)
                     at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:82)
                     at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
                     at de.ellumination.share.sb.UploadHome$$EnhancerByCGLIB$$dee90bc7.progress(<generated>)
                     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 com.icesoft.faces.component.inputfile.InputFile.fireEvent(InputFile.java:305)
                     at com.icesoft.faces.component.inputfile.FileUploadServlet.SaveFile(FileUploadServlet.java:194)
                     at com.icesoft.faces.component.inputfile.FileUploadServlet.processMultipartContent(FileUploadServlet.java:161)
                     at com.icesoft.faces.component.inputfile.FileUploadServlet.doPost(FileUploadServlet.java:146)
                     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:252)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                     at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                     at java.lang.Thread.run(Thread.java:619)
                    


                    Any Ideas?

                    Juergen


                    • 7. Re: iceFaces inputFile component
                      milestone Newbie

                      Hi all,

                      tried the icefaces upload component in conjunction with the new seam 1.1.1 release, and icefaces 1.5.2 and I still have no luck.

                      I am getting the following Exception:


                      16:52:50,353 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforePhase.
                      java.lang.IllegalStateException: No page context active
                      at org.jboss.seam.core.FacesPage.instance(FacesPage.java:87)
                      at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:219)
                      at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
                      at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
                      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
                      at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:180)
                      at de.ellumination.share.sb.UploadBean.progress(UploadBean.java:109)
                      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.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                      at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                      at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
                      at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
                      at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                      at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                      at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
                      at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                      at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                      at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
                      at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                      at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                      at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
                      at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
                      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
                      at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
                      at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
                      at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                      at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
                      at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
                      at $Proxy96.progress(Unknown Source)
                      at de.ellumination.share.sb.UploadHome$$FastClassByCGLIB$$13259d82.invoke(<generated>)
                      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
                      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
                      at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
                      at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
                      at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                      at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                      at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
                      at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                      at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                      at org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:30)
                      at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                      at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
                      at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
                      at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
                      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:112)
                      at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:82)
                      at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
                      at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$5b286750.progress(<generated>)
                      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 com.icesoft.faces.component.inputfile.InputFile.fireEvent(InputFile.java:305)
                      at com.icesoft.faces.component.inputfile.ProgressOutputStream.run(ProgressOutputStream.java:91)
                      at java.lang.Thread.run(Thread.java:619)


                      could this be a configuration fault, or is there still a bug with the JS Push Stack?

                      Kind Regards

                      Juergen Hoffmann

                      • 8. Re: iceFaces inputFile component
                        Gavin King Master

                        Enter a bug report in Seam JIRA, this one is probably fixable on our side.