i got it working!!!!

the problem was that i was using
com.google.gwt.user.RemoteServiceObfuscateTypeNames in my module but
my faked SerializationPolicy does not implements TypeNameObfuscator.

so the next question is:
what is the best approach to get the right SerializationPolicy for
serializing??

thanks
Michael


On Apr 29, 3:56 pm, mmoossen <mmoos...@gmail.com> wrote:
> please, somebody help!
>
> thanks
> Michael
>
> On Apr 27, 2:54 pm, mmoossen <mmoos...@gmail.com> wrote:
>
>
>
> > Dear all!
>
> > i tried the described RPC prefetching mechanism and i am facing one
> > problem:
>
> > first, on the server-side to serialize/RPC.encode(...) i need the
> > serialization policy, but i need the strong name to get it from the
> > RemoteService. so i am just using a dummy serialization policy that
> > seems to work fine. is this the right approach? any alternative?
>
> > then i have to put the resulting payload into the host page as js
> > global string variable, i am enclosing it in single quotation marks,
> > but do i have to escape single quotation marks in the payload or will
> > they be already escaped?
>
> > and finally on the client-side the code fails at this line:
>
> > > streamFactory.createStreamReader(data).readObject();
>
> > with following exception:
> > com.google.gwt.user.client.rpc.SerializationException: my.project.Data/
> > 2847679377
> >         at
> > com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:
> > 161)
> >         at
> > com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:
> > 138)
> >         at
> > com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:
> > 114)
> >         at
> > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:
> > 61)
>
> > which seems to mean that the client side serializer does not know
> > about my.project.Data, but this is included in the .gwt.rpc file.
> > so i have no idea what is wrong nor how to fix it.
> > any help is really appreciated.
>
> > thanks
> > Michael
>
> > On Apr 26, 7:55 pm, mmoossen <mmoos...@gmail.com> wrote:
>
> > > Hi, thomas!
>
> > > good hint that RPC prefetching method... i was using json for that,
> > > but with this method i can skip the java to json conversion, cool ;)
>
> > > thanks for sharing
> > > Michael
>
> > > --http://groups.google.com/group/Google-Web-Toolkit-Contributors
>
> > --http://groups.google.com/group/Google-Web-Toolkit-Contributors
>
> --http://groups.google.com/group/Google-Web-Toolkit-Contributors

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to