For a project I work on we build it on a list of platforms, so I've been looking at the using continuum's distributed builds to manage all these. I've been playing with the beta to see how we could get this working.
The project is built using an ant script. Looks like there is an issue when building ant projects on a remote build agent. I setup a master continuum server (Ubuntu 8.04) and a build-agent (Solaris 10 SPARC). Ant and maven are installed on the build agent and continuum server. When I build the project however, I get a NullPointerException in the build agent's log when its checking whether to build it or not. I've attached the log. Is there anything I can do to get round this? Or is this something that will be fixed in a later release? Thanks, Iain
2009-04-09 17:41:01,166 [btpool0-5] INFO org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer - Building projects. 2009-04-09 17:41:01,167 [pool-2-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.PrepareBuildProjectsTaskExecutor - Check scm root state 2009-04-09 17:41:01,167 [pool-2-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.PrepareBuildProjectsTaskExecutor - Starting prepare build 2009-04-09 17:41:01,191 [pool-2-thread-1] INFO org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportClient - Started prepare build 2009-04-09 17:41:01,191 [pool-2-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.PrepareBuildProjectsTaskExecutor - Initializing prepare build 2009-04-09 17:41:01,192 [pool-2-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.PrepareBuildProjectsTaskExecutor - Updating working directory 2009-04-09 17:41:01,192 [pool-2-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.PrepareBuildProjectsTaskExecutor - Performing action check-agent-working-directory 2009-04-09 17:41:01,194 [pool-2-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.PrepareBuildProjectsTaskExecutor - Performing action update-agent-working-directory 2009-04-09 17:41:01,194 [pool-2-thread-1] INFO action#update-agent-working-directory - Updating project: PROJECT-SOLARIS', id: '2' to '/opt/apache-continuum-buildagent-1.3.2/data/working-directory/2'. 2009-04-09 17:41:01,405 [pool-2-thread-1] INFO scmManager - Executing: /bin/sh -c cd /opt/apache-continuum-buildagent-1.3.2/data/working-directory/2 && svn --username autobuild --non-interactive update 2009-04-09 17:41:01,406 [pool-2-thread-1] INFO scmManager - Working directory: /opt/apache-continuum-buildagent-1.3.2/data/working-directory/2 2009-04-09 17:41:03,118 [pool-2-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.PrepareBuildProjectsTaskExecutor - Performing action changelog-agent-project 2009-04-09 17:41:03,120 [pool-2-thread-1] INFO action#changelog-agent-project - Getting changeLog of project: PROJECT-SOLARIS 2009-04-09 17:41:03,180 [pool-2-thread-1] INFO scmManager - Executing: /bin/sh -c cd /opt/apache-continuum-buildagent-1.3.2/data/working-directory/2 && svn --username ######## --non-interactive log -v svn://############# 2009-04-09 17:41:03,182 [pool-2-thread-1] INFO scmManager - Working directory: /opt/apache-continuum-buildagent-1.3.2/data/working-directory/2 2009-04-09 17:41:03,891 [pool-2-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.PrepareBuildProjectsTaskExecutor - Merging SCM results 2009-04-09 17:41:03,935 [pool-2-thread-1] INFO org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportClient - Prepare build finished. 2009-04-09 17:41:03,936 [pool-2-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.PrepareBuildProjectsTaskExecutor - Performing action create-agent-build-project-task 2009-04-09 17:41:03,938 [pool-1-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.BuildProjectTaskExecutor - Initializing build 2009-04-09 17:41:03,984 [pool-1-thread-1] INFO org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportClient - Retrieved environments 2009-04-09 17:41:03,985 [pool-1-thread-1] INFO org.apache.continuum.buildagent.taskqueue.execution.BuildProjectTaskExecutor - Checking if project 'PROJECT-SOLARIS' should build 2009-04-09 17:41:03,986 [Thread-15] ERROR taskQueueExecutor#build-agent - Error executing task edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: java.lang.NullPointerException at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:128) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.waitForTask(ThreadedTaskQueueExecutor.java:165) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:127) Caused by: java.lang.NullPointerException at org.apache.continuum.buildagent.taskqueue.execution.BuildProjectTaskExecutor.getMavenProject(BuildProjectTaskExecutor.java:518) at org.apache.continuum.buildagent.taskqueue.execution.BuildProjectTaskExecutor.shouldBuild(BuildProjectTaskExecutor.java:406) at org.apache.continuum.buildagent.taskqueue.execution.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:117) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:619)
