"unread block data" exception when compiling

65 views
Skip to first unread message

Paul Mazzuca

unread,
Jan 30, 2017, 6:27:02 PM1/30/17
to GWT Users

I have two projects, each work independently using GWT 2.8 with Java 8. When I create a module of one of the projects, and load that module into the other project, I receive the following error.   Any thoughts?  I have cleaned the projects multiple times and rebuilt from scratch. I used to have this working with beta1 compiling with Java 7.


[INFO] com.google.gwt.thirdparty.guava.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: unread block data

[INFO] at com.google.gwt.thirdparty.guava.common.util.concurrent.Futures.wrapAndThrowUnchecked(Futures.java:2060)

[INFO] at com.google.gwt.thirdparty.guava.common.util.concurrent.Futures.getUnchecked(Futures.java:2045)

[INFO] at com.google.gwt.dev.MinimalRebuildCacheManager.syncReadDiskCache(MinimalRebuildCacheManager.java:264)

[INFO] at com.google.gwt.dev.MinimalRebuildCacheManager.getCache(MinimalRebuildCacheManager.java:104)

[INFO] at com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:357)

[INFO] at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:175)

[INFO] at com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:134)

[INFO] at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:135)

[INFO] at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:113)

[INFO] at com.google.gwt.dev.codeserver.JobRunner.access$000(JobRunner.java:37)

[INFO] at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:90)

[INFO] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

[INFO] at java.util.concurrent.FutureTask.run(FutureTask.java:266)

[INFO] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

[INFO] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

[INFO] at java.lang.Thread.run(Thread.java:745)

[INFO] Caused by: java.lang.IllegalStateException: unread block data

[INFO] at java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2431)

[INFO] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1383)

[INFO] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)

[INFO] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)

[INFO] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)

[INFO] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)

[INFO] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)

[INFO] at com.google.gwt.dev.MinimalRebuildCacheManager$2.call(MinimalRebuildCacheManager.java:176)

[INFO] at com.google.gwt.dev.MinimalRebuildCacheManager$2.call(MinimalRebuildCacheManager.java:162)

[INFO] ... 4 more

[INFO]       [WARN] continuing to serve previous version


Paul Mazzuca

unread,
Jan 30, 2017, 6:54:12 PM1/30/17
to GWT Users
Figured it out.  For whatever reason, I mistakenly had gwt-servlet in the pom of the module and that seemed to have caused the inconsistency.   I removed it, and the module loads fine in GWT 2.8.0 with Java 8.

Paul Mazzuca

unread,
Feb 14, 2017, 6:08:40 PM2/14/17
to GWT Users
After adding a new module, I once again have received this error. My best guess is that it is related to the gwt-servlet dependency, however I am at a loss as to what is going on here.  I think it would be hard for anyone to debug, however I was wondering if the stack trace means anything to anyone?
Reply all
Reply to author
Forward
0 new messages