You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Cheng Wei Lee <zh...@gmail.com> on 2008/01/15 02:10:43 UTC
Spring Webflow Plugin to Struts 2
Hi all,
I was trying out the SWF plugin from Google codes with the old example and
encountered some exceptions.
Got the example from https://issues.apache.org/struts/browse/WW-1525.
When I tried to enter the age, I got the following exception. I'd changed
the example.xml slightly to use the:
com.googlecode.struts2webflow.SessionFlowExecKeyInterceptor , and
com.googlecode.struts2webflow.FlowScopeInterceptor
And also, in the rating-flow.xml:
<action-state id="AgeSave">
<action bean="struts2FlowAdapter"/>
<transition on="success" to="calcRate" />
</action-state>
In the applicationContext.xml:
<bean id="struts2FlowAdapter"
class="com.googlecode.struts2webflow.Struts2FlowAdapter "></bean>
Thanks & regards,
Chengwei
[1/14/08 21:51:37:613 SGT] 00000022 SystemErr R
javax.servlet.ServletException: java.util.HashMap incompatible with
java.lang.String
[1/14/08 21:51:37:691 SGT] 00000022 WebApp E [Servlet Error]-[
java.util.HashMap incompatible with java.lang.String]:
java.lang.ClassCastException: java.util.HashMap incompatible with
java.lang.String
at
com.googlecode.struts2webflow.AbstractFlowScopeInterceptor.getFlowScopeExternal(
AbstractFlowScopeInterceptor.java:108)
at
com.googlecode.struts2webflow.AbstractFlowScopeInterceptor.getFlowScopeMap(
AbstractFlowScopeInterceptor.java:79)
at com.googlecode.struts2webflow.FlowScopeInterceptor.intercept (
FlowScopeInterceptor.java:33)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
DefaultActionInvocation.java:224)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(
DefaultActionInvocation.java :223)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(
UtilTimerStack.java:455)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(
DefaultActionInvocation.java:221)
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:419)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter (
FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(
WebAppFilterChain.java:130)
**