Henry, I think you are our expert on caches.  Perhaps you could take a look at 
this?

I suspect the issue is that André's change is moving us from Java 1.4 to 1.5 
which invalidates all the serialized objects in the caches.  It's nice that the 
cache seems to self-repair itself (by deleting each object that it tries to 
fetch when the serialization fails), but Don and I were both expecting that we 
should have been able to head these errors off by doing an `ant clean`.  It 
seems there are still caches that hang around after `ant clean`.

I filed http://jira.openlaszlo.org/jira/browse/LPP-9733 and assigned it to you.

On 2011-02-02, at 20:54, Donald Anderson wrote:

> 2) I also got the cache errors that Tucker mentioned.  I definitely did an 
> ant clean before building.
> 
> solo-compile-file:
>     [echo] Compiling explore-nav.lzx
>     [echo] arg: --runtime=swf10 explore-nav.lzx
>     [echo] Using LPS_HOME: /Users/clients/laszlo/src/svn/openlaszlo/trunk-d
>     [java] can't load cache file: 1296659464239.dat
>     [java] exception: 
>     [java] java.io.InvalidClassException: org.openlaszlo.cache.CachedInfo; 
> local class incompatible: stream classdesc serialVersionUID = 
> -8931702427313962763, local class serialVersionUID = 4726487588606762594
>     [java]    at 
> java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
>     [java]    at 
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
>     [java]    at 
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>     [java]    at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>     [java]    at 
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>     [java]    at 
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>     [java]    at org.openlaszlo.cache.Cache$Item.<init>(Cache.java:1018)
>     [java]    at org.openlaszlo.cache.Cache.loadFromDirectory(Cache.java:742)
>     [java]    at org.openlaszlo.cache.Cache.<init>(Cache.java:178)
>     [java]    at 
> org.openlaszlo.compiler.CompilerMediaCache.<init>(CompilerMediaCache.java:49)
>     [java]    at org.openlaszlo.compiler.Main.lzc(Main.java:362)
>     [java]    at org.openlaszlo.compiler.Main.main(Main.java:116)
>     [java] deleting cache files for : 1296659464239.dat
>     [java] can't load cache file: 1296659464702.dat
>     [java] exception: 
>     [java] java.io.InvalidClassException: org.openlaszlo.cache.CachedInfo; 
> local class incompatible: stream classdesc serialVersionUID = 
> -8931702427313962763, local class serialVersionUID = 4726487588606762594
>     [java]    at 
> java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
>     [java]    at 
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
>     [java]    at 
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>     [java]    at 
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>     [java]    at 
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>     [java]    at 
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>     [java]    at org.openlaszlo.cache.Cache$Item.<init>(Cache.java:1018)
>     [java]    at org.openlaszlo.cache.Cache.loadFromDirectory(Cache.java:742)
>     [java]    at org.openlaszlo.cache.Cache.<init>(Cache.java:178)
>     [java]    at 
> org.openlaszlo.compiler.CompilerMediaCache.<init>(CompilerMediaCache.java:49)
>     [java]    at org.openlaszlo.compiler.Main.lzc(Main.java:362)
>     [java]    at org.openlaszlo.compiler.Main.main(Main.java:116)
>     [java] deleting cache files for : 1296659464702.dat
>     [java] can't load cache file: 1296659464725.dat
> 
> and a whole lot more of the same.  It seemed to fix itself, with a second 
> 'ant build' (even without a clean between) the problem was gone.


Reply via email to