aspose file tools*
The moose likes JSF and the fly likes NullPointerException within FlashImpl.java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "NullPointerException within FlashImpl.java" Watch "NullPointerException within FlashImpl.java" New topic
Author

NullPointerException within FlashImpl.java

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
Hi All,
I'm trying to call my web application via a jsf page and get the following error within the server (i.e. oc4j) log file:-

java.lang.NullPointerException
at org.apache.myfaces.shared_impl.context.flash.FlashImpl.isKeepMessages(FlashImpl.java:626)
at org.apache.myfaces.shared_impl.context.flash.FlashImpl.doPostPhaseActions(FlashImpl.java:364)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)

Not sure what is causing the NullPointerException.

Has anybody got any idea

Mat
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
Hi All,
I just looked at the org.apache.myfaces.shared_impl.context.flash.FlashImpl class that contains:-


Noticed that wen I deploy the war file the following error appears in my eclipse console:-

2011-11-01 17:26:45.881 WARNING J2EE JSP0048 Annotation scanning failed: null

Mat
rafif zayed
Greenhorn

Joined: Apr 27, 2012
Posts: 1
Mat Anthony wrote:Hi All,
I'm trying to call my web application via a jsf page and get the following error within the server (i.e. oc4j) log file:-

java.lang.NullPointerException
at org.apache.myfaces.shared_impl.context.flash.FlashImpl.isKeepMessages(FlashImpl.java:626)
at org.apache.myfaces.shared_impl.context.flash.FlashImpl.doPostPhaseActions(FlashImpl.java:364)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)

Not sure what is causing the NullPointerException.

Has anybody got any idea

Mat



hi Mat
i have the same problem if you got any solution please could you tell me
Mm Mathur
Greenhorn

Joined: Mar 26, 2010
Posts: 3
Hi EveryOne,

I am getting the same problem when I am navigating from one jsp page to another :

Error Message:
[9/17/12 3:21:04:425 EDT] 0000002c LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[9/17/12 3:21:04:426 EDT] 0000002c webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[Faces Servlet]: 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._saveMessages(FlashImpl.java:632)
at org.apache.myfaces.shared_impl.context.flash.FlashImpl.doPostPhaseActions(FlashImpl.java:251)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:251)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
at com.ford.fvc.web.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:92)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ford.it.context.RequestContextFilter.doFilter(RequestContextFilter.java:133)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:895)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)

Appreciate your help!!

Thanks


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullPointerException within FlashImpl.java