[kepler-users] Problems with Actor - WebService With ComplexTypes
Luis Assunção
lass at isel.ipl.pt
Thu Apr 3 08:35:28 PDT 2008
Hi Daniel
After more work around I think the problem happen when the input port of the
Actor is a ComplexType?
Probably the following exception give you more exact information!
See also the attach xml file from new workflow around the same web service.
Regards
Luis
ptolemy.kernel.util.IllegalActionException: RemoteException: Server was
unable to process request. ---> Object reference not set to an instance of
an object.
in .ComplexTypes2.WSWithComplexTypes2
at org.sdm.spa.WSWithComplexTypes.fire(WSWithComplexTypes.java:394)
at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:398)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.j
ava:170)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:400)
at ptolemy.actor.Manager.iterate(Manager.java:688)
at ptolemy.actor.Manager.execute(Manager.java:332)
at ptolemy.actor.Manager.run(Manager.java:1071)
at ptolemy.actor.Manager$3.run(Manager.java:1112)
-----Original Message-----
From: kepler-users-bounces at ecoinformatics.org
[mailto:kepler-users-bounces at ecoinformatics.org] On Behalf Of Luis Assunção
Sent: Wednesday, April 02, 2008 12:27 PM
To: 'Daniel Crawl'
Cc: kepler-users at ecoinformatics.org
Subject: Re: [kepler-users] Problems with Actor - WebService With
ComplexTypes
Hi Daniel
See attach the xml file from workflow.
The Web Service is running on a local machine in ASP .NET Web service. It is
very simple (I wrote it only for test kepler with web service actor that
support complex types) and the type used as input/output methods is a simple
Class with 3 fields of the type string. In future I will need kepler to
invoke Web services with more complex data types, for instance, an
aggregated Class based on other classes.
Thanks in advance
Luis Assuncao
-----Original Message-----
From: Daniel Crawl [mailto:crawl at sdsc.edu]
Sent: Wednesday, April 02, 2008 12:38 AM
To: Luis Assunção
Cc: kepler-users at ecoinformatics.org
Subject: Re: [kepler-users] Problems with Actor - WebService With
ComplexTypes
Hi Luis,
Could you send the workflow xml file? I would like to know
what web service URL causes this problem.
Thanks,
--dan
Luis Assunção wrote:
>
> Hi
>
> After I have waited for Web Service Actor with complex types, finally
> I saw that this feature is available in Kepler version 1.0 rc1.
>
> Unfortunately I am disappointed because I tested with very simple
> workflow, see attached bitmap from kepler design, (first actor call a
> method getContact that return a complex type (ct) and the second actor
> call other method that receive the result from 1^st actor (ct) and
> then return the same complex type (ct).
>
> If I only call the first method works, but if call the second method
> (see below) I have the following exception:
>
>
>
> ptolemy.kernel.util.IllegalActionException: Attempt to link more than
> one relation to a single port.
>
> in .ComplexTypes.normalizeContact.ct and .ComplexTypes.ct
>
> at
> ptolemy.actor.IOPort._checkMultiportLink(IOPort.java:3811)
>
> at ptolemy.actor.IOPort._checkLink(IOPort.java:3255)
>
> at
> ptolemy.actor.TypedIOPort._checkLink(TypedIOPort.java:736)
>
> at
> ptolemy.kernel.ComponentPort.link(ComponentPort.java:540)
>
> at ptolemy.actor.IOPort.link(IOPort.java:2217)
>
> at
>
org.sdm.spa.WSWithComplexTypes._addPortForComposite(WSWithComplexTypes.java:
1182)
>
> at
> org.sdm.spa.WSWithComplexTypes._createOnePort(WSWithComplexTypes.java:946)
>
> at
>
org.sdm.spa.WSWithComplexTypes._genInputPortsAndActors(WSWithComplexTypes.ja
va:594)
>
> at
> org.sdm.spa.WSWithComplexTypes._initMethod(WSWithComplexTypes.java:573)
>
> at
> org.sdm.spa.WSWithComplexTypes.preinitialize(WSWithComplexTypes.java:363)
>
> at ptolemy.actor.Director.preinitialize(Director.java:865)
>
> at
> ptolemy.domains.sdf.kernel.SDFDirector.preinitialize(SDFDirector.java:527)
>
> at
> ptolemy.actor.CompositeActor.preinitialize(CompositeActor.java:1103)
>
> at
> ptolemy.actor.Manager.preinitializeAndResolveTypes(Manager.java:913)
>
> at ptolemy.actor.Manager.initialize(Manager.java:578)
>
> at ptolemy.actor.Manager.execute(Manager.java:321)
>
> at ptolemy.actor.Manager.run(Manager.java:1071)
>
> at ptolemy.actor.Manager$3.run(Manager.java:1112)
>
> There is someone can give me some help ?
>
>
>
> Luis Assuncao
>
> lass at isel.ipl.pt
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ComplexTypes2.xml
Type: text/xml
Size: 62089 bytes
Desc: not available
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20080403/257d9558/attachment.xml>
More information about the Kepler-users
mailing list