[kepler-dev] New trunk version ! Compilation errors

Qiao Hui-jie qiaohj at ioz.ac.cn
Wed Apr 8 18:23:07 PDT 2009


Hi,

Yestoday I met the same error with you.

When i debugged it, I found that the application could not find the class
for "org.kepler.gui.frame.KeplerGraphTableau" which was defined in the
'file:/Users/cxh/src/kepler/common/configs/ptolemy/configs/kepler/configurat
ion.xml'.

I found that there was a fold named as gui in the root of workspace, but
these was not a citation in the "modules.txt" file. So "ant run" didn't
compile the gui module and the application cannot find the class.

In order to got rid of this error, i run the follow steps:

cd kepler-trunk
svn update (in order to get the newest "modules.txt")
cd ..
cd build-area
svn update (update the ant scrpit)
ant change-to -Dsuite=kepler-trunk (replace the "modules.txt" with the new
one)
ant clean
ant update

after do this, ant will get and cite the "gui" suite automatically

and then, maybe you can run "ant run" to enjoy you kepler again.

I solved the same problem with you and hope it is helpful to you.

Good luck.


Qiao Huijie
Institute of Zoology, Chinese Academy of Sciences 
Datun Road, Chaoyang, Beijing, 100101, China  
-----Original Message-----
From: kepler-dev-bounces at kepler-project.org
[mailto:kepler-dev-bounces at kepler-project.org] On Behalf Of Christopher
Brooks
Sent: Wednesday, April 08, 2009 11:29 PM
To: tkd
Cc: kepler-dev at kepler-project.org
Subject: Re: [kepler-dev] New trunk version ! Compilation errors

Sorry about that, my bad.
Basically, I ran the wrong script, "fixfiles", instead of "fix-files", so
the files got out of the lab and ran amuck!

However, now, after running
ant full-clean
ant change-to -Dsuite=kepler-trunk
ant run,

I get

    [run] java.lang.Exception: Failed to parse "-kepler"
       [run] 	at 
ptolemy.actor.gui.MoMLApplication.throwArgsException(MoMLApplication.java:60
3)
       [run] 	at 
ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplication.java:264)
       [run] 	at 
ptolemy.vergil.VergilApplication.<init>(VergilApplication.java:103)
       [run] 	at 
ptolemy.vergil.VergilApplication$1.run(VergilApplication.java:193)
       [run] 	at 
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
       [run] 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
       [run] 	at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:269)
       [run] 	at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:190)
       [run] 	at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
       [run] 	at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
       [run] 	at 
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
       [run] Caused by: java.lang.Exception: Failed to read configuration
'file:/Users/cxh/src/kepler/common/configs/ptolemy/configs/kepler/configurat
ion.xml'
       [run] 	at 
ptolemy.vergil.VergilApplication._createDefaultConfiguration(VergilApplicati
on.java:285)
       [run] 	at 
ptolemy.vergil.VergilApplication._createEmptyConfiguration(VergilApplication
.java:321)
       [run] 	at 
ptolemy.actor.gui.MoMLApplication._parseArgs(MoMLApplication.java:1045)
       [run] 	at 
ptolemy.vergil.VergilApplication._parseArgs(VergilApplication.java:448)
       [run] 	at 
ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplication.java:217)
       [run] 	... 9 more
       [run] Caused by: com.microstar.xml.XmlException: XML element
"property" triggers exception. in
file:/Users/cxh/src/kepler/common/configs/ptolemy/configs/kepler/graphTablea
uFactory.xml
at line 10 and column 66
       [run] Caused by:
       [run]  java.lang.ClassNotFoundException: 
org.kepler.gui.frame.KeplerGraphTableau$Factory
       [run] 	at
ptolemy.moml.MoMLParser.startElement(MoMLParser.java:3405)
       [run] 	at 
com.microstar.xml.XmlParser.parseElement(XmlParser.java:931)
       [run] 	at 
com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)
       [run] 	at 
com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)
       [run] 	at 
com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)
       [run] 	at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)
       [run] 	at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
       [run] 	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1410)
       [run] 	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1367)
       [run] 	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1329)
       [run] 	at ptolemy.moml.MoMLParser._parse(MoMLParser.java:5772)
       [run] 	at
ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2653)
       [run] 	at 
com.microstar.xml.XmlParser.parseElement(XmlParser.java:931)
       [run] 	at 
com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)
       [run] 	at 
com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)
       [run] 	at 
com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)
       [run] 	at 
com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)
       [run] 	at 
com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)
       [run] 	at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)
       [run] 	at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
       [run] 	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1410)
       [run] 	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1347)
       [run] 	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1298)
       [run] 	at 
ptolemy.actor.gui.MoMLApplication.readConfiguration(MoMLApplication.java:380
)
       [run] 	at 
ptolemy.vergil.VergilApplication._createDefaultConfiguration(VergilApplicati
on.java:283)
       [run] 	... 13 more
       [run] Caused by: java.lang.ClassNotFoundException: 
org.kepler.gui.frame.KeplerGraphTableau$Factory
       [run] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       [run] 	at java.security.AccessController.doPrivileged(Native
Method)
       [run] 	at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       [run] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
       [run] 	at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
       [run] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       [run] 	at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
       [run] 	at java.lang.Class.forName0(Native Method)
       [run] 	at java.lang.Class.forName(Class.java:242)
       [run] 	at 
ptolemy.moml.MoMLParser._handlePropertyElement(MoMLParser.java:5275)
       [run] 	at
ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2866)
       [run] 	... 37 more
`

tkd wrote:
> Hi,
> 
> you juste changed the trunk version and it gives some errors on 
> compilation with ant run :
> 
> ant run
> Buildfile: build.xml
> 
> create-modules-bundle:
> 
> compile:
> [compile] Compiling common...
> [compile] Compiling directors...
> [compile] Compiling actors...
> [compile] Compiling ptolemy...
> [compile]  -- The module is ptolemy. Setting includes and excludes....
> [compile] Compiling 3134 source files to 
> /local/odrousse/eclipse/BioWIC/kepler/modules/ptolemy/target/classes
> [compile]
>
/local/odrousse/eclipse/BioWIC/kepler/modules/ptolemy/ptolemy/domains/modal/
demo/ABP/DEMessageSource.java:57: 
> duplicate class: ptolemy.domains.fsm.demo.ABP.DEMessageSource
> [compile] public class DEMessageSource extends RandomSource {
> [compile]        ^
> [compile]
>
/local/odrousse/eclipse/BioWIC/kepler/modules/ptolemy/ptolemy/domains/modal/
demo/ABP/DETimer.java:52: 
> duplicate class: ptolemy.domains.fsm.demo.ABP.DETimer
> [compile] public class DETimer extends TypedAtomicActor {
> [compile]        ^
> [compile]
>
/local/odrousse/eclipse/BioWIC/kepler/modules/ptolemy/ptolemy/domains/modal/
kernel/FSMDirector.java:160: 
> duplicate class: ptolemy.domains.fsm.kernel.FSMDirector
> [compile] public class FSMDirector extends Director implements
> [compile]        ^
> [compile]
>
/local/odrousse/eclipse/BioWIC/kepler/modules/ptolemy/ptolemy/domains/modal/
kernel/Transition.java:741: 
> cannot access ptolemy.domains.modal.kernel.FSMDirector
> [compile] bad class file: 
> /local/odrousse/eclipse/BioWIC/kepler/modules/ptolemy/ptolemy/domains/
> modal/kernel/FSMDirector.java
> 
> [compile] file does not contain class 
> ptolemy.domains.modal.kernel.FSMDirector
> [compile] Please remove or make sure it appears in the correct 
> subdirectory of the classpath.
> [compile]     private FSMDirector _getDirector() {
> [compile]             ^
> [compile] Note: 
> /local/odrousse/eclipse/BioWIC/kepler/modules/ptolemy/ptolemy/actor/gu
> i/MoMLSimpleStatisticalApplication.java
> uses or overrides a deprecated API.
> [compile] Note: Recompile with -Xlint:deprecation for details.
> [compile] 4 errors
> 
> BUILD FAILED
> /local/odrousse/eclipse/BioWIC/kepler/modules/build-area/build.xml:31: 
> Compile failed; see the compiler error output for details.
> 
> 2 days ago, it worked very well and now ... awful !
> Thanks a lot to say me what to do to get something works ...
> 
> tkd ... desperated
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

--
Christopher Brooks (cxh at eecs berkeley edu) University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480
_______________________________________________
Kepler-dev mailing list
Kepler-dev at kepler-project.org
http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev




More information about the Kepler-dev mailing list