Wednesday, December 19, 2012

Re: UnitCacheLoader Exception oO

In this scenario cache has become corrupt, so if you remove folder gwt-UnitCache from your project, this becomes fine in most scenarios.

Deepak



On Friday, 9 December 2011 17:24:55 UTC+5:30, Markus Unger wrote:
I got the following Exception and have no idea what's wrong. 5 Minutes
ago my Project was running ...

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.GeneratedMethodAccessor2.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:
991)
        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:102)
        at
com.google.gwt.dev.util.DiskCache.transferFromStream(DiskCache.java:
154)
        ... 16 more

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/QUJ3pvpd3rEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment