After migration to smartgwt 4.0, all gwt tests failed with:
15:12:32,338 ERROR [com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl] - Job run failed with unexpected RuntimeException: TypeError: Cannot find function getBoundingClientRect in object [object HTMLDivElement]. (http://127.0.0.1:65226/com.app.TestAppJUnit.JUnit/sc/modules/ISC_Core.js#266)
======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.JavaScriptException]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function getBoundingClientRect in object [object HTMLDivElement]. (http://127.0.0.1:65226/com.app.TestAppJUnit.JUnit/sc/modules/ISC_Core.js#266)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:601)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:499)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:474)
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:880)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptStringJob.runJavaScript(JavaScriptStringJob.java:50)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:84)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runJob(JavaScriptJobManagerImpl.java:226)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:307)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutor.run(JavaScriptExecutor.java:182)
at java.lang.Thread.run(Thread.java:722)
Finally in surefire-report I got this:
Caused by: java.lang.Exception: com.google.gwt.core.client.JavaScriptException: (null): null
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.smartgwt.client.bean.BeanFactory.exportSGWTModule(BeanFactory.java)
at com.smartgwt.client.bean.BeanFactory.<clinit>(BeanFactory.java:344)
I am using maven for project building and test execution. And everythings works well with smartgwt 3.x
Here is my gwt-maven-plugin configuration:
15:12:32,338 ERROR [com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl] - Job run failed with unexpected RuntimeException: TypeError: Cannot find function getBoundingClientRect in object [object HTMLDivElement]. (http://127.0.0.1:65226/com.app.TestAppJUnit.JUnit/sc/modules/ISC_Core.js#266)
======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.JavaScriptException]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function getBoundingClientRect in object [object HTMLDivElement]. (http://127.0.0.1:65226/com.app.TestAppJUnit.JUnit/sc/modules/ISC_Core.js#266)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:601)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:499)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:474)
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:880)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptStringJob.runJavaScript(JavaScriptStringJob.java:50)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:84)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runJob(JavaScriptJobManagerImpl.java:226)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:307)
at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutor.run(JavaScriptExecutor.java:182)
at java.lang.Thread.run(Thread.java:722)
Finally in surefire-report I got this:
Caused by: java.lang.Exception: com.google.gwt.core.client.JavaScriptException: (null): null
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.smartgwt.client.bean.BeanFactory.exportSGWTModule(BeanFactory.java)
at com.smartgwt.client.bean.BeanFactory.<clinit>(BeanFactory.java:344)
I am using maven for project building and test execution. And everythings works well with smartgwt 3.x
Here is my gwt-maven-plugin configuration:
Code:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <executions> <execution> <id>gwt-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> <configuration> <runTarget>TestApp.html</runTarget> <hostedWebapp>${war.directory}</hostedWebapp> <webappDirectory>${war.directory}</webappDirectory> <extraJvmArgs>-Xms512M -Xmx1536M</extraJvmArgs> <optimizationLevel>4</optimizationLevel> <localWorkers>4</localWorkers> <logLevel>INFO</logLevel> <mode>htmlunit</mode> <draftCompile>true</draftCompile> <warSourceDirectory>src/main/webapp</warSourceDirectory> <debugPort>8001</debugPort> </configuration> </plugin>
Comment