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