It's all about the answers!

Ask a question

NPE: Unable to update last contact time for engine: null


Javier Garcia (2643) | asked Apr 22 '10, 11:15 a.m.
I am getting an NPE when running a Build.
There is a similar post on this forum that stated deleting the BuildEngine and recreating it fixes the issue. We did this and it did NOT fix the issue. We are still getting an NPE.

Unable to update last contact time for engine: null
java.lang.NullPointerException
at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResultHandle(AbstractPublisherTask.java:170)
at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResult(AbstractPublisherTask.java:136)
at com.ibm.team.build.ant.task.AbstractPublisherTask.updateLastContactTime(AbstractPublisherTask.java:180)
at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:109)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:623)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
at com.ibm.ant.extras.RunAnt.run(RunAnt.java:24)
at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
at org.eclipse.core.launcher.Main.main(Main.java:30)

7 answers



permanent link
Nick Edgar (6.5k711) | answered Apr 22 '10, 2:27 p.m.
JAZZ DEVELOPER
That NPE would only occur if some internals of Build's client library had not been properly initialized, which you shouldn't have to worry about.
The 'Unable to update last contact time for engine' message is just because that's the first thing the task tries to do. It's not getting very far.

Which JDK are you using to run Ant and JBE? By default, the Ant page of the build definition says to use same one as for JBE. We recommend using the one that ships with the RTC client. See:
https://jazz.net/wiki/bin/view/Main/BuildFAQ#WhichJDK

If you're not specifying the java executable directly on the JBE command line, which one is your system default? Try java -version from JBE's eclipse directory.

permanent link
Javier Garcia (2643) | answered Apr 22 '10, 3:59 p.m.
The Build Engine is running with:
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxi3260sr5-20090529_04(SR5))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr5-20090519_35743 (JIT enabled, AOT enabled)
J9VM - 20090519_035743_lHdSMr
JIT - r9_20090518_2017
GC - 20090417_AA)
JCL - 20090529_01

The Build is actually running with
Java(TM) SE Runtime Environment (build pxi3260sr3-20081106_07(SR3))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260-20081105_25433 (JIT enabled, AOT enabled)
J9VM - 20081105_025433_lHdSMr
JIT - r9_20081031_1330
GC - 20081027_AB)
JCL - 20081106_01

permanent link
Javier Garcia (2643) | answered Apr 22 '10, 4:15 p.m.
Ok I changed it so that both the BuildEngine and the Build run with the same jvm (the one bleow). However, I still get the same problems

The Build Engine is running with:
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxi3260sr5-20090529_04(SR5))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr5-20090519_35743 (JIT enabled, AOT enabled)
J9VM - 20090519_035743_lHdSMr
JIT - r9_20090518_2017
GC - 20090417_AA)
JCL - 20090529_01

permanent link
Nick Edgar (6.5k711) | answered Apr 23 '10, 9:55 a.m.
JAZZ DEVELOPER
That's a fairly old 1.6.0 JRE. Can you please try with the one included in RTC? See the FAQ entry for instructions.

permanent link
Christopher McCann (56121) | answered Jul 29 '10, 2:03 p.m.
Hello,

I've taken this over for Javier as he's left our department. Let me give you the background.

We are using Rational Application Developer for WebSphere Software build utility to do our builds. We have successfully created build.xml scripts and build websphere applications using RTC.

