Resolved: build error - java.lang.SecurityException
importing the TeamConcert\buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml file into my build.xml script generates the following error.
E:\Program Files\IBM\TeamConcert\buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml:16: java.lang.VerifyError: java.lang.SecurityException: Signers of 'org.eclipse.core.runtime.IContributor' do not match signers of other classes in package Is there a workaround? |
4 answers
I've never seen such an error. Are you running the build engine jvm with
some security options turned on? Can you provide more detailed steps to reproduce? --- Ryan Manwiller Jazz Team Build |
Ryan,
I'm not running the build engine jvm with any security options turned on. It's pretty straight forward. Here is a copy of the simplified build script: <project name="build" basedir="." default="main"> <import file="E:\Program Files\IBM\TeamConcert\buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml"/> <target name="checkEnv"> <!-- read and set credentials --> <available file="${credentialsFile}" property="propertiesAvailable" /> <fail message="Expected to find properties file at ${credentialsFile}. Check the credentialsFile property in the build definition." unless="propertiesAvailable" /> <property file="${credentialsFile}" /> <echo message="read ${credentialsFile}" /> <fail message="userId not set" unless="userId"/> <fail message="password not set" unless="password"/> </target> <target name="main" depends="checkEnv"> <artifactFilePublisher buildResultUUID="${buildResultUUID}" repositoryAddress="${repositoryAddress}" userId="${userId}" password="${password}" verbose="true" filePath="Y:\Test.jar" label="Produced JAR" /> </target> </project> Here is the full error message that results when I attempt to excute the build script via the jbe: Invoking pre-build participant "com.ibm.team.build.jazzscm" Fetching files to fetch destination "Y:\J2CA_Components" ... Invoking build participant "com.ibm.team.build.ant" Buildfile: Y:\J2CA_Components\AdapterBase\build\build.test.xml BUILD FAILED Y:\J2CA_Components\AdapterBase\build\build.test.xml:3: The following error occurred while executing this line: E:\Program Files\IBM\TeamConcert\buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml:16: java.lang.VerifyError: java.lang.SecurityException: Signers of 'org.eclipse.core.runtime.IContributor' do not match signers of other classes in package Total time: 1 second Build failed. Exit value was 1. I tried replacing the org.eclipse.core.runtime.jar file in the buildtookit directoyr with the one in the SDP70Shared folder (samee version number), but the error is the same. |
To clarify the issue, any reference to any task in com.ibm.team.build.ant.task package causes the error. To reproduce, simply create a build.xml file with a line like the following in it and you should see the error:
<taskdef name="artifactFilePublisher" classname="com.ibm.team.build.ant.task.ArtifactFilePublisherTask" /> I've re-installed the buildsystem from the M5a RTC cleanly on the machine. I've made sure that the jbe vm points to the jdk shipped with the RTC. Any luck reproducing this? |
I figured out the issue finally.... This has to do with the order of the Ant Arguments in the Build Defintion.
In my build definition, I had the "Jazz Build Toolkit" check box selected. Additionally I had other custom Ant libs specified in the "Ant Arguments" line of the build definition. I finally figured out that I needed to uncheck the "Jazz Build Toolkit" option and explicitly specify my build toolkit path FIRST in the list of Ant Arguments. Explicitly placing it last in the Ant Arguments list or using the Jazz Build Toolkit option (which probably appends it to the specified list) resutls in a "java.lang.VerifyError: java.lang.SecurityException: Signers of 'org.eclipse.core.runtime.IContributor' do not match signers of other classes in package" error. This was a tough one...hopefully someone will benefit from my pain :) |
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.