GWT 2.0

123 views
Skip to first unread message

Kapil Kulkarni

unread,
Jun 1, 2010, 5:54:43 AM6/1/10
to Google Web Toolkit
Hi,
I am new to GWT and in learning mode.
I working with GWT 2.0 / Eclipse 3.5 / JDK 1.5 / IE 8.0

As per getting started guide if I paste the url which i get in
deployment mode to IE 8.0, then I get following
but browser is not displaying "text box"

Web Application Starter Project

Please enter your name:


And in eclipse I am getting following error:

09:50:37.302 [ERROR] [test_gwt] Failed to create an instance of
'com.kapil.test.client.Test_GWT' via deferred binding
java.lang.RuntimeException: Deferred binding failed for
'com.kapil.test.client.GreetingService' (did you forget to inherit a
required module?)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.kapil.test.client.Test_GWT.<init>(Test_GWT.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
422)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
361)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError:
java.lang.Class.getCanonicalName()Ljava/lang/String;
at
com.google.gwt.user.rebind.rpc.ProxyCreator.getSourceWriter(ProxyCreator.java:
759)
at
com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java:
225)
at
com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generate(ServiceInterfaceProxyGenerator.java:
57)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
418)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
38)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:108)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:54)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
154)
at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
119)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
531)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
414)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.kapil.test.client.Test_GWT.<init>(Test_GWT.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
422)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
361)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Unknown Source)

09:50:37.369 [DEBUG] [test_gwt] Rebinding
com.google.gwt.core.client.impl.SchedulerImpl
09:50:37.380 [WARN] [test_gwt] For the following type(s), generated
source was never committed (did you forget to call commit()?)
09:50:37.427 [WARN] [test_gwt]
com.kapil.test.client.GreetingService_Proxy
09:50:37.489 [ERROR] [test_gwt] Unable to load module entry point
class com.kapil.test.client.Test_GWT (see associated exception for
details)
09:50:37.531 [ERROR] [test_gwt] Failed to load module 'test_gwt' from
user agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; Media Center PC 6.0; MASN)' at 127.0.0.1:49935

Any idea what's causing this issue?

Sripathi Krishnan

unread,
Jun 3, 2010, 1:01:40 AM6/3/10
to google-we...@googlegroups.com
java.lang.Class.getCanonicalName()Ljava/lang/String;

Can you double check your JDK Version? Do you have multiple versions of JRE libraries in your classpath?

--Sri



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Kapil Kulkarni

unread,
Jun 4, 2010, 4:10:21 AM6/4/10
to Google Web Toolkit
Hi Sri,

Thanks for your reply. The issue got already resolved.
My os is windows 7 64 bit. I was using eclipse 32 bit and jdk 32 bit.
I just switched to 64 bit version of eclipse and jdk and everything
was all set.

On Jun 3, 10:01 am, Sripathi Krishnan <sripathi.krish...@gmail.com>
wrote:
> > java.lang.Class.getCanonicalName()Ljava/lang/String;
>
> Can you double check your JDK Version? Do you have multiple versions of JRE
> libraries in your classpath?
>
> --Sri
>
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .

Sorinel C

unread,
Jun 4, 2010, 3:37:26 PM6/4/10
to Google Web Toolkit
If you want more info about GWT you can find it here:

http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html

Cheers!
Reply all
Reply to author
Forward
0 new messages