Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    GWT 2.8-SNAPSHOT and SmartGWT 4.1p

    During the GWT compile I get the following messages. The compile completes successfully despite the error, and everything appears to run as expected but I am uncertain what that particular Linker is attempting to accomplish.

    Code:
    Compiling module xxxx
    [INFO]    [WARN] Warnings in 'jar:file:/.m2/repository/com/isomorphic/smartgwt/power/smartgwt-power/4.1-p20150628/smartgwt-power-4.1-p20150628.jar!/com/smartgwt/client/widgets/calendar/Calendar.java'
    [INFO]       [WARN] Line 3374: Referencing deprecated class 'com.smartgwt.client.widgets.calendar.events.EventHoverHTMLEvent'
    [INFO]    [WARN] JSNI method com.smartgwt.client.widgets.BaseWidget.wrapDestroy()V calls method java.lang.Object.getClass()Ljava/lang/Class;. Instance java.lang.Object methods should not be called on String, Array or JSO instances.
    [INFO]    [WARN] JSNI method com.smartgwt.client.core.BaseClass.wrapDestroy()V calls method java.lang.Object.getClass()Ljava/lang/Class;. Instance java.lang.Object methods should not be called on String, Array or JSO instances.
    [INFO] Linking into xxxx
    [INFO]    Invoking Linker ScriptInjector
    [INFO]       [ERROR] Encountered an exception while trying to resolve the ModuleDef for gsui
    [INFO] java.lang.NoSuchMethodException: com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(com.google.gwt.core.ext.TreeLogger, com.google.gwt.dev.CompilerContext, java.lang.String)
    [INFO] 	at java.lang.Class.getDeclaredMethod(Class.java:2130)
    [INFO] 	at com.smartgwt.linker.SmartGwtScriptInjector.forceScriptLoad(SmartGwtScriptInjector.java:62)
    [INFO] 	at com.smartgwt.linker.SmartGwtScriptInjector.link(SmartGwtScriptInjector.java:116)
    [INFO] 	at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeFinalLink(StandardLinkerContext.java:340)
    [INFO] 	at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:459)
    [INFO] 	at com.google.gwt.dev.Link.link(Link.java:178)
    [INFO] 	at com.google.gwt.dev.Compiler.run(Compiler.java:237)
    [INFO] 	at com.google.gwt.dev.Compiler.run(Compiler.java:156)
    [INFO] 	at com.google.gwt.dev.Compiler$1.run(Compiler.java:117)
    [INFO] 	at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
    [INFO] 	at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
    [INFO] 	at com.google.gwt.dev.Compiler.main(Compiler.java:124)

    #2
    How did you obtain the GWT 2.8 SNAPSHOT SDK?

    Comment


      #3
      We use Maven

      Code:
      <properties>
              <gwt.version>2.8.0-SNAPSHOT</gwt.version>
      </properties>
      
      <dependencies>
              <dependency>
                  <groupId>com.google.gwt</groupId>
                  <artifactId>gwt-user</artifactId>
                  <version>${gwt.version}</version>
                  <scope>provided</scope>
              </dependency>
              <dependency>
                  <groupId>com.google.gwt</groupId>
                  <artifactId>gwt-codeserver</artifactId>
                  <version>${gwt.version}</version>
              </dependency>
      </dependencies>
      
      <build>
              <plugins>
                   <plugin>
                      <groupId>org.codehaus.mojo</groupId>
                      <artifactId>gwt-maven-plugin</artifactId>
                      <version>2.7.0</version>
                      <dependencies>
                          <dependency>
                              <groupId>com.google.gwt</groupId>
                              <artifactId>gwt-user</artifactId>
                              <version>${gwt.version}</version>
                          </dependency>
                          <dependency>
                              <groupId>com.google.gwt</groupId>
                              <artifactId>gwt-dev</artifactId>
                              <version>${gwt.version}</version>
                          </dependency>
                          <dependency>
                              <groupId>com.google.gwt</groupId>
                              <artifactId>gwt-codeserver</artifactId>
                              <version>${gwt.version}</version>
                          </dependency>
                      </dependencies>
                      <executions>
                          <execution>
                              <goals>
                                  <goal>compile</goal>
                              </goals>
                              <configuration>
                                  <sourceLevel>1.8</sourceLevel>
                                  <strict>true</strict>
                                  <failOnError>true</failOnError>
                                  <extraJvmArgs>-javaagent:${org.projectlombok:lombok:jar}=ECJ</extraJvmArgs>
                                  <style>${gwt.compile.mode}</style>
                                  <logLevel>WARN</logLevel>
                              </configuration>
                          </execution>
                      </executions>
                  </plugin>
              </plugins>
      </build>
      You may need to specify the repository
      Code:
      <repository>
            <id>google-snapshots</id>
            <name>Google Snapshots</name>
            <url>https://oss.sonatype.org/content/repositories/google-snapshots/</url>
            <releases><enabled>false</enabled></releases>
            <snapshots><enabled>true</enabled></snapshots>
          </repository>

      Comment


        #4
        We've applied a fix to SGWT 4.1p and newer which should avoid the error. It will be in the nightlies dated 2015-08-08.

        Comment


          #5
          That fixed it, thank you

          Comment

          Working...
          X