[
https://jira.jboss.org/browse/JBSEAM-4652?page=com.atlassian.jira.plugin....
]
Giampaolo Tomassoni commented on JBSEAM-4652:
---------------------------------------------
I think I'm getting the very same problem on a JBoss AS 6.0.0.20101110-CR1 + JBoss
Seam 2.2.0.GA. Setup is for a JSF 2.0 site using Facelets.
This is the exception reported:
Caused by: java.lang.NullPointerException
at
org.jboss.seam.document.DocumentStorePhaseListener.beforePhase(DocumentStorePhaseListener.java:38)
[:2.2.0.GA]
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224) [:2.0.3-SNAPSHOT]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95) [:2.0.3-SNAPSHOT]
... 38 more
docId in org.jboss.seam.document.DocumentStorePhaseListener.beforePhase gets null.
This happens on a simple postback issued by an <h:commandButton>.
<?xml version="1.0" encoding="UTF-8"?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml" xml:lang="it"
lang="it"
<f:view
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
contentType="text/html"
<h:head
<title>import</title
</h:head
<h:body
<h:form method="post"
<h:commandButton
id="import" action="#{dataImporter.importFiles}"
value="Vai!" /
</h:form
</h:body
</f:view
</html
> Using JSF 2 And Seam
> --------------------
> Key: JBSEAM-4652
> URL:
https://jira.jboss.org/browse/JBSEAM-4652
> Project: Seam
> Issue Type: Bug
> Components: JSF Integration
> Affects Versions: 2.2.0.GA, 2.2.1.CR1
> Environment: JBoss-5.1.0 AS , Seam 2.2.0 & Seam 2.2.1 CR1, JSF 2(Mojarro
- 2.0.2)
> Reporter: browny browny
> Assignee: Marek Novotny
> Fix For: 2.2.1.CR3
> Attachments: hello-seam-jsf2.war,
SeamViewHandler.java
> When using PageFlow with JSF
2.0 during transition from one page to another i get an excption ::
> javax.servlet.ServletException
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> root cause
> java.lang.NullPointerException
>
org.jboss.seam.document.DocumentStorePhaseListener.beforePhase(DocumentStorePhaseListener.java:38)
> com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
> com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> The same example works fine with JSF 1.2.But with JSF 2.0 i get the same exception
for Seam 2.2.0 and 2.2.1
> Anyhow i get the seam variables resolved and application succeefuly deployed with JSF
2.0 but this error during page transition occurs. I use pageflow (jbpm-jpdl.jar) for
stateful navigation.
> Any clues??
> My pageflow file reads like::
> <pageflow-definition
xmlns="http://jboss.com/products/seam/pageflow"
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=
> "http://jboss.com/products/seam/pageflow
http://jboss.com/products/seam/pageflow-2.2.xsd"
> name="hello"
>
> <start-page name="displayGuess" view-id="/hello.xhtml"
> <redirect/
>
<transition name="namaste" to="namaste"/
> </start-page
>
> <page name="namaste" view-id="/namaste.xhtml"
> <end-conversation/
>
<redirect/
> <transition
to="end"/
> </page
>
> <end-state name="end"/
>
</pageflow-definition
> both the xhtml pages just have
a helloworld printed in it!!
>
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira