Wednesday, November 30, 2016

Re: GWT 2.8 compile fails; 2.7 works

Here's the remainder of the stack trace

 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
 
... 46 more
           
[ERROR] at Loader.java(29): GWT.create(Loader$LoaderUiBinder.class)
               com
.google.gwt.dev.jjs.ast.JMethodCall
           
[ERROR] at Loader.java(29): (Loader$LoaderUiBinder) GWT.create(Loader$LoaderUiBinder.class)
               com
.google.gwt.dev.jjs.ast.JCastOperation
           
[ERROR] at Loader.java(29): static Loader$LoaderUiBinder uiBinder = (Loader$LoaderUiBinder) GWT.create(Loader$LoaderUiBinder.class)
               com
.google.gwt.dev.jjs.ast.JDeclarationStatement
           
[ERROR] at Loader.java(24): {
 
Composite.$clinit();
 
static Loader$LoaderUiBinder uiBinder = (Loader$LoaderUiBinder) GWT.create(Loader$LoaderUiBinder.class);
}
               com
.google.gwt.dev.jjs.ast.JBlock
           
[ERROR] at Loader.java(24): {
 
Composite.$clinit();
 
static Loader$LoaderUiBinder uiBinder = (Loader$LoaderUiBinder) GWT.create(Loader$LoaderUiBinder.class);
}
               com
.google.gwt.dev.jjs.ast.JMethodBody
           
[ERROR] at Loader.java(24): com.snkv.peruse.client.Loader.$clinit()V
               com
.google.gwt.dev.jjs.ast.JMethod
     
[ERROR] Compiler returned false


On Wednesday, November 30, 2016 at 2:45:35 PM UTC-5, Velusamy Velu wrote:
Oops! I do get the error. I was wrong when I said it worked for me. When I attempted to change the GWT version from 2.7.0 to 2.8.0 in eclipse, eclipse switched it back to 2.7.0 for reasons I cannot figure out. Given below are the offending UiBinder code, the corresponding Java code, and the stack trace when switching a running application from GWT 2.7 to 2.8. Any help would be greatly appreciated.

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
  xmlns:g="urn:import:com.google.gwt.user.client.ui"
 
xmlns:m="urn:import:gwt.material.design.client.ui">
 
<g:HTMLPanel>
   
<g:PopupPanel ui:field="launchPad" styleName="launch">
          <m:MaterialColumn ui:field="container" shadow="3">
                  <!-- Dialog title -->
                  <m:MaterialPanel styleName="centeredContentDiv peruseStandardBackground noPadding">
                    <m:MaterialLabel styleName="launchTitle">PeruseLab - Loading your drawings...</m:MaterialLabel>
                    <m:MaterialProgress type="INDETERMINATE" enabled="false" ui:field="progressBar" />
                    <!-- The above shows the progress bar while retrieving drawing(s) for user -->
                  </m:MaterialPanel>
               </m:MaterialColumn>
            </g:PopupPanel>
      </g:HTMLPanel>
</ui:UiBinder>

public class Loader extends Composite {

   
interface LoaderUiBinder extends UiBinder<Widget, Loader> {
   
}

    
private static LoaderUiBinder uiBinder = GWT.create(LoaderUiBinder.class);

   
@UiField
   
PopupPanel launchPad;

    
@UiField
   
MaterialColumn container;

    
public Loader() {
        initWidget
(uiBinder.createAndBindUi(this));
   
}

    public void hide() {
        clear
();
        launchPad
.hide(true);
   
}

   
public void show() {
        launchPad
.show();
   
}

    private void clear() {
       
while (container.getWidgetCount() > 0) {
            container
.remove(0);
       
}
   
}
}


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;Lcom/google/gwt/dev/resource/ResourceOracle;Lcom/google/gwt/resources/rg/GssResourceGenerator$GssOptions;)V
 at com
.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:174)
 at com
.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:128)
 at com
.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
 at com
.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:745)
 at com
.google.<span style="color: #000;" class="styled-by-pret

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

No comments:

Post a Comment