[kepler-dev] NIL token
Jing Tao
tao at nceas.ucsb.edu
Wed Mar 29 13:12:13 PST 2006
Hi, Christopher:
The test workflow is alreay in
kepler/workflows/test/test-eml-missing-value-field.xml. You may run it and
to see what will happen. The stack trace is:
ptolemy.kernel.util.IllegalActionException: Run-time type checking failed.
Token nil with type general is incompatible with port type: double
in .test-eml-missing-value-field.Missing Value.Column2
at ptolemy.actor.TypedIOPort._checkType(TypedIOPort.java:741)
at ptolemy.actor.TypedIOPort.send(TypedIOPort.java:463)
at
org.ecoinformatics.seek.datasource.eml.eml2.Eml200OutputTypeField.fire(Eml200OutputTypeField.java:103)
at
org.ecoinformatics.seek.datasource.eml.eml2.Eml200DataSource.fire(Eml200DataSource.java:552)
at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:309)
at
ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:170)
at ptolemy.actor.CompositeActor.fire(CompositeActor.java:331)
at ptolemy.actor.Manager.iterate(Manager.java:613)
at ptolemy.actor.Manager.execute(Manager.java:322)
at ptolemy.actor.Manager.run(Manager.java:985)
at ptolemy.actor.Manager$3.run(Manager.java:1026)
Thanks,
Jing
Jing Tao
National Center for Ecological
Analysis and Synthesis (NCEAS)
735 State St. Suite 204
Santa Barbara, CA 93101
On Wed, 29 Mar 2006, Christopher Brooks wrote:
> Date: Wed, 29 Mar 2006 11:04:25 -0800
> From: Christopher Brooks <cxh at eecs.berkeley.edu>
> To: Jing Tao <tao at nceas.ucsb.edu>
> Cc: kepler-dev at ecoinformatics.org
> Subject: Re: [kepler-dev] NIL token
>
> Hi Jing,
>
> Good question, I was afraid there might be issues surrounding
> Nil tokens and types. My previous design had nil-ness being a
> property of the token, so we had a DoubleToken that was of
> type double and was nil. Now we have just one token which is nil.
>
> Can you construct a small model that has a similar failure?
>
> Also, what's the stack trace of the current failure?
> Perhaps where the types are being checked needs to be updated to
> handle nilness
>
> _Christopher
>
> --------
>
> hi, Christopher:
>
> According to the changes you made in ptolemy about nil token, I made the
> changes in kepler for missing value too.
>
> Since currently we only have one public static variable NIL in Token class
> (NIL is a generic type and there is no any other nil in sub token
> classes), I think every missing value element should be replaced by the
> NIL token no matter what the data type it is. But when I run the workflow
> test, I got some error:
>
> Workflow workflows/test/test-ecogrid-eml-gce-data.xml FAILED:
> [java] ptolemy.kernel.util.IllegalActionException: Run-time type checking
> failed. Token nil with type general is
> incompatible with port type: int
>
> So it seems the NIL token is not compatible to int port type. Did I miss
> something? How can I make the NIL token to compatible int port type?
>
> Thanks,
>
> Jing
>
> Jing Tao
> National Center for Ecological
> Analysis and Synthesis (NCEAS)
> 735 State St. Suite 204
> Santa Barbara, CA 93101
> _______________________________________________
> 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