[JBoss Seam] - have tried everything - what todo about bug in seam exceptio
by X490812
I have tried everuything listed here. There still seams to be a bug - In fact I built a dummy app to isolate the problem.
Here is pages.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <pages>
| <exception ><redirect view-id="/genericErrorPage.xhtml"/></exception>
| </pages>
|
here is my backing bean:
| package com.homeq.tst.action;
| import javax.ejb.Stateless;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Out;
| import org.jboss.seam.faces.FacesMessages;
| @Stateless
| @Name("EXCEPTTEST")
| public class ExceptionTest implements IExceptionTest {
| @In
| @Out
| FacesMessages facesMessages;
| public String tst() throws Exception {
| facesMessages.add("TestMessage");
| if (false)
| throw new Exception("testexception");
| else
| return "/genericErrorPage.xhtml";
| }
| }
|
here is genericErrorPage.xhtml
| <!DOCTYPE composition 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" xmlns:h="http://java.sun.com/jsf/html">
| <head>
| <title>Error Page</title>
| </head>
| <body>
| <h:messages/>
| </body>
| </html>
|
herre is mypage.xhtml
| <!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" xmlns:h="http://java.sun.com/jsf/html">
| <head>
| <title>hello world</title>
| </head>
| <body >
| HELLO WORLD
| <h:form >
| <h:commandButton action="#{EXCEPTTEST.tst}"/>
| </h:form>
| </body>
| </html>
|
I goto mypage.seam, hit the commandButton . If I have set the test flag (see backing bean code if condition) to true, then I execute the exception and facesMessages gets blown away and "testexception" is displayed by genericErrorPage. If I set the testflag to false, then I simply render genericErrorPage.xhtml and the facesMessages shows the correct message. Why does facesMessages get blown away when exception is thrown?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110006#4110006
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110006
18 years, 4 months
[JBoss Portal] - Re: myFacesConfig Error and com.sun.facelets errors with sta
by wesleyhales
The only error keeping you from running your install is
anonymous wrote : 16:04:07,779 ERROR [STDERR] Dec 3, 2007 4:04:07 PM com.sun.facelets.FaceletViewHandler handleRenderE
| | xception
| | SEVERE: Error Rendering View[/views/admin/index.xhtml]
| | java.lang.IllegalStateException: Client-id : jbpns_2fdefault_2fforums_2fJBossForumsWindowsnpbj_id85
| | is duplicated in the faces tree.
| | at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.
| | java:241)
| | at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.
| | java:255)
| | at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.ja
| | va:204)
| | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
| | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
| | at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:396)
| | at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
| | at org.jboss.portlet.forums.ui.ForumsJSFPortlet.doView(ForumsJSFPortlet.java:375)
| | at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
| | at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
| | at org.jboss.portlet.forums.ui.ForumsJSFPortlet.render(ForumsJSFPortlet.java:409)
| | at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java
| | :483)
| | at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405
| | )
| | at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java
| | :86)
| | at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| | ...........
And this should be asked/raised here http://www.jboss.com/index.html?module=bb&op=viewforum&f=247
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110000#4110000
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110000
18 years, 4 months
[JBoss Seam] - Re: Seam in clustered environment.
by samdoyle
"pete.muir(a)jboss.org" wrote : Please post the exception.
Ah, I had a configuration mistake but now with everything configured properly and I have verified HA is working properly I see the Identity exception being thrown when trying to replicate it. I'm using drools but not exactly sure what the relationship is between it and the Identity. This is definitely a show stopper for a high availability requirement.
Could someone from the Seam team please comment.
| #|2007-12-03T12:09:13.520-0500|INFO|sun-appserver9.1|org.apache.catalina.session.ManagerBase|_ThreadID=22;_ThreadName=httpSSLWorkerThread-38080-1;|PWC2785: Cannot serialize session attribute org.jboss.seam.security.identity for session 0fba09ba81165626f5a35d7a2291
| java.io.NotSerializableException: org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109995#4109995
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109995
18 years, 4 months