[kepler-dev] KAR problem?
Christopher Brooks
cxh at eecs.berkeley.edu
Fri Dec 16 08:43:04 PST 2005
Hi Kevin,
Thanks, that did the trick!
Perhaps the ant full-clean target should remove that directory?
Also, since Java 1.5 is now the default Java on the Sun site, perhaps
we should add source='1.4' to all the java tasks?
I'll update the INSTALL instructions slightly.
I'm fine with what we have now, these are minor points.
_Christopher
--------
Christopher,
Did you try to clean the cache directory? It's in c:/Documents and
Settings/XXXX/.kepler remove the entire contents of this directory.
Kepler should run and compile fine under jdk 5 but you do need to add
the source='1.4' attribute to all the <java> tasks.
Kevin
Christopher Brooks wrote:
>When I start Kepler with "ant run-dev", I'm seeing
>an InvalidClassException.
>I'm running Java 1.4.2_08 under Windows.
>
> [echo] java.library.path=c:/WINDOWS/system32
> [java] Loaded jar:file:/C:/cxh/ptII/lib/ptolemy.jar!/lib/ptII.propert
ies
> [java] Opening user library C:\Documents and Settings\cxh\.ptolemyII\
UserLi
>brary.xml...
> [java] KAR Library directories: [C:\cxh\src\kepler\kar\actors, C:\cxh
\src\k
>epler\kar\directors]
> [java] java.io.InvalidClassException: org.kepler.objectmanager.cache.
KARCac
>heObject; local class incompatible: stream classdesc serialVersionUID = -8
445362
>146164255175, local class serialVersionUID = 1757422123994725235
> [java] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClas
s.java
>:463)
> [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputS
tream.
>java:1521)
> [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStre
am.jav
>a:1435)
> [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInpu
tStrea
>m.java:1626)
> [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream
.java:
>1274)
> [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.
java:3
>24)
> [java] at org.kepler.objectmanager.cache.CacheManager.getCacheObj
ectIte
>rator(CacheManager.java:326)
> [java] at org.kepler.objectmanager.library.LibraryIndex._buildCom
ponent
>Table(LibraryIndex.java:646)
> [java] at org.kepler.objectmanager.library.LibraryIndex._buildNew
Index(
>LibraryIndex.java:613)
> [java] at org.kepler.objectmanager.library.LibraryIndex.<init>(Li
braryI
>ndex.java:96)
> [java] at org.kepler.objectmanager.library.LibraryIndex.getInstan
ce(Lib
>raryIndex.java:207)
> [java] at org.kepler.moml.KSWLibraryBuilder.buildLibrary(KSWLibra
ryBuil
>der.java:143)
> [java] at ptolemy.vergil.VergilApplication.openLibrary(VergilAppl
icatio
>n.java:230)
> [java] at ptolemy.vergil.VergilApplication._createDefaultConfigur
ation(
>VergilApplication.java:418)
> [java] at ptolemy.vergil.VergilApplication._createEmptyConfigurat
ion(Ve
>rgilApplication.java:439)
> [java] at ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLApplic
ation.
>java:875)
> [java] at ptolemy.vergil.VergilApplication._parseArgs(VergilAppli
cation
>.java:512)
> [java] at ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplicatio
n.java
>:208)
> [java] at ptolemy.vergil.VergilApplication.<init>(VergilApplicati
on.jav
>a:105)
> [java] at ptolemy.vergil.VergilApplication$1.run(VergilApplicatio
n.java
>:148)
> [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent
.java:
>178)
> [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
> [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(E
ventDi
>spatchThread.java:201)
> [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Eve
ntDisp
>atchThread.java:151)
> [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchTh
read.j
>ava:145)
> [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchTh
read.j
>ava:137)
> [java] at java.awt.EventDispatchThread.run(EventDispatchThread.ja
va:100
>)
> [java] org.kepler.objectmanager.cache.CacheException: Error creating
CacheO
>bject iterator: org.kepler.objectmanager.cache.KARCacheObject; local class
incom
>patible: stream classdesc serialVersionUID = -8445362146164255175, local c
lass s
>erialVersionUID = 1757422123994725235
> [java] at org.kepler.objectmanager.cache.CacheManager.getCacheObj
ectIte
>rator(CacheManager.java:338)
> [java] at org.kepler.objectmanager.library.LibraryIndex._buildCom
ponent
>Table(LibraryIndex.java:646)
> [java] at org.kepler.objectmanager.library.LibraryIndex._buildNew
Index(
>LibraryIndex.java:613)
> [java] at org.kepler.objectmanager.library.LibraryIndex.<init>(Li
braryI
>ndex.java:96)
> [java] at org.kepler.objectmanager.library.LibraryIndex.getInstan
ce(Lib
>raryIndex.java:207)
> [java] at org.kepler.moml.KSWLibraryBuilder.buildLibrary(KSWLibra
ryBuil
>der.java:143)
> [java] at ptolemy.vergil.VergilApplication.openLibrary(VergilAppl
icatio
>n.java:230)
> [java] at ptolemy.vergil.VergilApplication._createDefaultConfigur
ation(
>VergilApplication.java:418)
> [java] at ptolemy.vergil.VergilApplication._createEmptyConfigurat
ion(Ve
>rgilApplication.java:439)
> [java] at ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLApplic
ation.
>java:875)
> [java] at ptolemy.vergil.VergilApplication._parseArgs(VergilAppli
cation
>.java:512)
> [java] at ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplicatio
n.java
>:208)
> [java] at ptolemy.vergil.VergilApplication.<init>(VergilApplicati
on.jav
>a:105)
> [java] at ptolemy.vergil.VergilApplication$1.run(VergilApplicatio
n.java
>:148)
> [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent
.java:
>178)
> [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
> [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(E
ventDi
>spatchThread.java:201)
> [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Eve
ntDisp
>atchThread.java:151)
> [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchTh
read.j
>ava:145)
> [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchTh
read.j
>ava:137)
> [java] at java.awt.EventDispatchThread.run(EventDispatchThread.ja
va:100
>)
> [java] ptolemy.kernel.util.IllegalActionException: Could not get the
cache
>iterator: Error creating CacheObject iterator: org.kepler.objectmanager.ca
che.KA
>RCacheObject; local class incompatible: stream classdesc serialVersionUID
= -844
>5362146164255175, local class serialVersionUID = 1757422123994725235
> [java] at org.kepler.objectmanager.library.LibraryIndex._buildCom
ponent
>Table(LibraryIndex.java:651)
> [java] at org.kepler.objectmanager.library.LibraryIndex._buildNew
Index(
>LibraryIndex.java:613)
> [java] at org.kepler.objectmanager.library.LibraryIndex.<init>(Li
braryI
>ndex.java:96)
> [java] at org.kepler.objectmanager.library.LibraryIndex.getInstan
ce(Lib
>raryIndex.java:207)
> [java] at org.kepler.moml.KSWLibraryBuilder.buildLibrary(KSWLibra
ryBuil
>der.java:143)
> [java] at ptolemy.vergil.VergilApplication.openLibrary(VergilAppl
icatio
>n.java:230)
> [java] at ptolemy.vergil.VergilApplication._createDefaultConfigur
ation(
>VergilApplication.java:418)
> [java] at ptolemy.vergil.VergilApplication._createEmptyConfigurat
ion(Ve
>rgilApplication.java:439)
> [java] at ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLApplic
ation.
>java:875)
> [java] at ptolemy.vergil.VergilApplication._parseArgs(VergilAppli
cation
>.java:512)
> [java] at ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplicatio
n.java
>:208)
> [java] at ptolemy.vergil.VergilApplication.<init>(VergilApplicati
on.jav
>a:105)
> [java] at ptolemy.vergil.VergilApplication$1.run(VergilApplicatio
n.java
>:148)
> [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent
.java:
>178)
>
> [java] Actor Library built from alternative plugin
> [java] Done
>
>I've tried cleaning and rebuilding and running with Java 1.5.0_05, which
>only got me:
>
>J1_4_Only:
>
>compile-dev:
> [javac] Compiling 786 source files to C:\cxh\src\kepler\build\classes
> [javac] C:\cxh\src\kepler\build\src\org\sdm\spa\MessageBasedWebService
.java:
>87: warning: as of release 1.5, 'enum' is a keyword, and may not be used a
s an i
>dentifier
> [javac] (try -source 1.5 to use 'enum' as a keyword)
> [javac] import org.apache.axis.enum.Style;
> [javac] ^
>
>
>Anyone have any ideas? I'm probably missing something obvious.
>
>_Christopher
>_______________________________________________
>Kepler-dev mailing list
>Kepler-dev at ecoinformatics.org
>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>
>
--------
More information about the Kepler-dev
mailing list