Can't compile GWT app using 2.8.0-SNAPSHOT and Java 8 with gwt-maven-plugin -


i struggling app compile using gwt 2.8.0-snapshot , mojo's gwt-maven-plugin 2.8.0-snapshot

i receive same compiler errors each time:

[info] --- gwt-maven-plugin:2.8.0-snapshot:compile (default) @ usavappv7 --- [error] jul 20, 2016 9:34:23 java.util.prefs.windowspreferences <init> [error] warning: not open/create prefs root node software\javasoft\prefs @ root 0x80000002. windows regcreatekeyex(...) returned error code 5. [info] compiling module com.utilitiessavings.usavappv7.project [info]    [error] internal compiler exception occurred [info] com.google.gwt.dev.jjs.internalcompilerexception: unexpected error during visit. [info]  @ com.google.gwt.dev.jjs.ast.jvisitor.translateexception(jvisitor.java:111) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:276) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:265) [info]  @ com.google.gwt.dev.jjs.ast.jvisitor.accept(jvisitor.java:118) [info]  @ com.google.gwt.dev.jjs.ast.jdeclarationstatement.traverse(jdeclarationstatement.java:49) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor$listcontext.traverse(jmodvisitor.java:88) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.acceptwithinsertremove(jmodvisitor.java:331) [info]  @ com.google.gwt.dev.jjs.ast.jblock.traverse(jblock.java:92) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) [info]  @ com.google.gwt.dev.jjs.ast.jvisitor.accept(jvisitor.java:139) [info]  @ com.google.gwt.dev.jjs.ast.jvisitor.accept(jvisitor.java:135) [info]  @ com.google.gwt.dev.jjs.ast.jmethodbody.traverse(jmethodbody.java:83) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:265) [info]  @ com.google.gwt.dev.jjs.ast.jmethod.visitchildren(jmethod.java:785) [info]  @ com.google.gwt.dev.jjs.ast.jmethod.traverse(jmethod.java:777) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:265) [info]  @ com.google.gwt.dev.jjs.impl.unifyast.mainloop(unifyast.java:1379) [info]  @ com.google.gwt.dev.jjs.impl.unifyast.exec(unifyast.java:875) [info]  @ com.google.gwt.dev.jjs.javatojavascriptcompiler.unifyjavaast(javatojavascriptcompiler.java:1410) [info]  @ com.google.gwt.dev.jjs.javatojavascriptcompiler.constructjavaast(javatojavascriptcompiler.java:1222) [info]  @ com.google.gwt.dev.jjs.javatojavascriptcompiler.precompile(javatojavascriptcompiler.java:1140) [info]  @ com.google.gwt.dev.jjs.javatojavascriptcompiler.precompile(javatojavascriptcompiler.java:255) [info]  @ com.google.gwt.dev.precompile.precompile(precompile.java:255) [info]  @ com.google.gwt.dev.precompile.precompile(precompile.java:202) [info]  @ com.google.gwt.dev.precompile.precompile(precompile.java:143) [info]  @ com.google.gwt.dev.compiler.compile(compiler.java:204) [info]  @ com.google.gwt.dev.compiler.compile(compiler.java:155) [info]  @ com.google.gwt.dev.compiler.compile(compiler.java:144) [info]  @ com.google.gwt.dev.compiler$1.run(compiler.java:118) [info]  @ com.google.gwt.dev.compiletaskrunner.dorun(compiletaskrunner.java:55) [info]  @ com.google.gwt.dev.compiletaskrunner.runwithappropriatelogger(compiletaskrunner.java:50) [info]  @ com.google.gwt.dev.compiler.main(compiler.java:125) [info] caused by: java.lang.abstractmethoderror: org.apache.xerces.dom.elementnsimpl.setuserdata(ljava/lang/string;ljava/lang/object;lorg/w3c/dom/userdatahandler;)ljava/lang/object; [info]  @ com.google.gwt.uibinder.rebind.w3cdocumentbuilder.startelement(w3cdocumentbuilder.java:127) [info]  @ org.apache.xerces.parsers.abstractsaxparser.startelement(unknown source) [info]  @ org.apache.xerces.impl.dtd.xmldtdvalidator.startelement(unknown source) [info]  @ org.apache.xerces.impl.xmlnsdocumentscannerimpl.scanstartelement(unknown source) [info]  @ org.apache.xerces.impl.xmlnsdocumentscannerimpl$nscontentdispatcher.scanrootelementhook(unknown source) [info]  @ org.apache.xerces.impl.xmldocumentfragmentscannerimpl$fragmentcontentdispatcher.dispatch(unknown source) [info]  @ org.apache.xerces.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) [info]  @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) [info]  @ org.apache.xerces.parsers.dtdconfiguration.parse(unknown source) [info]  @ org.apache.xerces.parsers.xmlparser.parse(unknown source) [info]  @ org.apache.xerces.parsers.abstractsaxparser.parse(unknown source) [info]  @ javax.xml.parsers.saxparser.parse(saxparser.java:392) [info]  @ com.google.gwt.uibinder.rebind.w3cdomhelper.documentfor(w3cdomhelper.java:74) [info]  @ com.google.gwt.uibinder.rebind.uibindergenerator.getw3cdoc(uibindergenerator.java:208) [info]  @ com.google.gwt.uibinder.rebind.uibindergenerator.generateonce(uibindergenerator.java:183) [info]  @ com.google.gwt.uibinder.rebind.uibindergenerator.generate(uibindergenerator.java:128) [info]  @ com.google.gwt.core.ext.incrementalgenerator.generatenonincrementally(incrementalgenerator.java:40) [info]  @ com.google.gwt.dev.javac.standardgeneratorcontext.rungeneratorincrementally(standardgeneratorcontext.java:745) [info]  @ com.google.gwt.dev.cfg.rulegeneratewith.realize(rulegeneratewith.java:103) [info]  @ com.google.gwt.dev.shell.standardrebindoracle$rebinder.rebind(standardrebindoracle.java:78) [info]  @ com.google.gwt.dev.shell.standardrebindoracle.rebind(standardrebindoracle.java:262) [info]  @ com.google.gwt.dev.shell.standardrebindoracle.rebind(standardrebindoracle.java:251) [info]  @ com.google.gwt.dev.precompilationcontextcreator$1.getallpossiblerebindanswers(precompilationcontextcreator.java:86) [info]  @ com.google.gwt.dev.jjs.impl.unifyast$unifyvisitor.createstaticrebindexpression(unifyast.java:493) [info]  @ com.google.gwt.dev.jjs.impl.unifyast$unifyvisitor.createrebindexpression(unifyast.java:463) [info]  @ com.google.gwt.dev.jjs.impl.unifyast$unifyvisitor.handlemagicmethodcall(unifyast.java:588) [info]  @ com.google.gwt.dev.jjs.impl.unifyast$unifyvisitor.endvisit(unifyast.java:293) [info]  @ com.google.gwt.dev.jjs.ast.jmethodcall.traverse(jmethodcall.java:268) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.traverse(jmodvisitor.java:361) [info]  @ com.google.gwt.dev.jjs.ast.jmodvisitor.accept(jmodvisitor.java:273) [info]  ... 35 more [info]       [error] @ com_gwtplatform_mvp_client_desktopginjector_desktopginjectorginjector_fragment.java(132): gwt.create(applicationview$binder.class) [info]          com.google.gwt.dev.jjs.ast.jmethodcall [info]       [error] @ com_gwtplatform_mvp_client_desktopginjector_desktopginjectorginjector_fragment.java(132): object created = gwt.create(applicationview$binder.class) [info]          com.google.gwt.dev.jjs.ast.jdeclarationstatement [info]       [error] @ com_gwtplatform_mvp_client_desktopginjector_desktopginjectorginjector_fragment.java(131): { [info]   object created = gwt.create(applicationview$binder.class); [info]   assert created instanceof applicationview$binder; [info]   applicationview$binder result = (applicationview$binder) created; [info]   this.memberinject_key$type$com$utilitiessavings$usavappv7$client$application$applicationview$binder$_annotation$$none$$(result); [info]   return result; [info] } [info]          com.google.gwt.dev.jjs.ast.jblock [info]       [error] @ com_gwtplatform_mvp_client_desktopginjector_desktopginjectorginjector_fragment.java(131): { [info]   object created = gwt.create(applicationview$binder.class); [info]   assert created instanceof applicationview$binder; [info]   applicationview$binder result = (applicationview$binder) created; [info]   this.memberinject_key$type$com$utilitiessavings$usavappv7$client$application$applicationview$binder$_annotation$$none$$(result); [info]   return result; [info] } [info]          com.google.gwt.dev.jjs.ast.jmethodbody [info]       [error] @ com_gwtplatform_mvp_client_desktopginjector_desktopginjectorginjector_fragment.java(131): com.utilitiessavings.usavappv7.client.application.com_gwtplatform_mvp_client_desktopginjector_desktopginjectorginjector_fragment.get_key$type$com$utilitiessavings$usavappv7$client$application$applicationview$binder$_annotation$$none$$()lcom/utilitiessavings/usavappv7/client/application/applicationview$binder; [info]          com.google.gwt.dev.jjs.ast.jmethod [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 02:38 min [info] finished at: 2016-07-20t09:34:52+01:00 [info] final memory: 65m/534m 

i don't know whether problem java 8, gwt, or gwtp.

any advice on how investigate further or causing appreciated.

edit:

pom.xml (snippets)

<properties>     <!-- client -->     <gwt.version>2.8.0-snapshot</gwt.version>     <gwtp.version>1.5.1</gwtp.version>     <gin.version>2.1.2</gin.version>      <gwtbootstrap3.version>0.9.3</gwtbootstrap3.version>     <gwtbootstrap3-extras.version>0.9.2</gwtbootstrap3-extras.version>      <gwt-log.version>3.3.2</gwt-log.version>      <!-- server -->     <gae.version>1.9.38</gae.version>     <guice.version>4.1.0</guice.version>     <objectify.version>5.1.13</objectify.version>      <persistence-api.version>1.0.2</persistence-api.version>     <servlet-api.version>2.5</servlet-api.version>     <javax.validation.version>1.0.0.ga</javax.validation.version>     <hibernate-validator.version>4.1.0.final</hibernate-validator.version>     <slf4j.version>1.7.9</slf4j.version>     <jackson.version>2.7.0-rc2</jackson.version>      <guava-version>20.0-snapshot</guava-version>      <!-- testing -->     <junit.version>4.12</junit.version>     <jukito.version>1.4.1</jukito.version>     <cucumber.version>1.2.4</cucumber.version>      <!-- maven -->     <gwt-maven-plugin.version>2.8.0-snapshot</gwt-maven-plugin.version>     <maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version>     <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>     <maven-resources-plugin.version>2.5</maven-resources-plugin.version>     <maven-processor-plugin.version>2.0.5</maven-processor-plugin.version>     <maven-build-helper-plugin.version>1.10</maven-build-helper-plugin.version>      <target.jdk>1.8</target.jdk>     <project.build.sourceencoding>utf-8</project.build.sourceencoding>     <project.reporting.outputencoding>utf-8</project.reporting.outputencoding>      <webappdirectory>${project.build.directory}/${project.build.finalname}</webappdirectory>      <gae.home>${settings.localrepository}/com/google/appengine/appengine-java-sdk/${gae.version}</gae.home>     <mvn.gae.home>         ${settings.localrepository}/com/google/appengine/appengine-java-sdk/${gae.version}/appengine-java-sdk/appengine-java-sdk-${gae.version}     </mvn.gae.home>  </properties>  <build>      <outputdirectory>${webappdirectory}/web-inf/classes</outputdirectory>      <resources>         <resource>             <directory>src/main/resources</directory>         </resource>         <resource>             <directory>src/main/super</directory>         </resource>         <resource>             <directory>${project.build.directory}/generated-sources/apt</directory>         </resource>         <resource>             <directory>${project.build.directory}/generated-sources/gwt</directory>         </resource>     </resources>      <plugins>          <plugin>             <groupid>org.codehaus.mojo</groupid>             <artifactid>versions-maven-plugin</artifactid>             <version>2.2</version>             <executions>                 <execution>                     <phase>validate</phase>                     <goals>                         <goal>display-dependency-updates</goal>                         <goal>display-plugin-updates</goal>                     </goals>                 </execution>             </executions>         </plugin>          <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>${maven-compiler-plugin.version}</version>             <configuration>                 <source>${target.jdk}</source>                 <target>${target.jdk}</target>                 <encoding>${project.build.sourceencoding}</encoding>                 <proc>none</proc>             </configuration>         </plugin>          <!-- gwt -->         <!-- 'mvn gwt:run' - runs development mode -->         <!-- 'mvn gwt:debug' - runs debug mode -->         <!-- 'mvn gwt:compile' - compiles gwt -->         <!-- 'mvn integration-test' - runs gwt tests (*gwttest.java) -->         <plugin>             <groupid>org.codehaus.mojo</groupid>             <artifactid>gwt-maven-plugin</artifactid>             <version>${gwt-maven-plugin.version}</version>              <configuration>                 <strict>true</strict>                 <testtimeout>180</testtimeout>                 <mode>htmlunit</mode>                 <loglevel>info</loglevel>                 <style>pretty</style>                  <copywebapp>true</copywebapp>                 <hostedwebapp>${webappdirectory}</hostedwebapp>                 <server>com.google.appengine.tools.development.gwt.appenginelauncher</server>                 <appengineversion>${gae.version}</appengineversion>                 <extrajvmargs>-ddatastore.default_high_rep_job_policy_unapplied_job_pct=20 -xmx2g -dappengine.sdk.root=${mvn.gae.home}                 </extrajvmargs>                 <port>8888</port>                 <incremental>false</incremental>                 <bindaddress>0.0.0.0</bindaddress>                 <runtarget>project.html</runtarget>                 <modules>                     <module>com.utilitiessavings.usavappv7.project</module>                 </modules>             </configuration>              <executions>                 <execution>                     <goals>                         <goal>compile</goal>                         <goal>test</goal>                     </goals>                 </execution>             </executions>         </plugin>          <plugin>             <groupid>com.google.appengine</groupid>             <artifactid>gcloud-maven-plugin</artifactid>             <configuration>                 <verbosity>info</verbosity>                 <runtime>java</runtime>             </configuration>             <version>2.0.9.106.v20160420</version>         </plugin> 

libraries

  • java 1.8.0_92
  • maven 3.3.9
  • gwt 2.8.0-snapshot
  • gwtp 1.5.1
  • guava 20.0-snapshot
  • guice 4.1.0
  • gin 2.1.2

upgrading my own comment answer.

i discovered library excel-streaming-reader had dependency on xercesimpl 2.4.0 (from 2006).

i declared additional dependency 2.11.0 solve issue:

<dependency>     <groupid>xerces</groupid>     <artifactid>xercesimpl</artifactid>     <version>2.11.0</version> </dependency> 

i have notified owner of problem. github issue: https://github.com/monitorjbl/excel-streaming-reader/issues/44


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -