What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-15 Thread dduck
In a relatively large project I sometimes get this exception: Class: com.google.gwt.core.client.JavaScriptException Message: (TypeError): Result of expression 'a' [null] is not an object. line: 1513 sourceId: 4996591080 sourceURL: http://worm:8080/myShopInstall/gwt-results-app/F89E790362E6204FFEC

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-15 Thread LEDUQUE Mickaël
Y(ou'll probably only have this kind of exception in javascript compiled app, so you won't be able to use hosted/devmode to inspect it. I'd probably compile the application with style=DETAILED and use tools like firebug (Firefox) or webkit developer tools (chrome/safari) to debug that. Of course, i

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-21 Thread John V Denley
I have a similar problem with a compiled GWT javascript, but it only fails in IE. Im not sure where in eclipse to set "style=DETAILED" and even if I did, is there a firebug dev tool for debugging javascript in IE? I dont mind taking some time to figure out how to set the "style=DETAILED", but onl

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-21 Thread Joe Cole
This can happen in devmode. I found one today - it was an exception in a deferred command while manipulating an xml document. To debug in devmode is relatively easy - simply debug before it breaks and step through. In web mode I have encountered a few of these as well. Here is our approach: 1. Ma

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-21 Thread dduck
Well, using Safari I can now spot the place where the exception is thrown in the generated JavaScript, but I have no way to relate that to the Java code that I put into the GWT compiler. Any clues as to how I do that? Regard, Anders -- You received this message because you are subscribed to th

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-21 Thread John V Denley
I finally bit the bullet, and started commenting out huge chunks of my code, and running the application to see if that got rid of the problem... After a few hours of this, I finally narrowed it down to the following (and similar) line of code: daygrid.getColumnFormatter().setWidth(col, "0px");

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-21 Thread g p
When you press the compile button in Eclipse, there is a drop down menu called: Output Style. One of the options there is the detailed. I suppose that would do the trick ... 2010/1/21 John V Denley > Id still like to know how to set this setting via eclipse, which im > sure is very simple for so

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-21 Thread John Denley
I dont get that option, where is this "compile" button you refer to? I always use the "run as", there is a "Compile GWT project" under that, but it doesnt give me any options, it just starts compiling! Incidentally, I have now deployed this "fixed for IE" version, and online, it doesnt work, even

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread dduck
On 21 Jan., 15:44, John V Denley wrote: > for you dduck, the way forward would be to do as leduque suggests > above and set the compile time flag for style to "detailed" and that > should give you a much better idea where the error is, you might find > the following link > useful:http://code.go

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread dduck
On 26 Jan., 13:11, dduck wrote: > I have done so, but the debugging still points to a piece of > JavaScript that does not have a clear correspondence to the original > Java code :( Specifically it points to this line: function Y$(a){var b;if(a.Z()){return KK(new IK,Wob)}else{b=lJ(new fJ,Ohb+a.

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread dduck
...and another, this time the one I am actually after: Class: com.google.gwt.core.client.JavaScriptException Message: (TypeError): Result of expression 'a' [null] is not an object. line: 1520 sourceId: 4968015904 sourceURL: http://worm:8080/myShopInstall/gwt-results-app/5DF30FE3D0E594F4B64889C27B

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread Djabi
BTW, Your code stills looks like compiled with -style obfuscated. On Jan 26, 6:55 am, dduck wrote: > ...and another, this time the one I am actually after: > > Class: com.google.gwt.core.client.JavaScriptException > Message: > (TypeError): Result of expression 'a' [null] is not an object. > line:

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread dduck
On 26 Jan., 16:15, Djabi wrote: > BTW, Your code stills looks like compiled with -style obfuscated. You are right. Thought I had fixed it, but hadn't. Here is the unobfuscated code: function com_google_gwt_user_client_ui_Panel_ $clear__Lcom_google_gwt_user_client_ui_Panel_2V(this$static){

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-26 Thread John Denley
This is beyond anything Ive come across before, sorry I cant help anymore, though it looks like i did manage to push you in the right direction! good luck figuring it out... 2010/1/26 dduck > > > On 26 Jan., 16:15, Djabi wrote: > > BTW, Your code stills looks like compiled with -style obfu

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-27 Thread dduck
On 26 Jan., 20:51, John Denley wrote: > This is beyond anything Ive come across before, sorry I cant help anymore, > though it looks like i did manage to push you in the right direction! > > good luck figuring it out... I finally did. The root cause was a programming error on my behalf, wh

Re: What causes com.google.gwt.core.client.JavaScriptException, and how to trace it?

2010-01-27 Thread dduck
On 27 Jan., 10:07, dduck wrote: > I understand that a better stack > trace mechanism is in the works, but obviously it is not yet part of > the production branch of GWT. In the mean time we are left to our most > ancient tools, the printf and our naked brain :) Turns out it is in the production