jcifs.smb.SmbException: Cannot create a file when that file already exists.

Jenkins JIRA | wtfink | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0
  2. 0
  3. 0

    I've upgraded to latest Hudson 1.366 from 1.361 and my windows slave stopped working. Even though I've configured the slave box to have %JAVA_HOME% set and %JAVA_HOME%/bin, "java" command works just fine on cmd.exe shell C:\WINDOWS>java -fullversion java full version "1.6.0_21-b06" Hudson fails to recognize it and tries to install jdk which also fails. {noformat} Connecting to w2k3fm1 Checking if Java exists 'java' is not recognized as an internal or external command, operable program or batch file. No Java found. Downloading JDK Installing JDK ERROR: Failed to prepare Java jcifs.smb.SmbException: Cannot create a file when that file already exists. at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:545) at jcifs.smb.SmbTransport.send(SmbTransport.java:646) at jcifs.smb.SmbSession.send(SmbSession.java:244) at jcifs.smb.SmbTree.send(SmbTree.java:119) at jcifs.smb.SmbFile.send(SmbFile.java:770) at jcifs.smb.SmbFile.mkdir(SmbFile.java:2518) at jcifs.smb.SmbFile.mkdirs(SmbFile.java:2544) at hudson.os.windows.WindowsRemoteFileSystem.mkdirs(WindowsRemoteFileSystem.java:58) at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:167) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:184) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Copying slave.jar Starting the service {noformat}

    Jenkins JIRA | 7 years ago | hhuynh
    jcifs.smb.SmbException: Cannot create a file when that file already exists.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-6957] Windows slave fails to find java - Jenkins JIRA

    jenkins-ci.org | 9 months ago
    jcifs.smb.SmbException: Cannot create a file when that file already exists.
  6. 0

    I've upgraded to latest Hudson 1.366 from 1.361 and my windows slave stopped working. Even though I've configured the slave box to have %JAVA_HOME% set and %JAVA_HOME%/bin, "java" command works just fine on cmd.exe shell C:\WINDOWS>java -fullversion java full version "1.6.0_21-b06" Hudson fails to recognize it and tries to install jdk which also fails. {noformat} Connecting to w2k3fm1 Checking if Java exists 'java' is not recognized as an internal or external command, operable program or batch file. No Java found. Downloading JDK Installing JDK ERROR: Failed to prepare Java jcifs.smb.SmbException: Cannot create a file when that file already exists. at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:545) at jcifs.smb.SmbTransport.send(SmbTransport.java:646) at jcifs.smb.SmbSession.send(SmbSession.java:244) at jcifs.smb.SmbTree.send(SmbTree.java:119) at jcifs.smb.SmbFile.send(SmbFile.java:770) at jcifs.smb.SmbFile.mkdir(SmbFile.java:2518) at jcifs.smb.SmbFile.mkdirs(SmbFile.java:2544) at hudson.os.windows.WindowsRemoteFileSystem.mkdirs(WindowsRemoteFileSystem.java:58) at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:167) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:184) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Copying slave.jar Starting the service {noformat}

    Jenkins JIRA | 7 years ago | hhuynh
    jcifs.smb.SmbException: Cannot create a file when that file already exists.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. jcifs.smb.SmbException

      Cannot create a file when that file already exists.

      at jcifs.smb.SmbTransport.checkStatus()
    2. jCIFS
      SmbFile.mkdirs
      1. jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:545)
      2. jcifs.smb.SmbTransport.send(SmbTransport.java:646)
      3. jcifs.smb.SmbSession.send(SmbSession.java:244)
      4. jcifs.smb.SmbTree.send(SmbTree.java:119)
      5. jcifs.smb.SmbFile.send(SmbFile.java:770)
      6. jcifs.smb.SmbFile.mkdir(SmbFile.java:2518)
      7. jcifs.smb.SmbFile.mkdirs(SmbFile.java:2544)
      7 frames
    3. hudson.os.windows
      ManagedWindowsServiceLauncher.launch
      1. hudson.os.windows.WindowsRemoteFileSystem.mkdirs(WindowsRemoteFileSystem.java:58)
      2. hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:168)
      2 frames
    4. Hudson
      SlaveComputer$1.call
      1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:184)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5. java.lang.Thread.run(Unknown Source)
      5 frames