Thursday, August 17, 2023

Re: gwt-tour not working

I'm getting following error GWT Module com.ait.toolkit.core.Core not found in project sources or resources


On Monday, April 6, 2015 at 7:31:48 PM UTC+5:30 marian lux wrote:
Thank you for further tests and that info. It helped me to test in other directions:
I did some tests and found a hint.
I assume you tested it with gwt 2.6.1?
When I compile the showcase with gwt 2.6.1 it works. With 2.7. I get the error as described above.

So it seems the gwt-tour lib is not compatible with (mgwt 2.0 in combination with) gwt 2.7?!



Am Sonntag, 5. April 2015 22:19:13 UTC+2 schrieb Alain:
Tested. 
I could not reproduced the issue. 
Looks like something is wrong with your  settings.

On 4 April 2015 at 23:06, marian lux <mlu...@gmail.com> wrote:
Hmm. 
With mgwt-showcase (https://github.com/mgwt/mgwt.showcase) it is not working for me as you can see above. Could please you try to check out the mgwt-showcase and test it if it is compileable by only adding the gwt-tour dependency in the pom.xml? Maybe there is a widget/panel which causes a problem (I get some errors in dependence  with the Appearance Pattern)? Sorry I am not into detail with this. But I think testing with the showcase makes sense because it displays most possible widgets in mgwt and so if it works there, it should work in every project/setup.
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 here

package 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 up
   workDir: /tmp/gwt-codeserver-883274298781880589.tmp
   Loading Java files in com.googlecode.mgwt.examples.showcase.ShowCase.
   Module setup completed in 17954 ms

The code server is ready at http://127.0.0.1:9876/
Code server started in 18040 ms
waited 12176 ms for code server to finish
GET /recompile/showcase
   Job com.googlecode.mgwt.examples.showcase.ShowCase_1_0
      starting job: com.googlecode.mgwt.examples.showcase.ShowCase_1_0
      binding: mgwt.density=mid
      binding: mgwt.formfactor=desktop
      Compiling module com.googlecode.mgwt.examples.showcase.ShowCase
         [ERROR] An internal compiler exception occurred
com.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.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.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.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.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 version


It 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.xml
                <dependency>
    <groupId>com.ahome-it</groupId>
<artifactId>gwt-tour</artifactId>
<version>2.0.0-SNAPSHOT</version>   
</dependency>
and try to compile the project with the news resources from the 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 ms
waited 659 ms for code server to finish
2015-04-04 12:13:42 INFO  ManageThreadTwitter:37 - ThreadTwitter started
2015-04-04 12:13:42 INFO  ManageThreadTwitter:37 - ThreadTwitter started
2015-04-04 12:13:42 INFO  ManageThreadTwitter:126 - updated TwitterFeedData for DailyPost
2015-04-04 12:13:44 INFO  ManageThreadTwitter:136 - updated TwitterFeedData for RegionalNews
GET /recompile-requester/oha
   [WARN] Deactivated PrecompressLinker
GET /recompile/oha
   Job at.mlux.oha_1_0
      starting job: at.mlux.oha_1_0
      binding: locale=de
      binding: mgwt.density=mid
      binding: mgwt.formfactor=desktop
      binding: user.agent=safari
      Compiling module at.mlux.oha
         [ERROR] An internal compiler exception occurred
com.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.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.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.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.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 PullPanelAbstractAppearance.java(29): GWT.create(PullPanelAbstractAppearance$Binder.class)
             
...

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/f5a44d4c-ea40-4440-913a-350ca8ff14a9n%40googlegroups.com.

No comments:

Post a Comment