4 Replies Latest reply on Apr 24, 2014 1:56 PM by H G

    RF 5 pickList NPE ResourceServletMapping

    H G Newbie

      Hi,

       

      I'm trying to use the new RF5 pickList component. I'm using WildFly b1, richfaces-5.0.0.Alpha2, jboss-jsf-api_2.2_spec-2.2.3.

      An exception is handled. The exception is related to the source code "resource.getLibraryName()" from ResourceServletMapping. The exception is:

       

      11:20:20,234 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (default task-1) Error Rendering View[/admin/import.xhtml]: java.lang.reflect.UndeclaredThrowableException

          at com.sun.proxy.$Proxy276.createResource(Unknown Source)

          at org.richfaces.resource.ResourceFactoryImpl.resolveMappedResource(ResourceFactoryImpl.java:393) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.ResourceFactoryImpl.createMappedResource(ResourceFactoryImpl.java:360) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.ResourceFactoryImpl.createResource(ResourceFactoryImpl.java:343) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:270) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:280) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:97) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1903) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeHeadResources(HeadRenderer.java:113) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeEnd(HeadRenderer.java:100) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1903) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1899) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:451) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:59) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:81)

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:65) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:218) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:205) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:69) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:134) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:36) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:619) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]

      Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.GeneratedMethodAccessor668.invoke(Unknown Source) [:1.7.0_25]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_25]

          at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_25]

          at org.richfaces.services.ServiceTracker$1.invoke(ServiceTracker.java:153) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          ... 45 more

      Caused by: java.lang.NullPointerException

          at org.richfaces.resource.mapping.ResourceServletMapping.getResourcePath(ResourceServletMapping.java:90) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.mapping.ResourceServletMapping.getMappedPath(ResourceServletMapping.java:83) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.mapping.ResourceServletMapping.getResourcePath(ResourceServletMapping.java:72) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.external.MappedResourceFactoryImpl.createResource(MappedResourceFactoryImpl.java:106) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          ... 49 more

       

      11:20:20,250 ERROR [io.undertow.request] (default task-1) Servlet request failed HttpServerExchange{ GET /portal/admin/import.jsf}: javax.servlet.ServletException

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:59) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:81)

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:65) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:218) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:205) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:69) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:134) [undertow-servlet-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:36) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:619) [undertow-core-1.0.0.Beta17.jar:1.0.0.Beta17]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]

      Caused by: java.lang.reflect.UndeclaredThrowableException

          at com.sun.proxy.$Proxy276.createResource(Unknown Source)

          at org.richfaces.resource.ResourceFactoryImpl.resolveMappedResource(ResourceFactoryImpl.java:393) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.ResourceFactoryImpl.createMappedResource(ResourceFactoryImpl.java:360) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.ResourceFactoryImpl.createResource(ResourceFactoryImpl.java:343) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:270) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:280) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:97) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1903) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeHeadResources(HeadRenderer.java:113) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeEnd(HeadRenderer.java:100) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1903) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1899) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:451) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) [jsf-impl-2.2.3-jbossorg-1.jar:]

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647) [jboss-jsf-api_2.2_spec-2.2.3.jar:2.2.3]

          ... 21 more

      Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.GeneratedMethodAccessor668.invoke(Unknown Source) [:1.7.0_25]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_25]

          at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_25]

          at org.richfaces.services.ServiceTracker$1.invoke(ServiceTracker.java:153) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          ... 45 more

      Caused by: java.lang.NullPointerException

          at org.richfaces.resource.mapping.ResourceServletMapping.getResourcePath(ResourceServletMapping.java:90) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.mapping.ResourceServletMapping.getMappedPath(ResourceServletMapping.java:83) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.mapping.ResourceServletMapping.getResourcePath(ResourceServletMapping.java:72) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          at org.richfaces.resource.external.MappedResourceFactoryImpl.createResource(MappedResourceFactoryImpl.java:106) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]

          ... 49 more

        • 1. Re: RF 5 pickList NPE ResourceServletMapping
          Brian Leathem Master

          can you try the WildFly CR?  If your problem persists, please file a RF issue.

          • 2. Re: Re: RF 5 pickList NPE ResourceServletMapping
            H G Newbie

            Brian,

             

            The problem persists with Wildfly CR1 and jsf 2.2.4. I created RF issue - https://issues.jboss.org/browse/RF-13469

             

            View source:

            <r:pickList value="#{bean.selectedAreaIds}" listHeight="200px" converter="javax.faces.Integer">
              <f:selectItems value="#{bean.areaItems}" />
            </r:pickList>
            
            
            

             

            Bean code:

            private void loadAreaItems() {
                    List<Area> l = (List<Area>)em.createQuery("from Area order by name ASC").getResultList();
                    if(l != null) {
                        int size = l.size();
                        areaItems = new ArrayList<SelectItem>(size);
                        for(int i = 0; i < size; i++) {
                            Area area = l.get(i);
                            areaItems.add(new SelectItem(area.getId(), area.getName()));
                        }
                    } else {
                        areaItems = new ArrayList<SelectItem>(0);
                    }
            }
            
            
            

             

            The Id of Area is Integer.

             

             

            
            17:21:26,156 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (default task-7) Error Rendering View[/admin/import.xhtml]: java.lang.reflect.UndeclaredThrowableException
                at com.sun.proxy.$Proxy154.createResource(Unknown Source)
                at org.richfaces.resource.ResourceFactoryImpl.resolveMappedResource(ResourceFactoryImpl.java:393) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.ResourceFactoryImpl.createMappedResource(ResourceFactoryImpl.java:360) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.ResourceFactoryImpl.createResource(ResourceFactoryImpl.java:343) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:270) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:280) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:99) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1903) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeHeadResources(HeadRenderer.java:113) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeEnd(HeadRenderer.java:100) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1903) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1899) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:451) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:70)
                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:67) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.server.Connectors.executeRootHandler(Connectors.java:164) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:654) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
                at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]
            Caused by: java.lang.reflect.InvocationTargetException
                at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) [:1.7.0_25]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_25]
                at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_25]
                at org.richfaces.services.ServiceTracker$1.invoke(ServiceTracker.java:153) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                ... 48 more
            Caused by: java.lang.NullPointerException
                at org.richfaces.resource.mapping.ResourceServletMapping.getResourcePath(ResourceServletMapping.java:90) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.mapping.ResourceServletMapping.getMappedPath(ResourceServletMapping.java:83) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.mapping.ResourceServletMapping.getResourcePath(ResourceServletMapping.java:72) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.external.MappedResourceFactoryImpl.createResource(MappedResourceFactoryImpl.java:106) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                ... 52 more
            
            17:21:26,171 ERROR [io.undertow.request] (default task-7) UT005023: Exception handling request to /portal/admin/import.jsf: javax.servlet.ServletException
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:87) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:70)
                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:67) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:70) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.server.Connectors.executeRootHandler(Connectors.java:164) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:654) [undertow-core-1.0.0.Beta30.jar:1.0.0.Beta30]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_25]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_25]
                at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_25]
            Caused by: java.lang.reflect.UndeclaredThrowableException
                at com.sun.proxy.$Proxy154.createResource(Unknown Source)
                at org.richfaces.resource.ResourceFactoryImpl.resolveMappedResource(ResourceFactoryImpl.java:393) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.ResourceFactoryImpl.createMappedResource(ResourceFactoryImpl.java:360) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.ResourceFactoryImpl.createResource(ResourceFactoryImpl.java:343) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:270) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:280) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:99) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1903) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeHeadResources(HeadRenderer.java:113) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeEnd(HeadRenderer.java:100) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1903) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1899) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:451) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219) [jsf-impl-2.2.4-jbossorg-1.jar:]
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647) [jboss-jsf-api_2.2_spec-2.2.4.jar:2.2.4]
                ... 24 more
            Caused by: java.lang.reflect.InvocationTargetException
                at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) [:1.7.0_25]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_25]
                at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_25]
                at org.richfaces.services.ServiceTracker$1.invoke(ServiceTracker.java:153) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                ... 48 more
            Caused by: java.lang.NullPointerException
                at org.richfaces.resource.mapping.ResourceServletMapping.getResourcePath(ResourceServletMapping.java:90) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.mapping.ResourceServletMapping.getMappedPath(ResourceServletMapping.java:83) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.mapping.ResourceServletMapping.getResourcePath(ResourceServletMapping.java:72) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                at org.richfaces.resource.external.MappedResourceFactoryImpl.createResource(MappedResourceFactoryImpl.java:106) [richfaces-5.0.0.Alpha2.jar:5.0.0.Alpha2]
                ... 52 more
            
            
            
            
            • 3. Re: RF 5 pickList NPE ResourceServletMapping
              Brian Leathem Master

              We weren't able to land JSF 2.2 support in time for RichFaces 5.0.0.Alpha2.  We've done a lot of work in this regard lately though, you can look for a 5.0.0.Alpha3 release soon to address JSF 2.2 compatibility.

              • 4. Re: RF 5 pickList NPE ResourceServletMapping
                H G Newbie

                The problem persists in richfaces-5.0.0.Alpha3