Bug #3108
closedENM GARP Baseline 3-Actor GARP - Browser Display demo fails with NameDuplication: convertTo?
0%
Description
The problems below are probably common knowledge, but I've fixed up
the "about:" facility so that it will traverse the demos and try to open
them. This makes it much easier to quickly try these out.
The first Ecological Niche Modeling (GARP) Workflow:
Baseline 3-Actor GARP -Browser Display demo fails.
This is the first Kepler Demo. . .
ptolemy.kernel.util.NameDuplicationException: Attempt to insert object named "convertTo" into a container that already contains an object with that name.
at ptolemy.kernel.util.NamedList.append(NamedList.java:125)
at ptolemy.kernel.util.NamedObj._addAttribute(NamedObj.java:2054)
at ptolemy.kernel.util.Attribute.setContainer(Attribute.java:383)
at ptolemy.kernel.util.Attribute.<init>(Attribute.java:109)
at ptolemy.kernel.util.Attribute.<init>(Attribute.java:86)
at ptolemy.kernel.util.AbstractSettableAttribute.<init>(AbstractSettableAttribute.java:88)
at ptolemy.kernel.util.StringAttribute.<init>(StringAttribute.java:110)
at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at ptolemy.moml.MoMLParser._createInstance(MoMLParser.java:3985)
at ptolemy.moml.MoMLParser._handlePropertyElement(MoMLParser.java:5068)
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2784)
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.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:1334)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1292)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1265)
at ptolemy.actor.gui.PtolemyEffigy$Factory.createEffigy(PtolemyEffigy.java:412)
at ptolemy.actor.gui.EffigyFactory.createEffigy(EffigyFactory.java:209)
at ptolemy.actor.gui.Configuration.openModel(Configuration.java:595)
at ptolemy.actor.gui.Configuration.openModel(Configuration.java:555)
at ptolemy.actor.gui.HTMLViewer.hyperlinkUpdate(HTMLViewer.java:264)
at javax.swing.JEditorPane.fireHyperlinkUpdate(JEditorPane.java:320)
at javax.swing.text.html.HTMLEditorKit$LinkController.activateLink(HTMLEditorKit.java:827)
at javax.swing.text.html.HTMLEditorKit$LinkController.mouseClicked(HTMLEditorKit.java:637)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.Component.processMouseEvent(Component.java:5504)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
The third GARP demo, "3. GARP with Occurrence Data from Digir/Ecogrid"
also fails:
java.io.FileNotFoundException: C:\cxh\src\kepler\workflows\eco\garpModel_ImageJ_withData.xml (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at java.net.URL.openStream(URL.java:1007)
There are plenty of other errors as well.
One quick way to check for missing demos is to use the "about:" feature
in ptolemyII.
To do this:
1. Start Kepler with ant run-dev
2. Help -> Documentation -> Kepler Introduction for Scientists
-> Ptolemy Introduction -> Copyright
3. Select "copyright" in "Other copyrights about this configuration (may take a moment to run)."
4. Select "about" in "Other information about this configuration."
5. Select " Open the .htm, .html, .xml and .pdf " for the introScientist.htm
and introProgrammer.htm files.
It is also possible to check for sizes and centering from the same page.
The sizes are set for XGA (1024x768), which is the size laptop that I have
and Edward may or may not have.