Tag Archives: GWT platform

Deadliest Google Web Toolkit mistake, upgrading to GWT 2.1 with the latest GWT-Platform

Deadliest Google Web Toolkit mistake, upgrading to GWT 2.1 with the latest GWT-Platform

The deadliest mistake of GWT development thus far easily has been upgrade to GWT 2.1. As I am using GWT Platform, it seems when I do GWT compilation, I get various about certain GWT-Platforms don’t have proper source code. I even made sure I had the proper JARs included in my Eclipse project class path as well as my war/WEB-INF/libs. Nothing was corrected until I backed up my Eclipse Helios with its prior GWT  plugins. It seems this was part of the problem. I would urge anyone out there to consider this if you ever plan to upgrade to GWT 2.1. Your GWT compilations may break. If anyone can shed further light this would be highly appreciated. Everything seems to work under GWT 2.0.4 with that reflecting GWT Eclipse Plugin.

Here is a sample of GWT compiler errors (there are others):

Compiling module com.google.musicstore.Siloverse1
[ERROR] Errors in ‘file:/C:/Documents%20and%20Settings/Administrator/workspace-zeus/SiloverseFlexMVP2MSSQLGWT2/src/com/google/musicstore/client/view/HomeView.java’
[ERROR]  Internal compiler error
java.lang.NoSuchMethodError: com.google.gwt.uibinder.elementparsers.BeanParser.<init>(Lcom/google/gwt/uibinder/rebind/UiBinderContext;)V
at com.google.gwt.uibinder.rebind.UiBinderWriter.getParsersForClass(UiBinderWriter.java:870)
at com.google.gwt.uibinder.rebind.UiBinderWriter.parseElementToField(UiBinderWriter.java:627)
at com.google.gwt.uibinder.rebind.UiBinderParser.parse(UiBinderParser.java:139)
at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocumentElement(UiBinderWriter.java:935)
at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocument(UiBinderWriter.java:712)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:142)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:119)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:427)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:39)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:115)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:58)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:161)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:150)
at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:345)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:484)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:545)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
at com.google.gwt.dev.Compiler.run(Compiler.java:205)
at com.google.gwt.dev.Compiler.run(Compiler.java:177)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
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:156)
[ERROR] Unexpected
java.lang.NoSuchMethodError: com.google.gwt.uibinder.elementparsers.BeanParser.<init>(Lcom/google/gwt/uibinder/rebind/UiBinderContext;)V
at com.google.gwt.uibinder.rebind.UiBinderWriter.getParsersForClass(UiBinderWriter.java:870)
at com.google.gwt.uibinder.rebind.UiBinderWriter.parseElementToField(UiBinderWriter.java:627)
at com.google.gwt.uibinder.rebind.UiBinderParser.parse(UiBinderParser.java:139)
at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocumentElement(UiBinderWriter.java:935)
at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocument(UiBinderWriter.java:712)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:142)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:119)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:427)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:39)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:115)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:58)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:161)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:150)
at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:345)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:484)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:545)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
at com.google.gwt.dev.Compiler.run(Compiler.java:205)
at com.google.gwt.dev.Compiler.run(Compiler.java:177)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
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:156)

