myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard W. Smith, Jr." <smithh032...@gmail.com>
Subject Re: TomEE/MyFaces: EL exception NulPointerException for h:selectOneMenu
Date Tue, 18 Dec 2012 11:04:03 GMT
Great idea, Romain, thanks.

On Tue, Dec 18, 2012 at 1:55 AM, Romain Manni-Bucau
<rmannibucau@gmail.com>wrote:

> Just put a breakpoint in your setter then share the stacktrace at this
> moment
>


server log

Dec 18, 2012 5:59:26 AM pf.ApplicationScopeBean log
INFO: pf_UsersController.loginUser(): administrator logged in at Tue Dec 18
05:59:26 EST 2012
Dec 18, 2012 6:00:33 AM pf.ApplicationScopeBean log
INFO: pf_RollingStockController.init(): BEFORE filterYear = 0
Dec 18, 2012 6:00:33 AM pf.ApplicationScopeBean log
INFO: pf_RollingStockController.init(): AFTER filterYear = 0; filterYear
(now) = 0
Dec 18, 2012 6:00:39 AM javax.faces.component._ExternalSpecifications
isBeanValidationAvailable
INFO: MyFaces Bean Validation support enabled
Dec 18, 2012 6:00:39 AM pf.ApplicationScopeBean log
INFO: pf_RollingStockController.setFilterYear() called with argument
filterYear = 0 while this.filterYear = 0
Dec 18, 2012 6:00:39 AM pf.ApplicationScopeBean log
INFO: pf_RollingStockController.setFilterYear() called with argument
filterYear = null while this.filterYear = 0
Dec 18, 2012 6:00:39 AM pf.ApplicationScopeBean log
INFO: pf_RollingStockController.setFilterYear() called with argument
filterYear = null while this.filterYear = 0

stacktrace

javax.servlet.ServletException: javax.el.ELException:
java.lang.NullPointerException
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:229)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.omnifaces.filter.GzipResponseFilter.doFilter(GzipResponseFilter.java:148)
	at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:75)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at pf.LoginFilter.doFilter(LoginFilter.java:204)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.myfaces.view.facelets.el.ContextAwareELException:
javax.el.ELException: java.lang.NullPointerException
	at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:166)
	at javax.faces.component.UIInput.updateModel(UIInput.java:406)
	at javax.faces.component.UIInput.processUpdates(UIInput.java:328)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1477)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1470)
	at org.primefaces.component.api.UIData.process(UIData.java:317)
	at org.primefaces.component.api.UIData.processChildren(UIData.java:299)
	at org.primefaces.component.api.UIData.processPhase(UIData.java:263)
	at org.primefaces.component.api.UIData.processUpdates(UIData.java:255)
	at org.primefaces.component.datatable.DataTable.processUpdates(DataTable.java:530)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1477)
	at org.primefaces.component.panel.Panel.processUpdates(Panel.java:304)
	at javax.faces.component.UIForm.processUpdates(UIForm.java:263)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1477)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1477)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1477)
	at org.primefaces.extensions.component.layout.Layout.processUpdates(Layout.java:239)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1477)
	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1477)
	at javax.faces.component.UIViewRoot._processUpdatesDefault(UIViewRoot.java:1411)
	at javax.faces.component.UIViewRoot.access$600(UIViewRoot.java:74)
	at javax.faces.component.UIViewRoot$UpdateModelPhaseProcessor.process(UIViewRoot.java:1549)
	at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1372)
	at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:806)
	at org.apache.myfaces.lifecycle.UpdateModelValuesExecutor.execute(UpdateModelValuesExecutor.java:38)
	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:170)
	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
	... 27 more
Caused by: javax.el.ELException: java.lang.NullPointerException
	at javax.el.BeanELResolver.setValue(BeanELResolver.java:386)
	at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:386)
	at de.odysseus.el.tree.impl.ast.AstProperty.setValue(AstProperty.java:156)
	at de.odysseus.el.tree.impl.ast.AstEval.setValue(AstEval.java:87)
	at de.odysseus.el.TreeValueExpression.setValue(TreeValueExpression.java:146)
	at org.apache.webbeans.el.WrappedValueExpression.setValue(WrappedValueExpression.java:93)
	at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153)
	... 54 more
Caused by: java.lang.NullPointerException
	at jsf.rollingStock.pf_RollingStockController.setFilterYear(pf_RollingStockController.java:228)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:322)
	at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:117)
	at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:108)
	at jsf.rollingStock.pf_RollingStockController_$$_javassist_37.setFilterYear(pf_RollingStockController_$$_javassist_37.java)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at javax.el.BeanELResolver.setValue(BeanELResolver.java:381)
	... 60 more

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message