[kepler-dev] SRB Put problems
Nandita Mangal
nmangal at sdsc.edu
Fri Feb 3 15:40:47 PST 2006
Hi Tristan,
I can't connect to SRB with the information in the SRB Connect.
ptolemy.kernel.util.IllegalActionException: Could not create an SRB
connection for channel 0: quiver.local
in .<Unnamed Object>.SRB Connect
in .<Unnamed Object>.SRB Connect
at org.srb.SRBConnect.initialize(SRBConnect.java:182)
at ptolemy.actor.process.ProcessThread.run(ProcessThread.java:133
Could you double-check the connection info?
thanks,
nandita.
Tristan King wrote:
>Hi again everyone
>
>I'm having some trouble figuring out the SRB SPut actor.
>
>I'm getting the following error when i try and run the SPut actor
>
>java.lang.ClassCastException: ptolemy.data.ArrayToken
> at org.srb.SPut.fire(SPut.java:166)
>
>I've attached the code for my directory polling actor and my workflow
>xml for you all to play with. Just untar the tar into kepler/src/,
>you'll have to add <include name="au/**"/> to the build.xml in the copy
>src files section, line 339, if anyone can give me any info on how i
>should actually name my packages that'd be great (au.edu.dart is just a
>temporary thing till i find out about naming standards). You can always
>just ignore my stuff and switch the DirectoryPoller and Sleep actor with
>a constant containing an array of local file names in it (which i've
>also tried and received the same errors).
>
>I'm probably doing something wrong, but i'm buggered if i can figure out
>what :)
>
>thanks everyone
>--Tristan
>
>
>
>------------------------------------------------------------------------
>
><?xml version="1.0" standalone="no"?>
><!DOCTYPE entity PUBLIC "-//UC Berkeley//DTD MoML 1//EN"
> "http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd">
><entity name="srb-dirpoll" class="ptolemy.actor.TypedCompositeActor">
> <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="5.1-alpha">
> </property>
> <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={227, 112, 855, 797}, maximized=false}">
> </property>
> <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[600, 659]">
> </property>
> <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0">
> </property>
> <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{276.0, 329.5}">
> </property>
> <property name="PN Director" class="ptolemy.domains.pn.kernel.PNDirector">
> <property name="_svgIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>../kepler-docs/dev/usability/graphics/svg/director.svg</configure>
> </property>
> <property name="_thumbnailRasterIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>/actorthumbs/director-sm.gif</configure>
> </property>
> <property name="timeResolution" class="ptolemy.moml.SharedParameter" value="1E-10">
> </property>
> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:director:2:1">
> </property>
> <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.domains.pn.kernel.PNDirector">
> <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:directorclass:2:1">
> </property>
> </property>
> <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Director">
> </property>
> <property name="_location" class="ptolemy.kernel.util.Location" value="{390, 145}">
> </property>
> </property>
> <entity name="Display" class="ptolemy.actor.lib.gui.Display">
> <property name="_svgIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>../kepler-docs/dev/usability/graphics/svg/text_disp.svg</configure>
> </property>
> <property name="_thumbnailRasterIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>/actorthumbs/text_disp-sm.gif</configure>
> </property>
> <property name="rowsDisplayed" class="ptolemy.data.expr.Parameter" value="10">
> </property>
> <property name="columnsDisplayed" class="ptolemy.data.expr.Parameter" value="40">
> </property>
> <property name="suppressBlankLines" class="ptolemy.data.expr.Parameter" value="false">
> </property>
> <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={541, 657, 428, 214}, maximized=false}">
> </property>
> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:7:1">
> </property>
> <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.gui.Display">
> <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:883:1">
> </property>
> </property>
> <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#TextualOutputActor">
> </property>
> <property name="_location" class="ptolemy.kernel.util.Location" value="[525.0, 400.0]">
> </property>
> </entity>
> <entity name="SRB Connect" class="org.srb.SRBConnect">
> <property name="_svgIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>../kepler-docs/dev/usability/graphics/svg/basic-actor.svg</configure>
> </property>
> <property name="_thumbnailRasterIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>/actorthumbs/basic-actor-sm.gif</configure>
> </property>
> <property name="srbHost" class="ptolemy.kernel.util.StringAttribute" value="quiver.local">
> </property>
> <property name="srbPort" class="ptolemy.kernel.util.StringAttribute" value="5544">
> </property>
> <property name="srbUserName" class="ptolemy.kernel.util.StringAttribute" value="srbadmin">
> </property>
> <property name="srbPasswd" class="ptolemy.kernel.util.StringAttribute" value="d4r7r007">
> </property>
> <property name="srbHomeCollection" class="ptolemy.kernel.util.StringAttribute" value="/A/home/srbadmin.tristan-dart-test">
> </property>
> <property name="srbMdasDomainHome" class="ptolemy.kernel.util.StringAttribute" value="tristan-dart-test">
> </property>
> <property name="srbDefaultResource" class="ptolemy.kernel.util.StringAttribute" value="tristan-dart-test-res">
> </property>
> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:159:1">
> </property>
> <property name="class" class="ptolemy.kernel.util.StringAttribute" value="org.srb.SRBConnect">
> <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1017:1">
> </property>
> </property>
> <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#SRBExternalInputActor">
> </property>
> <property name="_location" class="ptolemy.kernel.util.Location" value="[45.0, 115.0]">
> </property>
> </entity>
> <entity name="Constant" class="ptolemy.actor.lib.Const">
> <property name="_svgIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>../kepler-docs/dev/usability/graphics/svg/basic-actor.svg</configure>
> </property>
> <property name="_thumbnailRasterIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>/actorthumbs/basic-actor-sm.gif</configure>
> </property>
> <property name="value" class="ptolemy.data.expr.Parameter" value="{"/A/home/srbadmin.tristan-dart-test"}">
> </property>
> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:1:1">
> </property>
> <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Const">
> <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:877:1">
> </property>
> </property>
> <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#ConstantActor">
> </property>
> <property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
> <property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="value">
> </property>
> <property name="displayWidth" class="ptolemy.data.expr.Parameter" value="40">
> </property>
> </property>
> <property name="_location" class="ptolemy.kernel.util.Location" value="[170.0, 405.0]">
> </property>
> </entity>
> <entity name="SRB SPut" class="org.srb.SPut">
> <property name="_svgIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>../kepler-docs/dev/usability/graphics/svg/basic-actor.svg</configure>
> </property>
> <property name="_thumbnailRasterIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>/actorthumbs/basic-actor-sm.gif</configure>
> </property>
> <property name="confirmOverwrite" class="ptolemy.data.expr.Parameter" value="false">
> </property>
> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:256:1">
> </property>
> <property name="class" class="ptolemy.kernel.util.StringAttribute" value="org.srb.SPut">
> <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1082:1">
> </property>
> </property>
> <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#SRBExternalInputActor">
> </property>
> <property name="_location" class="ptolemy.kernel.util.Location" value="[300.0, 300.0]">
> </property>
> <property name="_expertMode" class="ptolemy.kernel.util.SingletonAttribute">
> </property>
> </entity>
> <entity name="DirectoryPoller" class="au.edu.dart.DirectoryPoller">
> <property name="_svgIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>../kepler-docs/dev/usability/graphics/svg/basic-actor.svg</configure>
> </property>
> <property name="_thumbnailRasterIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>/actorthumbs/basic-actor-sm.gif</configure>
> </property>
> <property name="Directory" class="ptolemy.actor.parameters.FilePortParameter" value="/home/tristan/kepler">
> <property name="allowFiles" class="ptolemy.data.expr.Parameter" value="false">
> </property>
> <property name="allowDirectories" class="ptolemy.data.expr.Parameter" value="true">
> </property>
> </property>
> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:451:1">
> </property>
> <property name="class" class="ptolemy.kernel.util.StringAttribute" value="au.edu.dart.DirectoryPoller">
> <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:451:1">
> </property>
> </property>
> <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#ConstantActor">
> </property>
> <property name="_location" class="ptolemy.kernel.util.Location" value="[-3.3345489501953125, 264.51841735839844]">
> </property>
> </entity>
> <entity name="Sleep" class="ptolemy.actor.lib.Sleep">
> <property name="_svgIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>../kepler-docs/dev/usability/graphics/svg/basic-actor.svg</configure>
> </property>
> <property name="_thumbnailRasterIcon" class="ptolemy.kernel.util.ConfigurableAttribute">
> <configure>/actorthumbs/basic-actor-sm.gif</configure>
> </property>
> <property name="sleepTime" class="ptolemy.actor.parameters.PortParameter" value="0L">
> </property>
> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:92:1">
> </property>
> <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Sleep">
> <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:966:1">
> </property>
> </property>
> <property name="semanticType000" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#ControlActor">
> </property>
> <property name="_location" class="ptolemy.kernel.util.Location" value="{145, 315}">
> </property>
> <port name="sleepTime" class="ptolemy.actor.parameters.ParameterPort">
> <property name="input"/>
> <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="SOUTH">
> </property>
> </port>
> </entity>
> <relation name="relation3" class="ptolemy.actor.TypedIORelation">
> <property name="width" class="ptolemy.data.expr.Parameter" value="1">
> </property>
> </relation>
> <relation name="relation5" class="ptolemy.actor.TypedIORelation">
> <property name="width" class="ptolemy.data.expr.Parameter" value="1">
> </property>
> </relation>
> <relation name="relation4" class="ptolemy.actor.TypedIORelation">
> <property name="width" class="ptolemy.data.expr.Parameter" value="1">
> </property>
> </relation>
> <relation name="relation2" class="ptolemy.actor.TypedIORelation">
> <property name="width" class="ptolemy.data.expr.Parameter" value="1">
> </property>
> </relation>
> <relation name="relation" class="ptolemy.actor.TypedIORelation">
> <property name="width" class="ptolemy.data.expr.Parameter" value="1">
> </property>
> </relation>
> <relation name="relation6" class="ptolemy.actor.TypedIORelation">
> <property name="width" class="ptolemy.data.expr.Parameter" value="1">
> </property>
> </relation>
> <link port="Display.input" relation="relation5"/>
> <link port="Display.input" relation="relation4"/>
> <link port="SRB Connect.SRBFileSystem" relation="relation3"/>
> <link port="Constant.output" relation="relation2"/>
> <link port="SRB SPut.SRBFileSystem" relation="relation3"/>
> <link port="SRB SPut.filesToPut" relation="relation6"/>
> <link port="SRB SPut.uploadedFiles" relation="relation4"/>
> <link port="SRB SPut.exitCode" relation="relation5"/>
> <link port="SRB SPut.remoteDir" relation="relation2"/>
> <link port="DirectoryPoller.output" relation="relation"/>
> <link port="Sleep.input" relation="relation"/>
> <link port="Sleep.output" relation="relation6"/>
></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