0
当我提交一个变量时,我正在使用Spring Web Flows 2.0.7,Webflow崩溃。相应的Webflow看起来像这样:Web Flow在附加变量上崩溃
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow
http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
<!-- some model, i use below -->
<var name="register"
class="org.zcore.conference.Registration" />
<!-- my input id -->
<input type="long" name="conId" value="flowScope.conId"/>
<!-- my first view state -->
<view-state id="register" model="register">
<!-- imagine much more stuff here -->
</flow>
当进入与所附conId流(HTTP://本地主机:8080 /应用程序/ myflow conId = 123?)以下错误弹出:
2012-08-07 17:33:34,583 WARN [email protected] com.coremedia.cae.webflow.AbstractFlowViewController - Error handling flow request: 'Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable': /app/flow
org.springframework.webflow.execution.repository.snapshot.SnapshotCreationException: Could not serialize flow execution; make sure all objects stored in flow or flash scope are serializable
我很惊讶,提供的值似乎不是可序列化的,因为它是一个简单的int值。看起来我在这里错过了一些基本的东西。
基本上是正确的。不幸的是所有其他对象都实现了Serializable。 – Rob 2012-08-08 16:06:30
@Rob所以你解决了你的问题? – rptmat57 2012-08-08 18:30:43
不幸还没有。我试图从头开始重写整个事情。我的(脏的)临时修复程序现在不使用webflow。 – Rob 2012-08-17 13:16:45