But if the showcase works on your machine, it must be an issue on my side (setup) and then I can dig deeper there and post a solution if I find one.
THX Marian
Am Samstag, 4. April 2015 21:41:53 UTC+2 schrieb Alain:
This code seems to work for me herepackage com.ait.ti4j.playground.
client;
import com.ait.toolkit.hopscotch.
client.HopScotch; import com.ait.toolkit.hopscotch.
client.Placement; import com.ait.toolkit.hopscotch.
client.Tour; import com.ait.toolkit.hopscotch.
client.TourStep; import com.google.gwt.core.client.
EntryPoint; import com.google.gwt.user.client.ui.
RootPanel; import com.googlecode.mgwt.ui.client.
MGWT; import com.googlecode.mgwt.ui.client.
MGWTSettings; import com.googlecode.mgwt.ui.client.
animation.AnimationHelper; import com.googlecode.mgwt.ui.client.
widget.animation.Animations; import com.googlecode.mgwt.ui.client.
widget.button.Button; import com.googlecode.mgwt.ui.client.
widget.panel.flex. RootFlexPanel;
public class MgwtTest implements EntryPoint {
@Override
public void onModuleLoad() {
// set viewport and other settings for mobile
MGWT.applySettings( MGWTSettings.getAppSetting() );
// build animation helper and attach it
AnimationHelper animationHelper = new AnimationHelper();
RootPanel.get().add( animationHelper );
// build some UI
RootFlexPanel rootFlexPanel = new RootFlexPanel();
Button button = new Button( "Hello mgwt" );
rootFlexPanel.add( button );
// animate
animationHelper.goTo( rootFlexPanel, Animations.SLIDE );
Tour tour = new Tour( "myTour" );
TourStep step = new TourStep( Placement.BOTTOM, button );
step.setContent( "This is the Button" );
step.setTitle( "Button" );
tour.addStep( step );
HopScotch.startTour( tour );
}
}
...On 4 April 2015 at 20:12, marian lux <mlu...@gmail.com> wrote:I tested it with the current mgwt showcase (checked out from - https://github.com/mgwt/mgwt.showcase ) by adding in pom.xml the dependency
<dependency><groupId>com.ahome-it</groupId> <artifactId>gwt-tour</artifactId> <version>2.0.0-SNAPSHOT</version> </dependency>Before adding the dependency the showcase compiles and works.After adding the dependency, I get also an error as on my mgwt project.
Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.7, -bindAddress, 127.0.0.1, -launcherDir, /home/marian/workspace_oha_mgwt2/mgwt-showcase/target/ mgwt-showcase-2.0.0-SNAPSHOT, -logLevel, INFO, com.googlecode.mgwt.examples. showcase.ShowCase] Super Dev Mode starting upworkDir: /tmp/gwt-codeserver-883274298781880589.tmp Loading Java files in com.googlecode.mgwt.examples.showcase.ShowCase. Module setup completed in 17954 msThe code server is ready at http://127.0.0.1:9876/Code server started in 18040 mswaited 12176 ms for code server to finishGET /recompile/showcaseJob com.googlecode.mgwt.examples.showcase.ShowCase_1_0 starting job: com.googlecode.mgwt.examples.showcase.ShowCase_1_0 binding: mgwt.density=midbinding: mgwt.formfactor=desktopCompiling module com.googlecode.mgwt.examples.showcase.ShowCase [ERROR] An internal compiler exception occurredcom.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit. at com.google.gwt.dev.jjs.ast.JVisitor.translateException( JVisitor.java:121) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:296) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:285) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java: 128) at com.google.gwt.dev.jjs.ast.JCastOperation.traverse( JCastOperation.java:67) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse( JModVisitor.java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:293) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:285) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java: 128) at com.google.gwt.dev.jjs.ast.JDeclarationStatement. traverse( JDeclarationStatement.java:49) at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext. traverse(JModVisitor.java:95) at com.google.gwt.dev.jjs.ast.JModVisitor. acceptWithInsertRemove( JModVisitor.java:351) at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java: 92) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse( JModVisitor.java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:293) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java: 149) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java: 145) at com.google.gwt.dev.jjs.ast.JMethodBody.traverse( JMethodBody.java:83) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse( JModVisitor.java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:293) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:285) at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod. java:600) at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java: 569) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse( JModVisitor.java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:293) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:285) at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst. java:1505) at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java: 870) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$ Precompiler.unifyJavaAst( JavaToJavaScriptCompiler.java: 1305) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$ Precompiler.constructJavaAst( JavaToJavaScriptCompiler.java: 1038) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$ Precompiler.precompile( JavaToJavaScriptCompiler.java: 954) at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptComp iler.precompile( MonolithicJavaToJavaScriptComp iler.java:303) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile( JavaScriptCompiler.java:38) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 286) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 229) at com.google.gwt.dev.Precompile.precompile(Precompile.java: 145) at com.google.gwt.dev.Compiler.run(Compiler.java:206) at com.google.gwt.dev.codeserver.Recompiler.doCompile( Recompiler.java:333) at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler. java:161) at com.google.gwt.dev.codeserver.Recompiler.recompile( Recompiler.java:119) at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java: 128) at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner. java:81) at com.google.gwt.dev.codeserver.JobRunner.access$100( JobRunner.java:34) at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner. java:73) at java.util.concurrent.Executors$RunnableAdapter. call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask. java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.rebind.UiBinderWriter.<init>( Lcom/google/gwt/core/ext/ typeinfo/JClassType;Ljava/ lang/String;Ljava/lang/String; Lcom/google/gwt/core/ext/ typeinfo/TypeOracle;Lcom/ google/gwt/uibinder/rebind/ MortalLogger;Lcom/google/gwt/ uibinder/rebind/FieldManager; Lcom/google/gwt/uibinder/ rebind/messages/ MessagesWriter;Lcom/google/ gwt/uibinder/rebind/ DesignTimeUtils;Lcom/google/ gwt/uibinder/rebind/ UiBinderContext;ZZLjava/lang/ String;)V at com.google.gwt.uibinder.rebind.UiBinderGenerator. generateOnce( UiBinderGenerator.java:172) at com.google.gwt.uibinder.rebind.UiBinderGenerator. generate(UiBinderGenerator. java:130) at com.google.gwt.core.ext.IncrementalGenerator. generateNonIncrementally( IncrementalGenerator.java:40) at com.google.gwt.dev.javac.StandardGeneratorContext. runGeneratorIncrementally( StandardGeneratorContext.java: 760) at com.google.gwt.dev.cfg.RuleGenerateWith.realize( RuleGenerateWith.java:160) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder. rebind(StandardRebindOracle. java:79) at com.google.gwt.dev.shell.StandardRebindOracle.rebind( StandardRebindOracle.java:276) at com.google.gwt.dev.shell.StandardRebindOracle.rebind( StandardRebindOracle.java:265) at com.google.gwt.dev.DistillerRebindPermutationOrac le. getAllPossibleRebindAnswers( DistillerRebindPermutationOrac le.java:87) at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor. createStaticRebindExpression( UnifyAst.java:485) at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor. createRebindExpression( UnifyAst.java:443) at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor. handleMagicMethodCall( UnifyAst.java:576) at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor. endVisit(UnifyAst.java:306) at com.google.gwt.dev.jjs.ast.JMethodCall.traverse( JMethodCall.java:248) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse( JModVisitor.java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept( JModVisitor.java:293) ... 47 more[ERROR] at FlexPanelDefaultAppearance.java(39): GWT.create( FlexPanelDefaultAppearance$ Binder.class) com.google.gwt.dev.jjs.ast.JMethodCall [ERROR] at FlexPanelDefaultAppearance.java(39): (FlexPanelDefaultAppearance$ Binder) GWT.create( FlexPanelDefaultAppearance$ Binder.class) com.google.gwt.dev.jjs.ast.JCastOperation [ERROR] at FlexPanelDefaultAppearance.java(39): final static FlexPanelDefaultAppearance$ Binder UI_BINDER = (FlexPanelDefaultAppearance$ Binder) GWT.create( FlexPanelDefaultAppearance$ Binder.class) com.google.gwt.dev.jjs.ast.JDeclarationStatement [ERROR] at FlexPanelDefaultAppearance.java(22): { Object.$clinit();{FlexPanelDefaultAppearance$Resources.INSTANCE.css(). ensureInjected(); }final static FlexPanelDefaultAppearance$Binder UI_BINDER = (FlexPanelDefaultAppearance$ Binder) GWT.create( FlexPanelDefaultAppearance$ Binder.class); }com.google.gwt.dev.jjs.ast.JBlock [ERROR] at FlexPanelDefaultAppearance.java(22): { Object.$clinit();{FlexPanelDefaultAppearance$Resources.INSTANCE.css(). ensureInjected(); }final static FlexPanelDefaultAppearance$Binder UI_BINDER = (FlexPanelDefaultAppearance$ Binder) GWT.create( FlexPanelDefaultAppearance$ Binder.class); }com.google.gwt.dev.jjs.ast.JMethodBody [ERROR] at FlexPanelDefaultAppearance.java(22): private static final void $clinit(); com.google.gwt.dev.jjs.ast.JMethod [ERROR] Compiler returned false[WARN] recompile failed[WARN] continuing to serve previous versionIt seems there is a problem with mgwt or something else (dependencies). The pom.xml from mgwt showcase with the dependency of gwt-tour is also in attachment.
Am Samstag, 4. April 2015 12:27:29 UTC+2 schrieb Alain:Having a look. Should work with mgwt.
On 4 Apr 2015 12:20, "marian lux" <mlu...@gmail.com> wrote:Thank you! But a compilation problem still remains.I figured out the following:When I only add in my pom.xmland try to compile the project with the news resources from the dependency,
<dependency><groupId>com.ahome-it</groupId> <artifactId>gwt-tour</artifactId> <version>2.0.0-SNAPSHOT</version> </dependency>I get the following console output (error) in super dev mode (without the dependency the project works - It is a mgwt project and there seems to be a conflict with PullPanel)
The code server is ready at http://127.0.0.1:9876/Code server started in 11272 mswaited 659 ms for code server to finish2015-04-04 12:13:42 INFO ManageThreadTwitter:37 - ThreadTwitter started2015-04-04 12:13:42 INFO ManageThreadTwitter:37 - ThreadTwitter started2015-04-04 12:13:42 INFO ManageThreadTwitter:126 - updated TwitterFeedData for DailyPost2015-04-04 12:13:44 INFO ManageThreadTwitter:136 - updated TwitterFeedData for RegionalNewsGET /recompile-requester/oha[WARN] Deactivated PrecompressLinkerGET /recompile/ohaJob at.mlux.oha_1_0starting job: at.mlux.oha_1_0binding: locale=debinding: mgwt.density=midbinding: mgwt.formfactor=desktopbinding: user.agent=safariCompiling module at.mlux.oha[ERROR] An internal compiler exception occurredcom.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit. at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisi tor.java:121) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:296) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:285) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128 ) at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOper ation.java:67) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor. java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:293) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:285) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128 ) at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JD eclarationStatement.java:49) at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse( JModVisitor.java:95) at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemov e(JModVisitor.java:351) at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor. java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:293) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149 ) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145 ) at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody. java:83) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor. java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:293) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:285) at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.jav a:600) at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569 ) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor. java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:293) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:285) at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java: 1505) at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler. unifyJavaAst(JavaToJavaScriptC ompiler.java:1305) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler. constructJavaAst(JavaToJavaScr iptCompiler.java:1038) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler. precompile(JavaToJavaScriptCom piler.java:954) at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler. precompile(MonolithicJavaToJav aScriptCompiler.java:303) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScr iptCompiler.java:38) at com.google.gwt.dev.Precompile.precompile(Precompile.java:286 ) at com.google.gwt.dev.Precompile.precompile(Precompile.java:229 ) at com.google.gwt.dev.Precompile.precompile(Precompile.java:145 ) at com.google.gwt.dev.Compiler.run(Compiler.java:206) at com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompile r.java:333) at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler. java:161) at com.google.gwt.dev.codeserver.Recompiler.recompile(Recompile r.java:119) at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:1 28) at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner. java:81) at com.google.gwt.dev.codeserver.JobRunner.access$100(JobRunner .java:34) at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java :73) at java.util.concurrent.Executors$RunnableAdapter.call( Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool Executor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.rebind.UiBinderWriter.<init>(Lcom/ google/gwt/core/ext/typeinfo/ JClassType;Ljava/lang/String; Ljava/lang/String;Lcom/google/ gwt/core/ext/typeinfo/ TypeOracle;Lcom/google/gwt/ uibinder/rebind/MortalLogger; Lcom/google/gwt/uibinder/ rebind/FieldManager;Lcom/ google/gwt/uibinder/rebind/ messages/MessagesWriter;Lcom/ google/gwt/uibinder/rebind/Des ignTimeUtils;Lcom/google/gwt/ uibinder/rebind/UiBinderContex t;ZZLjava/lang/String;)V at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnc e(UiBinderGenerator.java:172) at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate( UiBinderGenerator.java:130) at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncr ementally(IncrementalGenerator .java:40) at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerat orIncrementally(StandardGenera torContext.java:760) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerate With.java:160) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebin d(StandardRebindOracle.java: 79) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(Standar dRebindOracle.java:276) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(Standar dRebindOracle.java:265) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPo ssibleRebindAnswers(DistillerR ebindPermutationOracle.java: 87) at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStat icRebindExpression(UnifyAst. java:485) at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebi ndExpression(UnifyAst.java: 443) at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagi cMethodCall(UnifyAst.java:576) at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit( UnifyAst.java:306) at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall. java:248) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor. java:381) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor. java:293) ... 47 more[ERROR] at PullPanelAbstractAppearance.java(29): GWT.create(PullPanelAbstractAp pearance$Binder.class) com.google.gwt.dev.jjs.ast.JMethodCall [ERROR] at PullPanelAbstractAppearance.java(29): (PullPanelAbstractAppearance$B inder) GWT.create(PullPanelAbstractAp pearance$Binder.class) com.google.gwt.dev.jjs.ast.JCastOperation [ERROR] at PullPanelAbstractAppearance.java(29): final static PullPanelAbstractAppearance$Bi nder UI_BINDER = (PullPanelAbstractAppearance$B inder) GWT.create(PullPanelAbstractAp pearance$Binder.class) com.google.gwt.dev.jjs.ast.JDeclarationStatement [ERROR] at PullPanelAbstractAppearance.java(23): { Object.$clinit();final static PullPanelAbstractAppearance$Binder UI_BINDER = (PullPanelAbstractAppearance$B inder) GWT.create(PullPanelAbstractAp pearance$Binder.class); final static PullPanelAbstractAppearance$ArrowBinder ARROW_BINDER = (PullPanelAbstractAppearance$A rrowBinder) GWT.create(PullPanelAbstractAp pearance$ArrowBinder.class); }com.google.gwt.dev.jjs.ast.JBlock [ERROR] at PullPanelAbstractAppearance.java(23): { Object.$clinit();final static PullPanelAbstractAppearance$Binder UI_BINDER = (PullPanelAbstractAppearance$B inder) GWT.create(PullPanelAbstractAp pearance$Binder.class); final static PullPanelAbstractAppearance$ArrowBinder ARROW_BINDER = (PullPanelAbstractAppearance$A rrowBinder) GWT.create(PullPanelAbstractAp pearance$ArrowBinder.class); }com.google.gwt.dev.jjs.ast.JMethodBody [ERROR] at PullPanelAbstractAppearance.java(23): private static final void $clinit(); com.google.gwt.dev.jjs.ast.JMethod [ERROR] Compiler returned false[WARN] recompile failed[WARN] continuing to serve previous version
Do you have any help / hint how to solve this? Or is the lib still incompatible with mgwt?THXMarian
Am Samstag, 4. April 2015 11:45:02 UTC+2 schrieb Alain:
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment