Hi,
We have an action which causes an Infinite recursion detection. I
don't have any idea why this is happening. When we call the action the
first time everything is ok. But when we call this the second time we
get this exception:
05.01.2010 13:45:00 org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Servlet.service() for servlet default threw exception
Infinite recursion detected: [/rmr/calcSumsAndSavePersonData!calcSums,
/rmr/iwa.error, /rmr/iwa.error] - [unknown location]
at
com.opensymphony.xwork2.ActionChainResult.execute(ActionChainResult.java:207)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50)
at
com.opensymphony.xwork2.ActionChainResult.execute(ActionChainResult.java:229)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50)
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:504)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:422)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
de.seb.iwa.view.sec.UserResourcesFilter.doFilter(UserResourcesFilter.java:76)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at de.seb.iwa.view.user.UserInfoFilter.doFilter(UserInfoFilter.java:67)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at de.seb.iwa.view.login.LoginFilter.doFilter(LoginFilter.java:124)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
de.seb.portal.signature.IIWSignatureFilter.doFilter(IIWSignatureFilter.java:144)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
The ftl which causes the error when the action is triggered the second time:
Gueltigkeit
Jahr
<@s.textfield name="privatBilanz.jahr" cssClass="small numeric
result" tabindex="10"/>
Aktiva
Immobilien
<@s.textfield key="privatBilanz.summeImmobilien"
value="%{getText('format.amount',{privatBilanz.summeImmobilien})}"
cssClass="small numeric" tabindex="10"/>
€
<@s.url id="privatBilanzUrl" action="calcSumsAndSavePersonData"
includeParams="none">
<@s.param name="target">privatBilanz
var saveButton = $('#saveButton');
saveButton.unbind("click");
saveButton.click(function() {
alert('${privatBilanzUrl}');
showMask('privatBilanzWF', '${privatBilanzUrl}')
});
The Javascript:
function showMask(workflowItemName, url) {
var params = $("form").serialize();
updateDiv('sitecontent', url, params);
}
function updateDiv(div, actionUrl, params) {
$('#'+div).load(actionUrl, params);
}
Struts.xml
rmr.Overview
/de/seb/rmr/view/ftl/hardfacts/privatBilanz.ftl
/de/seb/rmr/view/ftl/hardfacts/bilanzAktiva.ftl
/de/seb/rmr/view/ftl/hardfacts/bilanzPassiva.ftl
/de/seb/rmr/view/ftl/hardfacts/bilanzKennziffern.ftl
I have no clue. No chained actions nothing. When I trigger the action
the second time, the action is not reached anymore.
I have never seen anything like this before.
I guess it has something to do with the form data.
Anyone any idea?
/Marc
---