<div dir="ltr"><span style="font-size:12.8000001907349px">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.</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">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.</div><div style="font-size:12.8000001907349px"><br>Is this a bug, or am I doing something wrong ?  Should I be able to add two MatlabExpression actors ?<br><br>Thanks, </div><div style="font-size:12.8000001907349px"><br>Bill<br><br>Text of error dialog :</div><div style="font-size:12.8000001907349px"><br><b>Change Failed  Cannot create entity without class name. In [external stream]  at line 2 and column 26</b><br><br>If I click the Display Stack Trace button on the dialog, I get this :<br><br>com.microstar.xml.XmlException: Cannot create entity without a class name. in [external stream] at line 2 and column 26<br>at ptolemy.moml.MoMLParser._checkForNull(MoMLParser.java:4013)<br>at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4194)<br>at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2697)<br>at com.microstar.xml.XmlParser.parseElement(XmlParser.java:921)<br>at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)<br>at com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)<br>at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)<br>at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)<br>at com.microstar.xml.XmlParser.parse(XmlParser.java:132)<br>at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1540)<br>at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1512)<br>at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1668)<br>at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:289)<br>at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171)<br>at ptolemy.kernel.util.NamedObj._executeChangeRequests(NamedObj.java:2559)<br>at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:725)<br>at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1776)<br>at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1957)<br>at ptolemy.vergil.basic.EditorDropTargetListener.drop(EditorDropTargetListener.java:394)<br>at java.awt.dnd.DropTarget.drop(DropTarget.java:434)<br>at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519)<br>at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:832)<br>at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:756)<br>at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)<br>at java.awt.Component.dispatchEventImpl(Component.java:4633)<br>at java.awt.Container.dispatchEventImpl(Container.java:2142)<br>at java.awt.Component.dispatchEvent(Component.java:4604)<br>at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)<br>at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4353)<br>at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4204)<br>at java.awt.Container.dispatchEventImpl(Container.java:2128)<br>at java.awt.Window.dispatchEventImpl(Window.java:2492)<br>at java.awt.Component.dispatchEvent(Component.java:4604)<br>at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)<br>at java.awt.EventQueue.access$400(EventQueue.java:82)<br>at java.awt.EventQueue$2.run(EventQueue.java:676)<br>at java.awt.EventQueue$2.run(EventQueue.java:674)<br>at java.security.AccessController.doPrivileged(Native Method)<br>at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)<br>at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)<br>at java.awt.EventQueue$3.run(EventQueue.java:690)<br>at java.awt.EventQueue$3.run(EventQueue.java:688)<br>at java.security.AccessController.doPrivileged(Native Method)<br>at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)<br>at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)<br>at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)<br>at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)<br>at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)<br>at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)<br>at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)<br>at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)<br><br>Also, the following lines are printed in the console :<br><br>     [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.<br><br>     [null] Error creating alternateGetMoml!</div></div>