It's all about the answers!

Ask a question

RTC 5.0.2 checkout failure on jenkins slave


hima makam (1111) | asked Mar 31 '19, 9:11 a.m.
I recently upgraded rtc buildsystem toolkit from 4.0.5 to 5.0.2. I do have jenkins master and slave configured. And when I try to checkout files on slave using master buildsystemtoolkit, I see this error - Can someone please help me. With 4.0.5, I do not see any issue.

[EnvInject] - Loading node environment variables.
Building remotely on BLRLINBUILD006-BC (BLRLINBUILD006) in workspace /data/rmg/sources/apps/jenkins/workspace/OMS_CD_Development.build
RTC : checkout...
FATAL: RTC : checkout failure: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
java.lang.ClassNotFoundException: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at com.ibm.team.build.internal.hjplugin.RTCFacadeClassLoader.loadClass(RTCFacadeClassLoader.java:81)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.newFacade(RTCFacadeFactory.java:234)
    at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.getFacade(RTCFacadeFactory.java:71)
    at com.ibm.team.build.internal.hjplugin.RTCBuildResultSetupTask.invoke(RTCBuildResultSetupTask.java:120)
    at com.ibm.team.build.internal.hjplugin.RTCBuildResultSetupTask.invoke(RTCBuildResultSetupTask.java:38)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3086)
    at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    at hudson.remoting.Request$2.run(Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
FATAL: RTC : checkout failure: RTC : checkout failure: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
hudson.AbortException: RTC : checkout failure: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
    at

    

Comments
Lakshmi Narasimhan T V commented Apr 01 '19, 2:27 a.m.
JAZZ DEVELOPER
Can you provide the entire exception trace?
Do you have a valid build toolkit on the slave? 


2 answers



permanent link
Lakshmi Narasimhan T V (4415) | answered Apr 01 '19, 1:03 p.m.
JAZZ DEVELOPER

Right -rtc.jar  will be sent to the slave only. On master it is always available. Could you restart the slave and check whether that resolves the issue?


permanent link
hima makam (1111) | answered Apr 01 '19, 3:23 a.m.
Hi, this is the complete trace and I do have valid toolkit on slave.

[EnvInject] - Loading node environment variables.
Building remotely on BLRLINBUILD006-BC (BLRLINBUILD006) in workspace /data/rmg/sources/apps/jenkins/workspace/OMS_CD_Development.build
RTC : checkout...
FATAL: RTC : checkout failure: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
java.lang.ClassNotFoundException: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at com.ibm.team.build.internal.hjplugin.RTCFacadeClassLoader.loadClass(RTCFacadeClassLoader.java:81)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.newFacade(RTCFacadeFactory.java:234)
    at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.getFacade(RTCFacadeFactory.java:71)
    at com.ibm.team.build.internal.hjplugin.RTCBuildResultSetupTask.invoke(RTCBuildResultSetupTask.java:120)
    at com.ibm.team.build.internal.hjplugin.RTCBuildResultSetupTask.invoke(RTCBuildResultSetupTask.java:38)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3086)
    at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    at hudson.remoting.Request$2.run(Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
FATAL: RTC : checkout failure: RTC : checkout failure: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
hudson.AbortException: RTC : checkout failure: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
    at com.ibm.team.build.internal.hjplugin.RTCBuildResultSetupTask.invoke(RTCBuildResultSetupTask.java:180)
    at com.ibm.team.build.internal.hjplugin.RTCBuildResultSetupTask.invoke(RTCBuildResultSetupTask.java:38)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3086)
    at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    at hudson.remoting.Request$2.run(Request.java:369)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to BLRLINBUILD006-BC
        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
        at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
        at hudson.remoting.Channel.call(Channel.java:957)
        at hudson.FilePath.act(FilePath.java:1072)
        at hudson.FilePath.act(FilePath.java:1061)
        at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1985)
        at hudson.scm.SCM.checkout(SCM.java:504)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
        at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
        at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
        at hudson.model.Run.execute(Run.java:1810)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
        at hudson.model.ResourceController.execute(ResourceController.java:97)
        at hudson.model.Executor.run(Executor.java:429)
