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)

hivmr.com | 5 months ago
  1. 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)
  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

    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)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Delete database rows with EJB 3.0

    Stack Overflow | 5 years ago | sfrj
    javax.faces.el.EvaluationException: javax.ejb.EJBException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) at javax.faces.component.UICommand.broadcast(UICommand.java:315) at javax.faces.component.UIData.broadcast(UIData.java:912) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
  6. 0

    Where to add thread in the program - Java Programming Help - KnowCoding.com

    knowcoding.com | 1 year ago
    javax.faces.el.EvaluationException: javax.ejb.EJBException at javax.faces.component.MethodBindingMethodExpressio nAdapter.invoke(MethodBindingMethodExpressionAdapt er.java:101) at com.sun.faces.application.ActionListenerImpl.proce ssAction(ActionListenerImpl.java:102) at javax.faces.component.UICommand.broadcast(UIComman d.java:315) at javax.faces.component.UIViewRoot.broadcastEvents(U IViewRoot.java:790) at javax.faces.component.UIViewRoot.processApplicatio n(UIViewRoot.java:1282) at com.sun.faces.lifecycle.InvokeApplicationPhase.exe cute(InvokeApplicationPhase.java:81) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:1 01) at com.sun.faces.lifecycle.LifecycleImpl.execute(Life cycleImpl.java:198) at javax.faces.webapp.FacesServlet.service(FacesServl et.java:646) at org.apache.catalina.core.StandardWrapper.service(S tandardWrapper.java:1682) at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:318) at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:160) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:734) at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:673) at com.sun.enterprise.web.WebPipeline.invoke(WebPipel ine.java:99) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:174) at org.apache.catalina.connector.CoyoteAdapter.doServ ice(CoyoteAdapter.java:357) at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:260) at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:188) at org.glassfish.grizzly.http.server.HttpHandler.runS ervice(HttpHandler.java:191) at org.glassfish.grizzly.http.server.HttpHandler.doHa ndle(HttpHandler.java:168) at org.glassfish.grizzly.http.server.HttpServerFilter .handleRead(HttpServerFilter.java:189) at org.glassfish.grizzly.filterchain.ExecutorResolver $9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterCha in.executeFilter(DefaultFilterChain.java:288) at org.glassfish.grizzly.filterchain.DefaultFilterCha in.executeChainPart(DefaultFilterChain.java:206) at org.glassfish.grizzly.filterchain.DefaultFilterCha in.execute(DefaultFilterChain.java:136) at org.glassfish.grizzly.filterchain.DefaultFilterCha in.process(DefaultFilterChain.java:114) at org.glassfish.grizzly.ProcessorExecutor.execute( ocessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTranspor t.fireIOEvent(TCPNIOTransport.java:838) at org.glassfish.grizzly.strategies.AbstractIOStrateg y.fireIOEvent(AbstractIOStrategy.java:113) at org.glassfish.grizzly.strategies.WorkerThreadIOStr ategy.run0(WorkerThreadIOStrategy.java:115) at org.glassfish.grizzly.strategies.WorkerThreadIOStr ategy.access$100(WorkerThreadIOStrategy.java:55) at org.glassfish.grizzly.strategies.WorkerThreadIOStr ategy$WorkerThreadRunnable.run(WorkerThreadIOStrat egy.java:135) at org.glassfish.grizzly.threadpool.AbstractThreadPoo l$Worker.doWork(AbstractThreadPool.java:564) at org.glassfish.grizzly.threadpool.AbstractThreadPoo l$Worker.run(AbstractThreadPool.java:544)

    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.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)

      at com.sun.faces.lifecycle.LifecycleImpl.execute()
    2. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      1 frame