[kepler-dev] New trunk version ! Compilation errors
David Welker
david.v.welker at gmail.com
Thu Apr 9 06:58:47 PDT 2009
> Hi,
>
> I'm metting the same pb right now (see below please).
>
> About the solution proposed by Christopher :
>
> ant full-clean
> -> give an error : Target "full-clean" does not exist in the
> project "kepler".
> clean-cache doesn't fix the pb
> ant change-to -Dsuite=kepler-trunk
> -> I can't use it because I work in an organism with security :
> firewall, ...
> ant run
> -> give the error msg around "[run] java.lang.Exception: Failed to
> parse "-kepler"
> [run] at
> ptolemy.actor.gui.MoMLApplication.throwArgsException(MoMLApplication.java:603)"
>
>
> Is there a way to obtain an older trunk version, which works please ?
> Or a way to fix this pb quickly ?
>
> Thanks a lot for ur help
>
> Odile
>
>
>
>
> 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 core...
> [compile] Compiling util...
> [compile] Compiling loader...
>
> run:
> [run] Building Kars...
> [run] /usr/share/themes/Nodoka/gtk-2.0/gtkrc:37: error: lexical
> error or unexpected token, expected valid token
> [run] Command failed
> [run] Arguments: -kepler
> [run]
> [run] java.lang.Exception: Failed to parse "-kepler"
> [run] at
> ptolemy.actor.gui.MoMLApplication.throwArgsException(MoMLApplication.java:603)
>
> [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.java:242)
>
> [run] at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
>
> [run] at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
> [run] at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
> [run] at
> java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
> [run] Caused by: java.lang.Exception: Failed to read
> configuration
> 'file:/local/odrousse/eclipse/BioWIC/modules/common/configs/ptolemy/configs/kepler/configuration.xml'
>
> [run] at
> ptolemy.vergil.VergilApplication._createDefaultConfiguration(VergilApplication.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:/local/odrousse/eclipse/BioWIC/modules/common/configs/ptolemy/configs/kepler/graphTableauFactory.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(VergilApplication.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:306)
> [run] at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> [run] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> [run] at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> [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
>
> BUILD SUCCESSFUL
>
>
>
>
>
>
>
> David Welker wrote:
>> Hi Everyone,
>>
>> Thanks Christopher for rounding up those "lab files" and caging them
>> safely away where they can be safely experimented on.
>>
>> The error you are getting, I suspect, is because your cache is out of
>> sync with your cache. It should go away when you do an ant
>> clean-cache. I just started with a clean checkout and did not get
>> this problem.
>>
>> I did, however, get the following problem: After running ant
>> clean-cache followed by ant run, I get the following strange output:
>>
>> [run] Building Kars...
>> [run] Opening user preferences PtolemyPreferences.xml...
>> [run] ERROR: in LibraryIndex at _buildNewIndex. Cannot find library
>> ontology
>> [run] *** Attempting to get ResourceBundle for SVG defaults ***
>> [run] *** svgRenderingMethod = SVG_BATIK_RENDERING ***
>>
>> There are also no actors populated in the ontology. The second time I
>> enter in ant run, the strange ERROR line goes away. However, still
>> there are no actors available.
>>
>> It appears that a recent change within the trunk (besides
>> Christopher's releasing of vicious lab files) have broken the
>> functionality of Kepler at the trunk. I hope that whoever is
>> responsible for recent changes that caused this problem fixes it as
>> soon as possible.
>>
>> This does, however, bring up larger issues with how we are dealing
>> with modules that are within kepler-trunk. My view is that you should
>> only commit changes if you are fairly sure that you are not going to
>> break anything. One thing to keep in mind if you are working at
>> modules at kepler-trunk is that sometimes problems like this do not
>> appear on your local machine, because actors might be loaded from the
>> .kepler cache. So, before you commit, make sure you do an "ant
>> clean-cache" and ensure that your changes do not break anything. If
>> in doubt, don't commit. Chances are, disruptions (which affect quite
>> a few people) from committing code that is not ready for prime time
>> outweigh the benefits of immediately being able to use whatever
>> feature you happen to be working on. I myself have been burned a few
>> times in this respect with the build system. I have committed new
>> code which I have not tested thoroughly enough. (Or, most commonly, I
>> forgot to do an svn add on a file that is critical for things to
>> work. Use svn status to see what files you still may need to add
>> before committing.) And the result is that my build system no longer
>> works the way it is supposed to.
>>
>> On the whole, of course, we are not going to have to make changes to
>> kepler-trunk and to the build system. But, I think we should be a
>> little more cautious when committing those changes, unless you are
>> sure that there will not be a negative impact on others.
>>
>> In general, I think most new development should occur in modules
>> outside of kepler-trunk. But, this is probably a topic of discussion
>> best left for our engineering meetings.
>>
>> David
>>
>>> 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:603)
>>>
>>> [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.java: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/configuration.xml'
>>>
>>> [run] at
>>> ptolemy.vergil.VergilApplication._createDefaultConfiguration(VergilApplication.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/graphTableauFactory.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(VergilApplication.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/gui/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
>>>
>>
>> _______________________________________________
>> 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