Compiling module com.google.musicstore.Siloverse1   [ERROR] Errors in ‘file:/C:/Documents%20and%20Settings/Administrator/workspace-zeus/SiloverseFlexMVP2MSSQLGWT2/src/com/google/musicstore/client/view/HomeView.java’      [ERROR]  Internal compiler errorjava.lang.NoSuchMethodError: com.google.gwt.uibinder.elementparsers.BeanParser.<init>(Lcom/google/gwt/uibinder/rebind/UiBinderContext;)V at com.google.gwt.uibinder.rebind.UiBinderWriter.getParsersForClass(UiBinderWriter.java:870) at com.google.gwt.uibinder.rebind.UiBinderWriter.parseElementToField(UiBinderWriter.java:627) at com.google.gwt.uibinder.rebind.UiBinderParser.parse(UiBinderParser.java:139) at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocumentElement(UiBinderWriter.java:935) at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocument(UiBinderWriter.java:712) at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:142) at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:119) at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:427) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:39) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:115) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:58) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:161) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:150) at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:345) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:484) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32) at com.google.gwt.dev.Precompile.precompile(Precompile.java:545) at com.google.gwt.dev.Precompile.precompile(Precompile.java:466) at com.google.gwt.dev.Compiler.run(Compiler.java:205) at com.google.gwt.dev.Compiler.run(Compiler.java:177) at com.google.gwt.dev.Compiler$1.run(Compiler.java:149) 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:156)
[ERROR] Unexpectedjava.lang.NoSuchMethodError: com.google.gwt.uibinder.elementparsers.BeanParser.<init>(Lcom/google/gwt/uibinder/rebind/UiBinderContext;)V at com.google.gwt.uibinder.rebind.UiBinderWriter.getParsersForClass(UiBinderWriter.java:870) at com.google.gwt.uibinder.rebind.UiBinderWriter.parseElementToField(UiBinderWriter.java:627) at com.google.gwt.uibinder.rebind.UiBinderParser.parse(UiBinderParser.java:139) at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocumentElement(UiBinderWriter.java:935) at com.google.gwt.uibinder.rebind.UiBinderWriter.parseDocument(UiBinderWriter.java:712) at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:142) at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:119) at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:427) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:39) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:115) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:58) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:161) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:150) at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:345) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:484) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32) at com.google.gwt.dev.Precompile.precompile(Precompile.java:545) at com.google.gwt.dev.Precompile.precompile(Precompile.java:466) at com.google.gwt.dev.Compiler.run(Compiler.java:205) at com.google.gwt.dev.Compiler.run(Compiler.java:177) at com.google.gwt.dev.Compiler$1.run(Compiler.java:149) 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:156)

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

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

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.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

FINALLY! GWT-Platform custom wizard writes to DTO Hibernate MYSQL database. Flash/Flex with Wowza is next!

FINALLY! GWT-Platform custom wizard writes to DTO Hibernate MYSQL database. Flash/Flex with Wowza is next!

Time for beer! This took a very long time to accomplish!! The code is pathetic but I got a first version working. I just now to need to integrate into Wowza media server with Flash/Flex.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Need real world example of large GWT-platform with GWT MVP and GWT 2? Download here

Need real world example of large GWT-platform with GWT MVP and GWT 2? Download here

Get it here:

http://code.google.com/p/puzzlebazar/source/checkout

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Once again, gwt-platform wiki documentation is best at getting you building Google's GWT MVP applications

Once again, gwt-platform wiki documentation is best at getting you building Google’s GWT MVP applications

Seriously, compared to other GWT frameworks/libraries, I feel gwt-platorm is the best. They even explain in detail the complete 4 examples:

http://code.google.com/p/gwt-platform/wiki/SimpleNestedSample

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Dump GWT-presenter and GWT-dispatch for GWT-platform for this Google's GWT MVP stuff?

This seems more up to date. I believe the older GWT-dispatch and GWT-presenter is for < GWT2.0. This seems more up to date for GWT 2.0+. I will give this a try as for the handler exceptions I am getting in my previous post. The following blog post could be a waste of time if you are using > GWT 2.0.

http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html

A comment thankfully pointed me to this:

http://code.google.com/p/gwt-platform/

http://uptick.com.au/content/getting-started-gwt-platform

This may work and I will post if I can apply to my GWT application. This tutorial is not even a day old! I hope it saves my ass on this project!!

Update: Hooray! I can confirm the 2 links above will help you! The following blog post seems useless if you are working with GWT 2.0+:

http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html

The 2 links above are better for GWT 2.0 + as it compiles under GWT 2.0 cleanly with no warnings on Serialization Exceptions! There are more real world examples and better documentation to get you started on GWT MVP with GWT 2.0 which we all use. I am currently using GWT 2.04 not GWT 2.1 preview versions!

You way also want to visit for further help:

http://cashforlifetv.com/blog/index.php/2010/10/10/how-to-cleanly-execute-gwt-2-mvp-gin-gin-with-mvp-platform-not-gwt-presenter-or-gwt-dispatch/

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!