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

Tom Parris parris at isciences.com
Tue Feb 12 07:19:53 PST 2013


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: merge-test-V5.xml
Type: text/xml
Size: 38247 bytes
Desc: not available
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20130212/d26885b6/attachment-0001.xml>


More information about the Kepler-users mailing list