Thanks so much. Will try this.<div><br><br><div class="gmail_quote">On Tue, Aug 11, 2009 at 6:23 PM, Derik Barseghian <span dir="ltr"><<a href="mailto:barseghian@nceas.ucsb.edu">barseghian@nceas.ucsb.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Subhav,<br>
<br>
I just checked and see the two bugs related to our below discussion are still open.<br>
<a href="http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3930" target="_blank">http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3930</a><br>
<a href="http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3943" target="_blank">http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3943</a><br>
<br>
Before I look into these to see if the problems still occur, let me ask: Is your current desire the same, to create and use two actors with Kepler-1.0? Since we have made many bug fixes and improvements to the development version of Kepler since we last spoke, if you don't need to user kepler-1.0 it might make sense for you to instead try working with our pre-alpha1-branch of Kepler. Setting up this branch requires the same assumptions be fulfilled as listed on the website for building the latest development version (<a href="https://kepler-project.org/developers/teams/build/documentation/build-system-instructions" target="_blank">https://kepler-project.org/developers/teams/build/documentation/build-system-instructions</a>#assumptions), but to build the branch you instead use these commands:<br>


<br>
svn co <a href="https://code.kepler-project.org/code/kepler/branches/release-2.0.0-pre-alpha1-branch/modules/build-area" target="_blank">https://code.kepler-project.org/code/kepler/branches/release-2.0.0-pre-alpha1-branch/modules/build-area</a> build-area<br>


cd build-area<br>
ant clean-cache<br>
ant change-to -Dsuite=wrp -Dbranch=<a href="https://code.kepler-project.org/code/kepler/branches/release-2.0.0-pre-alpha1-branch" target="_blank">https://code.kepler-project.org/code/kepler/branches/release-2.0.0-pre-alpha1-branch</a><br>


ant update-ptolemy -Drev=54826<br>
ant run<br><font color="#888888">
<br>
Derik</font><div><div></div><div class="h5"><br>
<br>
<br>
On Aug 11, 2009, at 1:26 PM, subhav mital wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
This was just to check if this bug has been resolved?<br>
<br>
Thanks<br>
<br>
On Sat, Apr 4, 2009 at 2:28 AM, subhav mital <<a href="mailto:mital.subhav@gmail.com" target="_blank">mital.subhav@gmail.com</a>> wrote:<br>
Thank you for that! :-)<br>
<br>
On Sat, Apr 4, 2009 at 1:11 AM, Derik Barseghian <<a href="mailto:barseghian@nceas.ucsb.edu" target="_blank">barseghian@nceas.ucsb.edu</a>> wrote:<br>
Hi Subhav,<br>
I don't think that will be necessary. It seems to me we have a bug or two that we need to fix on our end. We'll try to get it worked out next week and let you know when it's fixed. Thanks for your patience!<br>


Derik<br>
<br>
<br>
<br>
On Apr 3, 2009, at 20:09, subhav mital <<a href="mailto:mital.subhav@gmail.com" target="_blank">mital.subhav@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Derik,<br>
<br>
I am using Windows Vista.<br>
The next thing I could do is take a video and send it to you ??<br>
<br>
Maybe I am doing something wrong.<br>
<br>
Thanks.<br>
<br>
On Fri, Apr 3, 2009 at 8:51 PM, Derik Barseghian <<a href="mailto:barseghian@nceas.ucsb.edu" target="_blank">barseghian@nceas.ucsb.edu</a>> wrote:<br>
Hi Subhav,<br>
<br>
Which version of Windows are you running? I'm not getting the error message you are, but I am unable to Import Archive more than one actor created in one suite using Kepler-1.0, I get:<br>
"Error inserting the kar file into the cache: Id already exists in the cache" messages.<br>
<br>
We'll try to find the source of this problem.<br>
Derik<br>
<br>
<br>
On Apr 3, 2009, at 2:05 PM, subhav mital wrote:<br>
<br>
Hi Matt and Derik,<br>
<br>
Thanks for your comments.<br>
<br>
Creating two different suites was just a personal preference. However, I still don't solve the basic problem of instantiating previously  created actors without errors even if I use a single suite. A simple ant run does not solve the problem. To get the actor, I have to execute ant change-to.<br>


<br>
Existing actors in Kepler, can be dragged and dropped but not newly created ones.<br>
<br>
<br>
Copied below is the stack trace which I get when I drag and drop the actor without executing ant change-to and directly opening Kepler by executing ant run from command line. (Using Version 1.0)<br>
<br>
<br>
<br>
ptolemy.kernel.util.IllegalActionException: Cannot find class: org.UserIp.UserIp<br>
Because:<br>
-- C:\.........\org\UserIp\UserIp.moml (The system cannot find the path specified)<br>
-- XML file not found relative to classpath.<br>
-- C:\..........\org/UserIp/UserIp.moml<br>
-- C:\..........\org/UserIp/UserIp.moml (The system cannot find the path specified)<br>
 in file:.............MultipleInput. xml at line 155 and column 42<br>
       at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3701)<br>
       at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2379)<br>
       at com.microstar.xml.XmlParser.parseElement(XmlParser.java:921)<br>
       at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)<br>
       at com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)<br>
       at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)<br>
       at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)<br>
       at com.microstar.xml.XmlParser.parse(XmlParser.java:132)<br>
       at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1334)<br>
       at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1292)<br>
       at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1265)<br>
       at ptolemy.actor.gui.PtolemyEffigy$Factory.createEffigy(PtolemyEffigy.java:412)<br>
       at ptolemy.actor.gui.EffigyFactory.createEffigy(EffigyFactory.java:209)<br>
       at ptolemy.actor.gui.Configuration.openModel(Configuration.java:595)<br>
       at ptolemy.actor.gui.Configuration.openModel(Configuration.java:555)<br>
       at ptolemy.actor.gui.TableauFrame._read(TableauFrame.java:893)<br>
       at ptolemy.gui.Top._open(Top.java:704)<br>
       at ptolemy.gui.Top$FileMenuListener.actionPerformed(Top.java:1093)<br>
       at ptolemy.vergil.basic.MenuMapper$1.actionPerformed(MenuMapper.java:326)<br>
       at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)<br>
       at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)<br>
       at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)<br>
       at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)<br>
       at javax.swing.AbstractButton.doClick(AbstractButton.java:302)<br>
       at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)<br>
       at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)<br>
       at java.awt.Component.processMouseEvent(Component.java:5517)<br>
       at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)<br>
       at java.awt.Component.processEvent(Component.java:5282)<br>
       at java.awt.Container.processEvent(Container.java:1966)<br>
       at java.awt.Component.dispatchEventImpl(Component.java:3984)<br>
       at java.awt.Container.dispatchEventImpl(Container.java:2024)<br>
       at java.awt.Component.dispatchEvent(Component.java:3819)<br>
       at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)<br>
       at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)<br>
       at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)<br>
       at java.awt.Container.dispatchEventImpl(Container.java:2010)<br>
       at java.awt.Window.dispatchEventImpl(Window.java:1791)<br>
       at java.awt.Component.dispatchEvent(Component.java:3819)<br>
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)<br>
       at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)<br>
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)<br>
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)<br>
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)<br>
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)<br>
Caused by: com.microstar.xml.XmlException: -- -- C:\..........\org/UserIp/UserIp.moml-- XML file not found relative to classpath.<br>
<br>
       at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1145)<br>
       at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3504)<br>
       at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3696)<br>
       ... 44 more<br>
