javax.faces.el.EvaluationException: java.lang.NullPointerException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:91) at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:91) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce)

ICEsoft JIRA Issue Tracker | Wolfgang Müller | 8 years ago
  1. 0

    Hi had code that works fine in 1.6.2 but now with 1.7.2 I get an NullPointerException. The problem is the following: I have a method that clean up BackingBeans and renders the page to clear the form: {code:title=clearBackingBean Method|borderStyle=solid} FacesContext context = FacesContext.getCurrentInstance(); ELContext elContext = context.getELContext(); if (CustomLogger.isDebugEnabled()) { CustomLogger.logDebug("Bean name: " + beanName, FacesContextService.class, "cleanBackingBean"); CustomLogger.logDebug("Before clean: " + getBackingBean(beanName), FacesContextService.class, "cleanBackingBean"); } // Reset session bean context.getApplication().getExpressionFactory().createValueExpression(elContext, "#{" + beanName + "}", Object.class).setValue(elContext, null); if (CustomLogger.isDebugEnabled()) { CustomLogger.logDebug("After clean: " + getBackingBean(beanName), FacesContextService.class, "cleanBackingBean"); } // Force icefaces to re-render the page try { PersistentFacesState.getInstance().render(); } catch (Exception ex) { CustomLogger.logError("Re-render the page causes error.", FacesContextService.class, ex, "cleanBackingBean"); } {code} Immediate after this method when I try to use the FacesContext.getCurrentInstance() it returns NULL and I get the following Stacktrace. I hope there is a workaround because I need very fast a solution for this. {code:title=StackTrace|borderStyle=solid} 06.04.2009 17:54:06 com.sun.faces.application.ActionListenerImpl processAction SCHWERWIEGEND: java.lang.NullPointerException javax.faces.el.EvaluationException: java.lang.NullPointerException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:91) at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:91) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce) at javax.faces.component.UICommand.broadcast(UICommand.java:383) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7 52) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:97) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLife cycleExecutor.java:17) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(Rec eiveSendUpdates.java:94) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(Receive SendUpdates.java:54) at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVer ifier.java:26) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.se rvice(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service (MainSessionBoundServlet.java:160) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(Ses sionDispatcher.java:38) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.s ervice(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.serv ice(EnvironmentAdaptingServlet.java:63) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(Sessi onDispatcher.java:55) at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(Session Verifier.java:19) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDisp atcher.java:23) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet .java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServ let.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 7) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at de.mbruns.myfood.utils.ResourceBundleService.getMessageBundle(Unknown Source) at de.mbruns.myfood.utils.FacesContextService.addMessageToContext(Unknow n Source) at de.mbruns.myfood.actionbeans.AdministrateMaterial.createMaterial(Unkn own Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.el.parser.AstValue.invoke(AstValue.java:152) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:2 76) at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja va:68) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:77) ... 36 more 40348 [http-8080-1] FATAL de.mbruns.myfood.actionlisteners.ExceptionHandler - p rocessAction :: #{AdministrateMaterial.createMaterial}: java.lang.NullPointerExc eption javax.faces.FacesException: #{AdministrateMaterial.createMaterial}: java.lang.Nu llPointerException at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:107) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce) at javax.faces.component.UICommand.broadcast(UICommand.java:383) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7 52) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:97) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLife cycleExecutor.java:17) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(Rec eiveSendUpdates.java:94) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(Receive SendUpdates.java:54) at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVer ifier.java:26) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.se rvice(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service (MainSessionBoundServlet.java:160) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(Ses sionDispatcher.java:38) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.s ervice(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.serv ice(EnvironmentAdaptingServlet.java:63) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(Sessi onDispatcher.java:55) at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(Session Verifier.java:19) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDisp atcher.java:23) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet .java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServ let.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 7) at java.lang.Thread.run(Unknown Source) Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:91) at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:91) ... 35 more Caused by: java.lang.NullPointerException at de.mbruns.myfood.utils.ResourceBundleService.getMessageBundle(Unknown Source) at de.mbruns.myfood.utils.FacesContextService.addMessageToContext(Unknow n Source) at de.mbruns.myfood.actionbeans.AdministrateMaterial.createMaterial(Unkn own Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.el.parser.AstValue.invoke(AstValue.java:152) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:2 76) at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja va:68) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:77) ... 36 more context: null bundleName: de.mbruns.myfood.resourcebundles.messages 06.04.2009 17:54:06 com.sun.faces.lifecycle.LifecycleImpl phase WARNUNG: executePhase(INVOKE_APPLICATION 5,com.icesoft.faces.context.BridgeFaces Context@f6e15e) threw exception javax.faces.FacesException at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:105) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLife cycleExecutor.java:17) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(Rec eiveSendUpdates.java:94) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(Receive SendUpdates.java:54) at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVer ifier.java:26) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.se rvice(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service (MainSessionBoundServlet.java:160) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(Ses sionDispatcher.java:38) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.s ervice(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.serv ice(EnvironmentAdaptingServlet.java:63) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(Sessi onDispatcher.java:55) at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(Session Verifier.java:19) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDisp atcher.java:23) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet .java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServ let.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 7) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at de.mbruns.myfood.utils.ResourceBundleService.getMessageBundle(Unknown Source) at de.mbruns.myfood.utils.FacesContextService.addMessageToContext(Unknow n Source) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce) at javax.faces.component.UICommand.broadcast(UICommand.java:383) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7 52) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:97) ... 29 more {code}

    ICEsoft JIRA Issue Tracker | 8 years ago | Wolfgang Müller
    javax.faces.el.EvaluationException: java.lang.NullPointerException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:91) at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:91) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce)
  2. 0

    Hi had code that works fine in 1.6.2 but now with 1.7.2 I get an NullPointerException. The problem is the following: I have a method that clean up BackingBeans and renders the page to clear the form: {code:title=clearBackingBean Method|borderStyle=solid} FacesContext context = FacesContext.getCurrentInstance(); ELContext elContext = context.getELContext(); if (CustomLogger.isDebugEnabled()) { CustomLogger.logDebug("Bean name: " + beanName, FacesContextService.class, "cleanBackingBean"); CustomLogger.logDebug("Before clean: " + getBackingBean(beanName), FacesContextService.class, "cleanBackingBean"); } // Reset session bean context.getApplication().getExpressionFactory().createValueExpression(elContext, "#{" + beanName + "}", Object.class).setValue(elContext, null); if (CustomLogger.isDebugEnabled()) { CustomLogger.logDebug("After clean: " + getBackingBean(beanName), FacesContextService.class, "cleanBackingBean"); } // Force icefaces to re-render the page try { PersistentFacesState.getInstance().render(); } catch (Exception ex) { CustomLogger.logError("Re-render the page causes error.", FacesContextService.class, ex, "cleanBackingBean"); } {code} Immediate after this method when I try to use the FacesContext.getCurrentInstance() it returns NULL and I get the following Stacktrace. I hope there is a workaround because I need very fast a solution for this. {code:title=StackTrace|borderStyle=solid} 06.04.2009 17:54:06 com.sun.faces.application.ActionListenerImpl processAction SCHWERWIEGEND: java.lang.NullPointerException javax.faces.el.EvaluationException: java.lang.NullPointerException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:91) at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:91) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce) at javax.faces.component.UICommand.broadcast(UICommand.java:383) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7 52) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:97) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLife cycleExecutor.java:17) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(Rec eiveSendUpdates.java:94) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(Receive SendUpdates.java:54) at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVer ifier.java:26) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.se rvice(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service (MainSessionBoundServlet.java:160) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(Ses sionDispatcher.java:38) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.s ervice(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.serv ice(EnvironmentAdaptingServlet.java:63) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(Sessi onDispatcher.java:55) at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(Session Verifier.java:19) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDisp atcher.java:23) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet .java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServ let.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 7) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at de.mbruns.myfood.utils.ResourceBundleService.getMessageBundle(Unknown Source) at de.mbruns.myfood.utils.FacesContextService.addMessageToContext(Unknow n Source) at de.mbruns.myfood.actionbeans.AdministrateMaterial.createMaterial(Unkn own Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.el.parser.AstValue.invoke(AstValue.java:152) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:2 76) at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja va:68) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:77) ... 36 more 40348 [http-8080-1] FATAL de.mbruns.myfood.actionlisteners.ExceptionHandler - p rocessAction :: #{AdministrateMaterial.createMaterial}: java.lang.NullPointerExc eption javax.faces.FacesException: #{AdministrateMaterial.createMaterial}: java.lang.Nu llPointerException at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:107) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce) at javax.faces.component.UICommand.broadcast(UICommand.java:383) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7 52) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:97) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLife cycleExecutor.java:17) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(Rec eiveSendUpdates.java:94) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(Receive SendUpdates.java:54) at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVer ifier.java:26) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.se rvice(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service (MainSessionBoundServlet.java:160) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(Ses sionDispatcher.java:38) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.s ervice(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.serv ice(EnvironmentAdaptingServlet.java:63) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(Sessi onDispatcher.java:55) at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(Session Verifier.java:19) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDisp atcher.java:23) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet .java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServ let.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 7) at java.lang.Thread.run(Unknown Source) Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:91) at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:91) ... 35 more Caused by: java.lang.NullPointerException at de.mbruns.myfood.utils.ResourceBundleService.getMessageBundle(Unknown Source) at de.mbruns.myfood.utils.FacesContextService.addMessageToContext(Unknow n Source) at de.mbruns.myfood.actionbeans.AdministrateMaterial.createMaterial(Unkn own Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.el.parser.AstValue.invoke(AstValue.java:152) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:2 76) at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja va:68) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:77) ... 36 more context: null bundleName: de.mbruns.myfood.resourcebundles.messages 06.04.2009 17:54:06 com.sun.faces.lifecycle.LifecycleImpl phase WARNUNG: executePhase(INVOKE_APPLICATION 5,com.icesoft.faces.context.BridgeFaces Context@f6e15e) threw exception javax.faces.FacesException at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:105) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLife cycleExecutor.java:17) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(Rec eiveSendUpdates.java:94) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(Receive SendUpdates.java:54) at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVer ifier.java:26) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.se rvice(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service (MainSessionBoundServlet.java:160) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(Ses sionDispatcher.java:38) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.s ervice(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.serv ice(EnvironmentAdaptingServlet.java:63) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(Sessi onDispatcher.java:55) at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(Session Verifier.java:19) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDisp atcher.java:23) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet .java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServ let.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 7) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at de.mbruns.myfood.utils.ResourceBundleService.getMessageBundle(Unknown Source) at de.mbruns.myfood.utils.FacesContextService.addMessageToContext(Unknow n Source) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce) at javax.faces.component.UICommand.broadcast(UICommand.java:383) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7 52) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:97) ... 29 more {code}

    ICEsoft JIRA Issue Tracker | 8 years ago | Wolfgang Müller
    javax.faces.el.EvaluationException: java.lang.NullPointerException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:91) at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:91) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce)
  3. 0

    org.hibernate.MappingException: Unknown entity - though my entity has all it needs

    Stack Overflow | 5 years ago | spauny
    javax.faces.FacesException: #{createV49.persistData}: org.hibernate.MappingException: Unknown entity: creazione.persistence.User
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 4.33::Setting ActiveSync DeviceId mz

    hivmr.com | 5 months ago
    javax.faces.el.EvaluationException: java.lang.IllegalStateException: sendRedirect cannot be called after setPortletMode/setWindowState/setRenderParameter/setRen derParameters has been called previously at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:102) at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:102) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at org.ajax4jsf.component.UIDataAdaptorBase.broadcast(UIDataAdaptorBase. java:1387) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:3 29) at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewR oot.java:304) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:26 1) at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.j ava:474) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat ionPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
  6. 0

    The BalusC Code: Uploading files with JSF

    blogspot.com | 1 year ago
    javax.faces.el.EvaluationException: java.lang.NullPointerException at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.faces.el.EvaluationException

      java.lang.NullPointerException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met hodBindingMethodExpressionAdapter.java:91) at com.sun.faces.application.ActionListenerImpl.processAction(ActionList enerImpl.java:91) at de.mbruns.myfood.actionlisteners.ExceptionHandler.processAction(Unkno wn Source) at de.mbruns.myfood.security.JAASActionListener.processAction(Unknown So urce)

      at javax.faces.component.UICommand.broadcast()
    2. JavaEE 7
      UIViewRoot.broadcastEvents
      1. javax.faces.component.UICommand.broadcast(UICommand.java:383)
      2. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
      2 frames