PDA

View Full Version : Problem with BaseModel and reference to other BaseModel class



Gahgah
20 Sep 2011, 12:51 AM
Hello,

I'm currently having a problem with to Classes which both extend BaseModel. CustomerDTO has an Attribute of the type StandortDTO (I've attatched both classes). Setting the StandortDTO works fine (I added a Screenshot which show an instance of CustomerDTO where the Standort DTO has been set.
The problem I'm currently not able to solve is that my RPC calls fail. I get a SerializationException without any message or stacktrace.
Any help would be great.

Thanks in advance.
Best regards
Jan

sven
20 Sep 2011, 1:02 AM
Make sure your RPC code somewhere references the StandortDTO class. This can be for example an unsed field in your CustomerDTO class:


private StandortDTO unusedStandortDTO;

Gahgah
20 Sep 2011, 1:21 AM
Danke ;)

I thought StandortDTO in my method signature would be enough. Thanks for helping!

Kind regards
Jan