Saturday, April 4, 2015

Re: gwt-tour not working

Having a look. Should work with mgwt.

On 4 Apr 2015 12:20, "marian lux" <mlux.at@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)
               com.google.gwt.dev.jjs.ast.JMethodCall
            [ERROR] at PullPanelAbstractAppearance.java(29): (PullPanelAbstractAppearance$Binder) GWT.create(PullPanelAbstractAppearance$Binder.class)
               com.google.gwt.dev.jjs.ast.JCastOperation
            [ERROR] at PullPanelAbstractAppearance.java(29): final static PullPanelAbstractAppearance$Binder UI_BINDER = (PullPanelAbstractAppearance$Binder) GWT.create(PullPanelAbstractAppearance$Binder.class)
               com.google.gwt.dev.jjs.ast.JDeclarationStatement
            [ERROR] at PullPanelAbstractAppearance.java(23): {
  Object.$clinit();
  final static PullPanelAbstractAppearance$Binder UI_BINDER = (PullPanelAbstractAppearance$Binder) GWT.create(PullPanelAbstractAppearance$Binder.class);
  final static PullPanelAbstractAppearance$ArrowBinder ARROW_BINDER = (PullPanelAbstractAppearance$ArrowBinder) GWT.create(PullPanelAbstractAppearance$ArrowBinder.class);
}
               com.google.gwt.dev.jjs.ast.JBlock
            [ERROR] at PullPanelAbstractAppearance.java(23): {
  Object.$clinit();
  final static PullPanelAbstractAppearance$Binder UI_BINDER = (PullPanelAbstractAppearance$Binder) GWT.create(PullPanelAbstractAppearance$Binder.class);
  final static PullPanelAbstractAppearance$ArrowBinder ARROW_BINDER = (PullPanelAbstractAppearance$ArrowBinder) GWT.create(PullPanelAbstractAppearance$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?

THX
Marian


 

Am Samstag, 4. April 2015 11:45:02 UTC+2 schrieb Alain:
GWT Tour now includes 2 libraries  Intro.js and Hopscotch.js. You are inheriting the Intro JS wrapper. You need to inherit  the Hopscotch one 

<inherits name='com.ait.toolkit.hopscotch.HopScotch'/>

Then you can start using the Tour API.


Tour tour = new Tour("myTour");


Hope that helps,

Cheers,

Alain 


On 4 April 2015 at 11:36, marian lux <mlu...@gmail.com> wrote:
Thank you but could you explain the exact steps to get it working?


in my pom.xml I added now
                <dependency>
    <groupId>com.ahome-it</groupId>
<artifactId>gwt-tour</artifactId>
<version>2.0.0-SNAPSHOT</version>   
</dependency>

in my *.gwt.xml I added
<inherits name='com.ait.toolkit.intro.Intro'/>

After adding the line
Tour tour = new Tour("myTour");

I get the error on console in super dev mode
               [ERROR] Line 150: No source code is available for type com.ait.toolkit.hopscotch.client.Tour; did you forget to inherit a required

What is wrong with my config?
THX Marian


Am Donnerstag, 2. April 2015 12:27:00 UTC+2 schrieb Alain:

On 2 April 2015 at 12:18, Alain Ekambi <jazzma...@gmail.com> wrote:

We just release a new version of gwt tour. You can get it from our sonatype repository.

On 1 Apr 2015 17:55, "marian lux" <mlu...@gmail.com> wrote:
I can't get gwt-tour working with my project.

As described 
and here http://eemi2010.github.io/gwt-tour/

I added in my pom.xml
<repositories>
   
<repository>
       
<id>gwttour-mvn-repo</id>
       
<url>https://raw.github.com/kerbymart/gwt-tour/mvn-repo/</url>
       
<snapshots>
           
<enabled>true</enabled>
           
<updatePolicy>always</updatePolicy>
       
</snapshots>
   
</repository>
</repositories>


<dependency>
   
<groupId>com.eemi.gwt</groupId>
   
<artifactId>tour</artifactId>
   
<version>1.0-SNAPSHOT</version>    
</dependency>

Added in the gwt-project.xml the line
<inherits name='com.eemi.gwt.tour.GwtTour'/>


When I add the following line in the code
Tour tour = new Tour("myTour");

Compiling in SDM returns an error "failed"
Console-Log:
Linking modules
   
Bootstrap link for command-line module 'at.mlux.oha'
     
Linking module 'oha'
         
Invoking Linker Cross-Site-Iframe
           
Ignoring the following script tags in the gwt.xml file
hopscotch
-0.1.js
....
....
src
='{feedAuthorAvatarURL}'> (:22)
         
Computing all possible rebind results for 'com.eemi.gwt.tour.client.resources.GwtTourResources'
           
Rebinding com.eemi.gwt.tour.client.resources.GwtTourResources
               
Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
                 
Creating assignment for css()
                     
Finding resources
                       
[ERROR] Resource hopscotch.css not found. Is the name specified as ClassLoader.getResource() would expect?
                 
Creating assignment for js()
                     
Finding resources
                       
[ERROR] Resource hopscotsch-0.1.2.min.js not found. Is the name specified as ClassLoader.getResource() would expect?
         
[ERROR] Errors in 'com/eemi/gwt/tour/client/GwtTour.java'
           
[ERROR] Line 57: Failed to resolve 'com.eemi.gwt.tour.client.resources.GwtTourResources' via deferred

What went wrong?

--
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-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.com/

--
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-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.com/

--
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.

--
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