[jbossseam-issues] [JBoss JIRA] Assigned: (JBSEAM-1731) NullPointerException in Pages.java

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Aug 3 05:30:49 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-1731?page=all ]

Pete Muir reassigned JBSEAM-1731:
---------------------------------

    Assignee: Pete Muir

> NullPointerException in Pages.java
> ----------------------------------
>
>                 Key: JBSEAM-1731
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1731
>             Project: JBoss Seam
>          Issue Type: Bug
>    Affects Versions: 2.0.0.BETA1
>         Environment: seam-20070727.0009
>            Reporter: Matt Drees
>         Assigned To: Pete Muir
>            Priority: Minor
>         Attachments: PagesNullPointer.java, pagesNullPointer.patch.txt
>
>
> When I open up the facelets debug page, I get this stacktrace:
> java.lang.NullPointerException
> 	at org.jboss.seam.navigation.Pages.isDebugPage(Pages.java:1470)
> 	at org.jboss.seam.jsf.SeamPhaseListener.postRestorePage(SeamPhaseListener.java:513)
> 	at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:374)
> 	at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:211)
> 	at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
> 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
> 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
> 	...
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Thread.java:595)
> I'm fairly sure it's being caused by the code on line 1473:
>   getCurrentViewId().startsWith("/debug.");
> From debugging it, I can see that getCurrentViewId() returns null.  I'm not sure why it's null, or why the stacktrace says the nullpointer exception is on line 1470. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list