java.lang.RuntimeException: hudson.remoting.ProxyException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Jenkins JIRA | Alexey Larsky | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    After upgrade TFS Plugin from 3.2 to 4.0 I've got an exception on 'TF.exe" get . -recursive ...' command. This is pure regress because the project has successfully gotten with TFS-plugin version 3.2. Bug can be reproduced on path lenght near and less than 260 (220 < path < 260). {code:none} 12:39:18 FATAL: hudson.remoting.ProxyException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 java.lang.RuntimeException: hudson.remoting.ProxyException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 at hudson.plugins.tfs.model.Server.execute(Server.java:110) 12:39:18 at hudson.plugins.tfs.model.Project.getFiles(Project.java:177) 12:39:18 at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:54) 12:39:18 at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:221) 12:39:18 at hudson.model.AbstractProject.checkout(AbstractProject.java:1274) 12:39:18 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) 12:39:18 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 12:39:18 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) 12:39:18 at hudson.model.Run.execute(Run.java:1738) 12:39:18 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 12:39:18 at hudson.model.ResourceController.execute(ResourceController.java:98) 12:39:18 at hudson.model.Executor.run(Executor.java:381) 12:39:18 Caused by: hudson.remoting.ProxyException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.throwIfFatalError(GetEngine.java:3308) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperationsInternal(GetEngine.java:1257) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperations(GetEngine.java:1056) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processGetOperations(GetEngine.java:881) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2652) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2527) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2515) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2491) 12:39:18 at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:60) 12:39:18 at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17) 12:39:18 at hudson.remoting.UserRequest.perform(UserRequest.java:121) 12:39:18 at hudson.remoting.UserRequest.perform(UserRequest.java:49) 12:39:18 at hudson.remoting.Request$2.run(Request.java:324) 12:39:18 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) 12:39:18 at java.util.concurrent.FutureTask.run(Unknown Source) 12:39:18 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 12:39:18 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 12:39:18 at hudson.remoting.Engine$1$1.run(Engine.java:63) 12:39:18 at java.lang.Thread.run(Unknown Source) 12:39:18 at ......remote call to rusbuilder-ims(Native Method) 12:39:18 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1360) 12:39:18 at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) 12:39:18 at hudson.remoting.Channel.call(Channel.java:753) 12:39:18 at hudson.plugins.tfs.model.Server.execute(Server.java:106) 12:39:18 ... 11 more 12:39:18 Caused by: hudson.remoting.ProxyException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:105) 12:39:18 at com.microsoft.tfs.core.exceptions.mappers.VersionControlExceptionMapper.map(VersionControlExceptionMapper.java:50) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3650) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3691) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.sendToServer(UpdateLocalVersionQueue.java:875) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.flush(UpdateLocalVersionQueue.java:498) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.queueUpdate(UpdateLocalVersionQueue.java:408) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.AsyncGetOperation.queueLocalVersionUpdate(AsyncGetOperation.java:312) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.workers.GetDownloadWorker.completeGetOperation(GetDownloadWorker.java:697) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.workers.GetDownloadWorker.call(GetDownloadWorker.java:168) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.workers.GetDownloadWorker.call(GetDownloadWorker.java:74) 12:39:18 at java.util.concurrent.FutureTask.run(Unknown Source) 12:39:18 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 12:39:18 at java.util.concurrent.FutureTask.run(Unknown Source) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.internal.concurrent.BoundedExecutor$1.run(BoundedExecutor.java:96) 12:39:18 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 12:39:18 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 12:39:18 at java.lang.Thread.run(Unknown Source) 12:39:18 Caused by: hudson.remoting.ProxyException: com.microsoft.tfs.core.ws.runtime.exceptions.SOAPFault: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 at com.microsoft.tfs.core.ws.runtime.client.SOAP12Service.examineResponseDOMForFault(SOAP12Service.java:132) 12:39:18 at com.microsoft.tfs.core.ws.runtime.client.SOAPService.examineBodyForFault(SOAPService.java:1103) 12:39:18 at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:732) 12:39:18 at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:475) 12:39:18 at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service.updateLocalVersion(_Repository5Soap12Service.java:1169) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3634) 12:39:18 ... 15 more {code}

    Jenkins JIRA | 1 year ago | Alexey Larsky
    java.lang.RuntimeException: hudson.remoting.ProxyException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
  2. 0

    After upgrade TFS Plugin from 3.2 to 4.0 I've got an exception on 'TF.exe" get . -recursive ...' command. This is pure regress because the project has successfully gotten with TFS-plugin version 3.2. Bug can be reproduced on path lenght near and less than 260 (220 < path < 260). {code:none} 12:39:18 FATAL: hudson.remoting.ProxyException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 java.lang.RuntimeException: hudson.remoting.ProxyException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 at hudson.plugins.tfs.model.Server.execute(Server.java:110) 12:39:18 at hudson.plugins.tfs.model.Project.getFiles(Project.java:177) 12:39:18 at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:54) 12:39:18 at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:221) 12:39:18 at hudson.model.AbstractProject.checkout(AbstractProject.java:1274) 12:39:18 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) 12:39:18 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 12:39:18 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) 12:39:18 at hudson.model.Run.execute(Run.java:1738) 12:39:18 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 12:39:18 at hudson.model.ResourceController.execute(ResourceController.java:98) 12:39:18 at hudson.model.Executor.run(Executor.java:381) 12:39:18 Caused by: hudson.remoting.ProxyException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.throwIfFatalError(GetEngine.java:3308) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperationsInternal(GetEngine.java:1257) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperations(GetEngine.java:1056) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processGetOperations(GetEngine.java:881) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2652) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2527) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2515) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2491) 12:39:18 at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:60) 12:39:18 at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17) 12:39:18 at hudson.remoting.UserRequest.perform(UserRequest.java:121) 12:39:18 at hudson.remoting.UserRequest.perform(UserRequest.java:49) 12:39:18 at hudson.remoting.Request$2.run(Request.java:324) 12:39:18 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) 12:39:18 at java.util.concurrent.FutureTask.run(Unknown Source) 12:39:18 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 12:39:18 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 12:39:18 at hudson.remoting.Engine$1$1.run(Engine.java:63) 12:39:18 at java.lang.Thread.run(Unknown Source) 12:39:18 at ......remote call to rusbuilder-ims(Native Method) 12:39:18 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1360) 12:39:18 at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) 12:39:18 at hudson.remoting.Channel.call(Channel.java:753) 12:39:18 at hudson.plugins.tfs.model.Server.execute(Server.java:106) 12:39:18 ... 11 more 12:39:18 Caused by: hudson.remoting.ProxyException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:105) 12:39:18 at com.microsoft.tfs.core.exceptions.mappers.VersionControlExceptionMapper.map(VersionControlExceptionMapper.java:50) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3650) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3691) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.sendToServer(UpdateLocalVersionQueue.java:875) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.flush(UpdateLocalVersionQueue.java:498) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.queueUpdate(UpdateLocalVersionQueue.java:408) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.AsyncGetOperation.queueLocalVersionUpdate(AsyncGetOperation.java:312) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.workers.GetDownloadWorker.completeGetOperation(GetDownloadWorker.java:697) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.workers.GetDownloadWorker.call(GetDownloadWorker.java:168) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.workers.GetDownloadWorker.call(GetDownloadWorker.java:74) 12:39:18 at java.util.concurrent.FutureTask.run(Unknown Source) 12:39:18 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 12:39:18 at java.util.concurrent.FutureTask.run(Unknown Source) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.internal.concurrent.BoundedExecutor$1.run(BoundedExecutor.java:96) 12:39:18 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 12:39:18 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 12:39:18 at java.lang.Thread.run(Unknown Source) 12:39:18 Caused by: hudson.remoting.ProxyException: com.microsoft.tfs.core.ws.runtime.exceptions.SOAPFault: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 12:39:18 at com.microsoft.tfs.core.ws.runtime.client.SOAP12Service.examineResponseDOMForFault(SOAP12Service.java:132) 12:39:18 at com.microsoft.tfs.core.ws.runtime.client.SOAPService.examineBodyForFault(SOAPService.java:1103) 12:39:18 at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:732) 12:39:18 at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:475) 12:39:18 at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service.updateLocalVersion(_Repository5Soap12Service.java:1169) 12:39:18 at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3634) 12:39:18 ... 15 more {code}

    Jenkins JIRA | 1 year ago | Alexey Larsky
    java.lang.RuntimeException: hudson.remoting.ProxyException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    Root Cause Analysis

    1. hudson.remoting.ProxyException

      com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

      at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.throwIfFatalError()
    2. com.microsoft.tfs
      Workspace.get
      1. com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.throwIfFatalError(GetEngine.java:3308)
      2. com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperationsInternal(GetEngine.java:1257)
      3. com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperations(GetEngine.java:1056)
      4. com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processGetOperations(GetEngine.java:881)
      5. com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2652)
      6. com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2527)
      7. com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2515)
      8. com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2491)
      8 frames
    3. hudson.plugins.tfs
      GetFilesToWorkFolderCommand.call
      1. hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:60)
      2. hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17)
      2 frames
    4. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:121)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:49)
      3. hudson.remoting.Request$2.run(Request.java:324)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      4 frames
    5. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3 frames
    6. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:63)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame