myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <lu4...@gmail.com>
Subject Re: Facelets: Back button, then nav-link click produces NPE
Date Thu, 26 Apr 2012 20:37:45 GMT
Hi

It looks like you are using an old version of MyFaces. Try with the
newest ones (2.1.7, 2.0.13) first and if the problem persists please
resend the new stack trace to check it again.

regards,

Leonardo Uribe

2012/4/26 jnthodge <jnthodge@hotmail.com>:
>
> Hi, I'm using MyFaces + Facelets + Trinidad + WebLogic 10.3.5.
>
> When trying to use the back button to backtrack to previous pages, it seems
> the pages themselves are in the browser chache and do display alright.  Yet,
> when I try to use any Trinidad link or command button, I get a
> NullPointerException.  This is happing on every page on the site.  Yet, if I
> hit the back button, then, refresh the resulting cached page, then the
> forward navigation items work just fine.  What is going wrong here:
>
> java.lang.NullPointerException
>        at
> org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:2344)
>        at
> org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:563)
>        at
> org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:593)
>        at
> org.apache.myfaces.application.NavigationHandlerImpl$PreDisposeViewCallback.visit(NavigationHandlerImpl.java:236)
>        at
> org.apache.myfaces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:141)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:505)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:411)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:392)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:669)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:532)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:411)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:392)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:669)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:532)
>        at
> org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
>        at
> org.apache.myfaces.trinidad.component.UIXDocument.visitTree(UIXDocument.java:82)
>        at javax.faces.component.UIComponent.visitTree(UIComponent.java:958)
>        at
> javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1073)
>        at
> org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:181)
>        at
> org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:117)
>        at
> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:161)
>        at
> org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
>        at javax.faces.component.UIViewRoot._broadcastAll(UIViewRoot.java:1015)
>        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:284)
>        at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1309)
>        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:746)
>        at
> org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.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)
>        at
> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
>        at
> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
>        at
> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
>        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
>        at
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
>        at
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
>        at
> org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
>        at com.myapp.filter.LoginFilter.doFilter(LoginFilter.java:59)
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
>        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
>        at
> oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
>        at
> oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
>        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
>        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
>        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
>        at
> weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
>        at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
>        at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
>        at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
>        at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
>        at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
>        at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
>        at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
>        at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
>        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
>        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
> --
> View this message in context: http://old.nabble.com/Facelets%3A-Back-button%2C-then-nav-link-click-produces-NPE-tp33755243p33755243.html
> Sent from the My Faces - Dev mailing list archive at Nabble.com.
>

Mime
View raw message