gwt 2.7 - GWT 2.7.0 Compile fails [ERROR] Unable to find class java/lang/Object -


i have project builds in 2.6.1 , fails build in 2.7.0. have hunted internet answer find none.

here output maven build:

... uninteresting stuff removed

[info] compiling module xxxx [info]    looking precompiled archives.  disable, use -dgwt.usearchives=false [info]    loading archived module: jar:file:/c:/users/3433/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/core/core.gwtar 

...

[info]    compiling... [info]       compilation completed in 5,95 seconds [info]    invalid unit: com.google.gwt.validation.client.impl.basegwtconfiguration [info]    invalid unit: com.google.gwt.validation.client.spi.gwtvalidationprovider 

... other invalid units removed

[info]    invalid unit: com.google.gwt.validation.client.spi.baseconfigurationstate [info]    invalid unit: java.lang.string [info]    invalid units found: 11 [info]    compiling... [info]       compilation completed in 0,04 seconds [info]    added 3762 units cache since last cleanup. [info]    tracing compile failure path type 'java.lang.string' [info]       errors in 'jar:file:/c:/users/3433/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/emul/java/lang/string.java' [info]          line 976: method getdefault() undefined type locale [info]    removing invalidated units [info] wrote 3762 units persistent cache. [info]    resolving java.util.locale [info]       found type 'java.util.locale' [info]          [warn] unable resolve supertype java/lang/object 

many errors removed...

[info]    resolving com.google.gwt.core.client.asyncprovider [info]       found type 'com.google.gwt.core.client.asyncprovider' [info]          [error] unable find class java/lang/object  [info]          resolving method [info]             found type 'com.google.gwt.core.client.callback' [info]                [error] unable find class java/lang/object 

hundreds of similar errors removed

[info]    tracing compile failure path type 'java.lang.object' [info]       [error] errors in 'file:/usr/local/google/home/dankurka/gwt/user/super/com/google/gwt/emul/java/lang/object.java' [info]          [error] java.lang.string cannot resolved type 

what dan kurka's home path doing in build?

any ideas?

i know old post, had same problem, thought post findings.

in case, moving gwt 2.5.1 2.7.0. had java.util.locale class in our code gwt compiler had source required emulation, , didn't match structure of same class in gwt 2.7.0. had add missing methods, , fine after that.

to find cause, had recompile -dgwt.loglevel=debug parameter. without set, root cause of problem hidden. when compiled log level set, able see problem was:

[info]    compiling... [info]       30% complete (etr: 9 seconds) [info]       30% complete (etr: 9 seconds) [info]       30% complete (etr: 9 seconds) [info]       30% complete (etr: 9 seconds) [info]       40% complete (etr: 8 seconds) [info]       50% complete (etr: 6 seconds) [info]       60% complete (etr: 4 seconds) [info]       70% complete (etr: 3 seconds) [info]       80% complete (etr: 2 seconds) [info]       90% complete (etr: 1 seconds) [info]       100% complete (etr: 0 seconds) [info]       compilation completed in 11.10 seconds [info]    java.util.locale isn't structurally same. [info]    invalid unit: java.lang.string [info]    invalid units found: 1 [info]    compiling... [info]       compilation completed in 0.02 seconds [info]    added 5097 units cache since last cleanup. [info]    tracing compile failure path type 'java.lang.string' [info]       errors in 'jar:file:/users/randymay/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/emul/java/lang/string.java' [info]          line 991: method getdefault() undefined type locale [info]          line 976: method getdefault() undefined type locale [info]       checked 1 dependencies errors. 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -