2

在 Eclipse 中运行 GWT 应用程序时出现 unitcache 异常。

我不明白为什么会这样......我还从war文件夹中删除了缓存文件和部署文件夹并编译了应用程序,但它没有工作......

我还重新启动了 Eclipse IDE 并尝试了,但结果相同,它停止到“loadCompleteLatch.countDown();” 来自 PersistentUnitCache.java 文件的行...

以下是我得到的例外:

Exception in thread "UnitCacheLoader" java.lang.RuntimeException: Unable to read from byte cache
    at com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:166)
    at com.google.gwt.dev.util.DiskCacheToken.readObject(DiskCacheToken.java:87)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
    at com.google.gwt.dev.javac.PersistentUnitCache.loadUnitMap(PersistentUnitCache.java:493)
    at com.google.gwt.dev.javac.PersistentUnitCache.access$000(PersistentUnitCache.java:92)
    at com.google.gwt.dev.javac.PersistentUnitCache$UnitCacheMapLoader.run(PersistentUnitCache.java:122)
Caused by: java.io.StreamCorruptedException: unexpected EOF in middle of data block
    at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2512)
    at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2675)
    at java.io.ObjectInputStream.read(ObjectInputStream.java:862)
    at java.io.InputStream.read(InputStream.java:101)
    at com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:154)
    ... 16 more

如果有人知道解决方案,请告诉我...在此先感谢...

4

1 回答 1

4

得到了解决方案.....我刚刚从我的项目文件夹中删除了gwt-unitCache文件夹,这是enterprize建议的解决方案......

感谢他

于 2012-07-21T07:28:59.737 回答