3 Replies Latest reply on May 30, 2014 11:36 AM by Michal Petrov

    Fileupload component does not work in Wildfly 8.0

    stephan schärli Newbie

      The fileupload component (richfaces 4.3.7) does not work in Wildfly 8.0. With JBoss 7.1 it still worked.

      Thank you in advance for your answer.

       

      I get following NullPointerException:

       

       

      15:58:23,612 INFO  [stdout] (default task-1) 2014-05-28 15:58:23,611 ERROR [javax.enterprise.resource.webcontainer.jsf.context] - java.lang.NullPointerException

       

      15:58:23,613 INFO  [stdout] (default task-1)     at org.richfaces.request.MultipartRequest25.getParameter(MultipartRequest25.java:115)

       

      15:58:23,613 INFO  [stdout] (default task-1)     at com.sun.faces.context.RequestParameterMap.get(RequestParameterMap.java:75)

       

      15:58:23,613 INFO  [stdout] (default task-1)     at com.sun.faces.context.RequestParameterMap.get(RequestParameterMap.java:56)

       

      15:58:23,613 INFO  [stdout] (default task-1)     at java.util.Collections$UnmodifiableMap.get(Collections.java:1339)

       

      15:58:23,613 INFO  [stdout] (default task-1)     at com.sun.faces.application.view.MultiViewHandler.calculateRenderKitId(MultiViewHandler.java:222)

       

      15:58:23,613 INFO  [stdout] (default task-1)     at javax.faces.application.ViewHandlerWrapper.calculateRenderKitId(ViewHandlerWrapper.java:157)

       

      15:58:23,613 INFO  [stdout] (default task-1)     at javax.faces.application.ViewHandlerWrapper.calculateRenderKitId(ViewHandlerWrapper.java:157)

       

      15:58:23,613 INFO  [stdout] (default task-1)     at javax.faces.application.ViewHandlerWrapper.calculateRenderKitId(ViewHandlerWrapper.java:157)

       

      15:58:23,614 INFO  [stdout] (default task-1)     at com.sun.faces.context.FacesContextImpl.isPostback(FacesContextImpl.java:212)

       

      15:58:23,614 INFO  [stdout] (default task-1)     at javax.faces.context.FacesContextWrapper.isPostback(FacesContextWrapper.java:461)

       

      15:58:23,614 INFO  [stdout] (default task-1)     at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:193)

       

      15:58:23,614 INFO  [stdout] (default task-1)     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

       

      15:58:23,614 INFO  [stdout] (default task-1)     at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:121)

       

      15:58:23,615 INFO  [stdout] (default task-1)     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

       

      15:58:23,615 INFO  [stdout] (default task-1)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)

       

      15:58:23,615 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

       

      15:58:23,615 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

       

      15:58:23,615 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

       

      15:58:23,615 INFO  [stdout] (default task-1)     at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

       

      15:58:23,615 INFO  [stdout] (default task-1)     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

       

      15:58:23,616 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)

       

      15:58:23,616 INFO  [stdout] (default task-1)     at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)

       

      15:58:23,616 INFO  [stdout] (default task-1)     at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)

       

      15:58:23,616 INFO  [stdout] (default task-1)     at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

       

      15:58:23,616 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)

       

      15:58:23,616 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)

       

      15:58:23,617 INFO  [stdout] (default task-1)     at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)

       

      15:58:23,617 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

       

      15:58:23,617 INFO  [stdout] (default task-1)     at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

       

      15:58:23,617 INFO  [stdout] (default task-1)     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

       

      15:58:23,617 INFO  [stdout] (default task-1)     at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

       

      15:58:23,617 INFO  [stdout] (default task-1)     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

       

      15:58:23,617 INFO  [stdout] (default task-1)     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)

       

      15:58:23,618 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)

       

      15:58:23,618 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)

       

      15:58:23,618 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)

       

      15:58:23,618 INFO  [stdout] (default task-1)     at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)

       

      15:58:23,618 INFO  [stdout] (default task-1)     at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168)

       

      15:58:23,618 INFO  [stdout] (default task-1)     at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687)

       

      15:58:23,618 INFO  [stdout] (default task-1)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

       

      15:58:23,619 INFO  [stdout] (default task-1)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

       

      15:58:23,619 INFO  [stdout] (default task-1)     at java.lang.Thread.run(Thread.java:724)

       

      15:58:23,619 INFO  [stdout] (default task-1)