Wednesday, August 16, 2017

Unable to debug my gwt test case in eclipse

Starting Jetty on port 0
[WARN] ServletContainerInitializers: detected. Class hierarchy: empty
Rebinding com.google.gwt.user.client.impl.WindowImpl
Checking rule <replace-with class='com.google.gwt.user.client.impl.WindowImplIE'/>
[ERROR] Error while executing the JavaScript provider for property 'user.agent'
com.google.gwt.core.client.JavaScriptException: (null) __gwt_getProperty([string: 'user.agent']): null
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:252)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:121)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:573)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:293)
at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java:152)
at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getSelectionProperty(ModuleSpacePropertyOracle.java:89)
at com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:77)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:53)
at com.google.gwt.dev.cfg.ConditionAny.doEval(ConditionAny.java:52)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:53)
at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:53)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:53)
at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:52)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.getRebindRule(StandardRebindOracle.java:116)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:66)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:262)
at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:144)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:597)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:483)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.shared.GWT.createImpl(GWT.java:83)
at com.google.gwt.core.client.GWT.create(GWT.java:86)
at com.google.gwt.user.client.Window.<clinit>(Window.java:514)
at com.google.gwt.user.client.Window$Location.getQueryString(Window.java:267)
at com.google.gwt.user.client.Window$Location.ensureListParameterMap(Window.java:334)
at com.google.gwt.user.client.Window$Location.getParameter(Window.java:212)
at com.google.gwt.logging.client.LogConfiguration$LogConfigurationImplRegular.setLevels(LogConfiguration.java:111)
at com.google.gwt.logging.client.LogConfiguration$LogConfigurationImplRegular.configureClientSideLogging(LogConfiguration.java:72)
at com.google.gwt.logging.client.LogConfiguration.onModuleLoad(LogConfiguration.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:423)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:530)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
at java.lang.Thread.run(Thread.java:745)
[ERROR] Unable to get value of property 'user.agent'
com.google.gwt.core.ext.BadPropertyValueException: Missing property 'user.agent' was not specified
at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getConfigurationProperty(ModuleSpacePropertyOracle.java:74)
at com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:81)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:53)
at com.google.gwt.dev.cfg.ConditionAny.doEval(ConditionAny.java:52)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:53)
at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:53)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:53)
at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:52)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.getRebindRule(StandardRebindOracle.java:116)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:66)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:262)
at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:144)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:597)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:483)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.shared.GWT.createImpl(GWT.java:83)
at com.google.gwt.core.client.GWT.create(GWT.java:86)
at com.google.gwt.user.client.Window.<clinit>(Window.java:514)
at com.google.gwt.user.client.Window$Location.getQueryString(Window.java:267)
at com.google.gwt.user.client.Window$Location.ensureListParameterMap(Window.java:334)
at com.google.gwt.user.client.Window$Location.getParameter(Window.java:212)
at com.google.gwt.logging.client.LogConfiguration$LogConfigurationImplRegular.setLevels(LogConfiguration.java:111)
at com.google.gwt.logging.client.LogConfiguration$LogConfigurationImplRegular.configureClientSideLogging(LogConfiguration.java:72)
at com.google.gwt.logging.client.LogConfiguration.onModuleLoad(LogConfiguration.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:423)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:530)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
at java.lang.Thread.run(Thread.java:745)
[ERROR] Deferred binding failed for 'com.google.gwt.user.client.impl.WindowImpl'; expect subsequent failures
[ERROR] Unable to load module entry point class com.google.gwt.logging.client.LogConfiguration (see associated exception for details)
java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.user.client.impl.WindowImpl' (did you forget to inherit a required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.shared.GWT.createImpl(GWT.java:83)
at com.google.gwt.core.client.GWT.create(GWT.java:86)
at com.google.gwt.user.client.Window.<clinit>(Window.java:514)
at com.google.gwt.user.client.Window$Location.getQueryString(Window.java:267)
at com.google.gwt.user.client.Window$Location.ensureListParameterMap(Window.java:334)
at com.google.gwt.user.client.Window$Location.getParameter(Window.java:212)
at com.google.gwt.logging.client.LogConfiguration$LogConfigurationImplRegular.setLevels(LogConfiguration.java:111)
at com.google.gwt.logging.client.LogConfiguration$LogConfigurationImplRegular.configureClientSideLogging(LogConfiguration.java:72)
at com.google.gwt.logging.client.LogConfiguration.onModuleLoad(LogConfiguration.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:423)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:530)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java:122)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:53)
at com.google.gwt.dev.cfg.ConditionAny.doEval(ConditionAny.java:52)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:53)
at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:53)
at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:53)
at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:52)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.getRebindRule(StandardRebindOracle.java:116)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:66)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:262)
at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:144)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:597)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:483)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
... 18 more
[ERROR] Failed to load module 'com.ainosoft.deba.Gwt_2_8_1_learningJUnit.JUnit' from user agent 'HtmlUnit-Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0' at 127.0.0.1:53229
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:461)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:530)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
at java.lang.Thread.run(Thread.java:745)
Aug 16, 2017 1:13:38 PM com.gargoylesoftware.htmlunit.WebConsole info
INFO: /launch error: Failed to load module com.ainosoft.deba.Gwt_2_8_1_learningJUnit.JUnit: undefined
Hi guys,

Somehow I am unable to understand our lack of interest in supporting Java based debugging for GWT test cases. (devmode is deprecated )

I followed the workaround suggested in the release notes and got to a point where it does try to execute the test without compiling to JavaScript. But got an exception. The detailed exception message is attached as a text file. 



Aug 16, 2017 1:13:38 PM com.gargoylesoftware.htmlunit.WebConsole info
INFO
: /launch error: Failed to load module com.ainosoft.deba.Gwt_2_8_1_learningJUnit.JUnit: undefined

I passed the -Dgwt.args="devMode" to the JUnit test configuration. 

Can someone help me out ?

thanks a lot,
Debasish

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment