The symptom of this problem is that after updating GWT, you get the
following exceptions similar to the following:
[WARN] Error reading cache file:
/tmp/me/gwt-unitCache/gwt-unitCache-0000012F28614915
java.io.InvalidClassException: com.google.gwt.dev.javac.Dependencies;
local class incompatible: stream classdesc serialVersionUID =
4461785342388877006, local class serialVersionUID = -308718918430258746
at
java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:579)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1600)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1749)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1963)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1887)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
at
com.google.gwt.dev.javac.PersistentUnitCache.loadUnitMap(PersistentUnitCache.java:472)
at
com.google.gwt.dev.javac.PersistentUnitCache.access$000(PersistentUnitCache.java:91)
at
com.google.gwt.dev.javac.PersistentUnitCache$UnitCacheMapLoader.run(PersistentUnitCache.java:120)
The data following that exception in the file is ignored, and the cache
goes on to operate normally. You'll keep getting those errors until the
next time the cache logs are consolidated (every 10 runs or so)
This change handles the ClassNotFoundException differently and quietly
removes the file.
http://gwt-code-reviews.appspot.com/1412801/
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors