Problem with making an RPC call to remote / external server

11 views
Skip to first unread message

Dmitri V

unread,
May 28, 2008, 1:47:26 PM5/28/08
to Google Web Toolkit
Hi,

I'm making a login application, and I need to make an RPC call to
authenticate the user. The way things are set up is that there's
already a server with a deployed GWT servlet running, and the client
code that I am running will not be run from a page server by that
server. The "page" that makes the request is actually just JS in a FF
extension. So it's not really a traditional RPC call in the sense that
the client and server sides are on different hosts completely.

The call itself is quite simple - the client passes to the server 3
Strings containing various authentication information, and the server
responds with a String. However, when I do make the call, it executes
fine, but the onFailure function of the callback is called with the
following exception:

[INFO]
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser

I've asked around about this, but no one has been able to provide me
with a solution. I've been suggested to re-deploy the servlet on the
remote server, but seeing as how it's remote, I'd really like to avoid
doing that unless I was absolutely sure that would solve the problem.

Other suggestions of things to try would be greatly appreciated.

I was running GWT 1.4.61, but tried it on 1.4.62 and it's the same
thing.

If it's helpful to diagnose, I can post the relevant code as well.

Dmitri V

unread,
May 29, 2008, 10:43:55 AM5/29/08
to Google Web Toolkit
I don't know if bumps are frowned upon here, but I'm really desperate
to get this resolved, soooo

bump!

Dmitri V

unread,
May 29, 2008, 4:43:02 PM5/29/08
to Google Web Toolkit
Weirdly enough, when I debug the application instead of running it, I
get this error in Eclipse:

source not found.

NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not
available
Method.invoke(Object, Object…) line: not available
IDispatchImpl.callMethod(CompilingClassLoader, Object, Variant[],
Method) line: 126
MethodDispatch.invoke(int, int, Variant[]) line: 88
MethodDispatch(IDispatchImpl).Invoke(int, int, int, int, int, int,
int, int) line: 293
MethodDispatch(IDispatchImpl).method6(int[]) line: 196
COMObject.callback6(int[]) line: 117
OS.DispatchMessageW(MSG) line: not available [native method]
OS.DispatchMessage(MSG) line: 1925
Display.readAndDispatch() line: 2966
GWTShell.pumpEventLoop() line: 689
GWTShell.run() line: 550
GWTShell.main(String[]) line: 321

Can someone shed some light on what this is saying?

On May 28, 1:47 pm, Dmitri V <dmitri...@gmail.com> wrote:

Dmitri V

unread,
May 29, 2008, 5:19:50 PM5/29/08
to Google Web Toolkit
Nevermind, the debugging error is simply because the debugger doesn’t
have the sources to step through, because it’s trying to debug the
remote server code. So it doesn’t look there’s anyway to fix that
unless I can add the remote server code as the source, which I don’t
think you can do with a deployed servlet.

ben

unread,
May 30, 2008, 9:56:41 AM5/30/08
to Google Web Toolkit
If I'm reading this correctly, you're trying to call from one domain
to another? Sounds like a cross-domain security issue, where the
browsers don't allow you to call from one server to another outside
it's domain.
> > > I'mmakinga login application, and I need to make anRPCcallto
> > > authenticate the user. The way things are set up is that there's
> > > already a server with a deployed GWT servlet running, and the client
> > > code that I am running will not be run from a page server by that
> > > server. The "page" that makes the request is actually just JS in a FF
> > > extension. So it's not really a traditionalRPCcallin the sense that
> > > the client and server sides are on different hosts completely.
>
> > > Thecallitself is quite simple - the client passes to the server 3
> > > Strings containing various authentication information, and the server
> > > responds with a String. However, when I do make thecall, it executes

Dmitri V

unread,
May 30, 2008, 11:45:44 AM5/30/08
to Google Web Toolkit
Hmm.. That's a good possibility. Is there any way around that?

Do you think this would still apply if the call comes from FF
extension JS (to which SOP doesn't apply) instead of webpage JS? I
unfortunately can't test this out because of this error when I try:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/477631b330f4e21c/8d670687f5e02943
Reply all
Reply to author
Forward
0 new messages