Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SC.showPrompt triggering following exception for GWTTestCase's

    Environment :

    GWT - 2.0.4
    SmartGWT - 2.2
    Also gwt-maven-plugin (org.codehaus.mojo) - 1.2
    JDK - 1.6.0.25

    Problem:
    While executing a GWTTestCase which creates a smartgwt Layout i have created, the SC.showPrompt() method in the widget is generating the following exception.

    Any idea what is wrong ? If I comment out the SC.showPrompt() the exception disappears.

    Statement :

    SC.showPrompt(Application.getStsMessages().loadingMessage(),
    "<img src='"+ Dialog.getImgURL("loading.gif") +"' /><br/> " +
    Application.getStsMessages().contactingStbMessage(stbId));



    [INFO] [ERROR] 10:04:19.038:WARN:Dialog:isc_globalPrompt:ignoring bad or negative top: NaN [enable 'sizing' log for stack trace]
    [INFO] com.smartgwt.client.core.JsObject$SGWT_WARN: 10:04:19.038:WARN:Dialog:isc_globalPrompt:ignoring bad or negative top: NaN [enable 'sizing' log for stack trace]
    [INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [INFO] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [INFO] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [INFO] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [INFO] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
    [INFO] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    [INFO] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
    [INFO] at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
    [INFO] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
    [INFO] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
    [INFO] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
    [INFO] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
    [INFO] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
    [INFO] at com.smartgwt.client.util.SC.showPrompt(SC.java)
    [INFO] at com.xyz.widgets.ABCWidget.invokeRpc(ABCWidget.java:124)
    [INFO] at com.xyz.widgets.ABCWidget.<init>(ABCWidget.java:109)
    [INFO] at com.xyz.widgets.GwtTestABCWidgetWidget.testUIControls(GwtTestABCWidgetWidget.java:31)
    [INFO] at com.xyz.widgets.__GwtTestABCWidgetWidget_unitTestImpl.doRunTest(__GwtTestABCWidgetWidget_unitTestImpl.java:7)
    [INFO] at junit.framework.TestCase.runTest(TestCase.java:62)
    [INFO] at com.google.gwt.junit.client.GWTTestCase.runBare(GWTTestCase.java:206)
    [INFO] at com.google.gwt.junit.client.GWTTestCase.__doRunTest(GWTTestCase.java:137)
    [INFO] at com.google.gwt.junit.client.impl.GWTRunner.runTest(GWTRunner.java:366)
    [INFO] at com.google.gwt.junit.client.impl.GWTRunner.doRunTest(GWTRunner.java:295)
    [INFO] at com.google.gwt.junit.client.impl.GWTRunner.access$9(GWTRunner.java:289)
    [INFO] at com.google.gwt.junit.client.impl.GWTRunner$TestBlockListener.onSuccess(GWTRunner.java:105)
    [INFO] at com.google.gwt.junit.client.impl.GWTRunner$InitialResponseListener.onSuccess(GWTRunner.java:61)
    [INFO] at com.google.gwt.junit.client.impl.GWTRunner$InitialResponseListener.onSuccess(GWTRunner.java:1)
    [INFO] at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:216)
    [INFO] at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
    [INFO] at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:393)
    [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [INFO] at java.lang.reflect.Method.invoke(Method.java:597)
    [INFO] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    [INFO] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    [INFO] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
    [INFO] at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
    [INFO] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
    [INFO] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
    [INFO] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
    [INFO] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
    [INFO] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    [INFO] at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    [INFO] at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:195)
    [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [INFO] at java.lang.reflect.Method.invoke(Method.java:597)
    [INFO] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    [INFO] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    [INFO] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
    [INFO] at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
    [INFO] at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
    [INFO] at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
    [INFO] at java.lang.Thread.run(Thread.java:662)
    Last edited by mathew; 13 May 2011, 09:49.
Working...
X