What we'd like to do is enable the RTC specific ant-tasks in our build.xml (when building from RBU). To that end I've tried copying the toolkit jars into the lib directory of the eclipse ant-plugin that RTC uses as well as adding all the jars (it's a massive command line) to the classpath of the eclipse that launches. Neither one has worked. Here's what we get:

simple test.xml

<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
Sep 14, 2009 11:29:52 AM

Author: javierg
====================================================================== -->
<project name="BCAnalyzerAPP" default="build" basedir=".">

<!-- JAZZ Build toolkit definitions -->
<import file="/jazz_builds/BuildToolkitTaskDefs.xml"/>

<!-- buildEngine/buildDefinition properties -->
<property file="${basedir}/../build.properties"/>
<echoproperties/>

<!-- uid/pwd -->
<property name="userId" value="msuper@us.ibm.com"/>
<property name="passwordFile" value="/opt/ibm/TeamConcertBuild/buildsystem/buildengine/eclipse/pass.txt"/>

<!-- directories -->
<property name="dist" value="${jazz_builds}/dist" />
<property name="junit" value="${jazz_builds}/junit" />
<property name="compile" value="${jazz_builds}/compile" />

<!-- projects -->
<property name="project.ear" value="BCAnalyzerAPP" />
<property name="project.ejb" value="BcAnalyzerEJB" />
<property name="project.ejb.test" value="BcAnalyzerEJBTest" />
<property name="project.war" value="BcAnalyzerWEB" />
<property name="project.ejbclient" value="BcAnalyzerEJBClient" />
<property name="project.jpa" value="CustlogsJPA" />
<property name="project.util" value="MultitoolUTIL" />
<property name="project.mailer" value="MailerEJBC" />
<property name="project.libraries" value="ToolsUserLibraries" />

<!-- compile/ export properties -->
<property name="type" value="full" />
<property name="debug" value="true" />
<property name="source" value="true" />
<property name="meta" value="false" />
<property name="noValidate" value="false" />

<target name="build">
<echo message="Hello, world"/>
<startBuildActivity repositoryAddress="${repositoryAddress}"
userId="${userId}"
passwordFile="${passwordFile}"
activityIdProperty="buildactivityId"
label="${activityLabel}"
autoComplete="true"
verbose="true"
buildResultUUID="${buildResultUUID}" />
</target>

</project>


results of build

2010-07-29 13:47:32 [Jazz build engine] running on host: multisrc1.raleigh.ibm.com
2010-07-29 13:47:32 [Jazz build engine]
2010-07-29 13:47:32 [Jazz build engine] Substituted the following build property variables:
2010-07-29 13:47:32 [Jazz build engine] BUILD_WORKSPACE = /jazz_builds/${APP_NAME}/${buildLabel} --> BUILD_WORKSPACE = /jazz_builds/BCAnalyzerAPP/20100729-1347
2010-07-29 13:47:32 [Jazz build engine] jazz_builds = /jazz_builds/${buildLabel} --> jazz_builds = /jazz_builds/20100729-1347
2010-07-29 13:47:32 [Jazz build engine] team.scm.fetchDestination = ${BUILD_WORKSPACE} --> team.scm.fetchDestination = /jazz_builds/BCAnalyzerAPP/20100729-1347
2010-07-29 13:47:32 [Jazz build engine] JAVA_HOME = ${BASE_DIR}/jdk/bin --> JAVA_HOME = /rad_build_utility/BuildUtility/eclipse/jdk/bin
2010-07-29 13:47:32 [Jazz build engine]
2010-07-29 13:47:32 [Jazz build engine]
2010-07-29 13:47:32 [Jazz build engine] Substituted the following configuration element property variables:
2010-07-29 13:47:32 [Jazz build engine] com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.command = ${JAVA_HOME}/java -Dwtp.autotest.noninteractive=true -Dwas.runtime=${BASE_DIR}../../runtimes -cp ${BASE_DIR}/startup.jar org.eclipse.core.launcher.Main -application com.ibm.etools.j2ee.ant.RunAnt --> com.ibm.team.build.cmdline.command = /rad_build_utility/BuildUtility/eclipse/jdk/bin/java -Dwtp.autotest.noninteractive=true -Dwas.runtime=${BASE_DIR}../../runtimes -cp ${BASE_DIR}/startup.jar org.eclipse.core.launcher.Main -application com.ibm.etools.j2ee.ant.RunAnt
2010-07-29 13:47:32 [Jazz build engine] com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.command = /rad_build_utility/BuildUtility/eclipse/jdk/bin/java -Dwtp.autotest.noninteractive=true -Dwas.runtime=${BASE_DIR}../../runtimes -cp ${BASE_DIR}/startup.jar org.eclipse.core.launcher.Main -application com.ibm.etools.j2ee.ant.RunAnt --> com.ibm.team.build.cmdline.command = /rad_build_utility/BuildUtility/eclipse/jdk/bin/java -Dwtp.autotest.noninteractive=true -Dwas.runtime=/rad_build_utility/BuildUtility/eclipse../../runtimes -cp /rad_build_utility/BuildUtility/eclipse/startup.jar org.eclipse.core.launcher.Main -application com.ibm.etools.j2ee.ant.RunAnt
2010-07-29 13:47:32 [Jazz build engine] com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.arguments = -data ${BUILD_WORKSPACE} -buildfile ${BUILD_WORKSPACE}/${APP_NAME}/test.xml --> com.ibm.team.build.cmdline.arguments = -data /jazz_builds/BCAnalyzerAPP/20100729-1347 -buildfile /jazz_builds/BCAnalyzerAPP/20100729-1347/${APP_NAME}/test.xml
2010-07-29 13:47:32 [Jazz build engine] com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.arguments = -data /jazz_builds/BCAnalyzerAPP/20100729-1347 -buildfile /jazz_builds/BCAnalyzerAPP/20100729-1347/${APP_NAME}/test.xml --> com.ibm.team.build.cmdline.arguments = -data /jazz_builds/BCAnalyzerAPP/20100729-1347 -buildfile /jazz_builds/BCAnalyzerAPP/20100729-1347/BCAnalyzerAPP/test.xml
2010-07-29 13:47:32 [Jazz build engine] com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.propertiesFile = ${BUILD_WORKSPACE}/build.properties --> com.ibm.team.build.cmdline.propertiesFile = /jazz_builds/BCAnalyzerAPP/20100729-1347/build.properties
2010-07-29 13:47:32 [Jazz build engine]
2010-07-29 13:47:32 [Jazz build engine] Should build occur?
2010-07-29 13:47:32 [Jazz build engine] Yes: Always build a user initiated request.
2010-07-29 13:47:32 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm"
Fetching files to fetch destination "/jazz_builds/BCAnalyzerAPP/20100729-1347" ...
2010-07-29 13:49:04 [Jazz build engine] Invoking build participant "com.ibm.team.build.cmdline"
HeadlessWorkspaceSettings: INITIAL autoBuild=true maxFile=1048576
HeadlessWorkspaceSettings: TEMP autoBuild=false maxFile=-1
Buildfile: /jazz_builds/BCAnalyzerAPP/20100729-1347/BCAnalyzerAPP/test.xml
[echoproperties] #Ant properties
[echoproperties] #Thu Jul 29 13:51:32 EDT 2010
[echoproperties] java.vendor=IBM Corporation
[echoproperties] ant.file.BCAnalyzerAPP=/jazz_builds/BuildToolkitTaskDefs.xml
[echoproperties] sun.java.launcher=SUN_STANDARD
[echoproperties] eclipse.pdebuild.templates=/rad_build_utility/7551/BuildUtility/eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v20081217/templates/
[echoproperties] org.osgi.supports.framework.extension=true
[echoproperties] team.scm.loadComponents=
[echoproperties] osgi.framework.beginningstartlevel=1
[echoproperties] jazz_builds=/jazz_builds/20100729-1347
[echoproperties] os.name=Linux
[echoproperties] sun.boot.class.path=/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/vm.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/annotation.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/beans.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/java.util.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/jndi.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/logging.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/security.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/sql.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmorb.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmorbapi.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmcfw.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/rt.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/charsets.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/resources.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmpkcs.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmcertpathfw.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmjgssfw.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmjssefw.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmsaslfw.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmjcefw.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmjgssprovider.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmjsseprovider2.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmcertpathprovider.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ibmxmlcrypto.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/management-agent.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/xml.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/jlm.jar\:/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/javascript.jar
[echoproperties] eclipse.running=true
[echoproperties] osgi.ws=win32
[echoproperties] sun.java2d.fontpath=
[echoproperties] java.vm.specification.vendor=Sun Microsystems Inc.
[echoproperties] ant.home=/rad_build_utility/7551/BuildUtility/eclipse/plugins
[echoproperties] java.runtime.version=pxi3260sr7-20091215_02 (SR7)
[echoproperties] osgi.instance.area=file\:/jazz_builds/BCAnalyzerAPP/20100729-1347/
[echoproperties] user.name=root
[echoproperties] java.compiler=j9jit24
[echoproperties] org.osgi.framework.system.packages=javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views ,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
[echoproperties] com.ibm.util.extralibs.properties=
[echoproperties] buildLabel=20100729-1347
[echoproperties] team.scm.buildOnlyIfChanges=false
[echoproperties] com.ibm.jcl.checkClassPath=
[echoproperties] org.osgi.framework.language=en
[echoproperties] user.language=en
[echoproperties] BASE_DIR=/rad_build_utility/BuildUtility/eclipse
[echoproperties] com.ibm.oti.vm.bootstrap.library.path=/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/i386
[echoproperties] org.osgi.framework.processor=x86
[echoproperties] osgi.syspath=/rad_build_utility/7551/BuildUtility/eclipse/plugins
[echoproperties] sun.boot.library.path=/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/i386
[echoproperties] osgi.manifest.cache=/rad_build_utility/7551/BuildUtility/eclipse/configuration/org.eclipse.osgi/manifests
[echoproperties] osgi.compatibility.bootdelegation=true
[echoproperties] ant.project.name=BCAnalyzerAPP
[echoproperties] java.version=1.6.0
[echoproperties] org.osgi.framework.os.name=Linux
[echoproperties] user.timezone=America/New_York
[echoproperties] sun.arch.data.model=32
[echoproperties] osgi.bundles=org.eclipse.equinox.common@2\:start,org.eclipse.update.configurator@3\:start,org.eclipse.core.runtime@start
[echoproperties] com.ibm.zero.version=1
[echoproperties] java.endorsed.dirs=/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/endorsed
[echoproperties] com.ibm.oti.vm.library.version=24
[echoproperties] sun.jnu.encoding=ISO-8859-1
[echoproperties] eclipse.application=com.ibm.etools.j2ee.ant.RunAnt
[echoproperties] wtp.autotest.noninteractive=true
[echoproperties] org.osgi.framework.vendor=Eclipse
[echoproperties] jxe.current.romimage.version=15
[echoproperties] file.separator=/
[echoproperties] java.specification.name=Java Platform API Specification
[echoproperties] java.class.version=50.0
[echoproperties] was.runtime=/rad_build_utility/BuildUtility/eclipse../../runtimes
[echoproperties] user.country=US
[echoproperties] osgi.launcherIni=eclipse
[echoproperties] buildDefinitionId=RAD Test Build
[echoproperties] java.home=/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre
[echoproperties] osgi.os=linux
[echoproperties] requestUUID=_W-RkoZs5Ed-bMfwGUMUz8Q
[echoproperties] eclipse.commands=-application\ncom.ibm.etools.j2ee.ant.RunAnt\n-data\n/jazz_builds/BCAnalyzerAPP/20100729-1347\n-buildfile\n/jazz_builds/BCAnalyzerAPP/20100729-1347/BCAnalyzerAPP/test.xml\n
[echoproperties] java.vm.info=JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr7-20091214_49398 (JIT enabled, AOT enabled)\nJ9VM - 20091214_049398\nJIT - r9_20091123_13891\nGC - 20091111_AA
[echoproperties] ant.file=/jazz_builds/BCAnalyzerAPP/20100729-1347/BCAnalyzerAPP/test.xml
[echoproperties] os.version=2.6.18-92.el5PAE
[echoproperties] com.ibm.team.build.internal.engine.monitoring.threshold=3
[echoproperties] osgi.arch=x86
[echoproperties] com.ibm.team.build.internal.template.id=com.ibm.team.build.cmdline
[echoproperties] java.awt.fonts=
[echoproperties] path.separator=\:
[echoproperties] personalBuild=true
[echoproperties] eclipse.home=/rad_build_utility/7551/BuildUtility/eclipse
[echoproperties] java.vm.version=2.4
[echoproperties] java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory
[echoproperties] org.osgi.supports.framework.fragment=true
[echoproperties] user.variant=
[echoproperties] ant.library.dir=/rad_build_utility/7551/BuildUtility/eclipse/plugins/lib
[echoproperties] osgi.framework.shape=jar
[echoproperties] java.awt.printerjob=sun.print.PSPrinterJob
[echoproperties] JAVA_HOME=/rad_build_utility/BuildUtility/eclipse/jdk/bin
[echoproperties] sun.io.unicode.encoding=UnicodeLittle
[echoproperties] org.osgi.framework.version=1.4.0
[echoproperties] ibm.signalhandling.sigint=true
[echoproperties] java.assistive=ON
[echoproperties] team.scm.fetchDestination=/jazz_builds/BCAnalyzerAPP/20100729-1347
[echoproperties] osgi.install.area=file\:/rad_build_utility/7551/BuildUtility/eclipse/
[echoproperties] eclipse.pdebuild.scripts=/rad_build_utility/7551/BuildUtility/eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v20081217/scripts/
[echoproperties] osgi.framework=file\:/rad_build_utility/7551/BuildUtility/eclipse/plugins/org.eclipse.osgi_3.4.4.R34x_v20091203.jar
[echoproperties] user.home=/root
[echoproperties] com.ibm.cpu.endian=little
[echoproperties] osgi.bundlestore=/rad_build_utility/7551/BuildUtility/eclipse/configuration/org.eclipse.osgi/bundles
[echoproperties] osgi.nl=en_US
[echoproperties] java.specification.vendor=Sun Microsystems Inc.
[echoproperties] ibm.signalhandling.sigchain=true
[echoproperties] buildutility.internal.version=RAD7551-I20100319_1121
[echoproperties] java.library.path=/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/i386\:/usr/lib/xulrunner-1.9\:/usr/lib
[echoproperties] java.vendor.url=http\://www.ibm.com/
[echoproperties] org.osgi.framework.os.version=2.6.18.el5PAE
[echoproperties] eclipse.startTime=1280425745662
[echoproperties] java.vm.vendor=IBM Corporation
[echoproperties] java.fullversion=JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr7-20091214_49398 (JIT enabled, AOT enabled)\nJ9VM - 20091214_049398\nJIT - r9_20091123_13891\nGC - 20091111_AA
[echoproperties] java.runtime.name=Java(TM) SE Runtime Environment
[echoproperties] java.class.path=/rad_build_utility/BuildUtility/eclipse/startup.jar
[echoproperties] sun.java.command=org.eclipse.core.launcher.Main -application com.ibm.etools.j2ee.ant.RunAnt -data /jazz_builds/BCAnalyzerAPP/20100729-1347 -buildfile /jazz_builds/BCAnalyzerAPP/20100729-1347/BCAnalyzerAPP/test.xml
[echoproperties] team.scm.includeComponents=false
[echoproperties] ant.version=Apache Ant version 1.6.5 compiled on June 2 2005
[echoproperties] repositoryAddress=https\://multisrc1.raleigh.ibm.com\:10319/jazz/
[echoproperties] java.vm.specification.name=Java Virtual Machine Specification
[echoproperties] sun.java.launcher.pid=7028
[echoproperties] java.vm.specification.version=1.0
[echoproperties] eclipse.pdebuild.home=/rad_build_utility/7551/BuildUtility/eclipse/plugins/org.eclipse.pde.build_3.4.1.R34x_v20081217/./
[echoproperties] java.io.tmpdir=/tmp
[echoproperties] java.jcl.version=20091202_01
[echoproperties] ibm.system.encoding=ISO-8859-1
[echoproperties] eclipse.home.location=file\:/rad_build_utility/7551/BuildUtility/eclipse/
[echoproperties] os.arch=x86
[echoproperties] ibm.signalhandling.rs=false
[echoproperties] java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
[echoproperties] ant.headless.environment=true
[echoproperties] java.ext.dirs=/rad_build_utility/7551/BuildUtility/eclipse/jdk/jre/lib/ext
[echoproperties] user.dir=/opt/ibm/TeamConcertBuild/buildsystem/buildengine/eclipse
[echoproperties] org.osgi.supports.framework.requirebundle=true
[echoproperties] APP_NAME=BCAnalyzerAPP
[echoproperties] line.separator=\n
[echoproperties] java.vm.name=IBM J9 VM
[echoproperties] com.ibm.oti.shared.enabled=false
[echoproperties] com.ibm.vm.bitmode=32
[echoproperties] basedir=/jazz_builds/BCAnalyzerAPP/20100729-1347/BCAnalyzerAPP
[echoproperties] eclipse.ee.install.verify=false
[echoproperties] ant.java.version=1.5
[echoproperties] buildResultUUID=_W-TZ0Js5Ed-bMfwGUMUz8Q
[echoproperties] team.scm.workspaceUUID=_PKLGgJqGEd-bMfwGUMUz8Q
[echoproperties] jxe.lowest.romimage.version=15
[echoproperties] buildtoolkit=/opt/ibm/TeamConcertBuild/buildsystem/buildtoolkit
[echoproperties] file.encoding=ISO-8859-1
[echoproperties] osgi.framework.version=3.4.4.R34x_v20091203
[echoproperties] team.scm.componentLoadRules=
[echoproperties] java.specification.version=1.6
[echoproperties] com.ibm.oti.configuration=scar
[echoproperties] com.ibm.oti.jcl.build=20091130_1518
[echoproperties] team.scm.acceptBeforeFetch=true
[echoproperties] org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6
[echoproperties] BUILD_WORKSPACE=/jazz_builds/BCAnalyzerAPP/20100729-1347
[echoproperties] team.scm.deleteDestinationBeforeFetch=false
[echoproperties] osgi.logfile=/jazz_builds/BCAnalyzerAPP/20100729-1347/.metadata/.log
[echoproperties] osgi.configuration.area=file\:/rad_build_utility/7551/BuildUtility/eclipse/configuration/

build:
[echo] Hello, world
[startBuildActivity] Unable to update last contact time for engine: null
[startBuildActivity] java.lang.NullPointerException
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResultHandle(AbstractPublisherTask.java:170)
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResult(AbstractPublisherTask.java:136)
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractPublisherTask.updateLastContactTime(AbstractPublisherTask.java:180)
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:109)
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433)
[startBuildActivity] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[startBuildActivity] at org.apache.tools.ant.Task.perform(Task.java:364)
[startBuildActivity] at org.apache.tools.ant.Target.execute(Target.java:341)
[startBuildActivity] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[startBuildActivity] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[startBuildActivity] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[startBuildActivity] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[startBuildActivity] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[startBuildActivity] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[startBuildActivity] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:663)
[startBuildActivity] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:535)
[startBuildActivity] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[startBuildActivity] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[startBuildActivity] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[startBuildActivity] at java.lang.reflect.Method.invoke(Method.java:600)
[startBuildActivity] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
[startBuildActivity] at com.ibm.ant.extras.RunAnt.run(RunAnt.java:93)
[startBuildActivity] at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
[startBuildActivity] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
[startBuildActivity] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[startBuildActivity] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[startBuildActivity] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
[startBuildActivity] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[startBuildActivity] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[startBuildActivity] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[startBuildActivity] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[startBuildActivity] at java.lang.reflect.Method.invoke(Method.java:600)
[startBuildActivity] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
[startBuildActivity] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
[startBuildActivity] at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
[startBuildActivity] at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
[startBuildActivity] at org.eclipse.core.launcher.Main.main(Main.java:30)

BUILD FAILED
java.lang.ExceptionInInitializerError

Total time: 2 minutes 24 seconds
HeadlessWorkspaceSettings: RESTORED autoBuild=true maxFile=1048576
Build failed. Exit value was 13.


BuildToolkitTasksPrefs.xml

<!-- Task definitions for the build toolkit ant tasks.

Import this file into your ant build file like this:
<project>
<import file="BuildToolkitTaskDefs.xml"/>
...
</project>
-->


<project>
<property name="buildtoolkit" value="/opt/ibm/TeamConcertBuild/buildsystem/buildtoolkit"/>
<path id="buildtoolkit.classpath">
<fileset dir="${buildtoolkit}" includes="**/*.jar"/>
</path>

<!-- Tasks for publishing build results and build contributions. -->

<taskdef name="artifactFilePublisher"
classname="com.ibm.team.build.ant.task.ArtifactFilePublisherTask" classpathref="buildtoolkit.classpath" />

<taskdef name="artifactLinkPublisher"
classname="com.ibm.team.build.ant.task.ArtifactLinkPublisherTask" classpathref="buildtoolkit.classpath" />

<taskdef name="buildResultPublisher"
classname="com.ibm.team.build.ant.task.BuildResultPublisherTask" classpathref="buildtoolkit.classpath" />

<taskdef name="filePublisher"
classname="com.ibm.team.build.ant.task.FilePublisherTask" classpathref="buildtoolkit.classpath" />

<taskdef name="jdtCompileLogPublisher"
classname="com.ibm.team.build.ant.task.JdtCompileLogPublisherTask" classpathref="buildtoolkit.classpath" />

<taskdef name="junitLogPublisher"
classname="com.ibm.team.build.ant.task.JUnitLogPublisherTask" classpathref="buildtoolkit.classpath"/>

<taskdef name="cppunitLogPublisher"
classname="com.ibm.team.build.ant.task.CppUnitLogPublisherTask" classpathref="buildtoolkit.classpath"/>

<taskdef name="mstestLogPublisher"
classname="com.ibm.team.build.ant.task.MSTestLogPublisherTask" classpathref="buildtoolkit.classpath" />

<taskdef name="nunitLogPublisher"
classname="com.ibm.team.build.ant.task.NUnitLogPublisherTask" classpathref="buildtoolkit.classpath" />

<taskdef name="linkPublisher"
classname="com.ibm.team.build.ant.task.LinkPublisherTask" classpathref="buildtoolkit.classpath" />

<taskdef name="logPublisher"
classname="com.ibm.team.build.ant.task.LogPublisherTask" classpathref="buildtoolkit.classpath" />

