Re: Serialization Error with own class while compiling

2010-04-01 Thread Johannes Stein
nobody has a solution? On 1 Apr., 07:46, Johannes Stein johannes.st...@googlemail.com wrote: Hey folks, thank you for your help. I got it fixed. I missed to implement a zero-argument constructor in Kontakt... Damn... im so blind! But sometimes you need to have a night to rethink on it

Re: Serialization Error with own class while compiling

2010-04-01 Thread kozura
Well you know most sane people are asleep over here... You could just use the Date constructor directly with those three numbers - Date(year - 1900, month, date), which is what you then pass on to the client through RPC. The DateTimeFormat class is intended for client side use to substitute for

Serialization Error with own class while compiling

2010-03-31 Thread Johannes Stein
Hey, ive got a problem and im searching for hours to find a solution. My problem is the following: I have a little RPC-Service which returns as a result a Domain- Object (Own custom-class). But this Domain-Object could not be serialized, though i have made this Domain-class serializable with

Re: Serialization Error with own class while compiling

2010-03-31 Thread Sean
Don't have a constructor with arguments, only use Set/Gets. What's a Kontakt? Is that serializable? Fix the constructor and verify Kontakt is serializable and it should work. On Mar 31, 10:43 am, Johannes Stein johannes.st...@googlemail.com wrote: Hey, ive got a problem and im searching

Re: Serialization Error with own class while compiling

2010-03-31 Thread kozura
What are the fields of the Kontakt class? Based on the error, one of the fields under Domain is a JavaScriptObject, but nothing in your Domain class above seems to be. Also, you should just use the java.io.Serializable interface, not gwt's IsSerializable. -- You received this message because

Re: Serialization Error with own class while compiling

2010-03-31 Thread Katharina Probst
I think it's fine to have constructors with arguments (so long as you also have a zero-argument constructor), but, yes, Kontakt needs to be serializable too. kathrin On Wed, Mar 31, 2010 at 2:41 PM, Sean slough...@gmail.com wrote: Don't have a constructor with arguments, only use Set/Gets.

Re: Serialization Error with own class while compiling

2010-03-31 Thread Johannes Stein
Hey folks, thank you for your help. I got it fixed. I missed to implement a zero-argument constructor in Kontakt... Damn... im so blind! But sometimes you need to have a night to rethink on it again. Okay, but there´s one new question. In my database (dont know why it was designed this way) the