Values assigned to wrong variable serialization / deserialization after upgrade to 3.0.3.GA

12 views
Skip to first unread message

Stephen Ross

unread,
Apr 24, 2014, 8:18:27 AM4/24/14
to gran...@googlegroups.com
Hi

Since upgrading from 3.0.0.RC1 to 3.0.3.GA I have noticed values are getting assigned to the wrong variables during the serialization / deserialization between client and server.

For example: on retrieving an object from the server a person's first name will be assigned to the last name variable.

My code is very similar to the JavaFX shop-admin-javafx example.

As part of the upgrade all JFX code was regenerated (I repeated this step to be sure).

It is difficult to give specifics with this issue and I realize you don't have a lot of information to work with, but if you could point me in the direction of the most probable causes I can try to resolve it at my end or at least investigate further.

Thanks
Steve

Kris Hofmans

unread,
Apr 24, 2014, 8:19:54 AM4/24/14
to gran...@googlegroups.com
This usually indicates that the client and server side are out-of-sync, a property that is (no longer) part of one side but is present on the other side.


--

---
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "Granite Data Services Forum".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse graniteds+...@googlegroups.com.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

Stephen Ross

unread,
Apr 24, 2014, 8:41:38 AM4/24/14
to gran...@googlegroups.com

That was my first thought as well so I regenerated the GFX generated classes a second time to be sure.

Kris Hofmans

unread,
Apr 24, 2014, 8:46:04 AM4/24/14
to gran...@googlegroups.com
Then make sure that you are using the right (matching) version of the generator, sometimes technical properties sneak in causing an "invisible" out-of-sync. At least that's what sometimes happens on the flex side of things.

Stephen Ross

unread,
Apr 24, 2014, 8:53:27 AM4/24/14
to gran...@googlegroups.com

Good point.  I double checked and the GFX maven plugin gets the Granite DS version from the same property as the dependencies.  

Should the flexmojo dependency of the GFX maven plugin be updated as well?

<dependency>
         <groupId>org.sonatype.flexmojos</groupId>
         <artifactId>flexmojos-generator-graniteds-2.3.0</artifactId>
         <version>${flexmojos.version}</version>
 </dependency>

Franck Wolff

unread,
Apr 24, 2014, 8:56:07 AM4/24/14
to gran...@googlegroups.com
First, could you tell us more about your setup (client jars and server jars)?
Second, could you post the part of generated code with the firstname / lastname properties , as well as the corresponding server class (again, the firstname / lastname properties).

Thanks,
Franck

Stephen Ross

unread,
Apr 24, 2014, 9:15:38 AM4/24/14
to gran...@googlegroups.com
Hi

Client:

JavaFX from end with the following granite ds dependencies

<!-- granite DS dependencies -->
<dependency>
    <groupId>org.graniteds</groupId>
    <artifactId>granite-client-java</artifactId>
</dependency>
        <dependency>
            <groupId>org.graniteds</groupId>
            <artifactId>granite-client-javafx</artifactId>
        </dependency>
  
<!-- required by granite DS client -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
</dependency>   
        <dependency>
            <groupId>net.sf.extcos</groupId>
            <artifactId>extcos</artifactId>
        </dependency>

Server:

Spring based application running in Jetty container

<!-- granite DS dependencies -->
        <dependency>
            <groupId>org.graniteds</groupId>
            <artifactId>granite-server</artifactId>
        </dependency>
        <dependency>
            <groupId>org.graniteds</groupId>
            <artifactId>granite-server-hibernate4</artifactId>
        </dependency>
<dependency>
<groupId>org.graniteds</groupId>
<artifactId>granite-server-spring</artifactId>
</dependency>        
        <dependency>
            <groupId>org.graniteds</groupId>
            <artifactId>granite-server-beanvalidation</artifactId>
        </dependency>  

I will send the classes soon.

Thanks
Steve
Reply all
Reply to author
Forward
0 new messages