Results 1 to 3 of 3

Thread: Web Flow (2.0) crashing on submitting id

  1. #1
    Join Date
    Jul 2010
    Posts
    9

    Default Web Flow (2.0) crashing on submitting id

    I'm currently facing a problem using Spring Web Flows 2.0.7, the webflow crashes, when a variable is submitted. The corresponding webflow looks like this:

    PHP Code:
        <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 modeluse 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
    When entering the flow with an appended conId (http://localhost:8080/app/myflow?conId=123) the following error pops up:

    PHP Code:
        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.SnapshotCreationExceptionCould not serialize flow executionmake sure all objects stored in flow or flash scope are serializable 
    I'm pretty surprised, that the supplied value does not seem to be serializable, as it is a simple int value. Looks like I'm missing something basic here.

  2. #2

    Default

    is org.zcore.conference.Registration serializable?

  3. #3
    Join Date
    Jul 2010
    Posts
    9

    Default

    Quote Originally Posted by migelct1983 View Post
    is org.zcore.conference.Registration serializable?
    Yes. It looks like this:


    PHP Code:
    package org.zcore.conference;

    import java.io.Serializable;
    // more import stuff

    public class Registration implements Serializable {


        
    /**
         * generated version UID
         */
        
    private static final long serialVersionUID 4401857176563408285L;

        private 
    String firstname;
        private 
    String lastname;
        private 
    String streetAndNr;
        private 
    String zipAndCity;
        private 
    String country;
        private 
    String phone;
        private 
    String email;
        private 
    String salutation;
        private 
    String title;
        private 
    String organization;
        
    // getters and setters here


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •