Re: [kepler-users] Question about the Display actor and the composite class
Dear Daniel, thanks it works with 2.4, while the problem exist in 2.3, so it seams there are some bug fixes applied. regards Marcin W dniu 2013-04-17 20:41, Daniel Crawl pisze: Hi Marcin, I saw a similar exception in Kepler 2.3 by putting a Display actor inside a MultiInstanceComposite. However, this error does not occur in Kepler 2.4. Does the error occur for you with 2.4? --dan On 4/17/13 3:18 AM, Marcin Plociennik wrote: Hi, I have following case: 1. I'm generating the Composite, putting just in and out port 2. Inside composite I'm connecting in and out, 3. I'm saving that composite to xml (so only the internal part of composite) to place on the Kepler path 4. I'm editing the xml file and changing the entity to class for the composite. That way as you know I can use that composite in many place, and the changes would be applied to all the instances. 5. I can use that actor in the workflows , I can edit and add there inside most of the actors including other composite, and it works 6. The only problem I have so far is with the Display Actor: When I try to add it to such created composite I'm getting error that is pasted below I know maybe it is not standard way but, maybe you will know how to solve that problem, or what is the reason for that thanks in advance regards Marcin ptolemy.kernel.util.InternalErrorException: Failed to initialize implementation in .Unnamed1.test.Display Because: Attempt to insert object named _windowProperties into a container that already contains an object with that name. at ptolemy.actor.lib.gui.Display._getImplementation(Display.java:396) at ptolemy.actor.lib.gui.Display.attributeChanged(Display.java:205) at ptolemy.data.expr.Variable._setTokenAndNotify(Variable.java:1992) at ptolemy.data.expr.Variable._evaluate(Variable.java:1646) at ptolemy.data.expr.Variable._propagate(Variable.java:1732) at ptolemy.data.expr.Variable.validate(Variable.java:1430) at ptolemy.moml.MoMLParser.endDocument(MoMLParser.java:808) at com.microstar.xml.XmlParser.doParse(XmlParser.java:162) at com.microstar.xml.XmlParser.parse(XmlParser.java:132) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1538) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1510) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1666) at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:289) at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171) at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:738) at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1778) at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1922) at ptolemy.vergil.basic.EditorDropTargetListener.drop(EditorDropTargetListener.java:369) at java.awt.dnd.DropTarget.drop(DropTarget.java:434) at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519) at sun.awt.X11.XDropTargetContextPeer.processDropMessage(XDropTargetContextPeer.java:165) at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:832) at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:756) at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30) at java.awt.Component.dispatchEventImpl(Component.java:4517) at java.awt.Container.dispatchEventImpl(Container.java:2097) at java.awt.Component.dispatchEvent(Component.java:4488) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575) at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4310) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4161) at java.awt.Container.dispatchEventImpl(Container.java:2083) at java.awt.Window.dispatchEventImpl(Window.java:2489) at java.awt.Component.dispatchEvent(Component.java:4488) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668) at java.awt.EventQueue.access$400(EventQueue.java:81) at java.awt.EventQueue$2.run(EventQueue.java:627) at java.awt.EventQueue$2.run(EventQueue.java:625) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$3.run(EventQueue.java:641) at java.awt.EventQueue$3.run(EventQueue.java:639) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:638) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at
Re: [kepler-users] Question about the Display actor and the composite class
Hi Marcin, I saw a similar exception in Kepler 2.3 by putting a Display actor inside a MultiInstanceComposite. However, this error does not occur in Kepler 2.4. Does the error occur for you with 2.4? --dan On 4/17/13 3:18 AM, Marcin Plociennik wrote: Hi, I have following case: 1. I'm generating the Composite, putting just in and out port 2. Inside composite I'm connecting in and out, 3. I'm saving that composite to xml (so only the internal part of composite) to place on the Kepler path 4. I'm editing the xml file and changing the entity to class for the composite. That way as you know I can use that composite in many place, and the changes would be applied to all the instances. 5. I can use that actor in the workflows , I can edit and add there inside most of the actors including other composite, and it works 6. The only problem I have so far is with the Display Actor: When I try to add it to such created composite I'm getting error that is pasted below I know maybe it is not standard way but, maybe you will know how to solve that problem, or what is the reason for that thanks in advance regards Marcin ptolemy.kernel.util.InternalErrorException: Failed to initialize implementation in .Unnamed1.test.Display Because: Attempt to insert object named _windowProperties into a container that already contains an object with that name. at ptolemy.actor.lib.gui.Display._getImplementation(Display.java:396) at ptolemy.actor.lib.gui.Display.attributeChanged(Display.java:205) at ptolemy.data.expr.Variable._setTokenAndNotify(Variable.java:1992) at ptolemy.data.expr.Variable._evaluate(Variable.java:1646) at ptolemy.data.expr.Variable._propagate(Variable.java:1732) at ptolemy.data.expr.Variable.validate(Variable.java:1430) at ptolemy.moml.MoMLParser.endDocument(MoMLParser.java:808) at com.microstar.xml.XmlParser.doParse(XmlParser.java:162) at com.microstar.xml.XmlParser.parse(XmlParser.java:132) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1538) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1510) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1666) at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:289) at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171) at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:738) at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1778) at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1922) at ptolemy.vergil.basic.EditorDropTargetListener.drop(EditorDropTargetListener.java:369) at java.awt.dnd.DropTarget.drop(DropTarget.java:434) at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519) at sun.awt.X11.XDropTargetContextPeer.processDropMessage(XDropTargetContextPeer.java:165) at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:832) at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:756) at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30) at java.awt.Component.dispatchEventImpl(Component.java:4517) at java.awt.Container.dispatchEventImpl(Container.java:2097) at java.awt.Component.dispatchEvent(Component.java:4488) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575) at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4310) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4161) at java.awt.Container.dispatchEventImpl(Container.java:2083) at java.awt.Window.dispatchEventImpl(Window.java:2489) at java.awt.Component.dispatchEvent(Component.java:4488) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668) at java.awt.EventQueue.access$400(EventQueue.java:81) at java.awt.EventQueue$2.run(EventQueue.java:627) at java.awt.EventQueue$2.run(EventQueue.java:625) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$3.run(EventQueue.java:641) at java.awt.EventQueue$3.run(EventQueue.java:639) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:638) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at