Re: Exception falling through catch() in JSNI

2011-01-17 Thread George Georgovassilis
Hello Sanjiv,

Thanks for the pointer. I had a similar suspicion and thought that
GWT.setUncaughtExceptionHandler would install the IE hook, but it
didn't. Now, the nasty part with this type of exception handling is
that it essentially handles the error outside of the context it
appeared in, moving any local variables out of scope.

Regards,
G.

On Jan 16, 5:06 pm, Sanjiv Jivan sanjiv.ji...@gmail.com wrote:
 It is probably triggering window.onerror in IE. See gwt-log's setErrorHandler
 method in the class below if you'd like to register a handler for it in GWT.

 http://code.google.com/p/gwt-log/source/browse/trunk/Log/src/com/alle...

 On Sun, Jan 16, 2011 at 10:25 AM, George Georgovassilis 

 g.georgovassi...@gmail.com wrote:
  I've been toying with Maps Api v3 and markerclusterer and run into a
  strange constellation with the following setup:
  IE 8 (64 bit) both hosted and production mode, GWT 2.1.1

  Markercluster apparently does something to the Map, so that the map
  cannot be operated upon immediately when running IE8, i.e.:

  1. setup map
  2. setup markerclustere
  3. zoom map - this throws an exception about a maptype being not
  defined

  I also get this with Firefox btw. I try{} catch{}'ed this in JSNI
  which works in Firefox as expected. But with IE, the exception simply
  falls through as if there were no catch statement.

  Has anybody seen something similar?

  --
  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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  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 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.



Exception falling through catch() in JSNI

2011-01-16 Thread George Georgovassilis
I've been toying with Maps Api v3 and markerclusterer and run into a
strange constellation with the following setup:
IE 8 (64 bit) both hosted and production mode, GWT 2.1.1

Markercluster apparently does something to the Map, so that the map
cannot be operated upon immediately when running IE8, i.e.:

1. setup map
2. setup markerclustere
3. zoom map - this throws an exception about a maptype being not
defined

I also get this with Firefox btw. I try{} catch{}'ed this in JSNI
which works in Firefox as expected. But with IE, the exception simply
falls through as if there were no catch statement.

Has anybody seen something similar?

-- 
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: Exception falling through catch() in JSNI

2011-01-16 Thread Sanjiv Jivan
It is probably triggering window.onerror in IE. See gwt-log's setErrorHandler
method in the class below if you'd like to register a handler for it in GWT.

http://code.google.com/p/gwt-log/source/browse/trunk/Log/src/com/allen_sauer/gwt/log/client/impl/LogImplBase.java



On Sun, Jan 16, 2011 at 10:25 AM, George Georgovassilis 
g.georgovassi...@gmail.com wrote:

 I've been toying with Maps Api v3 and markerclusterer and run into a
 strange constellation with the following setup:
 IE 8 (64 bit) both hosted and production mode, GWT 2.1.1

 Markercluster apparently does something to the Map, so that the map
 cannot be operated upon immediately when running IE8, i.e.:

 1. setup map
 2. setup markerclustere
 3. zoom map - this throws an exception about a maptype being not
 defined

 I also get this with Firefox btw. I try{} catch{}'ed this in JSNI
 which works in Firefox as expected. But with IE, the exception simply
 falls through as if there were no catch statement.

 Has anybody seen something similar?

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 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 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.