Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC 3 and Jenkins

 I'm having trouble trying to setup the Jenkins CI server with RTC 3.

First, I tried the last version of Jenkins (1.529) and the plugin didn't work because of these issues: 

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=276910

https://jazz.net/forum/questions/123459/jenkinshudson-rtc-plugin-can-not-connect-to-rtc-server

Then, I tried to downgrade Jenkins to 1.526, and I'm still in pain. Now, I can test the connection to the repository, but having build errors when the build is triggered. Here follows the stack trace:


Started by user Jenkins Admin
Building in workspace D:\jenkins\workspace
RTC : checkout...
RTC Checkout : Source control setup
RTC Checkout : Accepting changes into workspace "ws_jenkins_AA7_trunk" ...
RTC Checkout : Fetching files to fetch destination "D:\Jenkins\workspace" ...
FATAL: RTC : checkout failure: Could not initialize class com.ibm.team.filesystem.client.internal.ManagedFileStore
java.lang.NoClassDefFoundError: Could not initialize class com.ibm.team.filesystem.client.internal.ManagedFileStore
	at com.ibm.team.filesystem.client.internal.FileStorageWrapper.getFileStore(FileStorageWrapper.java:336)
	at com.ibm.team.filesystem.client.internal.FileStorageWrapper.exists(FileStorageWrapper.java:366)
	at com.ibm.team.filesystem.client.internal.Shareable.exists(Shareable.java:667)
	at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.checkForCollision(HierarchicalLoadEvaluator.java:667)
	at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.getElementsToLoad(HierarchicalLoadEvaluator.java:329)
	at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.doEvaluation(HierarchicalLoadEvaluator.java:178)
	at com.ibm.team.filesystem.client.internal.operations.LoadEvaluator.evaluateLoadRequests(LoadEvaluator.java:90)
	at com.ibm.team.filesystem.client.internal.operations.LoadOperation.evaluateLoadRequests(LoadOperation.java:447)
	at com.ibm.team.filesystem.client.internal.operations.LoadOperation$1.run(LoadOperation.java:590)
	at com.ibm.team.filesystem.client.internal.SharingManager.runWithinFileSystemLock(SharingManager.java:802)
	at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:164)
	at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:144)
	at com.ibm.team.filesystem.client.internal.operations.LoadOperation.execute(LoadOperation.java:624)
	at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
	at com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:619)
	at com.ibm.team.build.internal.hjplugin.rtc.RepositoryConnection.checkout(RepositoryConnection.java:407)
	at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.checkout(RTCFacade.java:387)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:92)
	at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:107)
	at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:31)
	at hudson.FilePath.act(FilePath.java:906)
	at hudson.FilePath.act(FilePath.java:879)
	at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:843)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1406)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
	at hudson.model.Run.execute(Run.java:1597)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:247)
ERROR: RTC : checkout failure: Could not initialize class com.ibm.team.filesystem.client.internal.ManagedFileStore
Finished: FAILURE
	
	
	


The envirnonment:
	
	
	
Jenkins default installation, version 1.526
	
	
	
Team concert plugin: 1.0.7
	
	
	
Server OS: Windows 2013
	
	
	
Build Toolkit: RTC-BuildSystem-Toolkit-Win-3.0.1.2
	
	
	

0 votes



3 answers

Permanent link
 Upgrading the plugin to 1.0.11:

