0 Replies Latest reply on Dec 9, 2019 1:07 PM by arunmehra

    java.lang.NullPointerException at org.primefaces.behavior.ajax.AjaxBehavior.isImmediate(AjaxBehavior.java:162)

    arunmehra

      Hi. We are upgrading our JSF application deployment server from Jboss-6 to Jboss-7 (7.2.0-Gremlin, to be precise). After deploying the application on Jboss-7 all the AJAX searches result in a NullPointerException, given below:

       

      10:58:28,229 INFO  [javax.enterprise.resource.webcontainer.jsf.context] (default task-8) java.lang.NullPointerException: java.lang.NullPointerException

              at org.primefaces.behavior.ajax.AjaxBehavior.isImmediate(AjaxBehavior.java:162)

              at org.primefaces.behavior.ajax.AjaxBehaviorRenderer.isImmediate(AjaxBehaviorRenderer.java:106)

              at org.primefaces.behavior.ajax.AjaxBehaviorRenderer.decode(AjaxBehaviorRenderer.java:43)

              at javax.faces.component.behavior.ClientBehaviorBase.decode(ClientBehaviorBase.java:134)

              at org.primefaces.renderkit.CoreRenderer.decodeBehaviors(CoreRenderer.java:495)

              at org.primefaces.component.inputtext.InputTextRenderer.decode(InputTextRenderer.java:38)

              at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:858)

              at javax.faces.component.UIInput.decode(UIInput.java:822)

              at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1263)

              at javax.faces.component.UIInput.processDecodes(UIInput.java:716)

              at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:630)

              at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1736)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1747)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1747)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1747)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1747)

              at javax.faces.component.UIForm.visitTree(UIForm.java:386)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1747)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1747)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1747)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1747)

              at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:424)

              at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:285)

              at org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:60)

              at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:1030)

              at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)

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

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

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

              at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

              at xyz(redacted).FileUploadFilter.doFilter(FileUploadFilter.java:81)

              at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

              at xyz(redacted).CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:27)

              at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)

              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)

              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)

              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)

              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

              at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)

              at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)

              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)

              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)

              at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

              at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

              at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

              at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)

              at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

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

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)

              at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

              at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

              at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

              at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

              at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

              at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)

              at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)

              at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)

              at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)

              at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)

              at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

              at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)

              at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)

              at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

              at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)

              at io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)

              at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)

              at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

              at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)

              at java.lang.Thread.run(Thread.java:748)

       

       

      We are using the following jars - jsf-api-2.2.3.jar, jsf-impl-2.3.3.SP1.jar, primefaces-5.1.jar and spring-faces-2.5.0.RELEASE.jar. We even tried to remove the jsf dependency from the pom and use the default jsf jar provided by Jboss-7 (which is jsf-impl-2.3.5.SP2-redhat-00001.jar) but that too results in the same Exception as above.

       

      Any suggestions and help would be appreciated.