ERROR: RTC : checkout failure: RTC : checkout failure: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
Archiving artifacts



Comments
Lakshmi Narasimhan T V commented Apr 01 '19, 4:35 a.m. | edited Apr 01 '19, 4:39 a.m.
JAZZ DEVELOPER
Few more questions

Is the toolkit in the slave at the same path as in master or have you overidden the toolkit location in the slave?
What is the version of Jenkins and Team concert plugin?

Can you add the following Job property to your jenkins job and run a build?
String property name : com.ibm.team.build.debug
String property value : true

Once you run the build, the console log will say whether com.ibm.team.build.hjplugin-rtc.jar is being sent to the remote machine or not.

hima makam commented Apr 01 '19, 8:10 a.m.
Here is the log -
The toolkit path is same in both master and slave.
Jenkins version - 2.156
Team concert plugin - 1.2.0.5
I am not sure why it says unable to fetch.
Unable to fetch version information for build toolkit "/data/rmg/sources/apps/RTC5.0.2-installers/jazz/buildsystem/buildtoolkit" in node "BLRLINBUILD006-BC". Error Message : "com.ibm.team.build.internal.hjplugin.rtc.RTCFacade".
java.lang.ClassNotFoundException: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

    

Lakshmi Narasimhan T V commented Apr 01 '19, 9:33 a.m.
JAZZ DEVELOPER

 The error you see is still caused by missing RTCFacade class. Could you search for a line in your build log like the following

Reusing facade for /home/xyz/jazz/buildsystem/buildtoolkit
hjplugin-rtc.jar file:/home/xyz/.jenkins/plugins/teamconcert/WEB-INF/lib/com.ibm.team.build.hjplugin-rtc-1.2.5.jar
    
Or some line which has a reference to com.ibm.team.build.hjplugin-rtc-1.2.5.jar jar. Please paste that line and a few lines surrounding those lines.
    


hima makam commented Apr 01 '19, 10:34 a.m.
Original class loader: hudson.remoting.RemoteClassLoader@1be0837e
System class loader sun.misc.Launcher$AppClassLoader@28d93b30
new classloader: com.ibm.team.build.internal.hjplugin.RTCFacadeClassLoader@5a9ded1f
Unable to fetch version information for build toolkit "/data/rmg/sources/apps/RTC5.0.2-installers/jazz/buildsystem/buildtoolkit" in node "BLRLINBUILD006-BC". Error Message : "com.ibm.team.build.internal.hjplugin.rtc.RTCFacade".
java.lang.ClassNotFoundException: com.ibm.team.build.internal.hjplugin.rtc.RTCFacade
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at com.ibm.team.build.internal.hjplugin.RTCFacadeClassLoader.loadClass(RTCFacadeClassLoader.java:81)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.
    Version of build toolkit "/data/rmg/sources/apps/RTC5.0.2-installers/jazz/buildsystem/buildtoolkit" on master is "5.0.2".
Could not determine version of build toolkit "/data/rmg/sources/apps/RTC5.0.2-installers/jazz/buildsystem/buildtoolkit"  on "BLRLINBUILD006-BC".

hima makam commented Apr 01 '19, 10:37 a.m.

actually i do not find any line with exact

hjplugin-rtc-1.2.5.jar
Thats why I sent the above log. The issue is with slave only. On master this works fine. 


hima makam commented Apr 02 '19, 3:52 a.m.

Hi, thanks a lot for your help. Actually restart solved this issue and now fetch is happening perfectly.


Lakshmi Narasimhan T V commented Apr 02 '19, 7:55 a.m.
JAZZ DEVELOPER

 I have converted the comment to an answer. The fix is to restart the slave. Thanks for confirming.

showing 5 of 7 show 2 more comments

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.