Unusual (for me) GWT compile messages
Hi,
-- I am running Eclipse with GWT 2.5.1 and the ADT bundle on a Windows 7 box. I've been writing simple GWT apps for a while now. I am not a java expert but things have generally worked out. I am seeing a number of compile issues that i have not seen before and i am looking for guidance.
First, there are no errors or warnings reported in the code. During the compile I have "LogLevel" set to Track based on a different set of messages.
When I do a GWT Compile I see:
[ERROR] Failure in unit cache map load.
[ERROR] Stack overflow; to increase the stack size, use the -Xss flag at startup (java -Xss1M ...)
Then a few "The method compare(int, int) is undefined for the type Integer".
There are a ton of output lines i am trimming as many as I dare below.
What have I tried:
= I don't know what the "Failure in unit cache map load" message means
= for the stackoverflow I have increased the size to 10M "-Xss1M" but I'm not sure what is reasonable number really is.
= For the "compare" issues I'm not sure what is happening there. In each case i am trying something like:
TreeSet<Reservation> ITEMS = new TreeSet<Reservation>(
new JSONObjectComparator());
class JSONObjectComparator implements Comparator<Reservation> {
@Override
public int compare(Reservation o1, Reservation o2) {
return java.lang.Integer.compare(o1.getReservationID(), o2.getReservationID());
}
}
The trimmed compile output...
Public resources found in...
Translatable source found in...
Persistent unit cache dir set to: X:\repository\EMS-Test\EMS-Test\war\..\gwt-unitCache
Compiling module edu.illinois.beckman.its.EMS_Test
Looking for previously cached Compilation Units in X:\repository\EMS-Test\EMS-Test\war\..\gwt-unitCache
Looking for precompiled archives. To disable, use -Dgwt.usearchives=false
Loading archived module: jar:file:/C:/me/ANDROID/adt-bundle-windows-x86_64-20130729/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/gwt-user.jar!/com/google/gwt/user/User.gwtar
gwt-unitCache-00000141A30FE5A3: Load complete
[...]
gwt-unitCache-00000141DB9C3938: Load complete
[ERROR] Failure in unit cache map load.
java.util.concurrent.ExecutionException: java.lang.StackOverflowError
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.google.gwt.dev.javac.PersistentUnitCache.awaitUnitCacheMapLoad(PersistentUnitCache.java:466)
at com.google.gwt.dev.javac.PersistentUnitCache.find(PersistentUnitCache.java:391)
at com.google.gwt.dev.javac.CompilationStateBuilder.addArchive(CompilationStateBuilder.java:365)
at com.google.gwt.dev.ArchivePreloader.preloadArchives(ArchivePreloader.java:65)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:243)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
Caused by: java.lang.StackOverflowError
at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
at java.io.ObjectInputStream.read(Unknown Source)
at java.io.InputStream.read(Unknown Source)
at com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:159)
at com.google.gwt.dev.util.DiskCacheToken.readObject(DiskCacheToken.java:87)
[...]
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
[ERROR] Stack overflow; to increase the stack size, use the -Xss flag at startup (java -Xss1M ...)
Loading archived module: jar:file:/C:/me/ANDROID/adt-bundle-windows-x86_64-20130729/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/gwt-user.jar!/com/google/gwt/core/Core.gwtar
Loading archived module: jar:file:/C:/me/ANDROID/adt-bundle-windows-x86_64-20130729/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/gwt-user.jar!/com/google/gwt/regexp/RegExp.gwtar
Loading archived module: jar:file:/C:/me/ANDROID/adt-bundle-windows-x86_64-20130729/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/gwt-user.jar!/com/google/web/bindery/event/Event.gwtar
Loading archived module: jar:file:/C:/me/ANDROID/adt-bundle-windows-x86_64-20130729/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/gwt-user.jar!/com/google/gwt/json/JSON.gwtar
Loading archived module: jar:file:/C:/me/ANDROID/adt-bundle-windows-x86_64-20130729/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/gwt-user.jar!/com/google/gwt/logging/Logging.gwtar
Found 2750 cached/archived units. Used 2750 / 2758 units from cache.
Compiling...
Compilation completed in 11.67 seconds
Added 2756 units to cache since last cleanup.
Validating units:
Errors in 'file:/X:/repository/EMS-Test/EMS-Test/src/edu/college/its/client/reservation/Reservation.java'
Line 42: The method compare(int, int) is undefined for the type Integer
Line 57: The method compare(int, int) is undefined for the type Integer
Errors in 'file:/X:/repository/EMS-Test/EMS-Test/src/edu/college/its/client/reservation/ReservationList.java'
Line 26: The method compare(int, int) is undefined for the type Integer
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/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home