1 Reply Latest reply on Sep 28, 2009 2:07 AM by Dan Menezes

    Seam + ScopeType.CONVERSATION + Appengine

    Dan Menezes Newbie

      I'm create project(0) with:
      JSF: 1.2_13-b01-FCS
      Seam: 2.1.1.GA
      App Engine SDK: 1.2.5
      Spring: 3.0.0.M2
      IDE: Eclipse 3.5 (Galileo)

      In this project i use one bean with scope type CONVERSATION, which work fine in local machine. but when deploy on appegine don't work fine.

      See below my test's and logs:

      Test local machine:
      Step 1: Go to: http://localhost:8080 and Click button "Novo" (http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/local_machine_step1.png)
      Step 2: Fill first name with "test" (http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/local_machine_step2.png)
      Step 3: Confirm clicking button "Confirm" (see "first name" is not empty) (http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/local_machine_step3.png)
      Step 4: Page with message "saved" is showed (http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/local_machine_step4.png)
      Logs genered local machine: http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/log_local_machine.txt

      In local machine Seam with scope type CONVERSATION work fine.

      Deploy same application in appengine:
      Step 1: Go to: http://1.latest.testeseam1.appspot.com/ and Click button "Novo" (http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/appengine_step1.png)
      Step 2: Fill first name with "test" (http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/appengine_step2.png)
      Step 3: Confirm clicking button "Confirm" (see "first name" is empty!) (http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/appengine_step3.png)
      Step 4: Page inicial is show with first name in blank (http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/appengine_step4.png)
      Logs genered on appengone: http://seamonappengine.googlecode.com/svn/trunk/war/WEB-INF/logs/log_appengine.txt

      (0) - Source code: https://seamonappengine.googlecode.com/svn/trunk
      (1) - Site for test: http://1.latest.testeseam1.appspot.com/

      Anyone can help me?
      Thanks

        • 1. Re: Seam + ScopeType.CONVERSATION + Appengine
          Dan Menezes Newbie


          I found the solution by fallowing Thomas[0] tip:
          
          "I guess all your conversation components have to be fully 
          serializable as they go into the session. And fully means including every referenced class property."
          
          I'm change[1] my class AgendaController and now work fine on appengine[2].
          
          [0] - https://www.blogger.com/comment.g?blogID=3305419975676030648&postID=5951379343930469075&page=1
          [1] - http://code.google.com/p/seamonappengine/source/diff?spec=svn5&r=5&format=side&path=/trunk/src/org/xaloon/gae/demo/wicket/pages/AgendaController.java
          [2] - http://3.latest.testeseam1.appspot.com/
          
          Thanks