When I try to load the actor in the GUI I get this error:<br><br>com.microstar.xml.XmlException: XML element "entity" triggers exception. in [external stream] at line 1 and column 66<br>Caused by:<br> ptolemy.kernel.util.IllegalActionException: Cannot find class: myActors.PerlScript<br>
<b>Because:<br>-- no protocol: myActors/PerlScript.xml<br>-- XML file not found relative to classpath.<br>-- /home/urops/KeplerLastVersion/myActors/PerlScript.xml<br>/home/urops/KeplerLastVersion/myActors/PerlScript.xml (No such file or directory)</b><br>
in [external stream] at line 1 and column 66<br> at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:3442)<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:1402)<br> at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1374)<br> at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1530)<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:732)<br> at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1762)<br>
at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1726)<br> at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:697)<br> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)<br>
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)<br> at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)<br> at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)<br>
at javax.swing.AbstractButton.doClick(AbstractButton.java:374)<br> at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)<br> at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)<br>
at java.awt.Component.processMouseEvent(Component.java:6108)<br> at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)<br> at java.awt.Component.processEvent(Component.java:5873)<br> at java.awt.Container.processEvent(Container.java:2105)<br>
at java.awt.Component.dispatchEventImpl(Component.java:4469)<br> at java.awt.Container.dispatchEventImpl(Container.java:2163)<br> at java.awt.Component.dispatchEvent(Component.java:4295)<br> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)<br>
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)<br> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)<br> at java.awt.Container.dispatchEventImpl(Container.java:2149)<br>
at java.awt.Window.dispatchEventImpl(Window.java:2478)<br> at java.awt.Component.dispatchEvent(Component.java:4295)<br> at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)<br> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)<br>
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)<br> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)<br> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)<br>
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)<br> at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)<br>Caused by: ptolemy.kernel.util.IllegalActionException: Cannot find class: myActors.PerlScript<br>
Because:<br>-- no protocol: myActors/PerlScript.xml<br>-- XML file not found relative to classpath.<br>-- /home/urops/KeplerLastVersion/myActors/PerlScript.xml<br>/home/urops/KeplerLastVersion/myActors/PerlScript.xml (No such file or directory)<br>
in [external stream] at line 1 and column 66<br> at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3877)<br> at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2493)<br> ... 42 more<br>Caused by: com.microstar.xml.XmlException: -- no protocol: myActors/PerlScript.xml<br>
-- XML file not found relative to classpath.<br>-- /home/urops/KeplerLastVersion/myActors/PerlScript.xml<br>/home/urops/KeplerLastVersion/myActors/PerlScript.xml (No such file or directory)<br> in [external stream] at line 1 and column 66<br>
at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1176)<br> at ptolemy.moml.MoMLParser._findOrParse(MoMLParser.java:4778)<br> at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3649)<br> at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3872)<br>
... 43 more<br>Caused by: ptolemy.kernel.util.IllegalActionException: Cannot find class: myActors.PerlScript<br>Because:<br>-- no protocol: myActors/PerlScript.xml<br>-- XML file not found relative to classpath.<br>-- /home/urops/KeplerLastVersion/myActors/PerlScript.xml<br>
/home/urops/KeplerLastVersion/myActors/PerlScript.xml (No such file or directory)<br> in [external stream] at line 1 and column 66<br> at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3877)<br> at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2493)<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:1402)<br> at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1374)<br>
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1530)<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:732)<br>
at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1762)<br> at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1726)<br> at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:697)<br>
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)<br> at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)<br> at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)<br>
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)<br> at javax.swing.AbstractButton.doClick(AbstractButton.java:374)<br> at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)<br>
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)<br> at java.awt.Component.processMouseEvent(Component.java:6108)<br> at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)<br>
at java.awt.Component.processEvent(Component.java:5873)<br> at java.awt.Container.processEvent(Container.java:2105)<br> at java.awt.Component.dispatchEventImpl(Component.java:4469)<br> at java.awt.Container.dispatchEventImpl(Container.java:2163)<br>
at java.awt.Component.dispatchEvent(Component.java:4295)<br> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)<br> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)<br>
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)<br> at java.awt.Container.dispatchEventImpl(Container.java:2149)<br> at java.awt.Window.dispatchEventImpl(Window.java:2478)<br> at java.awt.Component.dispatchEvent(Component.java:4295)<br>
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)<br> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)<br> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)<br>
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)<br> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)<br> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)<br>
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)<br>Caused by: com.microstar.xml.XmlException: -- no protocol: myActors/PerlScript.xml<br>-- XML file not found relative to classpath.<br>-- /home/urops/KeplerLastVersion/myActors/PerlScript.xml<br>
/home/urops/KeplerLastVersion/myActors/PerlScript.xml (No such file or directory)<br> in [external stream] at line 1 and column 66<br> at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1176)<br> at ptolemy.moml.MoMLParser._findOrParse(MoMLParser.java:4778)<br>
at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3649)<br> at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3872)<br> ... 43 more<br>Caused by: com.microstar.xml.XmlException: -- no protocol: myActors/PerlScript.xml<br>
-- XML file not found relative to classpath.<br>-- /home/urops/KeplerLastVersion/myActors/PerlScript.xml<br>/home/urops/KeplerLastVersion/myActors/PerlScript.xml (No such file or directory)<br> in [external stream] at line 1 and column 66<br>
at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1176)<br> at ptolemy.moml.MoMLParser._findOrParse(MoMLParser.java:4778)<br> at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3649)<br> at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3872)<br>
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2493)<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:1402)<br>
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1374)<br> at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1530)<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:732)<br> at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1762)<br> at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1726)<br>
at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:697)<br> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)<br> at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)<br>
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)<br> at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)<br> at javax.swing.AbstractButton.doClick(AbstractButton.java:374)<br>
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)<br> at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)<br> at java.awt.Component.processMouseEvent(Component.java:6108)<br>
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)<br> at java.awt.Component.processEvent(Component.java:5873)<br> at java.awt.Container.processEvent(Container.java:2105)<br> at java.awt.Component.dispatchEventImpl(Component.java:4469)<br>
at java.awt.Container.dispatchEventImpl(Container.java:2163)<br> at java.awt.Component.dispatchEvent(Component.java:4295)<br> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)<br> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)<br>
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)<br> at java.awt.Container.dispatchEventImpl(Container.java:2149)<br> at java.awt.Window.dispatchEventImpl(Window.java:2478)<br> at java.awt.Component.dispatchEvent(Component.java:4295)<br>
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)<br> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)<br> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)<br>
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)<br> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)<br> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)<br>
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)<br><br>Any idea? What this XML file means?<br><br><br><div class="gmail_quote">2010/6/25 Josep Morer Muñoz <span dir="ltr"><<a href="mailto:josep.morer@gmail.com">josep.morer@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br><br>I'm currenty using Kepler 2.0 RC3 from the developer trunk. One of my colleague developed an actor which I am going to try to add into Kepler 2.0. It seems that the way of adding actor has changed beetween Kepler 1.0 and Kepler 2.0. Can I add this actor (see attached)? I do not know if I should change the code inside it. In the past I have added it into Kepler 1.0 without a problem.<br>
<br>Thanks for your help<br clear="all"><br>-- <br><font color="#888888">Josep<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Josep<br>