Posts Tagged ‘GWT’

GWT compiler error: Annotation error: cannot resolve. Why?

View CommentsWritten on November 26th, 2010 by caustic
Categories: Misc
GWT compiler error: Annotation error: cannot resolve. Why? See beloew for solution if you get the following exceptions and errors during a GWT compile. Compiling module com.google.musicstore.Siloverse1 Resolving com.google.musicstore.client.gin.MyGinjector Found type 'com.google.musicstore.client.gin.MyGinjector' [ERROR] Annotation error: cannot resolve com.google.musicstore.client.gin.MyModule java.lang.ClassNotFoundException: com.google.musicstore.client.gin.MyModule at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:670) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:609) at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:400) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:568) at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:583) at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:728) at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits(TypeOracleMediator.java:353) at com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:135) at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.java:79) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:286) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:182) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:280) at com.google.gwt.dev.Precompile.precompile(Precompile.java:502) at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) at com.google.gwt.dev.Compiler.run(Compiler.java:201) at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:159) [ERROR] Annotation error: expected class java.lang.Class, got null Scanning for additional dependencies: file:/C:/Documents%20and%20Settings/Administrator/workspace/SiloverseFlexMVP2MSSQL/src/com/google/musicstore/client/Siloverse.java Computing all possible rebind results for 'com.google.musicstore.client.gin.MyGinjector' Rebinding com.google.musicstore.client.gin.MyGinjector Invoking com.google.gwt.dev.javac.StandardGeneratorContext@197fe9 [ERROR] Generator 'com.google.gwt.inject.rebind.GinjectorGenerator' threw threw an exception while rebinding 'com.google.musicstore.client.gin.MyGinjector' com.google.inject.ProvisionException: Guice provision errors: 1) Error creating key for interface com.google.gwt.inject.client.AsyncProvider<com.google.musicstore.client.presenter.ContributeWizard2Presenter> 1 error at com.google.gwt.inject.rebind.util.KeyUtil.getKey(KeyUtil.java:151) at com.google.gwt.inject.rebind.util.KeyUtil.getKey(KeyUtil.java:75) at com.google.gwt.inject.rebind.BindingsProcessor.addUnresolvedEntriesForInjectorInterface(BindingsProcessor.java:335) at com.google.gwt.inject.rebind.BindingsProcessor.process(BindingsProcessor.java:217) at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:76) at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:48) 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.StandardRebindOracle.rebind(StandardRebindOracle.java:143) at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:317) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:95) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:200) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:123) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:234) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$200(AbstractCompiler.java:109) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:522) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:112) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:47) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:430) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32) at com.google.gwt.dev.Precompile.precompile(Precompile.java:522) at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) at com.google.gwt.dev.Compiler.run(Compiler.java:201) at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:159) Caused by: java.lang.ClassNotFoundException: com.google.musicstore.client.presenter.ContributeWizard2Presenter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.inject.rebind.util.KeyUtil.loadClass(KeyUtil.java:395) at com.google.gwt.inject.rebind.util.KeyUtil.gwtTypeToJavaType(KeyUtil.java:369) at com.google.gwt.inject.rebind.util.KeyUtil.gwtTypeToJavaType(KeyUtil.java:351) at com.google.gwt.inject.rebind.util.KeyUtil.getKey(KeyUtil.java:148) ... 30 more [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?) [WARN] com.google.musicstore.client.gin.MyGinjectorImpl [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/Administrator/workspace/SiloverseFlexMVP2MSSQL/src/com/google/musicstore/client/Siloverse.java' [ERROR] Line 851:  Failed to resolve 'com.google.musicstore.client.gin.MyGinjector' via deferred binding Scanning for additional dependencies: file:/C:/Documents%20and%20Settings/Administrator/workspace/SiloverseFlexMVP2MSSQL/src/com/google/musicstore/client/ContributeComposite.java Computing all possible rebind results for 'com.google.musicstore.client.gin.MyGinjector' Rebinding com.google.musicstore.client.gin.MyGinjector Invoking com.google.gwt.dev.javac.StandardGeneratorContext@197fe9 [ERROR] Generator 'com.google.gwt.inject.rebind.GinjectorGenerator' threw threw an exception while rebinding 'com.google.musicstore.client.gin.MyGinjector' com.google.inject.ProvisionException: Guice provision errors: 1) Error creating key for interface com.google.gwt.inject.client.AsyncProvider<com.google.musicstore.client.presenter.ContributeWizard2Presenter> 1 error at com.google.gwt.inject.rebind.util.KeyUtil.getKey(KeyUtil.java:151) at com.google.gwt.inject.rebind.util.KeyUtil.getKey(KeyUtil.java:75) at com.google.gwt.inject.rebind.BindingsProcessor.addUnresolvedEntriesForInjectorInterface(BindingsProcessor.java:335) at com.google.gwt.inject.rebind.BindingsProcessor.process(BindingsProcessor.java:217) at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:76) at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:48) 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.StandardRebindOracle.rebind(StandardRebindOracle.java:143) at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:317) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:95) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:200) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:123) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:234) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$200(AbstractCompiler.java:109) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:522) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:112) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:47) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:430) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32) at com.google.gwt.dev.Precompile.precompile(Precompile.java:522) at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) at com.google.gwt.dev.Compiler.run(Compiler.java:201) at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:159) Caused by: java.lang.ClassNotFoundException: com.google.musicstore.client.presenter.ContributeWizard2Presenter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.google.gwt.inject.rebind.util.KeyUtil.loadClass(KeyUtil.java:395) at com.google.gwt.inject.rebind.util.KeyUtil.gwtTypeToJavaType(KeyUtil.java:369) at com.google.gwt.inject.rebind.util.KeyUtil.gwtTypeToJavaType(KeyUtil.java:351) at com.google.gwt.inject.rebind.util.KeyUtil.getKey(KeyUtil.java:148) ... 30 more [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/Administrator/workspace/SiloverseFlexMVP2MSSQL/src/com/google/musicstore/client/ContributeComposite.java' [ERROR] Line 23:  Failed to resolve 'com.google.musicstore.client.gin.MyGinjector' via deferred binding Scanning for additional dependencies: jar:file:/C:/gwt/gwt-2.0.4/gwt-user.jar!/com/google/gwt/emul/java/lang/StringBuffer.java [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?) [WARN] com.google.musicstore.client.gin.MyGinjectorImpl [ERROR] Cannot proceed due to previous errors This may due to not having the adequate of classes in the project’s war/WEB-INF/classes. Also, ensure the web.xml is here to.

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

Java Google GWT Error: Unable to find .gwt.xml on your classpath

View CommentsWritten on November 23rd, 2010 by caustic
Categories: Misc
Java Google GWT Error: Unable to find .gwt.xml on your classpath If you get an error of something along the lines of: 15:56:55.247 [ERROR] Unable to find 'x.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? it could be a missing or wrong web.xml file.

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

GWT Error: IncompatibleRemoteServiceException: This application is out of date, please click the refresh button

View CommentsWritten on November 12th, 2010 by caustic
Categories: Misc
GWT Error: IncompatibleRemoteServiceException: This application is out of date, please click the refresh button browser error with remote tomcat: Failed to retrieve English equivelant of phrase 'l'école est finie' This application is out of date, please click the refresh button on your browser. ( Could not locate requested method 'getSoundStringWithLangAndPhrase(java.lang.String, java.lang.Long, java.lang.Long)' in interface 'com.google.musicstore.client.SiloverseService' ) When you deployed, did everything get overwritten that needed to? Maybe you forgot the WEB-INF folder or something? Every once in a while I delete everything off the server and recopy everything from my local just to avoid things like that. On Jul 7, 2:56 am, bhomass wrote: - Show quoted text - http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/fa2e2ceee236e9e6/e06d3b3066b113f1?lnk=raot for my case: WEB-INF/classes was not included in the generated WAR file

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

Resources to get you up and running with Google GWT 2.1 really fast! Java GWT-Platform, MVP, Hibernate, DTO

View CommentsWritten on November 3rd, 2010 by caustic
Categories: Misc
Resources to get you up and running with Google GWT 2.1 really fast! Java GWT-Platform, MVP, Hibernate, DTO
Here are the tutorials to get you started with GWT:
Make sure you get the latest SDK. I am using GWT 2.0.4 but GWT 2.1 is quite different.
Make sure you try out the GWT Designer/Builder within Eclipse to make you really productive.
So make sure you run the tutorial and samples to get you started with this. This will rapidly get you running using MVP:
MVP can be confusing but GWT-Platform simplifies things. Also, note GWT 2.1 might offer simpler MVP out of the box functionality but I use GWT-Platform as 2.1 did not exist yet.
Hope this helps but you should get up and running a lot faster as compared to something like Spring-MVC
When you are ready, I can also send over the database SQL which is MYSQL We probably will move to SQL Server once we are close to production. Do note I use GWT DTO which is pretty complicated when you look at it.

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

Export a GWT to WAR file for Java Tomcat or JBOSS the perfect way using this tutorial

View CommentsWritten on October 27th, 2010 by caustic
Categories: Misc
Export a GWT to WAR file for Java Tomcat or JBOSS the perfect way using this tutorial. This works flawlessly http://blog.elitecoderz.net/gwt-and-tomcat-create-war-using-eclipse-to-deploy-war-on-tomcat/2009/12/

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

Why does Google kill GWT's potential with this junky anonymous callback classes?

View CommentsWritten on October 21st, 2010 by caustic
Categories: Misc
Why does Google kill GWT's potential with this junky anonymous callback classes? This becomes debugging hell. Sadly, I had to resort to GWT's Label widget to overcome this in Google Translate libray. Final string s don't work for some reason.

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

Gerat news!! It seems GWT 2+ can be ported to Google Android fairly easily! Links appear to prove it!

View CommentsWritten on October 18th, 2010 by caustic
Categories: Misc
Gerat news!! It seems GWT 2+ can be ported to Google Android fairly easily! Links appear to prove it! http://timepedia.blogspot.com/2007/11/gwt-and-android-marriage-made-in-heaven.html

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

Links to help with that GWT and Flash, Flex, SWT integration.

View CommentsWritten on October 15th, 2010 by caustic
Categories: Misc
I have posted a good one in the past but I have moved into using UIBinder so I need find an update that works with. Maybe some these may help: http://code.google.com/p/gwt2swf/wiki/QuickStart http://code.google.com/p/gwt-fabridge/ This one is just a player but looks decent for those looking: http://oss.bramosystems.com/bst-player/demo/showcase/index.html The best: http://lgrammel.blogspot.com/2010_02_01_archive.html

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

I found a Flash, YouTube, VLC and Windows Media video player that works with Google's GWT 2 and UIBinder

View CommentsWritten on October 15th, 2010 by caustic
Categories: Misc
I found a Flash, YouTube, VLC and Windows Media video player that works with Google's GWT 2 and UIBinder Details here: http://oss.bramosystems.com/bst-player/ui-binder.html Download here: http://code.google.com/p/bst-player/downloads/list Here is the showcase: http://www.google.com/url?sa=D&q=http://oss.bramosystems.com/bst-player/demo/showcase/index.html&usg=AFQjCNF7PxzbbTaQVERiyN1AdcMOQ5OFOA

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

How to solve GWT compiler error of '[ERROR] The Ginjector xxx does not have a get() method returning'

How to solve GWT compiler error of '[ERROR] The Ginjector xxx does not have a get() method returning' If you get a GWT compiler error of something like: gwt does not have a get() method returning See below for exact details. Here is how to fix it: Also, ensure provider (as defined in your xxx.client.gin MyGinjector presenter (ie. Provider getMainPagePresenter(); HomePresenter.java class) has proxy defined as @ProxyStandard not @ProxyCodeSplit public static final String nameToken = "main"; private final DispatchAsync dispatcher; private PlaceManager placeManager; @ProxyStandard <-- should not be @ProxyCodeSplit @NameToken(nameToken) public interface MyProxy extends Proxy, Place { } All other presenters shuold have @ProxyCodeSplit like: public class Contribute1Presenter extends Presenter { public static final String nameToken = "contribute1"; private final PlaceManager placeManager; @ProxyCodeSplit @NameToken(nameToken) public interface MyProxy extends Proxy, Place { } during gwt compiler exception, if you get the following: Compiling module com.google.musicstore.Siloverse1 Scanning for additional dependencies: generated://760956920BB2959A003B9A3F7AC8B56B/com/google/musicstore/client/gin/MyGinjectorImpl.java Computing all possible rebind results for 'com.google.musicstore.client.presenter.Contribute1Presenter.MyProxy' Rebinding com.google.musicstore.client.presenter.Contribute1Presenter.MyProxy Invoking com.google.gwt.dev.javac.StandardGeneratorContext@18cc39e [ERROR] The Ginjector 'com.google.musicstore.client.gin.MyGinjector' does not have a get() method returning 'Provider'. This is required when using @ProxyStandard. Computing all possible rebind results for 'com.google.musicstore.client.presenter.HomePresenter.MyProxy' Rebinding com.google.musicstore.client.presenter.HomePresenter.MyProxy Invoking com.google.gwt.dev.javac.StandardGeneratorContext@18cc39e [ERROR] The Ginjector 'com.google.musicstore.client.gin.MyGinjector' does not have a get() method returning 'AsyncProvider'. This is required when using @ProxyCodeSplit. [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?) [WARN] com.google.musicstore.client.presenter.HomePresenterMyProxyImpl [WARN] com.google.musicstore.client.presenter.Contribute1PresenterMyProxyImpl [ERROR] Errors in 'generated://760956920BB2959A003B9A3F7AC8B56B/com/google/musicstore/client/gin/MyGinjectorImpl.java' [ERROR] Line 253: Failed to resolve 'com.google.musicstore.client.presenter.Contribute1Presenter.MyProxy' via deferred binding [ERROR] Line 291: Failed to resolve 'com.google.musicstore.client.presenter.HomePresenter.MyProxy' via deferred binding [ERROR] Cannot proceed due to previous errors This can be caused by conflicts if the nameToken is duplicate in any presenters Also defined in MyPlaceManager: package com.google.musicstore.client.place; import com.google.inject.Inject; import com.google.musicstore.client.presenter.Contribute1Presenter; import com.google.musicstore.client.presenter.HomePresenter; import com.gwtplatform.mvp.client.EventBus; import com.gwtplatform.mvp.client.proxy.PlaceManagerImpl; import com.gwtplatform.mvp.client.proxy.PlaceRequest; import com.gwtplatform.mvp.client.proxy.TokenFormatter; public class MyPlaceManager extends PlaceManagerImpl { @Inject public MyPlaceManager(EventBus eventBus, TokenFormatter tokenFormatter) { super(eventBus, tokenFormatter); } @Override public void revealDefaultPlace() { // "main" revealPlace(new PlaceRequest(HomePresenter.nameToken)); //revealPlace(new PlaceRequest(Contribute1Presenter.nameToken)); }

Get our FREE Open Source Historical Database by answering the 2 WORLD'S FASTEST TRADER/QUANT QUESTIONS

Post to Twitter

Follow

Get every new post delivered to your Inbox

Join other followers: