Re: GWT App Runs Everywhere but on 1 computer

2009-08-03 Thread mars1412

just a guess:
I think, that an exception is thrown in this case
if you don't explicitly handle it anywhere, GWT's uncaught-exception
handler will get it
and AFAIK, the default UEH will only write the exception to the hosted
mode console

so maybe this will get you a step further:
set a custom exception handler: GWT.setUncaughtExceptionHandler() that
writes a log message that will be displayed in the firebug console ( I
am using gwt-log for this)
this may at least reveal what kind of exception occurs (if any)

here's what I do (pseudo-code):
when the app starts, I replace the default exception handler with my
own one (but remember the default):
  private final UncaughtExceptionHandler
originalUncaughtExceptionHandler;

  originalUncaughtExceptionHandler = GWT.getUncaughtExceptionHandler
();
  GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
  public void onUncaughtException(Throwable t) {
Log.warn("AppController: Uncaught exception handled: ", t);

/*
 * if we cannot handle this exception we pass control to the
original uncaught exception handler in hosted mode
 * the exception will be logged to the gwt console. in web mode 
the
originalUncaughtExceptionHandler will be null
 */
if (originalUncaughtExceptionHandler != null) {
originalUncaughtExceptionHandler.onUncaughtException(t);
}
  }
}




On Jul 31, 10:32 pm, Chris  wrote:
> Thanks for the suggestion.  For the most part, I can't install a
> packet sniffer into the clients network/machine.  However, I did
> install a couple of tools into the browser (firebug being the main
> one) and I do see that the response is at least registering with
> firebug.
>
> It's just not evaluated or throwing an error.  I guess my next step is
> to start putting in debug statements everywhere I think the path might
> be breaking
>
> Thanks for the idea.  I always wonder about how other people debug
> hard issues that can't be replicated in a controlled environment.
>
> Chris
>
> On Jul 31, 12:25 am, Joe Cole  wrote:
>
> > If you can, install ethereal (it has a new name) on  the client and
> > monitor your server logs at the same time. That usually helps in
> > issues like this.
>
> > Joe
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT App Runs Everywhere but on 1 computer

2009-07-31 Thread Chris

Thanks for the suggestion.  For the most part, I can't install a
packet sniffer into the clients network/machine.  However, I did
install a couple of tools into the browser (firebug being the main
one) and I do see that the response is at least registering with
firebug.

It's just not evaluated or throwing an error.  I guess my next step is
to start putting in debug statements everywhere I think the path might
be breaking

Thanks for the idea.  I always wonder about how other people debug
hard issues that can't be replicated in a controlled environment.

Chris

On Jul 31, 12:25 am, Joe Cole  wrote:
> If you can, install ethereal (it has a new name) on  the client and
> monitor your server logs at the same time. That usually helps in
> issues like this.
>
> Joe
>
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT App Runs Everywhere but on 1 computer

2009-07-30 Thread Joe Cole

If you can, install ethereal (it has a new name) on  the client and
monitor your server logs at the same time. That usually helps in
issues like this.

Joe

On Jul 31, 9:09 am, Chris  wrote:
> I have an interesting problem that I'm not sure how to debug.  Any
> pointers would be helpful.
>
> I have an application where the user logs in and then is presented
> with a menu of actions.  This application works just about everywhere
> just fine.
>
> However, today I ran into an instance on 1 computer where it doesn't.
> I'm trying to figure out why the app stops working on this computer.
>
> What happens is:
>
> a) the user logins in and I see the tx on the server
> b) I see the response on the client (using firebug in firefox 3.5)
>
> Once the client gets the response, nothing.  I have tried to set break
> on error (in firefub) to no avail, nothing is executed - or at least
> throwing an error that is caught by firebug.  Nothing appears in the
> firefox console nor the firebug console.
>
> Has anyone seen anything like this?  Any pointers on how to even debug
> this?  The kicker is the computer is half way around the world.  Wish
> I had physical access to it and not just a VPN connection to it.
>
> This computer's setup is:
> XP Home Edition SP 2
> Firefox 3.5  / IE 8  / Chrome (and they all of the same problem)
> GWT 1.6
>
> I have run these browsers (firefox 3.5 is on 100's of my clients so
> that isn't the generic issue) on a lot of different computers and no
> other computer has the same issues.
>
> Could there be some other software stopping the RPC success from
> evaluating?  Also, the computer is able to run other large js program
> (e.g., gmail).
>
> Thanks in advance for a pointer,
> Chris
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT App Runs Everywhere but on 1 computer

2009-07-30 Thread Chris

I have an interesting problem that I'm not sure how to debug.  Any
pointers would be helpful.

I have an application where the user logs in and then is presented
with a menu of actions.  This application works just about everywhere
just fine.

However, today I ran into an instance on 1 computer where it doesn't.
I'm trying to figure out why the app stops working on this computer.

What happens is:

a) the user logins in and I see the tx on the server
b) I see the response on the client (using firebug in firefox 3.5)

Once the client gets the response, nothing.  I have tried to set break
on error (in firefub) to no avail, nothing is executed - or at least
throwing an error that is caught by firebug.  Nothing appears in the
firefox console nor the firebug console.

Has anyone seen anything like this?  Any pointers on how to even debug
this?  The kicker is the computer is half way around the world.  Wish
I had physical access to it and not just a VPN connection to it.

This computer's setup is:
XP Home Edition SP 2
Firefox 3.5  / IE 8  / Chrome (and they all of the same problem)
GWT 1.6

I have run these browsers (firefox 3.5 is on 100's of my clients so
that isn't the generic issue) on a lot of different computers and no
other computer has the same issues.

Could there be some other software stopping the RPC success from
evaluating?  Also, the computer is able to run other large js program
(e.g., gmail).

Thanks in advance for a pointer,
Chris
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---