[kepler-dev] Adding new directors to the framework.

Panickos Neophytou panickos at gmail.com
Tue Oct 13 14:33:43 PDT 2009


Hi all,

I'm trying to implement a new Director. When I try to insert it into a
workflow (using "Instantiate component" menu item) I get the following
exception (end of email), although the director appears in the
workflow in the end. Is there a special guide on Directors?

Also, how is it possible to add a new Actor or Director to the
sidebar? I'm using the checked-out version from SVN and all the
modules etc., and developing from Eclipse. The guide in the User
Manual says something about a context menu item of the actor called
"Save in Library..." but that does not exist in Kepler 1.x(dev).

Thanks,
Panickos

com.microstar.xml.XmlException: XML element "entity" triggers
exception. in [external stream] at line 1 and column 82
Caused by:
 ptolemy.kernel.util.IllegalActionException: Attempt to create an
entity named CWFDirector from a class that is not a subclass of
Entity: org.dataxs.kepler.cwfs.CWFDirector
  in .Unnamed1
	at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:3444)
	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:1404)
	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1376)
	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1532)
	at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:270)
	at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171)
	at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:727)
	at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1752)
	at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1468)
	at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:697)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
	at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)
	at java.awt.MenuItem.processActionEvent(MenuItem.java:627)
	at java.awt.MenuItem.processEvent(MenuItem.java:586)
	at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:317)
	at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:305)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: ptolemy.kernel.util.IllegalActionException: Attempt to
create an entity named CWFDirector from a class that is not a subclass
of Entity: org.dataxs.kepler.cwfs.CWFDirector
  in .Unnamed1
	at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2502)
	... 32 more
Caused by: ptolemy.kernel.util.IllegalActionException: Attempt to
create an entity named CWFDirector from a class that is not a subclass
of Entity: org.dataxs.kepler.cwfs.CWFDirector
  in .Unnamed1
	at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2502)
	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:1404)
	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1376)
	at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1532)
	at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:270)
	at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171)
	at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:727)
	at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1752)
	at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1468)
	at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:697)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
	at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)
	at java.awt.MenuItem.processActionEvent(MenuItem.java:627)
	at java.awt.MenuItem.processEvent(MenuItem.java:586)
	at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:317)
	at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:305)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


More information about the Kepler-dev mailing list