Started by user Jenkins Admin
Building in workspace D:\jenkins\workspace
RTC : checkout...
RTC Checkout : Source control setup
RTC Checkout : Accepting changes into workspace "ws_jenkins_AA7_trunk" ...
RTC Checkout : Fetching files to fetch destination "D:\Jenkins\workspace" ...
FATAL: RTC : checkout failure: java.nio.file.FileSystem.getPath(Ljava/lang/String;)Ljava/nio/file/Path;
java.lang.NoSuchMethodError: java.nio.file.FileSystem.getPath(Ljava/lang/String;)Ljava/nio/file/Path;
	at com.ibm.team.filesystem.client.internal.Java17SymLinkHelper.<init>(Java17SymLinkHelper.java:41)
	at com.ibm.team.filesystem.client.internal.Java17SymLinkHelper.newInstance(Java17SymLinkHelper.java:34)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.ibm.team.filesystem.client.internal.ManagedFileStore.getJava17SymLinkHelper(ManagedFileStore.java:116)
	at com.ibm.team.filesystem.client.internal.ManagedFileStore.<clinit>(ManagedFileStore.java:146)
	at com.ibm.team.filesystem.client.internal.FileStorageWrapper.getFileStore(FileStorageWrapper.java:336)
	at com.ibm.team.filesystem.client.internal.FileStorageWrapper.exists(FileStorageWrapper.java:366)
	at com.ibm.team.filesystem.client.internal.Shareable.exists(Shareable.java:667)
	at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.checkForCollision(HierarchicalLoadEvaluator.java:667)
	at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.getElementsToLoad(HierarchicalLoadEvaluator.java:329)
	at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.doEvaluation(HierarchicalLoadEvaluator.java:178)
	at com.ibm.team.filesystem.client.internal.operations.LoadEvaluator.evaluateLoadRequests(LoadEvaluator.java:90)
	at com.ibm.team.filesystem.client.internal.operations.LoadOperation.evaluateLoadRequests(LoadOperation.java:447)
	at com.ibm.team.filesystem.client.internal.operations.LoadOperation$1.run(LoadOperation.java:590)
	at com.ibm.team.filesystem.client.internal.SharingManager.runWithinFileSystemLock(SharingManager.java:802)
	at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:164)
	at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:144)
	at com.ibm.team.filesystem.client.internal.operations.LoadOperation.execute(LoadOperation.java:624)
	at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
	at com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:619)
	at com.ibm.team.build.internal.hjplugin.rtc.RepositoryConnection.checkout(RepositoryConnection.java:429)
	at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.checkout(RTCFacade.java:410)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:96)
	at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:110)
	at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:31)
	at hudson.FilePath.act(FilePath.java:906)
	at hudson.FilePath.act(FilePath.java:879)
	at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:898)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1406)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
	at hudson.model.Run.execute(Run.java:1597)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:247)
ERROR: RTC : checkout failure: java.nio.file.FileSystem.getPath(Ljava/lang/String;)Ljava/nio/file/Path;
Finished: FAILURE
	

0 votes


Permanent link
Hi Eric,

I don't this that this is directly related to Jenkins.  The same errors have been seen before using JRE 1.7.
RTC 3 doesn't support that version of JRE, so you would have to use JRE 1.6 instead.  This link describes the support environments: https://jazz.net/library/article/632

Regards,

John

0 votes


Permanent link
 Hi John,

I'll need to make Jenkins run on and older VM, right?

I hope I don't have any other side effects doing this.


Regards,

Eric

0 votes

Comments

Hi Eric,

I don't think there's a requirement to use the same VM for Jenkins and RTC.  My guess is that the newer JRE shipped with Jenkins got added to the start of your PATH when you installed it, and that's causing a problem for RTC 3.  You can probably reset the PATH to find the older JRE first, and then use the Jenkins system configuration tools in your Jenkins console to select the best JDK for your builds.

I hope that helps,

John

 John, 


There are no JVM's inside my path:

Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\SCOM\

In the Jenkins jenkins.xml file, I can specify an jvm (the default is Jenkins jre)
<executable>%BASE%\jre\bin\java</executable>

I don't think I can specify an specific jvm version to check source control. If you have any idea on how to do this on Jenkins, please, let me know.


Regards,

Eric

Hi Eric,

The source control here is happening within the context of the build, so you will need to tell Jenkins the appropriate VM to use in order to execute those classes. You can define multiple VMs within Jenkins console (using a browser).  It's described on one third party site here: http://my.safaribooksonline.com/book/software-engineering-and-development/ide/9781449311155/configuring-your-jenkins-server/sect-configuration-jdks.

Regards,

John

Hi John,


I configured the JDK 1.6 as suggested by your link. Do you know where I can tell the build that it needs to run with a specific version of JDK, previously registered in Jenkins?


Regards,

Eric


Hi Eric,

I haven't used this plugin personally, but it looks like it might be what you're looking for:
https://wiki.jenkins-ci.org/display/JENKINS/JDK+Parameter+Plugin

John

Hi John,


I tried this plugin. This is useful to specify a JDK on a Build, not in a project. You need to choose the SDK for each execution of the build. It isn't what I'm looking for.

 Anyway, I tested it isn't working: 

FATAL: RTC : checkout failure: java.nio.file.FileSystem.getPath(Ljava/lang/String;)Ljava/nio/file/Path;

 

I'll do more tests to make sure the right JDK is being executed. 

showing 5 of 8 show 3 more comments

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 18 '13, 8:46 a.m.

Question was seen: 7,014 times

Last updated: Oct 18 '13, 1:16 p.m.

Confirmation Cancel Confirm