[kepler-dev] Please anyone help me how display the workflow model result in browser.

Rajan Saminathan rajan.saminathan at mimos.my
Thu Apr 23 03:14:19 PDT 2009


Dear Sir,

      I am trying to run the workflow model in browser.  I am executing a workflow model using execute method. At last display window is not opening. I am getting error called: ptolemy.kernel.util.IllegalActionException: Cannot find effigy for top level: .Onedbconnection
  in .Onedbconnection.Display
      at ptolemy.actor.lib.gui.Display._openWindow(Display.java:457)
      at ptolemy.actor.lib.gui.Display.postfire(Display.java:358)
      at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:439)
      at ptolemy.actor.sched.StaticSchedulingDirector.fire(StaticSchedulingDirector.java:188)
      at ptolemy.actor.CompositeActor.fire(CompositeActor.java:415)
      at ptolemy.actor.Manager.iterate(Manager.java:779)
      at ptolemy.actor.Manager.execute(Manager.java:377)
      at ptolemy.vergil.basic.Onedbconnection.main(Onedbconnection.java:42)


Means new window is not opening. That is called JFrame. I am able to get result in eclipse console.





Java Source Code


        MoMLParser parser = new MoMLParser();

        Manager manager = new Manager();

        File xmlFile = new File(
                "D:/workspace/kepler/demos/Workflow/Onedbconnection.xml");


        try {

            URL base = null;

            URL inputs = null;
            base = xmlFile.toURI().toURL();
            inputs = xmlFile.toURI().toURL();

            CompositeActor topLevel = (CompositeActor) parser.parse(base,
                    inputs);

            Manager _manager = new Manager(topLevel.workspace(), "MoMLRunner");
            topLevel.setManager(_manager);
            _manager.execute();

        } catch (Exception e) {
            e.printStackTrace();
        }

Please anyone help me how display the workflow model result in browser.


Thanks and Regards,
                        Rajan S.




------------------------------------------------------------------
-
-
DISCLAIMER: 

This e-mail (including any attachments) may contain confidential
information. 
If you are not the intended recipient, you are hereby notified that any
dealing, 
review, distribution, printing, copying or use of this e-mail is
strictly prohibited. 
If you have received this email in error, please notify the sender or
MIMOS Berhad 
immediately and delete the original message. Opinions, conclusions and
other 
information in this e-mail that do not relate to the official business
of MIMOS Berhad 
and/or its subsidiaries shall be understood as neither given nor
endorsed by MIMOS 
Berhad and/or its subsidiaries and neither MIMOS Berhad nor its
subsidiaries accepts 
responsibility for the same. All liability arising from or in connection
with computer 
viruses and/or corrupted e-mails is excluded to the fullest extent
permitted by law.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20090423/a1b54fd5/attachment.html>


More information about the Kepler-dev mailing list