[kepler-users] getting error when running workflow with java code
Ufuk Utku Turuncoglu
turuncu at ucar.edu
Tue Apr 21 20:36:10 PDT 2009
Hi,
I try to run workflow from java code without GUI
(MoMLSimpleApplication). The workflow contains a myproxy actor and
display actor connect to it. When i run the workflow using method that
is defined in MoML simple application, it gives following error,
352 ms. Memory: 31616K Free: 9008K (28%)
ptolemy.kernel.util.IllegalActionException: Cannot find effigy for top
level: .01-teragrid-myproxy
in .01-teragrid-myproxy.Display
at ptolemy.actor.lib.gui.Display._openWindow(Display.java:445)
at ptolemy.actor.lib.gui.Display.postfire(Display.java:353)
at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:440)
The workflow runs without problem and get proxy credential from server
and it gives this error when the Display actor is fired. I expect that
the filter,
MoMLParser.addMoMLFilter(new RemoveGraphicalClasses());
must remove any actor that generates visual output but in this case it
is not working. I am just using following method to execute MoML,
private void execMoML(String moml) throws Exception {
// create MoML parser
MoMLParser parser = new MoMLParser();
// set MoML filter for backward compatibility
MoMLParser.setMoMLFilters(BackwardCompatibility.allFilters());
// Filter out any graphical classes.
MoMLParser.addMoMLFilter(new RemoveGraphicalClasses());
// create a composite actor that contains MoML
CompositeActor toplevel = (CompositeActor) parser.parse(moml);
// create a manager for composite actor and execute it
Manager manager = new Manager(toplevel.workspace(),
"MoMLSimpleApplication");
toplevel.setManager(manager);
//toplevel.addChangeListener(this);
//manager.addExecutionListener(this);
manager.execute();
}
As you can see, i comment out registration of listener. Is this cause
the problem? What is the purpose of these listeners.
Thanks,
--ufuk
More information about the Kepler-users
mailing list