12 Replies Latest reply on May 11, 2009 6:03 AM by Nick Belaevski

    problem with fileUpload

    Bruno Alzaga Newbie


      I have a problem with the rich:fileUpload component because when I select a file in the windows's select file windows and I press open, I get this exception in my log:

      26-feb-2009 9:29:01 com.sun.faces.lifecycle.LifecycleImpl phase
      ADVERTENCIA: executePhase(APPLY_REQUEST_VALUES 2,com.sun.faces.context.FacesContextImpl@169280e) threw exception
      javax.faces.FacesException
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:109)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:387)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:190)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at es.jcyl.ita.fwk2.base.web.ITAFiltro.doFilter(ITAFiltro.java:167)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359)
      at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
      at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
      at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
      at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
      at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
      at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
      at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
      at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:271)
      at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
      at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:271)
      at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
      at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
      at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
      at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:174)
      at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
      at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      [color=444444]Caused by: java.lang.NullPointerException
      at org.richfaces.renderkit.FileUploadRendererBase.doDecode(FileUploadRendererBase.java:
      139)

        • 2. Re: problem with fileUpload
          Bruno Alzaga Newbie

          Ih have changed my web.xml and now I've got this on my log and the app does not start:
          java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4466)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
          at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
          at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
          at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
          at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
          at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
          at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1672)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:955)
          at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
          at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
          at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
          at java.util.concurrent.FutureTask.run(FutureTask.java:123)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
          at java.lang.Thread.run(Thread.java:595)


          • 3. Re: problem with fileUpload
            Andrei Markavtsov Apprentice

            Try to clean up the server.
            It problem still exists provide the full stack trace.

            • 4. Re: problem with fileUpload
              Bruno Alzaga Newbie

              the problem persists after server clean. this is the full stack tracce:

              26-feb-2009 13:14:47 com.sun.enterprise.server.PEMain main
              INFO: Iniciando Sun Java System Application Server 9.1_01 (build local)...
              26-feb-2009 13:14:47 com.sun.enterprise.server.PEMain$LoadMBeanServer doRun
              INFO: MBeanServer iniciado: com.sun.enterprise.interceptor.DynamicInterceptor
              26-feb-2009 13:14:50 com.sun.enterprise.server.ss.ASLazyKernel startASSocketServices
              INFO: CORE5098: Se ha completado una inicialización del servicio de socket.
              26-feb-2009 13:14:50 com.sun.enterprise.server.ApplicationServer printStartupInfo
              INFO: CORE5076: Utilizando [Java HotSpot(TM) Client VM, Versión 1.5.0_14] de [Sun Microsystems Inc.]
              26-feb-2009 13:14:50 com.sun.enterprise.security.SecurityLifecycle
              INFO: SEC1002: El administrador de seguridad está DESACTIVADO.
              26-feb-2009 13:14:53 com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
              INFO: C:\Sun\AppServer91\domains\domain1/config/.__com_sun_appserv_pid
              26-feb-2009 13:14:53 com.sun.enterprise.admin.server.core.AdminService init
              INFO: ADM0001:SunoneInterceptor está ahora activado
              26-feb-2009 13:14:54 com.sun.enterprise.security.PolicyLoader loadPolicy
              INFO: SEC1143: Cargando el proveedor de polÃticas com.sun.enterprise.security.provider.PolicyWrapper.
              26-feb-2009 13:14:56 com.sun.enterprise.web.VirtualServer configureSSOValve
              INFO: WEB0114: SSO desactivado en el servidor virtual [server]
              26-feb-2009 13:14:56 com.sun.enterprise.web.VirtualServer configureSSOValve
              INFO: WEB0114: SSO desactivado en el servidor virtual [__asadmin]
              26-feb-2009 13:14:58 com.sun.enterprise.admin.server.core.AdminService initializeAMXMBeans
              INFO: ADM1079: Se ha iniciado la inicialización de los MBeans AMX
              26-feb-2009 13:15:00 com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver logJconsoleStartup
              INFO: ADM1504: Aquà se encuentra JMXServiceURL para JMXConnectorServer estándar: [service:jmx:rmi:///jndi/rmi://jagita46w304.itacyl.red:8686/jmxrmi]. Ésta es la ubicación en la que los clientes administrativos remotos deberÃan conectarse mediante los conectores JMX estándar
              26-feb-2009 13:15:00 com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver logJconsoleStartup
              INFO: ADM1506: Estado del conector JMX estándar: Activo = [true]
              26-feb-2009 13:15:02 com.sun.enterprise.web.PEWebContainer startInstance
              INFO: WEB0302: Iniciando Sun-Java-System/Application-Server.
              26-feb-2009 13:15:03 com.sun.jbi.framework.JBIFramework startup
              INFO: JBIFW0010: JBI framework ready to accept requests.
              26-feb-2009 13:15:04 com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start
              INFO: WEB0712: Iniciando Sun-Java-System/Application-Server HTTP/1.1 en 7576
              26-feb-2009 13:15:05 com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start
              INFO: WEB0712: Iniciando Sun-Java-System/Application-Server HTTP/1.1 en 6465
              26-feb-2009 13:15:05 com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start
              INFO: WEB0712: Iniciando Sun-Java-System/Application-Server HTTP/1.1 en 24258
              26-feb-2009 13:15:06 com.sun.enterprise.management.selfmanagement.SelfManagementService onReady
              INFO: SMGT0007: El servicio de reglas de administración automática se ha habilitado
              26-feb-2009 13:15:07 com.sun.enterprise.server.PEMain main
              INFO: Se completó el inicio del servidor de aplicaciones.
              26-feb-2009 13:16:25 com.sun.enterprise.deployment.deploy.shared.InputJarArchive getJarFile
              GRAVE: "DPL8004: error al abrir archivo; archivo = /C:/Sun/AppServer91/domains/domain1/autodeploy/gnomos.war"
              26-feb-2009 13:16:25 com.sun.enterprise.deployment.autodeploy.AutoDeployer$AutodeployRetryManager openFileAsArchive
              INFO: Es posible que la operación de copia de C:\Sun\AppServer91\domains\domain1\autodeploy\gnomos.war en el directorio de implementación automática aún esté en curso o que el archivo esté dañado; se reintentará periódicamente hasta al menos Thu Feb 26 13:16:55 CET 2009
              26-feb-2009 13:16:33 com.sun.enterprise.deployment.autodeploy.AutoDeployer deploy
              INFO: Seleccionando el archivo C:\Sun\AppServer91\domains\domain1\autodeploy\gnomos.war para la implementación automática.
              26-feb-2009 13:16:33 com.sun.enterprise.deployment.phasing.PEDeploymentService$AuditInfo
              INFO: Implementación por el usuario Unknown del módulo gnomos (tipo=Web Module) iniciando
              26-feb-2009 13:18:03 com.sun.enterprise.deployment.phasing.J2EECPhase runPhase
              INFO: deployed with moduleid = gnomos
              26-feb-2009 13:18:27 org.apache.catalina.core.ApplicationContext log
              GRAVE: WebModule[/gnomos]PWC1257: Error al configurar la escucha de aplicación de la clase org.apache.myfaces.webapp.StartupServletContextListener
              java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4466)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
              at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
              at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1584)
              at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
              at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
              at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
              at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
              at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
              at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
              at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
              at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
              at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
              at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
              at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
              at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
              at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
              at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:276)
              at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:294)
              at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:555)
              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:585)
              at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
              at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
              at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
              at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
              at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
              at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
              at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
              at $Proxy1.invoke(Unknown Source)
              at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
              at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
              at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:564)
              at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:545)
              at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:492)
              at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:267)
              at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374)
              at java.util.TimerThread.mainLoop(Timer.java:512)
              at java.util.TimerThread.run(Timer.java:462)

              26-feb-2009 13:18:27 org.apache.catalina.core.StandardContext listenerStart
              GRAVE: PWC1258: Se omiti_ la escucha de la aplicación de instalación debido a error(es) previo(s)
              26-feb-2009 13:18:27 org.apache.catalina.core.StandardContext start
              GRAVE: PWC1306: Ha fallado el inicio del contexto /gnomos debido a errores anteriores
              26-feb-2009 13:18:28 com.sun.enterprise.deployment.phasing.PEDeploymentService$AuditInfo reportEnd
              INFO: Implementación por el usuario Unknown del módulo gnomos (tipo=Web Module) completado satisfactoriamente, tiempo transcurrido 114680 ms
              26-feb-2009 13:18:28 com.sun.enterprise.deployment.autodeploy.AutoDeployer markFileAfterDeployment
              INFO: [Implementación automática] Se ha implementado automáticamente de modo correcto : C:\Sun\AppServer91\domains\domain1\autodeploy\gnomos.war.

              • 5. Re: problem with fileUpload
                Andrei Markavtsov Apprentice

                I'm not sure that your project was cleared or properly built.

                I see that exception caused by:

                java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener


                Seems that myfaces was not deployed to server as expected.

                • 6. Re: problem with fileUpload
                  Bruno Alzaga Newbie

                  I thought that I use it, but its not true.

                  Is it necessary to deploy it to mak this component run?

                  I can deploy myfaces-1.2.6

                  • 8. Re: problem with fileUpload
                    Bruno Alzaga Newbie

                    Ok, let's put things clear,

                    When I ran my server, I get this on my log:
                    INFO: Inicializando la implementación de JavaServer Faces de Sun (1.2_04-b20-p03) para el contexto '/myApp'
                    (initializateing the Sun's JavaServer Faces (1.2_04-b20-p03) implementation for '/myApp' context)

                    when I firts log in my aplicaction I get this on my log:

                    Starting up Tomahawk on the RI-JSF-Implementation.
                    and I got tomahawk-1.1.5.jar in my web-inf
                    that means that I have to get an earlyer version of tomahawk to get fileUload running OK?

                    Or may I get a new version of the Sun's JavaServer Faces implementation (there ara no jar in weeb-inf/li of jsf-impl.jar, its on my server's lib)?

                    • 9. Re: problem with fileUpload
                      Bruno Alzaga Newbie

                      The problem I have is that I got a NullPointerException on this sentences in decode method of org.richfaces.renderkit.FileUploadRendererBase class :

                      Map<String, MultipartRequest> map = (Map<String, MultipartRequest>) externalContext.getSessionMap()
                      .get(FileUploadConstants.REQUESTS_SESSIONS_BEAN_NAME);

                      map is null after that, so:
                      MultipartRequest multipartRequest = map.get(uid);
                      throws a NPE

                      Why does it occurs? Any missing configuration or any wrong code?

                      • 10. Re: problem with fileUpload
                        Bruno Alzaga Newbie

                         

                        "nbelaevski" wrote:
                        Do it.


                        It's donde and I've got the same error.

                        • 11. Re: problem with fileUpload
                          José Luis Barrera Newbie

                          I'm not even using MyFaces and I'm still getting the same error with the null map

                          ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                          java.lang.NullPointerException
                          at org.richfaces.renderkit.FileUploadRendererBase.doDecode(FileUploadRendererBase.java:139)


                          What I am doing wrong? Is it about Linux64?

                          • 12. Re: problem with fileUpload
                            Nick Belaevski Master

                            No, this problem doesn't seem specific to Linux 64, just NPE in component code. We've fixed alike one, please try the latest 3.3.1 please.