[kepler-users] Problem with MatlabExpression

William Hunt hunt.william.r at gmail.com
Tue Mar 24 08:00:58 PDT 2015


I'm having some problems getting the MatlabExpression actor to work in
Kepler.  I am running the latest version of Kepler, downloaded yesterday,
and I did the module upgrades recommended when I first ran the program.
 I am running on a Mac with OS X version 10.10.2., with Matlab R2015a
installed.  I believe I have followed the instructions for setting the
environment variable required by the MatlabExpression actor, and I am able
to run the MatlabExpression Demo supplied, which would think indicates the
configuration is ok.  However, if I create a new workflow, and add a
MatlabExpression actor to it, I get an error dialog box.  I've copied the
text of the dialog, as well as the associated stack trace and console
output at the end of the email.

I get the same behaviour if I restart Kepler, and attempt to add two
MatlabExpression actors to a new workspace - the first one seems to add ok,
but the second gives the same error.  If I delete the first actor, any
subsequent attempts to add a MatlabExpresion actor fail in the same way,
even if a new workflow has been created.

Is this a bug, or am I doing something wrong ?  Should I be able to add two
MatlabExpression actors ?

Thanks,

Bill

Text of error dialog :

*Change Failed  Cannot create entity without class name. In [external
stream]  at line 2 and column 26*

If I click the Display Stack Trace button on the dialog, I get this :

com.microstar.xml.XmlException: Cannot create entity without a class name.
in [external stream] at line 2 and column 26
at ptolemy.moml.MoMLParser._checkForNull(MoMLParser.java:4013)
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4194)
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:1540)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1512)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1668)
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:2559)
at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:725)
at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1776)
at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1957)
at
ptolemy.vergil.basic.EditorDropTargetListener.drop(EditorDropTargetListener.java:394)
at java.awt.dnd.DropTarget.drop(DropTarget.java:434)
at
sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519)
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:4633)
at java.awt.Container.dispatchEventImpl(Container.java:2142)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at
java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4353)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4204)
at java.awt.Container.dispatchEventImpl(Container.java:2128)
at java.awt.Window.dispatchEventImpl(Window.java:2492)
at java.awt.Component.dispatchEvent(Component.java:4604)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:690)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
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)

Also, the following lines are printed in the console :

     [null] Error inside GetMomlFromLSID.getMoml(): Failed to set
_iteration to 1: ptolemy.kernel.util.NameDuplicationException: Attempt to
insert object named "iteration" into a container that already contains an
object with that name.

     [null] Error creating alternateGetMoml!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20150324/f72c2e27/attachment.html>


More information about the Kepler-users mailing list