myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Kieselhorst (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-3987) NPE in FlashImpl.isKeepMessages
Date Fri, 27 Nov 2015 15:31:10 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-3987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029985#comment-15029985
] 

Dennis Kieselhorst commented on MYFACES-3987:
---------------------------------------------

FacesContext is somehow gone in that case.
{noformat}
java.lang.NullPointerException
	at javax.faces.component.UIViewRoot.getViewMap(UIViewRoot.java:837)
	at javax.faces.component.UIViewRoot.getViewMap(UIViewRoot.java:822)
	at org.apache.myfaces.renderkit.ErrorPageWriter._writeVariables(ErrorPageWriter.java:770)
	at org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:357)
	at org.apache.myfaces.renderkit.ErrorPageWriter.handle(ErrorPageWriter.java:471)
	at org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl.handle(MyFacesExceptionHandlerWrapperImpl.java:301)
	at javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:61)
	at org.apache.myfaces.tobago.example.test.TestExceptionHandler.handle(TestExceptionHandler.java:65)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:287)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
{noformat}

{noformat}
java.lang.NullPointerException
	at org.apache.myfaces.view.ViewScopeProxyMap.getWrapped(ViewScopeProxyMap.java:69)
	at org.apache.myfaces.view.ViewScopeProxyMap.isEmpty(ViewScopeProxyMap.java:94)
	at org.apache.myfaces.renderkit.ErrorPageWriter._writeVariables(ErrorPageWriter.java:792)
	at org.apache.myfaces.renderkit.ErrorPageWriter._writeVariables(ErrorPageWriter.java:770)
	at org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:357)
	at org.apache.myfaces.renderkit.ErrorPageWriter.handle(ErrorPageWriter.java:471)
	at org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl.handle(MyFacesExceptionHandlerWrapperImpl.java:301)
	at javax.faces.context.ExceptionHandlerWrapper.handle(ExceptionHandlerWrapper.java:61)
	at org.apache.myfaces.tobago.example.test.TestExceptionHandler.handle(TestExceptionHandler.java:65)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:287)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
{noformat}

> NPE in FlashImpl.isKeepMessages
> -------------------------------
>
>                 Key: MYFACES-3987
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3987
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.23, 2.1.17, 2.2.8
>            Reporter: Dennis Kieselhorst
>            Assignee: Dennis Kieselhorst
>            Priority: Minor
>             Fix For: 2.2.10
>
>
> Happens during Selenium test execution in http://svn.apache.org/repos/asf/myfaces/tobago/trunk/tobago-example/tobago-example-test/
for sheet-selector.jspx:
> {noformat}
> java.lang.NullPointerException
> 	at org.apache.myfaces.shared.context.flash.FlashImpl.isKeepMessages(FlashImpl.java:395)
> 	at org.apache.myfaces.shared.context.flash.FlashImpl._saveMessages(FlashImpl.java:686)
> 	at org.apache.myfaces.shared.context.flash.FlashImpl.doPostPhaseActions(FlashImpl.java:271)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:280)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:200)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:806)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
> 	at org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter(TobagoMultipartFormdataFilter.java:124)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:550)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1128)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1062)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:507)
> 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284)
> 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:237)
> 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:240)
> 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:93)
> 	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:53)
> 	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceRun.produceAndRun(ExecuteProduceRun.java:191)
> 	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceRun.run(ExecuteProduceRun.java:126)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:641)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:559)
> 	at java.lang.Thread.run(Thread.java:745)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message