Bug #3108


ENM GARP Baseline 3-Actor GARP - Browser Display demo fails with NameDuplication: convertTo?

Added by Christopher Brooks almost 16 years ago. Updated over 15 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


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(
at ptolemy.kernel.util.NamedObj._addAttribute(
at ptolemy.kernel.util.Attribute.setContainer(
at ptolemy.kernel.util.Attribute.<init>(
at ptolemy.kernel.util.Attribute.<init>(
at ptolemy.kernel.util.AbstractSettableAttribute.<init>(
at ptolemy.kernel.util.StringAttribute.<init>(
at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at ptolemy.moml.MoMLParser._createInstance(
at ptolemy.moml.MoMLParser._handlePropertyElement(
at ptolemy.moml.MoMLParser.startElement(
at com.microstar.xml.XmlParser.parseElement(
at com.microstar.xml.XmlParser.parseContent(
at com.microstar.xml.XmlParser.parseElement(
at com.microstar.xml.XmlParser.parseContent(
at com.microstar.xml.XmlParser.parseElement(
at com.microstar.xml.XmlParser.parseDocument(
at com.microstar.xml.XmlParser.doParse(
at com.microstar.xml.XmlParser.parse(
at ptolemy.moml.MoMLParser.parse(
at ptolemy.moml.MoMLParser.parse(
at ptolemy.moml.MoMLParser.parse(
at javax.swing.JEditorPane.fireHyperlinkUpdate(
at javax.swing.text.html.HTMLEditorKit$LinkController.activateLink(
at javax.swing.text.html.HTMLEditorKit$LinkController.mouseClicked(
at java.awt.AWTEventMulticaster.mouseClicked(
at java.awt.Component.processMouseEvent(
at javax.swing.JComponent.processMouseEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

The third GARP demo, "3. GARP with Occurrence Data from Digir/Ecogrid"
also fails: C:\cxh\src\kepler\workflows\eco\garpModel_ImageJ_withData.xml (The system cannot find the file specified)
at Method)

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.

Actions #1

Updated by Dan Higgins almost 16 years ago

I cannot figure out just what workflows the errors reported correspond to. e.g 'Baseline 3-Actor GARP -Browser Display' doesn't appear to be the name of any workflows.

All the workflows in $KEPLER/demos/ENM work for me when opened individually.

One possibility is opening workflows with EML or DiGir date sources with the PTII about: may not work properly due to use of Kepler caching?

I am moving this to 1.0 release for further investigation.

Dan Higgins

Actions #2

Updated by Christopher Brooks almost 16 years ago

To replicate this,
1. ant run-dev
2. In the Welcome Window, click on "Getting Started"
3. This brings up kepler/configs/ptolemy/configs/kepler/introScientists.htm
4. Click on "ENM (GARP) Workflows
5. This brings up kepler/configs/ptolemy/configs/kepler/ENM_Workflows.html
6. Click on the first link, "1. Baseline 3-Actor GARP - Browser Display"
The corresponding link is kepler/workflows/eco/garpModel.xml
I get:

ptolemy.kernel.util.NameDuplicationException: Attempt to insert object named "convertTo" into a container that already contains an object with that name.

Actions #3

Updated by Chad Berkley over 15 years ago

We should not be linking to any workflows that do not work. All html links need to be checked and if any broken workflow links are found, they should be removed.

Actions #4

Updated by Sean Riddle over 15 years ago

A workflow in the workflows/ folder doesn't affect Kepler 1.0, since we're not releasing it, just demos/

Actions #5

Updated by Redmine Admin over 10 years ago

Original Bugzilla ID was 3108


Also available in: Atom PDF