Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34602

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.microsoft.tfs.core.util.URIUtils

    Details

    • Similar Issues:

      Description

      TFS 2012
      TFS-Plugin 4.1.0
      CentOS 7.2.1511

      FATAL: java.io.IOException: Remote call on jenkins-6ef19943 failed
      java.lang.RuntimeException: java.io.IOException: Remote call on jenkins-6ef19943 failed
      at hudson.plugins.tfs.model.Server.execute(Server.java:157)
      at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:272)
      at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:268)
      at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:284)
      at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:311)
      at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:260)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.io.IOException: Remote call on jenkins-6ef19943 failed
      at hudson.remoting.Channel.call(Channel.java:789)
      at hudson.plugins.tfs.model.Server.execute(Server.java:153)
      ... 13 more
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.microsoft.tfs.core.util.URIUtils
      at hudson.plugins.tfs.model.Server.<init>(Server.java:59)
      at hudson.plugins.tfs.commands.AbstractCallableCommand.createServer(AbstractCallableCommand.java:28)
      at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:55)
      at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:33)
      at hudson.remoting.UserRequest.perform(UserRequest.java:121)
      at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      at hudson.remoting.Request$2.run(Request.java:324)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      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 hudson.remoting.Engine$1$1.run(Engine.java:63)
      at java.lang.Thread.run(Thread.java:745)
      at ......remote call to jenkins-6ef19943(Native Method)
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
      at hudson.remoting.Channel.call(Channel.java:781)
      ... 14 more

        Attachments

          Activity

          Hide
          cdenneen Chris Denneen added a comment -

          This above error was experienced on slave instance. It doesn't seem to copy the SDK libraries properly to slave node.

          When pinned to executor on master the following different error occurs:

          Workspace Created by Team Build
          Getting version 'C48650' to '/var/lib/jenkins/jobs/Setup/workspace'...
          FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for /var/lib/jenkins/jobs/Setup/workspace.
          java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for /var/lib/jenkins/jobs/Setup/workspace.
          at hudson.plugins.tfs.model.Server.execute(Server.java:157)
          at hudson.plugins.tfs.model.Project.getFiles(Project.java:256)
          at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:57)
          at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:270)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for /var/lib/jenkins/jobs/Setup/workspace.
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getLocalWorkspace(VersionControlClient.java:737)
          at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getWorkspace(VersionControlClient.java:2154)
          at hudson.plugins.tfs.model.MockableVersionControlClient.getWorkspace(MockableVersionControlClient.java:99)
          at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:57)
          at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17)
          at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
          at hudson.plugins.tfs.model.Server.execute(Server.java:153)
          ... 11 more

          Show
          cdenneen Chris Denneen added a comment - This above error was experienced on slave instance. It doesn't seem to copy the SDK libraries properly to slave node. When pinned to executor on master the following different error occurs: Workspace Created by Team Build Getting version 'C48650' to '/var/lib/jenkins/jobs/Setup/workspace'... FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for /var/lib/jenkins/jobs/Setup/workspace. java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for /var/lib/jenkins/jobs/Setup/workspace. at hudson.plugins.tfs.model.Server.execute(Server.java:157) at hudson.plugins.tfs.model.Project.getFiles(Project.java:256) at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:57) at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:270) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for /var/lib/jenkins/jobs/Setup/workspace. at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getLocalWorkspace(VersionControlClient.java:737) at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getWorkspace(VersionControlClient.java:2154) at hudson.plugins.tfs.model.MockableVersionControlClient.getWorkspace(MockableVersionControlClient.java:99) at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:57) at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.plugins.tfs.model.Server.execute(Server.java:153) ... 11 more
          Hide
          kelliejos Kellie Jos added a comment -

          Thank you for using the tfs-plugin. It appears that your issue was found in an older version of the plugin. There have been a number of improvements made in the recent releases that may have resolved your issue. Please update to the most recent 5.126.0 release. If your issue persists, please open a new ticket and we will investigate.

          Show
          kelliejos Kellie Jos added a comment - Thank you for using the tfs-plugin. It appears that your issue was found in an older version of the plugin. There have been a number of improvements made in the recent releases that may have resolved your issue. Please update to the most recent 5.126.0 release. If your issue persists, please open a new ticket and we will investigate.
          Hide
          smd Stefan Drissen added a comment -

          I had a similar issue using Jenkins 2.104 + TFS plugin 5.126.0 /after/ upgrading (from Jenkins 1.6x and the TFS 3.2 plugin) on my Windows slaves:

          Could not initialize class com.microsoft.tfs.core.config.persistence.DefaultPersistenceStoreProvider

          Deleting the slave's user profile on the slave (and thus wiping out any old 'rubbish') solved the issue. Hinted from https://blogs.msdn.microsoft.com/willy-peter_schaub/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache-or-not/

          Show
          smd Stefan Drissen added a comment - I had a similar issue using Jenkins 2.104 + TFS plugin 5.126.0 /after/ upgrading (from Jenkins 1.6x and the TFS 3.2 plugin) on my Windows slaves: Could not initialize class com.microsoft.tfs.core.config.persistence.DefaultPersistenceStoreProvider Deleting the slave's user profile on the slave (and thus wiping out any old 'rubbish' )  solved the issue. Hinted from  https://blogs.msdn.microsoft.com/willy-peter_schaub/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache-or-not/

            People

            • Assignee:
              redsolo redsolo
              Reporter:
              cdenneen Chris Denneen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: