[Anthill-pro] Maven Dependencies using Anthill

Steve Boone sbb at urbancode.com
Thu Aug 23 08:48:18 CDT 2007


Nir,

When you are getting the error, are there any other steps in the job that
might be trying to apply a stamp, or retrieve a stamp?

Currently the property gets saved as a BuildLife Property.  Our thinking
was, after the build there would not be any need for the stamp in the
workflow.  If you would like it to be a workflow property, we can make that
happen.

What version of Anthill are you currently using?  I would like to keep
trying to reproduce the error.

Regards,
Steve

On 8/23/07, Silgi, Nir <nsilgi at shopping.com> wrote:
>
>  Ok here are the latest findings:
>
>
>
> We restarted the Server, it didn't help, those jobs are still running, but
> since the whole workflow is in status failed, it doesn't seem to matter.
> (btw setting a timeout for the step doesn't help)
>
>
>
> I created a copy project to play with the script. I tried to change the
> dependent project's name, same error. I remove the dependency in the
> workflow, same error.
>
> I ran the script as a separate job and it ran fine! When it is a step of a
> generic build job, it fails with the ConcurrentModificationException
>
>
>
> Let assume I run this script as a separate job before the build job. The
> question is how do I use the property that it sets (StampValue). Is it a
> workflow property that I need to define?
>
>
>
> Thanks,
>
> NirS
>
>
>
>
>
>
>  ------------------------------
>
> *From:* anthill-pro-bounces at lists.urbancode.com [mailto:
> anthill-pro-bounces at lists.urbancode.com] *On Behalf Of *Steve Boone
> *Sent:* Wednesday, August 22, 2007 9:02 PM
> *To:* AnthillPro user and support list.
> *Subject:* Re: [Anthill-pro] Maven Dependencies using Anthill
>
>
>
> Nir,
>
> Go ahead and try to restart the server, that should kill off that
> process.  I'm not sure what is causing it to hang.  Once it is back up and
> running, lets try it again.  Hopefully this time we will avoid the
> ConcurrentModificationException.
>
> On 8/22/07, *Silgi, Nir* <nsilgi at shopping.com> wrote:
>
> The agent is on Linux. I stopped and restarted it.
>
> To clarify about what is running, the build life shows failed, but under
> it the "Venus Build Job Generic" has status running and if I click
> details, I see the Get Dependency Stamp (the step I created) is running.
>
> Is it possible we need a server restart?
>
>
>
> NirS
>
>
>  ------------------------------
>
> *From:* anthill-pro-bounces at lists.urbancode.com [mailto:
> anthill-pro-bounces at lists.urbancode.com] *On Behalf Of *Steve Boone
> *Sent:* Wednesday, August 22, 2007 7:56 PM
>
>
> *To:* AnthillPro user and support list.
> *Subject:* Re: [Anthill-pro] Maven Dependencies using Anthill
>
>
>
> Nir,
>
> Mercury being built would explain the ConcurrentModificationException.
>
> Shutting down the agent did not stop the loop?  I don't know where the
> loop would be coming from?  The script you are using is working on my
> machine and does not produce any infinite loops.  The agent runs on a
> Java.exe process on windows, is there an extra floating around that can be
> killed?
>
> On 8/22/07, *Silgi, Nir* < nsilgi at shopping.com> wrote:
>
> OK I think found the possible cause.
>
> Amazingly at the same minute I built Venus, a developer built Mercury (the
> dependent project). That might be causing the error. The thing is that now I
> restarted the (Linux) agent, and ran Venus again, and it's stopping with the
> same error L and enters an infinite loop (which btw the agent restart
> didn't stop). That is before even solving the original problem.
>
> How do I "unstuck" everything?
>
>
>
> NirS
>
>
>
>
>  ------------------------------
>
> *From:* anthill-pro-bounces at lists.urbancode.com [mailto:anthill-pro-bounces at lists.urbancode.com]
> *On Behalf Of *Steve Boone
> *Sent:* Wednesday, August 22, 2007 7:29 PM
>
>
> *To:* AnthillPro user and support list.
> *Subject:* Re: [Anthill-pro] Maven Dependencies using Anthill
>
>
>
> Nir,
>
> Is this a windows process that is still running?  If it is, you can kill
> it.  If it's a job that's running, you can abort it through Anthill.  Click
> on the Current Activity Tab > Jobs and you can abort it from there.
>
> Was the project that was that this job is dependent on running when the
> error was produced?  Are you trying to set the stamp anywhere else other
> than this script?
>
> Regards,
> Steve
>
> On 8/22/07, *Silgi, Nir* <nsilgi at shopping.com> wrote:
>
>
>
> Not iterating and there isn't any other job.
>
> Btw the task still "running".
>
>
>
> Will killing the agent stop it?
>
>
>
> NirS
>
>
>
>
>
>
>  ------------------------------
>
> *From:* anthill-pro-bounces at lists.urbancode.com [mailto:
> anthill-pro-bounces at lists.urbancode.com] *On Behalf Of *Steve Boone
> *Sent:* Wednesday, August 22, 2007 4:51 PM
> *To:* AnthillPro user and support list.
> *Subject:* Re: [Anthill-pro] Maven Dependencies using Anthill
>
>
>
> Nir,
>
>
> Sorry about the small glitches in the script.  Are you iterating, or
> running the job that uses this script in parallel with another job?
>
> Regards,
> Steve
>
> On 8/22/07, *Silgi, Nir* <nsilgi at shopping.com> wrote:
>
> There is a new error:
>
> 2007-08-22 06:34:39,737 ERROR 4650 7 - Caught unexpected exception -
> com.urbancode.anthill3.domain.persistent.ConcurrentModificationException
> 2007-08-22 06:34:39,739 ERROR 4650 7 -
> 2007-08-22 06:34:39,741 ERROR 4650 7 - Caught unexpected exception -
> com.urbancode.anthill3.domain.persistent.ConcurrentModificationException
> 2007-08-22 06:34:39,743 ERROR 4650 7 -
> 2007-08-22 06:34:39,745 ERROR 4650 7 - Caught unexpected exception -
> com.urbancode.anthill3.domain.persistent.ConcurrentModificationException
>
> It seems the task is stuck in an endless loop.
>
> NirS
>
> -----Original Message-----
> From: Ryan Smith [mailto:rws at urbancode.com <rws at urbancode.com>]
> Sent: Wednesday, August 22, 2007 4:07 PM
> To: AnthillPro user and support list.
>
> Cc: Silgi, Nir
> Subject: Re: [Anthill-pro] Maven Dependencies using Anthill
>
> It turns out I can't even do this right. The brackets do not need to be
> escaped, so its:
>
> import com.urbancode.anthill3.domain.buildlife.*;
> import com.urbancode.anthill3.runtime.scripting.helpers.*;
> import
> com.urbancode.codestation2.domain.buildlife.CodestationCompatableBuildLife;
> import com.urbancode.codestation2.domain.project.*;
> import java.util.ArrayList;
> import java.lang.Object;
>
> static final String PROJECT_NAME = "Mercury";
>
> //Get most current buildlife.
> BuildLife blife = BuildLifeLookup.getCurrent();
>
> //Get dependency Array
> CodestationCompatableBuildLife[] dArray =
> blife.getDependencyBuildLifeArray();
>
> String stamp = null;
> for (int i = 0; i < dArray.length && stamp == null; i++) {
>          if (dArray[i].getCodestationProject() != null &&
>              dArray[i].getCodestationProject() instanceof AnthillProject)
> {
>              AnthillProject project = (AnthillProject)
> dArray[i].getCodestationProject();
>              String temp = project.getBuildProfile
> ().getProject().getName();
>              if (temp.equals(PROJECT_NAME)){
>                  stamp = dArray[i].getLatestStampValue();
>             }
>      }
>
> }
> blife.setProperty("StampValue", stamp);
>
>
>
>
> Ryan Smith wrote:
> > Nir,
> >
> > Sorry, I didn't look over his script either. There are a few changes:
> >
> >
> >
> >
> >
> >
> > import com.urbancode.anthill3.domain.buildlife.*;
> > import com.urbancode.anthill3.runtime.scripting.helpers.*;
> > import
> >
> com.urbancode.codestation2.domain.buildlife.CodestationCompatableBuildLife
> > ;
> > import com.urbancode.codestation2.domain.project.*;
> > import java.util.ArrayList;
> > import java.lang.Object;
> >
> > static final String PROJECT_NAME = "Mercury";
> >
> > //Get most current buildlife.
> > BuildLife blife = BuildLifeLookup.getCurrent();
> >
> > //Get dependency Array
> > CodestationCompatableBuildLife[] dArray =
> > blife.getDependencyBuildLifeArray();
> >
> > String stamp = null;
> > for (int i = 0; i < dArray.length && stamp == null; i++) {
> >         if (dArray[i].getCodestationProject() != null &&
> >             dArray[i].getCodestationProject() instanceof AnthillProject)
> {
> >             AnthillProject project = (AnthillProject)
> > dArray[i].getCodestationProject();
> >             String temp = project.getBuildProfile
> ().getProject().getName();
> >             if (temp.equals(PROJECT_NAME)){
> >                 stamp = dArray[i].getLatestStampValue();
> >            \}
> >     \}
> >
> > \}//end for
> > blife.setProperty("StampValue", stamp);
> >
> >
> >
> >
> >
> >
> >
> > Ryan
> >
>
>
>
>
>
> <http://775146.sigclick.mailinfo.com/sigclick/06020508/03074D0F/03054C0A/61509711.jpg>
>
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
>
>
>
> <http://775146.sigclick.mailinfo.com/sigclick/05050503/05044F08/00004C01/12202123.jpg>
>
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
>
>
>
> <http://775146.sigclick.mailinfo.com/sigclick/06040700/05034F0B/03074E02/21321153.jpg>
>
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
>
>
>
> <http://775146.sigclick.mailinfo.com/sigclick/05070006/05074A0C/00084904/52057116.jpg>
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20070823/dcb792a6/attachment-0001.htm


More information about the Anthill-pro mailing list