<taskdef name="workItemPublisher"
classname="com.ibm.team.build.ant.task.WorkItemPublisherTask" classpathref="buildtoolkit.classpath" />

<!-- Tasks for enabling progress monitoring. -->

<taskdef name="startBuildActivity"
classname="com.ibm.team.build.ant.task.StartBuildActivityTask" classpathref="buildtoolkit.classpath" />

<taskdef name="completeBuildActivity"
classname="com.ibm.team.build.ant.task.CompleteBuildActivityTask" classpathref="buildtoolkit.classpath" />

<!-- Tasks for controlling the build lifecycle. -->
<taskdef name="startTeamBuild"
classname="com.ibm.team.build.ant.task.StartBuildTask" classpathref="buildtoolkit.classpath" />

<taskdef name="completeTeamBuild"
classname="com.ibm.team.build.ant.task.CompleteBuildTask" classpathref="buildtoolkit.classpath" />

<taskdef name="getNextTeamBuildRequest"
classname="com.ibm.team.build.ant.task.GetNextBuildRequestTask" classpathref="buildtoolkit.classpath" />

<taskdef name="requestTeamBuild"
classname="com.ibm.team.build.ant.task.RequestBuildTask" classpathref="buildtoolkit.classpath" />

<!-- Tasks for using Jazz Source Control. -->

<taskdef name="teamAccept"
classname="com.ibm.team.build.ant.task.TeamAcceptTask" classpathref="buildtoolkit.classpath" />

<taskdef name="teamFetch"
classname="com.ibm.team.build.ant.task.TeamFetchTask" classpathref="buildtoolkit.classpath" />

<taskdef name="teamLastModified"
classname="com.ibm.team.build.ant.task.TeamLastModifiedTask" classpathref="buildtoolkit.classpath" />


<!-- Miscellaneous tasks. -->

<taskdef name="pluginOrganizer"
classname="com.ibm.team.build.ant.task.PluginOrganizerTask" classpathref="buildtoolkit.classpath" />

<taskdef name="waitForTeamBuild"
classname="com.ibm.team.build.ant.task.WaitForTeamBuildTask" classpathref="buildtoolkit.classpath" />

</project>



The documentation for RTC says we should add the toolkit using the "-lib" option for ant, but in this case RAD is using eclipse and the "-lib" option is unknown/ignored.

permanent link
Christopher McCann (56121) | answered Aug 01 '10, 8:27 a.m.
I ran the Rad Build Utility ant with -v and I got more detail about the error. It seems like it must be loading in the JARs to get an error like this. I hope it helps:

Property ${activityLabel} has not been set
[startBuildActivity] Unable to update last contact time for engine: null
[startBuildActivity] java.lang.NullPointerException
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResultHandle(AbstractPublisherTask.java:170)
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractPublisherTask.getBuildResult(AbstractPublisherTask.java:136)
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractPublisherTask.updateLastContactTime(AbstractPublisherTask.java:180)
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:109)
[startBuildActivity] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433)
[startBuildActivity] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[startBuildActivity] at org.apache.tools.ant.Task.perform(Task.java:364)
[startBuildActivity] at org.apache.tools.ant.Target.execute(Target.java:341)
[startBuildActivity] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[startBuildActivity] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[startBuildActivity] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[startBuildActivity] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[startBuildActivity] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[startBuildActivity] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[startBuildActivity] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:663)
[startBuildActivity] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:535)
[startBuildActivity] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[startBuildActivity] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[startBuildActivity] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[startBuildActivity] at java.lang.reflect.Method.invoke(Method.java:600)
[startBuildActivity] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
[startBuildActivity] at com.ibm.ant.extras.RunAnt.run(RunAnt.java:93)
[startBuildActivity] at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
[startBuildActivity] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
[startBuildActivity] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[startBuildActivity] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[startBuildActivity] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
[startBuildActivity] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
[startBuildActivity] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[startBuildActivity] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[startBuildActivity] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[startBuildActivity] at java.lang.reflect.Method.invoke(Method.java:600)
[startBuildActivity] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
[startBuildActivity] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
[startBuildActivity] at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
[startBuildActivity] at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
[startBuildActivity] at org.eclipse.core.launcher.Main.main(Main.java:30)

BUILD FAILED
java.lang.ExceptionInInitializerError
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:663)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:535)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
at com.ibm.ant.extras.RunAnt.run(RunAnt.java:93)
at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
at org.eclipse.core.launcher.Main.main(Main.java:30)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:387)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:82)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getUnmanagedRepository(TeamRepositoryService.java:119)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:197)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamBuildClient(AbstractTeamBuildTask.java:153)
at com.ibm.team.build.ant.task.StartBuildActivityTask.updateBuildResult(StartBuildActivityTask.java:153)
at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:107)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
... 27 more
Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.
at com.ibm.team.repository.common.internal.querypath.AbstractQueryPathModel$Implementation.getItemType(AbstractQueryPathModel.java:190)
at com.ibm.team.repository.common.query.IQuery$Factory.newInstance(IQuery.java:92)
at com.ibm.team.repository.client.internal.ContributorManager.createAllContributorsQuery(ContributorManager.java:57)
at com.ibm.team.repository.client.internal.ContributorManager.<clinit>(ContributorManager.java:45)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
... 40 more
--- Nested Exception ---
java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:387)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:82)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getUnmanagedRepository(TeamRepositoryService.java:119)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:197)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamBuildClient(AbstractTeamBuildTask.java:153)
at com.ibm.team.build.ant.task.StartBuildActivityTask.updateBuildResult(StartBuildActivityTask.java:153)
at com.ibm.team.build.ant.task.AbstractPublisherTask.doExecute(AbstractPublisherTask.java:107)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:663)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:535)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
at com.ibm.ant.extras.RunAnt.run(RunAnt.java:93)
at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
at org.eclipse.core.launcher.Main.main(Main.java:30)
Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.
at com.ibm.team.repository.common.internal.querypath.AbstractQueryPathModel$Implementation.getItemType(AbstractQueryPathModel.java:190)
at com.ibm.team.repository.common.query.IQuery$Factory.newInstance(IQuery.java:92)
at com.ibm.team.repository.client.internal.ContributorManager.createAllContributorsQuery(ContributorManager.java:57)
at com.ibm.team.repository.client.internal.ContributorManager.<clinit>(ContributorManager.java:45)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
... 40 more

permanent link
Emmanuel Geay (1611) | answered Aug 11 '10, 7:04 p.m.
Have you managed to solve your issue?
I'm having the same exception :( I tried using the same JDK for JBE and the Ant files I run (as advised) but that also did not solve my problem.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.