2013-02-01 38 views
0

我看到JavaScript例外情况不会引发到示例SmartGWT应用程序的浏览器。但同样是由一个普通的GWT应用程序抛出。由SmartGWT自定义UncaughtExceptionHandler吗?

我所做的只是创建了一个GWT测试应用程序,并提出了一个方案来抛出nullpointer异常。 Firefox/Chrome/IE在浏览器控制台中抛出异常。

对于例如,

Label testLabel = null; 
testLabel.setText("Welcome") 

在相同的应用程序,我创建了SmartGWT的小部件和创建方案抛出一个空指针异常,但异常被抛出没有对浏览器控制台。

对于例如,

com.smartgwt.client.widgets.Window testWindow = null; 
testWindow.setTitle("Welcome...."); 

我的假设是任何未捕获的异常应该被移交给浏览器。想知道是否有人知道更多关于它的细节?

+0

其中智能GWT的版本,您正在使用? –

回答

0

如果使用低于2.4。其版本修复2.4

是..这woohaa的行为是存在的,但固定的。

This has been resolved for a while now on mainline. Please try the latest nighty build from http://smartclient.com/builds 

The fix will be in the soon to be released Smart GWT 2.4. 

参考

http://code.google.com/p/smartgwt/issues/detail?id=533

+0

不幸的是我正在使用2.4。不知道为什么RunTimeException不会被抛出浏览器。让我看看这个参考,并让我知道如果我找到有用的东西。 – Thiru