Thanks for all the answers.
Actually the insane part it's related that rpc It works PERFECTLY in hosted mode or in web dev plugin mode...
the serialization of complex objects in RPC fails completely in web mode without dev plugin...
The funny part is that I have found only this similar issue...
so weird...
Da: dreamer <venugopal.vasireddy@gmail.com>
A: Google Web Toolkit <google-web-toolkit@googlegroups.com>
Inviato: Lunedì 22 Agosto 2011 15:36
Oggetto: Re: Insane RPC Serialization Error.
I had similar issues, all pointed back to some defensive coding.
As all calls are aync , behavior will be some what unexpected in few
situations.
Here are some tricks I played to such errors.
1) try in different browsers.
2) Load the app instance, then try, meaning use once, and second,
third, is problem persistent.
2) In your loginConfig file, if is client side code, check for
"nullability" of the object you are casting, sure, what ever object ,
you are
are casting to is null, depending, how implemented the call, async
call might be delaying.
One trick, test for "null" and throw "Window.alert("blah blah
object is null at line and class" - till you resolve these issues.
3) I had the habit of coding "this.variable=param" - "this" thew null
pointer exception in IE9, I removed all "this.variable"
and named "params" with non-conflicting name. Obviously
"javascript" is not as robust as java, so we have code very
defensively.
4) I found, rather I coded more procedural way than forcing all OO
concepts in to code, this gave small footprint and performance. GWT
likes procedure code.
5) Client side, I did not spend much time but "Window.alert" is
working great for me. These are the things I should not see, if shows,
code broke some where, even I kept these in app engine uploaded, of-
course I don't have 1000's of users right now.
These are my experiences, You can experiment and find what works in
your situation.
-venu
http:schoolk12.appspot.com
On Aug 22, 6:48 am, Jambi <michael.lukaszc...@googlemail.com> wrote:
> Could you post the class contents? Maybe we can see something in your
> code.
>
> On 22 Aug., 15:08, Stefan Ollinger <Stefan.Ollin...@gmx.de> wrote:
>
>
>
>
>
>
>
> > Some days ago I had a similar problem. Development version worked fine,
> > but the compiled version gave those errors. What I did to resolve them,
> > was to build my project from scratch. At the end I had a compiled and
> > working version, having the same codebase like before.
>
> > In the progress of resolving the error I also changed some eclipse settings:
>
> > - Google Plugin for Eclipse -> Default GWT Version from 2.2 to 2.3
> > - Updated Maven Dependencies: GWT 2.2. to 2.3.0, GWT Maven Plugin 2.2 to
> > 2.3.0-1
>
> > Finally I cannot say where this behaviour results from, but this is how
> > I solved the problem.
>
> > Regards,
> > Stefan
>
> > Am 22.08.2011 14:16, schrieb J.Ganesan:
>
> > > Any anonymous inner class you have ? That could be a problem.
>
> > > J.Ganesan
> > >www.DataStoreGwt.com
>
> > > On Aug 22, 4:38 pm, Gianluigi<dava...@yahoo.it> wrote:
> > >> The problem is that the serialization behaviour is different from web and hosted mode...
> > >> I don't know how I should resolve this...
>
> > >> ________________________________
> > >> Da: Gianluigi<dava...@yahoo.it>
> > >> A: Google Web Toolkit<google-web-toolkit@googlegroups.com>
> > >> Inviato: Luned 22 Agosto 2011 10:30
> > >> Oggetto: Insane RPC Serialization Error.
>
> > >> Hi to all,
>
> > >> It's several days I'm struggling with this error.
> > >> I make a rpc call from GWT client to a server passing an object.
>
> > >> This pojo contain several data ... and a String with some JSON stuff.
>
> > >> The call in DEBUG mode works absolutely fine. Not only in debug mode, but when I use the application connected with the GWT browser plugin.
>
> > >> In production mode... the seralization fails!!! Nothing on server side. I investigate the call in firebug... and the output is:
>
> > >> Fri Aug 19 18:13:11 GMT+100 2011 com.google.gwt.logging.client.LogConfiguration
> > >> SEVERE: null java.lang.ClassCastException: null
>
> > >> at Unknown.collect_0(Unknown Source)
> > >> at Unknown.createStackTrace_0(Unknown Source)
> > >> at
> > >> Unknown.fillInStackTrace_0(Unknown Source)
> > >> at Unknown.fillInStackTrace(Unknown Source)
> > >> at Unknown.$fillInStackTrace(Unknown Source)
> > >> at Unknown.$$init_14(Unknown Source)
> > >> at Unknown.Throwable_0(Unknown Source)
> > >> at Unknown.Exception_0(Unknown Source)
> > >> at Unknown.RuntimeException_0(Unknown Source)
> > >> at Unknown.ClassCastException_0(Unknown Source) at Unknown.dynamicCast(Unknown Source)
> > >> at Unknown.makeValue(Unknown Source)
> > >> at Unknown.makeValue_0(Unknown Source)
> > >> at Unknown.$extractField(Unknown Source)
> > >> at Unknown.extractField(Unknown Source)
> > >> at Unknown.$extractData_0(Unknown Source)
> > >> at Unknown.$makeObject(Unknown Source)
> > >> at Unknown.makeValue(Unknown Source)
> > >> at Unknown.writeObject(Unknown Source)
> > >> at Unknown.serialize_33(Unknown Source)
> > >> at Unknown.serialize_28(Unknown Source)
> > >> at Unknown.$serialize(Unknown Source)
> > >> ...
>
> > >> That error output comes thanks to the -Dgwt.style=PRETTY ... otherwise would be obfuscated.
>
> > >> I'm struggling with this error. How is it possible that in debug mode works properly?
>
> > >> Any hints to resolve the issue?! THANKS!
>
> > >> Muzero
>
> > >> --
> > >> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> > >> To post to this group, send email to google-web-toolkit@googlegroups.com.
> > >> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> > >> For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment