title: Weird GWT compile error
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8521475/exception-in-gwt-rpc-app">exception in GWT RPC app</a>  </p>
  </blockquote>
  
  
  
  <p>When compiling my project (2, I'm getting this exception. Anyone has seen this before?</p>
  
  <pre><code>[ERROR] Failure in unit cache map load.
  java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to read from byte cache
      at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
      at java.util.concurrent.FutureTask.get(FutureTask.java:83)
      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.RuntimeException: Unable to read from byte cache
      at com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:171)
      at com.google.gwt.dev.util.DiskCacheToken.readObject(DiskCacheToken.java:87)
      at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
      at java.util.ArrayList.readObject(ArrayList.java:593)
      at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
      at com.google.gwt.dev.javac.CachedCompilationUnit.readObject(CachedCompilationUnit.java:205)
      at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
      at com.google.gwt.dev.javac.PersistentUnitCache.loadUnitMap(PersistentUnitCache.java:517)
      at com.google.gwt.dev.javac.PersistentUnitCache.access$800(PersistentUnitCache.java:96)
      at com.google.gwt.dev.javac.PersistentUnitCache$4.run(PersistentUnitCache.java:222)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
  Caused by: java.io.StreamCorruptedException: unexpected EOF in middle of data block
      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2494)
      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2657)
      at java.io.ObjectInputStream.read(ObjectInputStream.java:843)
      at java.io.InputStream.read(InputStream.java:82)
      at com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:159)
      ... 40 more
  </code></pre>