You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Ken Turner <ke...@kbturner.co.uk> on 2007/12/28 16:38:59 UTC

Strange behaviour with StarTeam

http://www.nabble.com/file/p14527241/continuum.log continuum.log 

The attached log from Continuum 1.1 represents three consecutive builds of
exactly the same job.  The first one terminates successfully at message ID
244653;  the second one fails during StarTeam checkout at message 293524,
and the third one succeeds at message 438060.

All my projects appear to exhibit a similar behaviour, with an alternating
fail/success pattern.

Does anybody know what's going on here?
-- 
View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14527241.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Strange behaviour with StarTeam

Posted by Ken Turner <ke...@kbturner.co.uk>.
Oliver

I wasn't very sure how to go about "using the full distrib" as requested,
but here's what I did:

1. I downloaded continuum-20080102-120000.war into my directory
C:\continuum-1.1\apps\continuum\lib

2. I amended my application.xml file so that webapp.file pointed to
continuum-20080102-120000.war

3. I deleted the contents of my
C:\continuum-1.1\apps\continuum\webapp\WEB-INF\lib directory.

4. I restarted the Continuum webapp, and confirmed that the contents of
continuum-20080102-120000.war were now populated into
C:\continuum-1.1\apps\continuum\webapp\WEB-INF\lib

5. I tried some more builds.
So far I have been unable to reproduce the error;  it looks as though you
have solved the problem :jumping:

Many thanks for your help!
-- 
View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14580229.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Strange behaviour with StarTeam

Posted by Olivier Lamy <ol...@apache.org>.
Please use the full distrib.

Thanks.
--
Olivier

2008/1/2, Ken Turner <ke...@kbturner.co.uk>:
>
> Olivier
>
> I have extracted maven-scm-provider-starteam-1.1-SNAPSHOT.jar from
> continuum-20080102.120000.war and placed it in my directory
> C:\continuum-1.1\apps\continuum\webapp\WEB-INF\lib, and renamed the older
> version of the file.
>
> However, after doing some more builds, I regret that the same errors are
> still occurring.
> --
> View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14578411.html
> Sent from the Continuum - Users mailing list archive at Nabble.com.
>
>

Re: Strange behaviour with StarTeam

Posted by Ken Turner <ke...@kbturner.co.uk>.
Olivier

I have extracted maven-scm-provider-starteam-1.1-SNAPSHOT.jar from
continuum-20080102.120000.war and placed it in my directory
C:\continuum-1.1\apps\continuum\webapp\WEB-INF\lib, and renamed the older
version of the file.

However, after doing some more builds, I regret that the same errors are
still occurring. 
-- 
View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14578411.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Strange behaviour with StarTeam

Posted by Olivier Lamy <ol...@apache.org>.
Hi,
The maven-scm version used by continuum has been updated in the trunk.
You can use the builds here :
War: http://maven.zones.apache.org/~continuum/builds/trunk/continuum-20080102.120000.war
Standalone app:
http://maven.zones.apache.org/~continuum/builds/trunk/continuum-20080102.120000.tar.gz

Thanks to update/close the issue CONTINUUM-1521 if it works fine.

--
Olivier