Caused by: com.microstar.xml.XmlException: --<br>
<br>
       at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1145)<br>
       at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3504)<br>
       at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:3696)<br>
       at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2379)<br>
       at com.microstar.xml.XmlParser.parseElement(XmlParser.java:921)<br>
       at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1104)<br>
       at com.microstar.xml.XmlParser.parseElement(XmlParser.java:924)<br>
       at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481)<br>
       at com.microstar.xml.XmlParser.doParse(XmlParser.java:159)<br>
       at com.microstar.xml.XmlParser.parse(XmlParser.java:132)<br>
       at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1334)<br>
       at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1292)<br>
       at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1265)<br>
       at ptolemy.actor.gui.PtolemyEffigy$Factory.createEffigy(PtolemyEffigy.java:412)<br>
       at ptolemy.actor.gui.EffigyFactory.createEffigy(EffigyFactory.java:209)<br>
       at ptolemy.actor.gui.Configuration.openModel(Configuration.java:595)<br>
       at ptolemy.actor.gui.Configuration.openModel(Configuration.java:555)<br>
       at ptolemy.actor.gui.TableauFrame._read(TableauFrame.java:893)<br>
       at ptolemy.gui.Top._open(Top.java:704)<br>
       at ptolemy.gui.Top$FileMenuListener.actionPerformed(Top.java:1093)<br>
       at ptolemy.vergil.basic.MenuMapper$1.actionPerformed(MenuMapper.java:326)<br>
       at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)<br>
       at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)<br>
       at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)<br>
       at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)<br>
       at javax.swing.AbstractButton.doClick(AbstractButton.java:302)<br>
       at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)<br>
       at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)<br>
       at java.awt.Component.processMouseEvent(Component.java:5517)<br>
       at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)<br>
       at java.awt.Component.processEvent(Component.java:5282)<br>
       at java.awt.Container.processEvent(Container.java:1966)<br>
       at java.awt.Component.dispatchEventImpl(Component.java:3984)<br>
       at java.awt.Container.dispatchEventImpl(Container.java:2024)<br>
       at java.awt.Component.dispatchEvent(Component.java:3819)<br>
       at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)<br>
       at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)<br>
       at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)<br>
       at java.awt.Container.dispatchEventImpl(Container.java:2010)<br>
       at java.awt.Window.dispatchEventImpl(Window.java:1791)<br>
       at java.awt.Component.dispatchEvent(Component.java:3819)<br>
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)<br>
       at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)<br>
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)<br>
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)<br>
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)<br>
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)<br>
<br>
<br>
<br>
Am I missing something?<br>
<br>
Thanks!<br>
<br>
<br>
On Wed, Apr 1, 2009 at 8:51 PM, Matt Jones <<a href="mailto:jones@nceas.ucsb.edu" target="_blank">jones@nceas.ucsb.edu</a>> wrote:<br>
If Derik's assumption is correct, then the two modules are the issue,<br>
and switching from one to another causes the other to no longer be<br>
built. Using a single module is the simplest solution.  However,  if<br>
you do have a concrete reason for keeping the actors in separate<br>
modules, you could create a third suite that depends upon the first<br>
two, and then you would be able to build both modules at the same<br>
time.  Wouldn't this work?<br>
<br>
Matt<br>
<br>
On Wed, Apr 1, 2009 at 4:44 PM, Derik Barseghian<br>
<<a href="mailto:barseghian@nceas.ucsb.edu" target="_blank">barseghian@nceas.ucsb.edu</a>> wrote:<br>
> Hi Subhav,<br>
><br>
> Just to be sure I understand your situation, am I right that your two actors<br>
> are each in a suite of their own? That is, the UserIp suite contains the<br>
> UserIp actor and the UserDecision suite contains the UserDecision actor?<br>
> Unless you have a reason for two suites, I would instead just use one --<br>
> create both actors in one suite.<br>
><br>
> I think you're essentially trying to do the same thing as the hello-world<br>
> tutorial, except with two suites each containing an actor, and you want the<br>
> first actor available in the second suite. I think I was able to replicate<br>
> the problem you're seeing by doing roughly the procedure attached below.<br>
> I'll file a bug and we'll look into this. In the meantime, you might try<br>
> putting your actors in one suite.<br>
><br>
> Thanks,<br>
> Derik<br>
><br>
> ----------------------<br>
> cd kepler.modules/build-area<br>
> ant clean-cache<br>
> ant change-to -Dsuite=kepler-1.0<br>
> ant make-module-suite -Dname=hello-world<br>
> ant change-to -Dsuite=hello-world<br>
> cd ../hello-world/src<br>
> mkdir org<br>
> cd org<br>
> [create the HelloWorld actor java file from the website]<br>
> cd ../../../build-area/<br>
> ant run<br>
> instantiate HelloWorld actor<br>
> Right click on actor, Export to Kar, saving class file<br>
> Quit Kepler<br>
><br>
> ant clean-cache<br>
> ant change-to -Dsuite=kepler-1.0<br>
> ant run<br>
> File => Import Archive (the hello world actor)<br>
> Dialog (that stretches beyond the length of one monitor): The id of the<br>
> actor or workflow you are trying to import already exists [snip] Would you<br>
> like to change the id of your actor to the next available id?" (Click Yes)<br>
> Error: Error inserting the kar file into the cache: Id already exists in the<br>
> cache: Error creating KARCacheObject: lib/jar/org.helloworld.HelloWorld.jar<br>
> (No such file or directory).<br>
><br>
><br>
><br>
> On Apr 1, 2009, at 3:27 PM, subhav mital wrote:<br>
><br>
>> Hey,<br>
>> Thanks for that.<br>
>><br>
>> Let me explain again.<br>
>> I have created two actors named: 1) UserIp and 2) UserDecision<br>
>><br>
>> -Now, the only way I can execute the UserIp actor is by using ant<br>
>> change-to -Dsuite=UserIp. (This is the only way, since a) The first time I<br>
>> create this actor and save it in the library and drag it to the window, I<br>
>> get an error: "Change Failed: Cannot create entity without a class <a href="http://name.in" target="_blank">name.in</a><br>
>> [external stream] at line 1 column 29 and b) if I export it as a KAR and<br>
>> then then import it again, I get errors again)<br>
>><br>
>> - Suppose that I want to instantiate a UserDecision actor into my<br>
>> workspace, I have to again type ant change-to -Dsuite=UserDecision. for this<br>
>> actor to work. A previously saved actor into my library or an exported KAR<br>
>> does not work.<br>
>><br>
>> Hence: The only way I can run actors created by me using Kepler 1.0 is by<br>
>> first typing ant change-to.... in the command line and then using the actor.<br>
>> This does not happen with other actors that are in the repository or<br>
>> previously created actors. I wonder why this happens and how do I resolve<br>
>> this?<br>
>><br>
>> Hence, the primary problem is, that I cannot use UserDecision and UserIp<br>
>> at the same time, since only one instance of Kepler can run at a time from<br>
>> the command line. If I try to run two, I get the error, cannot parse<br>
>> -kepler.<br>
>><br>
>> I hope I have been clear about the problem I am facing. Please help<br>
>><br>
>> Thanks!<br>
>><br>
>><br>
>><br>
>><br>
>> On Wed, Apr 1, 2009 at 2:04 PM, Derik Barseghian<br>
>> <<a href="mailto:barseghian@nceas.ucsb.edu" target="_blank">barseghian@nceas.ucsb.edu</a>> wrote:<br>
>> Hi Subhav,<br>
>><br>
>> >From what I understand, you have two suites, UserDecision and UserIp,<br>
>> each with an actor of the same name inside each suite. I just ran a test,<br>
>> creating your UserIp actor, instantiating it in one suite, and then<br>
>> exporting it as a kar that includes the class file. I then imported the<br>
>> actor with Import Archive. Searching for and dragging the actor from the<br>
>> library works at this point. I quit kepler, then ran a change-to to switch<br>
>> to another suite, and launched kepler. If you search for the actor in the<br>
>> library at this point, it will show up, but will give an error if you drag<br>
>> it to canvas. Also, if you try to import the kar, you'll receive errors. I'm<br>
>> going to file this as a bug if one doesn't already exist. One solution for<br>
>> now, until we fix the problem, is to run ant clean-cache before you<br>
>> change-to to your second suite. You should then be able to import the kar in<br>
>> your second suite. This should also work if instead of a second suite you're<br>
>> using Kepler 1.0, but let me know if it doesn't.<br>
>><br>
>> Thanks,<br>
>> Derik<br>
>><br>
>><br>
>> On Apr 1, 2009, at 12:28 AM, subhav mital wrote:<br>
>><br>
>> Basically, the error I get is that the XML file not found relative to the<br>
>> classpath.<br>
>> What is wrong? Please advise, how this can be resolved!<br>
>><br>
>> Thanks!<br>
>><br>
>> On Wed, Apr 1, 2009 at 2:33 AM, subhav mital <<a href="mailto:mital.subhav@gmail.com" target="_blank">mital.subhav@gmail.com</a>><br>
>> wrote:<br>
>> Hey,<br>
>><br>
>> This does not work. When I created a new actor (UserDecision) and finally<br>
>> enter ant change-to -Dsuite=UserDecision, then only this single command<br>
>> controls what can be instantiated.<br>
>><br>
>> If I type ant change-to -Dsuite=UserIp, then I can drag/drop this actor<br>
>> saved in the library.<br>
>><br>
>> I don't see any other way of solving this problem. Importing Kar gives me<br>
>> a whole lot of errors.<br>
>><br>
>> Please help.<br>
>><br>
>> Thanks!<br>
>><br>
>><br>
>> On Mon, Mar 30, 2009 at 2:11 PM, Daniel Crawl <<a href="mailto:crawl@sdsc.edu" target="_blank">crawl@sdsc.edu</a>> wrote:<br>
>><br>
>> Hi Subhav,<br>
>><br>
>> The problem is that the implementation of your actor is not<br>
>> available to the Kepler you installed from the installer.<br>
>> 'Save in Library' stores metadata about actors, but not<br>
>> their implementation.<br>
>><br>
>> If you want to use your new actor in the installer version,<br>
>> you could export it as a KAR file using the svn version and<br>
>> then import the KAR file in the installer version.<br>
>><br>
>>  --dan<br>
>><br>
>><br>
>><br>
>><br>
>> subhav mital wrote:<br>
>> "C:\Program Files\kepler-1.0.0\kepler.exe"<br>
>><br>
>> This is the installer which I present on the site.<br>
>><br>
>> I wanted to use the kepler trunk and get eclipse running, so I checked out<br>
>> the trunk from ant command line, and started using it that way.<br>
>><br>
>> In David's tutorial,<br>
>> <a href="https://kepler-project.org/developers/teams/build/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse" target="_blank">https://kepler-project.org/developers/teams/build/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse</a> <<a href="https://kepler-project.org/developers/teams/build/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse" target="_blank">https://kepler-project.org/developers/teams/build/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse</a>><br>


>> [<a href="https://kepler-project.org/developers/teams/build/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse" target="_blank">https://kepler-project.org/developers/teams/build/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse</a> <<a href="https://kepler-project.org/developers/teams/build/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse" target="_blank">https://kepler-project.org/developers/teams/build/developing-a-hello-world-actor-using-the-kepler-build-system-and-eclipse</a>>]<br>


>><br>
>> He says to check out version 1.0, for creating an actor, so I did that.<br>
>> Now I wonder where I am going wrong. Only when I execute kepler using ant<br>
>> run, it gives no error upon dragging and dropping the actor. If I run it<br>
>> using the desktop icon, I get the error.<br>
>><br>
</blockquote></blockquote>
<br>
</div></div></blockquote></div><br></div>