Null pointer exception in FlashImpl.java in IBM JSF

烂漫一生 提交于 2019-12-11 23:12:00

问题


I am getting a null pointer exception sometimes in my web application, which runs in RAD 8.5 and WAS 8.5 .

The exception is :

An exception was thrown by one of the service methods of the servlet [Faces Servlet] in application [Gedit]. Exception created :
[java.lang.NullPointerException
at org.apache.myfaces.shared_impl.context.flash. FlashImpl.isKeepMessages(FlashImpl.java:367)
at org.apache.myfaces.shared_impl.context.flash. FlashImpl._saveMess`

I am not using myfaces, but the ibm faces. So , i am not understanding what may be the cause of this error . Can some one kindly help me out here ?


回答1:


I faced the exact same problem recently. We were using WAS with LDAP using the form based authentication feature of WAS. we faced this issue when application security was disabled in the Admin console. Enable application security(Admin console -> security -> global security -> check enable application security and you should be good.




回答2:


I got the problem when a JSF 2.0 (base IBM Websphere 8.5.5 implementation) was deployed to a running server that had other applications on it. After restarting the server, everything was fine.



来源:https://stackoverflow.com/questions/20465195/null-pointer-exception-in-flashimpl-java-in-ibm-jsf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!