2008/1/2, Ken Turner <ke...@kbturner.co.uk>:
>
> Dan
>
> I've had a look at your snapshot file
> maven-scm-provider-starteam-1.1-20071231.234738-4.jar.  What I did was to
> download it into my C:\continuum-1.1\apps\continuum\webapp\WEB-INF\lib
> directory, and renamed the 'old' version to
> maven-scm-provider-starteam-1.0.jarhold.  As I mentioned earlier I'm very
> new to Java stuff, so I'm not clear about the mechanism employed to pick up
> all the required library files, so after restarting the Continuum webapp, I
> attempted to rename the snapshot file, and Windows complained that it was
> already in use, so that assured me that the application was indeed picking
> it up correctly.  I hope that makes sense!
>
> However when I then attempted some builds, I'm still seeing the same errors
> :-(.
> --
> View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14576128.html
> Sent from the Continuum - Users mailing list archive at Nabble.com.
>
>

Re: Strange behaviour with StarTeam

Posted by Ken Turner <ke...@kbturner.co.uk>.
Dan

I've had a look at your snapshot file
maven-scm-provider-starteam-1.1-20071231.234738-4.jar.  What I did was to
download it into my C:\continuum-1.1\apps\continuum\webapp\WEB-INF\lib
directory, and renamed the 'old' version to
maven-scm-provider-starteam-1.0.jarhold.  As I mentioned earlier I'm very
new to Java stuff, so I'm not clear about the mechanism employed to pick up
all the required library files, so after restarting the Continuum webapp, I
attempted to rename the snapshot file, and Windows complained that it was
already in use, so that assured me that the application was indeed picking
it up correctly.  I hope that makes sense!

However when I then attempted some builds, I'm still seeing the same errors
:-(.
-- 
View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14576128.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Strange behaviour with StarTeam

Posted by Dan Tran <da...@gmail.com>.
Please see my comment at
http://jira.codehaus.org/browse/CONTINUUM-1521 which has instructions
on how to patch your continuum

On Dec 31, 2007 1:00 AM, Ken Turner <ke...@kbturner.co.uk> wrote:
>
> Dan
>
> I'm a newcomer to everything Java-flavoured, and I don't yet have enough
> confidence in my Java coding abilities to attempt to patch the StarTeam
> provider code.
>
> I'm a bit puzzled by your comment about using Continuum to do the Maven
> release:  I don't use this option, primarily because I don't understand what
> it does!
> --
> View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14555511.html
>
> Sent from the Continuum - Users mailing list archive at Nabble.com.
>
>

Re: Strange behaviour with StarTeam

Posted by Ken Turner <ke...@kbturner.co.uk>.
Dan

I'm a newcomer to everything Java-flavoured, and I don't yet have enough
confidence in my Java coding abilities to attempt to patch the StarTeam
provider code.

I'm a bit puzzled by your comment about using Continuum to do the Maven
release:  I don't use this option, primarily because I don't understand what
it does!
-- 
View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14555511.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Strange behaviour with StarTeam

Posted by Dan Tran <da...@gmail.com>.
looks like you stack trace show NPE At

Caused by: java.lang.NullPointerException
	at org.apache.maven.scm.provider.starteam.command.changelog.StarteamChangeLogCommand.executeChangeLogCommand(StarteamChangeLogCommand.java:57)

and the exception shows this code

        if ( branch != null || StringUtils.isNotEmpty( branch.getName() ) )
        {
            this.getLogger().warn( "This provider doesn't support
changelog with on a given branch." );
        }

this code will surely throw NPE when branch is null.  Perhaps you can
fix up this code, build the starteam provider, and patch directly
to your continuum 1.1 and tell us the result?

I also notice you use continuum to do the maven release, perhaps you
should not use this feature until thing settled.

-D

-D





On Dec 30, 2007 11:38 PM, Ken Turner <ke...@kbturner.co.uk> wrote:
>
> Thanks for the suggestion, Dan, but unfortunately none of my projects uses
> the SCM Credentials Cache option.
> --
> View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14555090.html
>
> Sent from the Continuum - Users mailing list archive at Nabble.com.
>
>

Re: Strange behaviour with StarTeam

Posted by Ken Turner <ke...@kbturner.co.uk>.
Thanks for the suggestion, Dan, but unfortunately none of my projects uses
the SCM Credentials Cache option.
-- 
View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14555090.html
Sent from the Continuum - Users mailing list archive at Nabble.com.


Re: Strange behaviour with StarTeam

Posted by Dan Tran <da...@gmail.com>.
this may be related to http://jira.codehaus.org/browse/CONTINUUM-1521

-D

On Dec 28, 2007 7:38 AM, Ken Turner <ke...@kbturner.co.uk> wrote:
>
> http://www.nabble.com/file/p14527241/continuum.log continuum.log
>
> The attached log from Continuum 1.1 represents three consecutive builds of
> exactly the same job.  The first one terminates successfully at message ID
> 244653;  the second one fails during StarTeam checkout at message 293524,
> and the third one succeeds at message 438060.
>
> All my projects appear to exhibit a similar behaviour, with an alternating
> fail/success pattern.
>
> Does anybody know what's going on here?
> --
> View this message in context: http://www.nabble.com/Strange-behaviour-with-StarTeam-tp14527241p14527241.html
> Sent from the Continuum - Users mailing list archive at Nabble.com.
>
>