5 Replies Latest reply on Apr 28, 2014 7:54 AM by Michal Petrov

    Richfaces 4.3.2 : rich:fileUpload throws NullPointerException

    Manish Prajapati Newbie

      Hi

       

      I am working on Richfaces 3.x to 4.x migration in my project and while migrating rich:fileUpload I am getting below error, I am not sure what's going wrong here, please help me to understand what's wrong here and how do I solve? or any work around?  Thanks in advance.

       

      Caused by: java.lang.NullPointerException

        at org.richfaces.request.MultipartRequest25.getParameter(MultipartRequest25.java:115)

        at com.sun.faces.context.RequestParameterMap.get(RequestParameterMap.java:80)

        at com.sun.faces.context.RequestParameterMap.get(RequestParameterMap.java:56)

        at java.util.Collections$UnmodifiableMap.get(Collections.java:1339)

        at com.sun.faces.application.view.MultiViewHandler.calculateRenderKitId(MultiViewHandler.java:222)

        at org.jboss.seam.jsf.SeamViewHandler.calculateRenderKitId(SeamViewHandler.java:73)

        at javax.faces.application.ViewHandlerWrapper.calculateRenderKitId(ViewHandlerWrapper.java:157)

        at javax.faces.application.ViewHandlerWrapper.calculateRenderKitId(ViewHandlerWrapper.java:157)

        at com.sun.faces.context.FacesContextImpl.isPostback(FacesContextImpl.java:212)

        at javax.faces.context.FacesContextWrapper.isPostback(FacesContextWrapper.java:461)

        at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:193)

        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

        at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:121)

        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)

        ... 46 more

       

      Thanks,

      Manish