AnsweredAssumed Answered

freemarker attempt, recover ... UnexpectedRollbackException

Question asked by stk137 on Sep 21, 2007
Latest reply on Sep 24, 2007 by stk137
I am trying to use freemarker's attempt, recover
even after dumbing my attempt recover code in a dashlet template to just:

          <#attempt>
            ok
          <#recover>
            foo
          </#attempt>

it's throwing this error

javax.faces.FacesException: Exception in JSP: /jsp/dashboards/container.jsp:116

113: <tr>
114: <td width="100%" valign="top">
115: <f:subview id="dash-body">
116: <jsp:include page="<%=Application.getDashboardManager().getLayoutPage()%>" />
117: </f:subview>
118: <a:errors message="#{msg.error_dashboard}" styleClass="errorMessage" />
119: </td>


Stacktrace:
caused by:
org.apache.jasper.JasperException: Exception in JSP: /jsp/dashboards/container.jsp:116

113: <tr>
114: <td width="100%" valign="top">
115: <f:subview id="dash-body">
116: <jsp:include page="<%=Application.getDashboardManager().getLayoutPage()%>" />
117: </f:subview>
118: <a:errors message="#{msg.error_dashboard}" styleClass="errorMessage" />
119: </td>


Stacktrace:
caused by:
org.apache.jasper.JasperException: Transaction rolled back because it has been marked as rollback-only
caused by:
org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only

Hide Details

javax.faces.FacesException: Exception in JSP: /jsp/dashboards/container.jsp:116

113: <tr>
114: <td width="100%" valign="top">
115: <f:subview id="dash-body">
116: <jsp:include page="<%=Application.getDashboardManager().getLayoutPage()%>" />
117: </f:subview>
118: <a:errors message="#{msg.error_dashboard}" styleClass="errorMessage" />
119: </td>


Stacktrace:
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at gov.usgs.alfresco.security.CmsAuthenticationFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgentValve.java:552)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.jasper.JasperException: Exception in JSP: /jsp/dashboards/container.jsp:116

113: <tr>
114: <td width="100%" valign="top">
115: <f:subview id="dash-body">
116: <jsp:include page="<%=Application.getDashboardManager().getLayoutPage()%>" />
117: </f:subview>
118: <a:errors message="#{msg.error_dashboard}" styleClass="errorMessage" />
119: </td>


Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
… 27 more
Return to application
Logout

Outcomes