Tuesday, February 14, 2017

Re: "unread block data" exception when compiling

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?

On Monday, January 30, 2017 at 3:54:12 PM UTC-8, Paul Mazzuca wrote:
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.




On Monday, January 30, 2017 at 3:27:02 PM UTC-8, Paul Mazzuca wrote:

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


--
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment