Project

General

Profile

Actions

Bug #4004

closed

error inferring widths in instance of class actor

Added by Daniel Crawl over 15 years ago. Updated over 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
actors
Target version:
Start date:
04/21/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4004

Description

I get an exception when creating an instance of a class actor that contains a relation:

1. place composite actor on canvas
2. create a relation between 2 actors inside composite actor
3. make composite actor a class
4. create instance of class

I also get this exception when loading a model with instances of class actors.

The gui reports the exception originates at ptolemy.moml.MoMLParser.startElement(), but it is actually:

java.lang.NullPointerException
at ptolemy.actor.CompositeActor.inferringWidths(CompositeActor.java:587)
at ptolemy.actor.IORelation._inferringWidths(IORelation.java:901)
at ptolemy.actor.IORelation._setWidth(IORelation.java:1133)
at ptolemy.actor.IORelation.attributeChanged(IORelation.java:173)
at ptolemy.data.expr.Variable._setTokenAndNotify(Variable.java:1992)
at ptolemy.data.expr.Variable._evaluate(Variable.java:1646)
at ptolemy.data.expr.Variable._propagate(Variable.java:1732)
at ptolemy.data.expr.Variable.validate(Variable.java:1430)
at ptolemy.kernel.util.NamedObj._validateSettables(NamedObj.java:2687)
at ptolemy.kernel.util.NamedObj.validateSettables(NamedObj.java:1990)
at ptolemy.kernel.ComponentRelation.setContainer(ComponentRelation.java:459)
at ptolemy.actor.IORelation.setContainer(IORelation.java:632)
at ptolemy.kernel.CompositeEntity.clone(CompositeEntity.java:335)
at ptolemy.actor.CompositeActor.clone(CompositeActor.java:256)
at ptolemy.kernel.InstantiableNamedObj.instantiate(InstantiableNamedObj.java:384)
at ptolemy.kernel.ComponentEntity.instantiate(ComponentEntity.java:180)
at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4040)
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2461)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:931)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)

....
Actions #1

Updated by Bert Rodiers over 15 years ago

The problem was a result of restructuring the code to allow using width inference in model transformation and pTera. Sorry for the inconvenience.

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 4004

Actions

Also available in: Atom PDF