[kepler-dev] help with finding newly created actor
Arcot Rajasekar
sekar at sdsc.edu
Wed Jun 6 11:03:10 PDT 2007
Hi Unni
That sounds great. Now for the really hard work :-)
BTW, is "©" coming because of some SRB interaction.....
raja
On Wed, 6 Jun 2007, Unni Pillai wrote:
> Thanks
>
> Will avoid HTML markups like © within xml files :-( and
> additionally my file was missing </property> tag also
> My new actor is visible and now the hard part making it do some
> useful stuff :-)
>
> Unni
> On Jun 6, 2007, at 1:26 PM, Chad Berkley wrote:
>
> > There was an entity "©" in one of the properties that was
> > causing a problem. I removed it. I also put a comment in the xml
> > saying that you should replace the "documentation" property with a
> > KeplerDocumentation property. You can find an example in one of
> > the other moml files in src/actors.
> >
> > hope that helps,
> > chad
> >
> > Unni Pillai wrote:
> >> Thanks for the clarification
> >> I'm sending the moml file as attachment
> >> ---------------------------------------------------------------------
> >> ---
> >> On Jun 6, 2007, at 1:08 PM, Chad Berkley wrote:
> >>> the src/actor/xxx/xxx.xml file is the moml file.
> >>>
> >>> Unni Pillai wrote:
> >>>> Hi Chad
> >>>> A foolish question, where exactly can I find the moml file (is
> >>>> it under Ptolemy) since I've been only working with *.java and
> >>>> *.xml within kepler src
> >>>> Thanks
> >>>> Unni
> >>>> On Jun 6, 2007, at 12:55 PM, Chad Berkley wrote:
> >>>>> can you send me your moml file? I'll take a look at it.
> >>>>>
> >>>>> chad
> >>>>>
> >>>>> Unni Pillai wrote:
> >>>>>> Hello
> >>>>>> I created a new actor following the examples on Kepler
> >>>>>> Tutorials <http://www.kepler-project.org/Wiki.jsp?
> >>>>>> page=KeplerDevelopersTutorial>. I was able to create and
> >>>>>> verify tutorial samples.
> >>>>>> However I created a brand new actor called SRBMets and while
> >>>>>> firing up kepler using ant run-dev I'm getting the following
> >>>>>> error
> >>>>>> [java] com.microstar.xml.XmlException: reference to undeclared
> >>>>>> entity (found "copy") in [external stream] at line 17 and
> >>>>>> column 11
> >>>>>> [java] at ptolemy.moml.MoMLParser.error
> >>>>>> (MoMLParser.java:1006)
> >>>>>> [java] at com.microstar.xml.XmlParser.error
> >>>>>> (XmlParser.java:448)
> >>>>>> [java] at com.microstar.xml.XmlParser.parseEntityRef
> >>>>>> (XmlParser.java:1625)
> >>>>>> [java] at com.microstar.xml.XmlParser.parseContent
> >>>>>> (XmlParser.java:1061)
> >>>>>> [java] Unable to process kar file: /Users/unni/Documents/
> >>>>>> projects/ndiipp-ptv/kepler/kar/actors/SRBMets.kar
> >>>>>> Any ideas on how to debug this since I'm a relative newbie to
> >>>>>> kepler. I'm suspecting that my kepler/src/actors/SRBMets.xml
> >>>>>> file probably has some subtle error I'm providing the result
> >>>>>> of cat src/actors/README
> >>>>>> asterix:~/Documents/projects/ndiipp-ptv/kepler unni$ cat src/
> >>>>>> actors/README
> >>>>>> The last known id for an actor is actor:519
> >>>>>> The last known id for an kar is kar:519
> >>>>>> Please update these ids if you add new actors to this
> >>>>>> directory so the next person will know what the next ids to
> >>>>>> use are.
> >>>>>> and some corresponding snippet from my SRBMets.xml
> >>>>>> <entity name="SRBMets"
> >>>>>> class="ptolemy.kernel.ComponentEntity">
> >>>>>> <property name="entityId"
> >>>>>> value="urn:lsid:kepler-project.org:actor:520:1"
> >>>>>> class="org.kepler.moml.NamedObjId"/>
> >>>>>> And following other SRBActors examples I ended up cutting and
> >>>>>> pasting the following <property name="semanticType00"
> >>>>>> value="urn:lsid:localhost:onto:1:1#SRBExternalInputActor"
> >>>>>> class="org.kepler.sms.SemanticType"/>
> >>>>>> <property name="semanticType11"
> >>>>>> value="urn:lsid:localhost:onto:2:1#DatabaseInputFunction"
> >>>>>> class="org.kepler.sms.SemanticType"/>
> >>>>>> <property name="semanticType22"
> >>>>>> value="urn:lsid:localhost:onto:2:1#DatabaseOutputFunction"
> >>>>>> class="org.kepler.sms.SemanticType"/>
> >>>>>> Thanks in advance for any insights.
> >>>>>> Unni
> >>>>>> -----------------------------------------------------------------
> >>>>>> -------
> >>>>>> _______________________________________________
> >>>>>> Kepler-dev mailing list
> >>>>>> Kepler-dev at ecoinformatics.org
> >>>>>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/
> >>>>>> kepler-dev
> > <?xml version="1.0"?>
> > <entity name="SRBMets"
> > class="ptolemy.kernel.ComponentEntity">
> > <property name="entityId"
> > value="urn:lsid:kepler-project.org:actor:520:1"
> > class="org.kepler.moml.NamedObjId"/>
> >
> > <!--You should change this documentation attribute to use the new
> > KeplerDocumentation
> > format. Look at another moml file in the src/actors directory for
> > an example-->
> >
> > <property name="documentation"
> > class="org.kepler.moml.DocumentationAttribute">
> > <property name="author"
> > class="ptolemy.kernel.util.ConfigurableAttribute">
> > <configure>Unni Pillai</configure></property>
> > <property name="version"
> > class="ptolemy.kernel.util.ConfigurableAttribute">
> > <configure>$ID:$</configure></property>
> > <property name="copyright"
> > class="ptolemy.kernel.util.ConfigurableAttribute">
> > <configure> 2007 New York University</configure></property>
> > <property name="userLevelDocumentation"
> > class="ptolemny.kernel.util.ConfigurableAttribute">
> > <configure>
> > <p>The SRBMets actor generates a mets file for given directory
> > (collection) within SRB system.</p>
> > </configure>
> > </property>
> > </property>
> > <property name="class" value="edu.nyu.tutorial.SRBMets"
> > class="ptolemy.kernel.util.StringAttribute">
> > <property name="id"
> > value="urn:lsid:kepler-project.org:class:520:1"
> > class="ptolemy.kernel.util.StringAttribute"/>
> > </property>
> > <property name="SRBFileSystem" class="org.kepler.moml.PortAttribute">
> > <property name="direction"
> > value="input" class="ptolemy.kernel.util.StringAttribute"/>
> > <property name="dataType"
> > value="general" class="ptolemy.kernel.util.StringAttribute"/>
> > <property name="isMultiport"
> > value="false" class="ptolemy.kernel.util.StringAttribute"/>
> > <property name="_showName" class="ptolemy.kernel.util.Attribute"/>
> > </property>
> > <property name="path" class="org.kepler.moml.PortAttribute">
> > <property name="direction"
> > value="input" class="ptolemy.kernel.util.StringAttribute"/>
> > <property name="dataType"
> > value="{string}" class="ptolemy.kernel.util.StringAttribute"/>
> > <property name="isMultiport"
> > value="false" class="ptolemy.kernel.util.StringAttribute"/>
> > <property name="_showName" class="ptolemy.kernel.util.Attribute"/>
> > </property>
> > <property name="exitCode" class="org.kepler.moml.PortAttribute">
> > <property name="direction"
> > value="output" class="ptolemy.kernel.util.StringAttribute"/>
> > <property name="dataType"
> > value="string" class="ptolemy.kernel.util.StringAttribute"/>
> > <property name="isMultiport"
> > value="false" class="ptolemy.kernel.util.StringAttribute"/>
> > <property name="_showName" class="ptolemy.kernel.util.Attribute"/>
> > </property>
> > <property name="semanticType00"
> > value="urn:lsid:localhost:onto:1:1#SRBExternalInputActor"
> > class="org.kepler.sms.SemanticType"/>
> > <property name="semanticType11"
> > value="urn:lsid:localhost:onto:2:1#DatabaseInputFunction"
> > class="org.kepler.sms.SemanticType"/>
> > <property name="semanticType22"
> > value="urn:lsid:localhost:onto:2:1#DatabaseOutputFunction"
> > class="org.kepler.sms.SemanticType"/>
> > </entity>
> >
> >
> >
>
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>
More information about the Kepler-dev
mailing list