Hi Chris,

Thanks for the reply.  Following is the illustration for the logic I have.

Public TestActor extends TypedAtomicActor
{
                TypedIOPort input, output;
Public  TestActor (CompositeEntity container , String name ) throws 
IllegalActionException, NameDuplicationException
{
                Super ( container, name);
                input = createInputPort ( "test");
                output = createOutputPort ("test");
}
Public void fire () throws IllegalActionException
{
                Super.fire();
                If ( some-condition-met)
{
                List <IOPort> ports = this.outputPortList();
                For (IOPort port : ports )
{
                Object value = getValueFor ( port.getName ());
                Token token = createTokenFromObject ( value ) ;
                port.send (0, token); // THIS LINE IS THROWING TPE
}
}
}

public void postfire() throws IllegalActionException
{
return doWeWantToStop();
}
}

Regards,
Madhavi

From: Christopher Brooks [mailto:[email protected]]
Sent: Saturday, August 25, 2012 10:32 AM
To: Madhavi Tikhe
Cc: kepler-dev
Subject: Re: [kepler-dev] Getting TerminateProcessException when sending token 
from input port to output port

Do you have a small model that illustrates the problem?

_Christopher
On 8/24/12 10:00 PM, Madhavi Tikhe wrote:
Hi,

I am trying to send the token to output port on some conditions related to my 
application.
I am using PN director for my workflow and using port.send (0,token) to send 
the token to next input port.
I am experiencing the following exception and is blocked on it.

ptolemy.actor.process.TerminateProcessException: Process terminated.
        at 
ptolemy.domains.pn.kernel.PNQueueReceiver.put(PNQueueReceiver.java:450)
        at ptolemy.actor.AbstractReceiver.putToAll(AbstractReceiver.java:347)
        at ptolemy.actor.IOPort.send(IOPort.java:2733)
        at ptolemy.actor.TypedIOPort.send(TypedIOPort.java:484)


Have you experienced this problem before? Do you have any suggestions for this?

Thanks in advance for the help.
Madhavi


DISCLAIMER ========== This e-mail may contain privileged and confidential 
information which is the property of Persistent Systems Ltd. It is intended 
only for the use of the individual or entity to which it is addressed. If you 
are not the intended recipient, you are not authorized to read, retain, copy, 
print, distribute or use this message. If you have received this communication 
in error, please notify the sender and delete all copies of this message. 
Persistent Systems Ltd. does not accept any liability for virus infected mails.




_______________________________________________

Kepler-dev mailing list

[email protected]<mailto:[email protected]>

http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev



--

Christopher Brooks, PMP                       University of California

CHESS Executive Director                      US Mail: 337 Cory Hall

Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774

ph: 510.643.9841                                (Office: 545Q Cory)

home: (F-Tu) 707.665.0131 cell: 707.332.0670

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
_______________________________________________
Kepler-dev mailing list
[email protected]
http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

Reply via email to