I suspect that lzc is using the java tmp dir for the compilation manage
cache
In Main.lzx it says
String tmpdirstr = System.getProperty("java.io.tmpdir");
String cachetmpdirstr = tmpdirstr + File.separator + "lzccache";
(new File(cachetmpdirstr)).mkdirs();
String mediaCacheDir = cachetmpdirstr + File.separator + "cmcache";
String scriptCacheDir = cachetmpdirstr + File.separator + "scache";
If I want to add something to the ant "clean" target which deletes the
tmp/lzccache dir,
anyone know how I do that? I Need to get the value of java.io.tmpdir from
ant.
Does anyone know how to get the value of a system property like that within
ant?
On Thu, Feb 3, 2011 at 7:42 AM, P T Withington <[email protected]> wrote:
> 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.
>
>
--
Henry Minsky
Software Architect
[email protected]