[kepler-users] Can save workflow as xml, but not as kar.

Tom Parris parris at isciences.com
Tue Feb 12 10:52:57 PST 2013


Dan,

Thanks for your prompt response.  I did an ant update this morning.
See the svn URL and revision numbers for each directory in the Kepler
root directory at end of message.  It looks to me like I'm up to date.

Strangely, after showing this error to a colleague (which inspired me
to submit the message), he was not able to reproduce it on his Kepler
installation (which is the same build).

I had done an "ant clean-cache" and that did not fix the problem.

I also tried moving the xml file to another location, but that did not
help either.

My colleague suggested I try an "ant clean" to force a recompile.
That did not fix the issue.

So, I'm still rather perplexed.  The problem seems to be localized to
my machine, but why?

-- Tom

URL: https://code.kepler-project.org/code/kepler/trunk/modules/actors
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/authentication
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/authentication-gui
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/build-area
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/common
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/component-library
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/configuration-manager
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/core
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/data-handling
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/dataone
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/dataturbine
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/directors
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/display-redirect
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/ecogrid
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/event-state
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/gui
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/io
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/job
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/kepler
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/kepler-tasks
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/loader
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/module-manager
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/module-manager-gui
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/opendap
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/outreach
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/ptolemy
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/r
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/repository
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/sms
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/ssh
Revision: 31428
URL: https://code.kepler-project.org/code/kepler/trunk/modules/util
Revision: 31428



