Hi Salvador,

Is there is a way to debug GWT stack why onAfterResponseSerialized  is not
getting called?

Thanks,
Sanjay

On Mon, Mar 15, 2010 at 10:53 AM, Sanjay Ungarala <[email protected]>wrote:

> Hi Salvador,
>
> Thank you for your response.
>
> If both client/server are packaged in one WAR, I see the serialized object
> coming back.
>
> I see client call coming to the server. I' am wondering why
> onAfterResponseSerialized  is not getting called on the server.
> When client/server are deployed in two different WAR files, I explicitly
> set the target URL in the client
> target.setServiceEntryPoint("http://localhost:8080/MyServer/query";);
>
> Do I have to do anything else when client and server are in different WAR
> files?
>
> Thanks,
> Sanjay
>
>
> On Mon, Mar 15, 2010 at 5:53 AM, SalvadorDiaz <[email protected]>wrote:
>
>> Hi Sanjay,
>>
>> GWT RPC async interfaces are generated at compile time, so the GWT
>> compiler has to know where the endpoint of the RPC is at compile time.
>> That's the reason you annotate your RPC interfaces with
>> @RemoteServiceRelativePath, so that the GWT compiler knows where's
>> your RPC servlet. Maybe your server-side code isn't being called at
>> all and that's why you don't get any responses on your client-side
>> code, have you looked at your tomcat logs ?
>>
>> In order to get a better grip on how the RPC calls work, I recommend
>> reading the relevant documentation:
>>
>> http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html
>>
>> Hope that helps,
>>
>> Salvador
>>
>> On Mar 15, 7:47 am, Sanjay Ungarala <[email protected]> wrote:
>> > Hi Sri,
>> >
>> > Thanks for your response.
>> > Hmm....after trying many things, it made me think maybe GWT compiles
>> server
>> > code differently :-)
>> >
>> > Yes, client and server are in different war files. But they are deployed
>> on
>> > the same server/port (tomcat).
>> > Server returns a object of class that implements serialization
>> interface. I
>> > don't see onAfterResponseSerialized method being called.
>> > Is it anything to do with the serialization?
>> >
>> > Thanks,
>> > Sanjay
>> >
>> > On Mon, Mar 15, 2010 at 2:31 AM, Sripathi Krishnan <
>> >
>> >
>> >
>> >
>> >
>> > [email protected]> wrote:
>> > > Do I need to compile my RPC server using GWT compiler? If so, why?
>> >
>> > > No. The GWT compiler doesn't touch your server side code.
>> >
>> > > When I test my application, I see that the object returned by the
>> server is
>> > >> not reaching the client.
>> >
>> > > You will have to explain how you deploy your code. Are you using
>> separate
>> > > wars for client and server code? If yes, are they being served from
>> > > different domains / different ports?
>> >
>> > > --Sri
>> > >http://blog.530geeks.com
>> >
>> > > On 15 March 2010 00:54, Sanjay <[email protected]> wrote:
>> >
>> > >> I compiled my RPC server llike any regular servlet and packaged it in
>> > >> a WAR file. I have another eclipse project (GWT) where I have the
>> > >> client code that has the interface and return object (implements
>> > >> seializable) class code
>> > >> and Iam compiling  it in eclipse. When I test my application, I see
>> > >> that the object returned by the server is not reaching the client.
>> >
>> > >> Here is my question:
>> >
>> > >> Do I need to compile my RPC server using GWT compiler? If so, why?
>> >
>> > >> Any help on this issue is appreciated. I have been trying to figure
>> > >> out what is going wrong since 2 days now.
>> >
>> > >> Thanks,
>> > >> Sanjay
>> >
>> > >> --
>> > >> You received this message because you are subscribed to the Google
>> Groups
>> > >> "Google Web Toolkit" group.
>> > >> To post to this group, send email to
>> [email protected].
>> > >> To unsubscribe from this group, send email to
>> > >> [email protected]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs
>> [email protected]>
>> > >> .
>> > >> For more options, visit this group at
>> > >>http://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
>> [email protected].
>> > > To unsubscribe from this group, send email to
>> > > [email protected]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs
>> [email protected]>
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>> >
>> > --
>> > Sanjay Ungarala
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-web-toolkit%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>
>
> --
> Sanjay Ungarala
>



-- 
Sanjay Ungarala

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to