SourApple / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

AJAX Search on GWT 2.2.0 not initialize #457

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
Google AJAX Search API Library 1.1

Platform information:  GWT 2.2.0, on Ie8 and Chrome

I did all steps in AJAXSearchGettingStarted:
http://code.google.com/p/gwt-google-apis/wiki/AJAXSearchGettingStarted

but when i try to initialize the app it not works

Error:

java.lang.RuntimeException: Deferred binding failed for 
'com.google.gwt.search.client.impl.GdrawOptions' (did you forget to inherit a 
required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.client.GWT.create(GWT.java:98)
    at com.google.gwt.search.client.SearchControlOptions.<init>(SearchControlOptions.java:32)
    at com.pwigo.client.Pwigo.onModuleLoad(Pwigo.java:30)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IncompatibleClassChangeError: Found interface 
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
    at com.google.gwt.search.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java:277)
    at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
    at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
    at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
    at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
    at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:141)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:585)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    ... 12 more

Original issue reported on code.google.com by dto...@gmail.com on 20 Mar 2011 at 9:00

GoogleCodeExporter commented 9 years ago
This is the same error (for the search api) as has cropped up in the other APIs 
- GWT 2.2 introduced a binary incompatibility for all pre-compiled libraries.  
You can re-compile the gwt-search source yourself under GWT 2.2 to get a 
compatible jar file.

Original comment by zundel@google.com on 21 Mar 2011 at 12:07

GoogleCodeExporter commented 9 years ago
How I can do that ?, I have the same problem ..

Original comment by egns...@gmail.com on 21 Mar 2011 at 7:29

GoogleCodeExporter commented 9 years ago
Where can I download the sources of search api?

Original comment by egns...@gmail.com on 21 Mar 2011 at 8:23

GoogleCodeExporter commented 9 years ago
The admi said the is the same issue as issue 447...

in issue 447 post there is a search lib compiled to gwt 2.2, but for me it is 
not working... if you make it works please alert me... 

thanks

Original comment by dto...@gmail.com on 21 Mar 2011 at 9:02

GoogleCodeExporter commented 9 years ago

@dto.. I tested it with a HelloSearch sample (in gwt-search.zip) and search lib 
compiled in issue 447 and it works man !

Original comment by egns...@gmail.com on 21 Mar 2011 at 11:00