On Tue, Feb 12, 2013 at 1:28 PM, Daniel Crawl <danielcrawl at gmail.com> wrote:
>
> Hi Tom,
>
> I can't reproduce this with the trunk, but can with Kepler 2.3.
> Are all of your sources at r31428?
>
>   --dan
>
>
>
> On 2/12/13 7:19 AM, Tom Parris wrote:
>>
>> Dear Kepler-Users:
>>
>> I can save the attached workflow as an xml document.  But when I try
>> to save as a kar, I get an error (see full stack trace below).
>>
>> Kepler Version: Trunk (rev 31428)
>> OS: Windows 7 Pro (x64)
>> Java: 1.7.0_11
>>
>> The problem appears to be with the class.  I can save a simpler
>> workflow that is identical, but does not use a class.  Note that
>> C:\Kepler\svn\ is my Kepler root directory.
>>
>> Any help would be much appreciated.
>>
>> -- Tom
>>
>>
>> ptolemy.kernel.util.IllegalActionException: Cannot find class: TestClass
>> Because:
>> -- C:\Kepler\svn\TestClass.xml (The system cannot find the file specified)
>> -- XML file not found relative to classpath.
>> -- C:\Kepler\svn\TestClass.xml
>> C:\Kepler\svn\TestClass.xml (The system cannot find the file specified)
>>   in file:/C:/Kepler/svn/ at line 176 and column 43
>>         at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4098)
>>         at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2697)
>>         at com.microstar.xml.XmlParser.parseElement(XmlParser.java:921)
>>         at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)
>>         at com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)
>>         at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)
>>         at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)
>>         at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
>>         at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1556)
>>         at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1512)
>>         at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1655)
>>         at
>> org.kepler.objectmanager.ActorMetadata.lookForMoml(ActorMetadata.java:1596)
>>         at
>> org.kepler.objectmanager.ActorMetadata.getActorClass(ActorMetadata.java:1668)
>>         at
>> org.kepler.objectmanager.ActorMetadata.<init>(ActorMetadata.java:296)
>>         at
>> org.kepler.objectmanager.cache.ActorCacheObject.getMetadata(ActorCacheObject.java:292)
>>         at
>> org.kepler.objectmanager.cache.ActorCacheObject.getObject(ActorCacheObject.java:180)
>>         at
>> org.kepler.kar.handlers.ActorMetadataKAREntryHandler.open(ActorMetadataKAREntryHandler.java:273)
>>         at org.kepler.kar.KARFile.open(KARFile.java:972)
>>         at org.kepler.kar.KARFile.openKARContents(KARFile.java:740)
>>         at
>> org.kepler.gui.kar.ExportArchiveAction.actionPerformed(ExportArchiveAction.java:503)
>>         at
>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
>>         at
>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
>>         at
>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>>         at
>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>>         at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
>>         at
>> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
>>         at
>> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
>>         at java.awt.Component.processMouseEvent(Component.java:6505)
>>         at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
>>         at java.awt.Component.processEvent(Component.java:6270)
>>         at java.awt.Container.processEvent(Container.java:2229)
>>         at java.awt.Component.dispatchEventImpl(Component.java:4861)
>>         at java.awt.Container.dispatchEventImpl(Container.java:2287)
>>         at java.awt.Component.dispatchEvent(Component.java:4687)
>>         at
>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
>>         at
>> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
>>         at
>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
>>         at java.awt.Container.dispatchEventImpl(Container.java:2273)
>>         at java.awt.Window.dispatchEventImpl(Window.java:2719)
>>         at java.awt.Component.dispatchEvent(Component.java:4687)
>>         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
>>         at java.awt.EventQueue.access$200(EventQueue.java:103)
>>         at java.awt.EventQueue$3.run(EventQueue.java:682)
>>         at java.awt.EventQueue$3.run(EventQueue.java:680)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>>         at
>> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>>         at java.awt.EventQueue$4.run(EventQueue.java:696)
>>         at java.awt.EventQueue$4.run(EventQueue.java:694)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
>>         at
>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>>         at
>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>>         at
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>>         at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>>         at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
>> Caused by: com.microstar.xml.XmlException: --
>> C:\Kepler\svn\TestClass.xml (The system cannot find the file
>> specified)
>> -- XML file not found relative to classpath.
>> -- C:\Kepler\svn\TestClass.xml
>> C:\Kepler\svn\TestClass.xml (The system cannot find the file specified)
>>   in file:/C:/Kepler/svn/ at line 176 and column 43
>>         at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1312)
>>         at ptolemy.moml.MoMLParser._findOrParse(MoMLParser.java:5012)
>>         at
>> ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3870)
>>         at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4093)
>>         ... 57 more
>> Caused by: com.microstar.xml.XmlException: --
>> C:\Kepler\svn\TestClass.xml (The system cannot find the file
>> specified)
>> -- XML file not found relative to classpath.
>> -- C:\Kepler\svn\TestClass.xml
>> C:\Kepler\svn\TestClass.xml (The system cannot find the file specified)
>>   in file:/C:/Kepler/svn/ at line 176 and column 43
>>         at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1312)
>>         at ptolemy.moml.MoMLParser._findOrParse(MoMLParser.java:5012)
>>         at
>> ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3870)
>>         at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4093)
>>         at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2697)
>>         at com.microstar.xml.XmlParser.parseElement(XmlParser.java:921)
>>         at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)
>>         at com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)
>>         at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)
>>         at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)
>>         at com.microstar.xml.XmlParser.parse(XmlParser.java:132)
>>         at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1556)
>>         at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1512)
>>         at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1655)
>>         at
>> org.kepler.objectmanager.ActorMetadata.lookForMoml(ActorMetadata.java:1596)
>>         at
>> org.kepler.objectmanager.ActorMetadata.getActorClass(ActorMetadata.java:1668)
>>         at
>> org.kepler.objectmanager.ActorMetadata.<init>(ActorMetadata.java:296)
>>         at
>> org.kepler.objectmanager.cache.ActorCacheObject.getMetadata(ActorCacheObject.java:292)
>>         at
>> org.kepler.objectmanager.cache.ActorCacheObject.getObject(ActorCacheObject.java:180)
>>         at
>> org.kepler.kar.handlers.ActorMetadataKAREntryHandler.open(ActorMetadataKAREntryHandler.java:273)
>>         at org.kepler.kar.KARFile.open(KARFile.java:972)
>>         at org.kepler.kar.KARFile.openKARContents(KARFile.java:740)
>>         at
>> org.kepler.gui.kar.ExportArchiveAction.actionPerformed(ExportArchiveAction.java:503)
>>         at
>> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
>>         at
>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
>>         at
>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>>         at
>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>>         at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
>>         at
>> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
>>         at
>> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
>>         at java.awt.Component.processMouseEvent(Component.java:6505)
>>         at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
>>         at java.awt.Component.processEvent(Component.java:6270)
>>         at java.awt.Container.processEvent(Container.java:2229)
>>         at java.awt.Component.dispatchEventImpl(Component.java:4861)
>>         at java.awt.Container.dispatchEventImpl(Container.java:2287)
>>         at java.awt.Component.dispatchEvent(Component.java:4687)
>>         at
>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
>>         at
>> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
>>         at
>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
>>         at java.awt.Container.dispatchEventImpl(Container.java:2273)
>>         at java.awt.Window.dispatchEventImpl(Window.java:2719)
>>         at java.awt.Component.dispatchEvent(Component.java:4687)
>>         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
>>         at java.awt.EventQueue.access$200(EventQueue.java:103)
>>         at java.awt.EventQueue$3.run(EventQueue.java:682)
>>         at java.awt.EventQueue$3.run(EventQueue.java:680)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>>         at
>> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>>         at java.awt.EventQueue$4.run(EventQueue.java:696)
>>         at java.awt.EventQueue$4.run(EventQueue.java:694)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at
>> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
>>         at
>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>>         at
>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>>         at
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>>         at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>>         at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
>>
>>
>>
>> _______________________________________________
>> Kepler-users mailing list
>> Kepler-users at kepler-project.org
>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
>>
>


More information about the Kepler-users mailing list