Error during TC build that doesn't happen externally.

We have a strange problem that I cannot seem to get an answer to.  We have a build that works externally via ant without TC.  Everything works fine and the build is successful.  When I attempt to run the build from within TC, I get a NPE during a SVN task that is using svnant.  Since it's working outside of TC reliably, the answer has to be somewhere...

ENV

  • TC(4.5, was 4.0.2)
  • CollabNet Subversion 1.6.1
  • Ant 1.7.1


When run externall the build logs appears as such...

[svn] Using command line interface
Svn : Status
<?xml version="1.0"?>
<status>
<target
   path="build.xml">
<entry
   path="build.xml">
<wc-status
   props="normal"
   item="normal"
   revision="36192">
<commit
   revision="35918">
<author>abc</author>
<date>2009-04-09T22:13:26.997986Z</date>
</commit>
</wc-status>
</entry>
</target>
</status>
Path: ./build.xml
Name: build.xml
URL: svn://server/abc/branches/release/modules/abc/build.xml
Repository Root: svn://server/abc
Repository UUID: 665e137d-efc1-a740-a5e9-76826feb7a68
Revision: 36192
Node Kind: file
Schedule: normal
Last Changed Author: abc
Last Changed Rev: 35918
Last Changed Date: 2009-04-09 16:13:26 -0600 (Thu, 09 Apr 2009)
Text Last Updated: 2009-04-22 11:59:08 -0600 (Wed, 22 Apr 2009)
Checksum: 11d017c36e5fbce3b0783895d0d14a6c
Svn : Propget
[propertyfile] Updating property file: buildnum.properties



When run in TC; the build log appears as:

[15:31:48]: [subant] releaseinfo
[15:31:48]: [releaseinfo] echo
[15:31:48]: [echo] creating ReleaseInfo class in src
[15:31:48]: [releaseinfo] svn
[15:31:48]: [svn] java.lang.NullPointerException
[15:31:48]: [subant] The following error occurred while executing this line: common.xml:219: java.lang.NullPointerException
[15:31:48]: [call-subant] The following error occurred while executing this line: build.xml:56: The following error occurred while executing this line: common.xml:219: java.lang.NullPointerException
[15:31:48]: Ant output:    
     ...
[svn] Using command line interface
Svn : Status


BUILD FAILED build.xml:76: The following error occurred while executing this line: build.xml:56: The following error occurred while executing this line: common.xml:219: java.lang.NullPointerException


One other item of note, when the build was intially ported over to TC, the svn task complained that it couldn't find the svn command (as it should as we are not using javahl).  When subversion was added to the PATH of the user running TC, the error was replace with the NPE from above.  Anyone have any ideas?


Thanks.
2 comments
Comment actions Permalink

This NullPointer may be caused by missing .svn folders on the agent. If you are using server-side checkout mode, try to turn it to agent side checkout: Administration > Build Conf settings > Second step, choose option "Automatically on the agent".

0
Comment actions Permalink

That was it.  Thank you very much.

0

Please sign in to leave a comment.