This content has been marked as final. 
    
Show                 4 replies
    
- 
        1. Re: How do I print the stack trace?jimk1723 Feb 21, 2008 2:28 AM (in response to tomstrummer.tomstrummer.gmail.com)Hm. I added this code to my error.xhtml and ginned up a bogus RuntimeException in one of my action handlers. It worked fine. <h:outputText value="org.jboss.seam.exception.class = #{org.jboss.seam.exception.class}" /> <hr/> <h:outputText value="org.jboss.seam.handledException.class = #{org.jboss.seam.handledException.class}" /> <hr/> <h:outputText value="org.jboss.seam.exception.message = #{org.jboss.seam.exception.message}" /> <hr/> <h:outputText value="org.jboss.seam.handledException = #{org.jboss.seam.handledException}" /> <hr/> <h:outputText value="org.jboss.seam.exception.rootCause = #{org.jboss.seam.exception.rootCause}" /> <hr/> <ol> <ui:repeat var="ex" value="#{org.jboss.seam.exception.rootCause.stackTrace}"> <li> <h:outputText value="#{ex.className}:#{ex.lineNumber} #{ex.methodName}" /> </li> </ui:repeat> </ol>I'm assuming you've disabled Facelets development mode and Seam debug mode. What exception are you throwing from your application and what does your pages.xml look like? 
- 
        2. Re: How do I print the stack trace?gavin.king Feb 21, 2008 6:06 AM (in response to tomstrummer.tomstrummer.gmail.com)Eeek, thats a bug in Seam2, my fault. We have a package named org.jboss.seam.exception, and we also try to use that as the name for the exception. We need to change that context variable name (to org.jboss.seam.exception.caughtException, I suggest). I'll create an issue in JIRA. 
- 
        4. Re: How do I print the stack trace?amit.u.purohit Sep 17, 2008 7:55 AM (in response to tomstrummer.tomstrummer.gmail.com)Hi,
 I am getting the same issue as Tom while using Seam managed exception handling. Following jsf component (in my error page)
 <h:outputText value="org.jboss.seam.handledException.stacktrace = #{org.jboss.seam.handledException,stacktrace}" />
 <hr/>
 prints the exception stacktrace when I redirect the user to the error page in case of any exception thrown in my application. However, when I try to refresh this error page, I get a property not found error for handlexception on
 or.jboss.seam.Namespace.
 I looked at the issue raised in jira, but there seems to be no resolution for the same.
 Can you suggest me some other manner in which I can use features provided by Seam to print the exception stack trace and other information on my error page ?
 Any help really appreciated
 
     
     
    