Re: TomEE/MyFaces: EL exception NulPointerException for h:selectOneMenu

2012-12-17 Thread Leonardo Uribe
Hi In my opinion, the stack traces shows that @PostConstruct is not called or filterYear is set to null in some other place. If the container is not calling @PostConstruct, TomEE is the one to blame, but first I would check that assumption, using a debugger or with a System.out.println().

Re: TomEE/MyFaces: EL exception NulPointerException for h:selectOneMenu

2012-12-17 Thread Howard W. Smith, Jr.
Leonardo, I just confirmed the following: 1. @PostConstruct, pf_RollingStockController.init() method is called 2. the h:selectOneMenu (below) is responsible, because the server log (below) will show that the setter has null as an argument value h:selectOneMenu

Re: TomEE/MyFaces: EL exception NulPointerException for h:selectOneMenu

2012-12-17 Thread Leonardo Uribe
Hi If @PostConstruct, there is no error in MyFaces or Tomcat. I think the bug is hidden in the application logic. Check the code related to p:ajax. If a component is not executed (do the lifecycle over it) and is rendered, the null could be added without notice. You need to be sure that all the