[kepler-dev] KAR problem?

Kevin Ruland kruland at ku.edu
Fri Dec 16 09:58:17 PST 2005


Christopher,

I agree with you on all accounts.

The distclean would be most useful because if you've noticed, ant
run-dev copies a bunch of stuff into Windows system folders.

There has been some debate about the .kepler cleaning tasks.  I'm
speaking from memory now, I believe Matt would want such a task to not
be automatically run from run-dev (or run).  But having it part of a
distclean or veryclean or squeakyclean would be acceptable.

I have never seen the exception you recieved but I do know what would
have generated it.  I don't know exactly what you did in order to
generate it.  There are a number of exceptions which are getting thrown
about which need to be made a little bit more user friendly. 

Which brings me to something you probably know about.  Ptolemy likes to
pop up a little "display stack trace" dialog.  The problem with this
dialog is that after clicking on either buttons, the base window opens.
To a naieve user who is accostomed to random mishaps in windows, they
might not be aware that the system is nonfunctional.   Is it possible to
have some classes of exceptions (such as RuntimeException) which go past
that dialog and force the application to abort?  Or better yet, presents
a different dialog which then ends up aborting.

Kevin

Christopher Brooks wrote:

>Hi Kevin.
>
>BTW - On this, I see that the INSTALL file had the proper
>instructions, so this was operator error on my part.
>I'm partly playing devil's advocate here and raising issues that
>other somewhat kepler-naive users will see.
>
>However, I still think ant full-clean should remove the .kepler
>directory.
>
>GNU products often have a distclean rule that brings one back to
>to a start state where no derived files are present.
>
>Perhaps ant distclean should exists?
>
>Also, if this problem will be a regular occurrence, then the stack
>trace message I was seeing should be updated to tell users to
>remove their .kepler directory.  My guess is that this is a one time
>situation though.
>
>Anyway, this is a small potatoes problem and need not be addressed
>anytime soon.
>
>_Christopher
>
>
>
>--------
>
>    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.pro
>   pert
>       ies
>        >     [java] Opening user library C:\Documents and Settings\cxh\.ptolem
>   yII\
>       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.ca
>   che.
>       KARCac
>        >heObject; local class incompatible: stream classdesc serialVersionUID 
>   = -8
>       445362
>        >146164255175, local class serialVersionUID = 1757422123994725235
>        >     [java]     at java.io.ObjectStreamClass.initNonProxy(ObjectStream
>   Clas
>       s.java
>        >:463)
>        >     [java]     at java.io.ObjectInputStream.readNonProxyDesc(ObjectIn
>   putS
>       tream.
>        >java:1521)
>        >     [java]     at java.io.ObjectInputStream.readClassDesc(ObjectInput
>   Stre
>       am.jav
>        >a:1435)
>        >     [java]     at java.io.ObjectInputStream.readOrdinaryObject(Object
>   Inpu
>       tStrea
>        >m.java:1626)
>        >     [java]     at java.io.ObjectInputStream.readObject0(ObjectInputSt
>   ream
>       .java:
>        >1274)
>        >     [java]     at java.io.ObjectInputStream.readObject(ObjectInputStr
>   eam.
>       java:3
>        >24)
>        >     [java]     at org.kepler.objectmanager.cache.CacheManager.getCach
>   eObj
>       ectIte
>        >rator(CacheManager.java:326)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex._buil
>   dCom
>       ponent
>        >Table(LibraryIndex.java:646)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex._buil
>   dNew
>       Index(
>        >LibraryIndex.java:613)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex.<init
>   >(Li
>       braryI
>        >ndex.java:96)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex.getIn
>   stan
>       ce(Lib
>        >raryIndex.java:207)
>        >     [java]     at org.kepler.moml.KSWLibraryBuilder.buildLibrary(KSWL
>   ibra
>       ryBuil
>        >der.java:143)
>        >     [java]     at ptolemy.vergil.VergilApplication.openLibrary(Vergil
>   Appl
>       icatio
>        >n.java:230)
>        >     [java]     at ptolemy.vergil.VergilApplication._createDefaultConf
>   igur
>       ation(
>        >VergilApplication.java:418)
>        >     [java]     at ptolemy.vergil.VergilApplication._createEmptyConfig
>   urat
>       ion(Ve
>        >rgilApplication.java:439)
>        >     [java]     at ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLAp
>   plic
>       ation.
>        >java:875)
>        >     [java]     at ptolemy.vergil.VergilApplication._parseArgs(VergilA
>   ppli
>       cation
>        >.java:512)
>        >     [java]     at ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplic
>   atio
>       n.java
>        >:208)
>        >     [java]     at ptolemy.vergil.VergilApplication.<init>(VergilAppli
>   cati
>       on.jav
>        >a:105)
>        >     [java]     at ptolemy.vergil.VergilApplication$1.run(VergilApplic
>   atio
>       n.java
>        >:148)
>        >     [java]     at java.awt.event.InvocationEvent.dispatch(InvocationE
>   vent
>       .java:
>        >178)
>        >     [java]     at java.awt.EventQueue.dispatchEvent(EventQueue.java:4
>   54)
>        >     [java]     at java.awt.EventDispatchThread.pumpOneEventForHierarc
>   hy(E
>       ventDi
>        >spatchThread.java:201)
>        >     [java]     at java.awt.EventDispatchThread.pumpEventsForHierarchy
>   (Eve
>       ntDisp
>        >atchThread.java:151)
>        >     [java]     at java.awt.EventDispatchThread.pumpEvents(EventDispat
>   chTh
>       read.j
>        >ava:145)
>        >     [java]     at java.awt.EventDispatchThread.pumpEvents(EventDispat
>   chTh
>       read.j
>        >ava:137)
>        >     [java]     at java.awt.EventDispatchThread.run(EventDispatchThrea
>   d.ja
>       va:100
>        >)
>        >     [java] org.kepler.objectmanager.cache.CacheException: Error creat
>   ing 
>       CacheO
>        >bject iterator: org.kepler.objectmanager.cache.KARCacheObject; local c
>   lass
>        incom
>        >patible: stream classdesc serialVersionUID = -8445362146164255175, loc
>   al c
>       lass s
>        >erialVersionUID = 1757422123994725235
>        >     [java]     at org.kepler.objectmanager.cache.CacheManager.getCach
>   eObj
>       ectIte
>        >rator(CacheManager.java:338)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex._buil
>   dCom
>       ponent
>        >Table(LibraryIndex.java:646)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex._buil
>   dNew
>       Index(
>        >LibraryIndex.java:613)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex.<init
>   >(Li
>       braryI
>        >ndex.java:96)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex.getIn
>   stan
>       ce(Lib
>        >raryIndex.java:207)
>        >     [java]     at org.kepler.moml.KSWLibraryBuilder.buildLibrary(KSWL
>   ibra
>       ryBuil
>        >der.java:143)
>        >     [java]     at ptolemy.vergil.VergilApplication.openLibrary(Vergil
>   Appl
>       icatio
>        >n.java:230)
>        >     [java]     at ptolemy.vergil.VergilApplication._createDefaultConf
>   igur
>       ation(
>        >VergilApplication.java:418)
>        >     [java]     at ptolemy.vergil.VergilApplication._createEmptyConfig
>   urat
>       ion(Ve
>        >rgilApplication.java:439)
>        >     [java]     at ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLAp
>   plic
>       ation.
>        >java:875)
>        >     [java]     at ptolemy.vergil.VergilApplication._parseArgs(VergilA
>   ppli
>       cation
>        >.java:512)
>        >     [java]     at ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplic
>   atio
>       n.java
>        >:208)
>        >     [java]     at ptolemy.vergil.VergilApplication.<init>(VergilAppli
>   cati
>       on.jav
>        >a:105)
>        >     [java]     at ptolemy.vergil.VergilApplication$1.run(VergilApplic
>   atio
>       n.java
>        >:148)
>        >     [java]     at java.awt.event.InvocationEvent.dispatch(InvocationE
>   vent
>       .java:
>        >178)
>        >     [java]     at java.awt.EventQueue.dispatchEvent(EventQueue.java:4
>   54)
>        >     [java]     at java.awt.EventDispatchThread.pumpOneEventForHierarc
>   hy(E
>       ventDi
>        >spatchThread.java:201)
>        >     [java]     at java.awt.EventDispatchThread.pumpEventsForHierarchy
>   (Eve
>       ntDisp
>        >atchThread.java:151)
>        >     [java]     at java.awt.EventDispatchThread.pumpEvents(EventDispat
>   chTh
>       read.j
>        >ava:145)
>        >     [java]     at java.awt.EventDispatchThread.pumpEvents(EventDispat
>   chTh
>       read.j
>        >ava:137)
>        >     [java]     at java.awt.EventDispatchThread.run(EventDispatchThrea
>   d.ja
>       va:100
>        >)
>        >     [java] ptolemy.kernel.util.IllegalActionException: Could not get 
>   the 
>       cache
>        >iterator: Error creating CacheObject iterator: org.kepler.objectmanage
>   r.ca
>       che.KA
>        >RCacheObject; local class incompatible: stream classdesc serialVersion
>   UID 
>       = -844
>        >5362146164255175, local class serialVersionUID = 1757422123994725235
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex._buil
>   dCom
>       ponent
>        >Table(LibraryIndex.java:651)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex._buil
>   dNew
>       Index(
>        >LibraryIndex.java:613)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex.<init
>   >(Li
>       braryI
>        >ndex.java:96)
>        >     [java]     at org.kepler.objectmanager.library.LibraryIndex.getIn
>   stan
>       ce(Lib
>        >raryIndex.java:207)
>        >     [java]     at org.kepler.moml.KSWLibraryBuilder.buildLibrary(KSWL
>   ibra
>       ryBuil
>        >der.java:143)
>        >     [java]     at ptolemy.vergil.VergilApplication.openLibrary(Vergil
>   Appl
>       icatio
>        >n.java:230)
>        >     [java]     at ptolemy.vergil.VergilApplication._createDefaultConf
>   igur
>       ation(
>        >VergilApplication.java:418)
>        >     [java]     at ptolemy.vergil.VergilApplication._createEmptyConfig
>   urat
>       ion(Ve
>        >rgilApplication.java:439)
>        >     [java]     at ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLAp
>   plic
>       ation.
>        >java:875)
>        >     [java]     at ptolemy.vergil.VergilApplication._parseArgs(VergilA
>   ppli
>       cation
>        >.java:512)
>        >     [java]     at ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplic
>   atio
>       n.java
>        >:208)
>        >     [java]     at ptolemy.vergil.VergilApplication.<init>(VergilAppli
>   cati
>       on.jav
>        >a:105)
>        >     [java]     at ptolemy.vergil.VergilApplication$1.run(VergilApplic
>   atio
>       n.java
>        >:148)
>        >     [java]     at java.awt.event.InvocationEvent.dispatch(InvocationE
>   vent
>       .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, whi
>   ch
>        >only got me:
>        >
>        >J1_4_Only:
>        >
>        >compile-dev:
>        >    [javac] Compiling 786 source files to C:\cxh\src\kepler\build\clas
>   ses
>        >    [javac] C:\cxh\src\kepler\build\src\org\sdm\spa\MessageBasedWebSer
>   vice
>       .java:
>        >87: warning: as of release 1.5, 'enum' is a keyword, and may not be us
>   ed 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-d
>   ev
>        >  
>        >
>    --------
>    _______________________________________________
>    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