現在、Spring Web Flows 2.0.7 を使用して問題に直面しています。変数が送信されると、Webflow がクラッシュします。対応する Webflow は次のようになります。
<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://localhost:8080/app/myflow?conId=123) を追加してフローに入ると、次のエラーが表示されます。
2012-08-07 17:33:34,583 WARN 25205715@qtp-28882952-5 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 値であるため、シリアル化できないように見えることにかなり驚いています。ここで基本的な何かが欠けているようです。