[
https://jira.jboss.org/browse/JBSEAM-4652?page=com.atlassian.jira.plugin....
]
browny browny commented on JBSEAM-4652:
---------------------------------------
I have traced the error to the facescontext returning a null for the viewId...And i see
another JIRA post for it
https://jira.jboss.org/browse/JBSEAM-4639 . I debuged it and
found the JSF facescontext.viewroot returning a null viewId for postback.
Daemon Thread [http-127.0.0.1-8080-1] (Suspended (breakpoint at line 1677 in Pages))
Pages.getViewId(FacesContext) line: 1677
Pages.getCurrentViewId() line: 1653
ConversationPropagation.restoreNaturalConversationId(Map) line: 109
ConversationPropagation.restoreConversationId(Map) line: 55
SeamPhaseListener.afterRestoreView(FacesContext) line: 391
SeamPhaseListener.afterServletPhase(PhaseEvent) line: 230
SeamPhaseListener.afterPhase(PhaseEvent) line: 196
RestoreViewPhase(Phase).handleAfterPhase(FacesContext, ListIterator<PhaseListener>,
PhaseEvent) line: 189
RestoreViewPhase(Phase).doPhase(FacesContext, Lifecycle,
ListIterator<PhaseListener>) line: 107
RestoreViewPhase.doPhase(FacesContext, Lifecycle, ListIterator<PhaseListener>)
line: 110
LifecycleImpl.execute(FacesContext) line: 118
FacesServlet.service(ServletRequest, ServletResponse) line: 312
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 290
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 83
LoggingFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 60
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
IdentityFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 40
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
MultipartFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 90
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
ExceptionFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 64
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
RedirectFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 45
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
SeamFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 158
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
ReplyHeaderFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 96
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
StandardWrapperValve.invoke(Request, Response) line: 235
StandardContextValve.invoke(Request, Response) line: 191
SecurityAssociationValve.invoke(Request, Response) line: 190
JaccContextValve.invoke(Request, Response) line: 92
SecurityContextEstablishmentValve.process(Request, Response, HttpEvent) line: 126
SecurityContextEstablishmentValve.invoke(Request, Response) line: 70
StandardHostValve.invoke(Request, Response) line: 127
ErrorReportValve.invoke(Request, Response) line: 102
CachedConnectionValve.invoke(Request, Response) line: 158
StandardEngineValve.invoke(Request, Response) line: 109
CoyoteAdapter.service(Request, Response) line: 330
Http11Processor.process(Socket) line: 829
Http11Protocol$Http11ConnectionHandler.process(Socket) line: 598
JIoEndpoint$Worker.run() line: 447
Thread.run() line: 595
this is the trace
during post back from hello.xhtmlm using a <h:commandButton id="GuessButton"
value="Go to Namaste" action="namaste"/>
and here inside Pages.getViewId(FacesContext) line: 1677 the
facescontext.viewroot.getViewID returns null!!!!
and so later on at
Daemon Thread [http-127.0.0.1-8080-1] (Suspended (breakpoint at line 1677 in Pages))
Pages.getViewId(FacesContext) line: 1677
DocumentStorePhaseListener.beforePhase(PhaseEvent) line: 34
RenderResponsePhase(Phase).handleBeforePhase(FacesContext,
ListIterator<PhaseListener>, PhaseEvent) line: 228
RenderResponsePhase(Phase).doPhase(FacesContext, Lifecycle,
ListIterator<PhaseListener>) line: 99
LifecycleImpl.render(FacesContext) line: 139
FacesServlet.service(ServletRequest, ServletResponse) line: 313
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 290
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 83
LoggingFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 60
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
IdentityFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 40
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
MultipartFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 90
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
ExceptionFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 64
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
RedirectFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 45
SeamFilter$FilterChainImpl.doFilter(ServletRequest, ServletResponse) line: 69
SeamFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 158
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
ReplyHeaderFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 96
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
StandardWrapperValve.invoke(Request, Response) line: 235
StandardContextValve.invoke(Request, Response) line: 191
SecurityAssociationValve.invoke(Request, Response) line: 190
JaccContextValve.invoke(Request, Response) line: 92
SecurityContextEstablishmentValve.process(Request, Response, HttpEvent) line: 126
SecurityContextEstablishmentValve.invoke(Request, Response) line: 70
StandardHostValve.invoke(Request, Response) line: 127
ErrorReportValve.invoke(Request, Response) line: 102
CachedConnectionValve.invoke(Request, Response) line: 158
StandardEngineValve.invoke(Request, Response) line: 109
CoyoteAdapter.service(Request, Response) line: 330
Http11Processor.process(Socket) line: 829
Http11Protocol$Http11ConnectionHandler.process(Socket) line: 598
JIoEndpoint$Worker.run() line: 447
Thread.run() line: 595
at DocumentStorePhaseListener.beforePhase(PhaseEvent) line: 38 i am getting a
nullpointer....
since the viewID is null
any guess
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
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.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira