Project

General

Profile

Actions

Bug #3943

open

error importing more than one actor created in one suite using kepler-1.0

Added by Derik Barseghian about 15 years ago. Updated about 15 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
general
Target version:
Start date:
04/03/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3943

Description

Procedure: Follow the new kepler-1.0 hello-world tutorial to create an actor in a hello-world suite. Create a second actor in this suite. Launch Kepler, instantiate both actors, export each to a kar, and then try to import each. I get an "Error inserting the kar file into the cache: Id already exists in the cache" when trying to import the second.

Actions #1

Updated by Derik Barseghian about 15 years ago

On a similar note, Vista user (trying to use two actors he created in one suite ala the hello-world tutorial using Kepler-1.0) reports (note the paths in stack trace):
------------------
Creating two different suites was just a personal preference. However, I still don't solve the basic problem of instantiating previously created actors without errors even if I use a single suite. A simple ant run does not solve the problem. To get the actor, I have to execute ant change-to.

Existing actors in Kepler, can be dragged and dropped but not newly created ones.

Copied below is the stack trace which I get when I drag and drop the actor without executing ant change-to and directly opening Kepler by executing ant run from command line. (Using Version 1.0)

ptolemy.kernel.util.IllegalActionException: Cannot find class: org.UserIp.UserIp
Because:
-- C:\.........\org\UserIp\UserIp.moml (The system cannot find the path specified)
-- XML file not found relative to classpath.
-- C:\..........\org/UserIp/UserIp.moml
-- C:\..........\org/UserIp/UserIp.moml (The system cannot find the path specified)
in file:.............MultipleInput. xml at line 155 and column 42
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3701)
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2379)
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:1334)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1292)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1265)
at ptolemy.actor.gui.PtolemyEffigy$Factory.createEffigy(PtolemyEffigy.java:412)
at ptolemy.actor.gui.EffigyFactory.createEffigy(EffigyFactory.java:209)
at ptolemy.actor.gui.Configuration.openModel(Configuration.java:595)
at ptolemy.actor.gui.Configuration.openModel(Configuration.java:555)
at ptolemy.actor.gui.TableauFrame._read(TableauFrame.java:893)
at ptolemy.gui.Top._open(Top.java:704)
at ptolemy.gui.Top$FileMenuListener.actionPerformed(Top.java:1093)
at ptolemy.vergil.basic.MenuMapper$1.actionPerformed(MenuMapper.java:326)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
at java.awt.Component.processMouseEvent(Component.java:5517)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5282)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3984)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: com.microstar.xml.XmlException: -- -- C:\..........\org/UserIp/UserIp.moml-- XML file not found relative to classpath.

at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1145)
at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3504)
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3696)
... 44 more
Caused by: com.microstar.xml.XmlException: --
at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1145)
at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3504)
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3696)
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2379)
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:1334)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1292)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1265)
at ptolemy.actor.gui.PtolemyEffigy$Factory.createEffigy(PtolemyEffigy.java:412)
at ptolemy.actor.gui.EffigyFactory.createEffigy(EffigyFactory.java:209)
at ptolemy.actor.gui.Configuration.openModel(Configuration.java:595)
at ptolemy.actor.gui.Configuration.openModel(Configuration.java:555)
at ptolemy.actor.gui.TableauFrame._read(TableauFrame.java:893)
at ptolemy.gui.Top._open(Top.java:704)
at ptolemy.gui.Top$FileMenuListener.actionPerformed(Top.java:1093)
at ptolemy.vergil.basic.MenuMapper$1.actionPerformed(MenuMapper.java:326)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
at java.awt.Component.processMouseEvent(Component.java:5517)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5282)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3984)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Actions #2

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 3943

Actions

Also available in: Atom PDF