java.io.IOException: Failed to delete C:\Personal\Tattva\sms-x-reloaded\SMSX\build\intermediates\transforms\instantRun\debug\folders\4000\1\enhanced\com\tattva\sup\chatcards2\ChatcardsAdapter$$Lambda$3$override.class

google.com | 4 months ago
  1. 0

    Issue 195319 - android - Instant Run isn't working: exception from AnnotationProcessingTaskFactory - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 4 months ago
    java.io.IOException: Failed to delete C:\Personal\Tattva\sms-x-reloaded\SMSX\build\intermediates\transforms\instantRun\debug\folders\4000\1\enhanced\com\tattva\sup\chatcards2\ChatcardsAdapter$$Lambda$3$override.class
  2. 0

    Jenkins 1.458 It seems that certain types of SVN checkout failures do not prevent the build to continue to execute. In current case the failure was due to the error during the local file delete operation. The problem is that previous workspace is used to execute the build - which caused the wrong results to be reported, obviously. The following log shows the problem: Started by upstream project "PCompiler_vd" build number 46 [EnvInject] - Preparing an environment for the build. Building remotely on OCL-W764-WST04 in workspace c:\H\workspace\PCompiler_vd\BldT/Debug/TrgtT/Win32/slvT/GP Cleaning up c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk Deleting c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\Binaries.7z Deleting c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build ERROR: Failed to update https://subversion.***/branches/sanity/vd/sanity org.tmatesoft.svn.core.SVNException: svn: Unable to delete c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build\Win32\backend\llvm\bin\Debug at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl$1.handleStatus(UpdateWithCleanUpdater.java:78) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.sendUnversionedStatus(SVNStatusEditor.java:358) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:208) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.closeEdit(SVNStatusEditor.java:114) at org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:380) at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl.preUpdate(UpdateWithCleanUpdater.java:66) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:134) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:788) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:769) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:753) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: Unable to delete c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build\Win32\backend\llvm\bin\Debug at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:101) ... 22 more Caused by: java.io.IOException: Unable to delete c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build\Win32\backend\llvm\bin\Debug at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl$1.handleStatus(UpdateWithCleanUpdater.java:74) ... 21 more no change for https://subversion.***/branches/sanity/vd/sanity since the previous build [EnvInject] - Executing scripts and injecting environment variables after the SCM step. [EnvInject] - Injecting as environment variables the properties content BuildOrigin=Private [EnvInject] - Variables injected successfully. [GP] $ python C:\Users\cvcctest\AppData\Local\Temp\hudson6435932133762858247.py Cleanup of old artifacts Deleting:c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\buildLogs\test_report_Build_corei7_1_Win32_Debug.xml Deleting:c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\buildLogs\test_report_LIT_Tests_corei7_1_Win32_Debug.xml [GP] $ python C:\Users\cvcctest\AppData\Local\Temp\hudson946168166299217150.py

    Jenkins JIRA | 4 years ago | Vlad Dovlekaev
    org.tmatesoft.svn.core.SVNException: svn: Unable to delete c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build\Win32\backend\llvm\bin\Debug
  3. 0

    Jenkins 1.458 It seems that certain types of SVN checkout failures do not prevent the build to continue to execute. In current case the failure was due to the error during the local file delete operation. The problem is that previous workspace is used to execute the build - which caused the wrong results to be reported, obviously. The following log shows the problem: Started by upstream project "PCompiler_vd" build number 46 [EnvInject] - Preparing an environment for the build. Building remotely on OCL-W764-WST04 in workspace c:\H\workspace\PCompiler_vd\BldT/Debug/TrgtT/Win32/slvT/GP Cleaning up c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk Deleting c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\Binaries.7z Deleting c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build ERROR: Failed to update https://subversion.***/branches/sanity/vd/sanity org.tmatesoft.svn.core.SVNException: svn: Unable to delete c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build\Win32\backend\llvm\bin\Debug at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl$1.handleStatus(UpdateWithCleanUpdater.java:78) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.sendUnversionedStatus(SVNStatusEditor.java:358) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.getDirStatus(SVNStatusEditor.java:208) at org.tmatesoft.svn.core.internal.wc.SVNStatusEditor.closeEdit(SVNStatusEditor.java:114) at org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:380) at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl.preUpdate(UpdateWithCleanUpdater.java:66) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:134) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:136) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:788) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:769) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:753) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:60) at java.lang.Thread.run(Unknown Source) Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: Unable to delete c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build\Win32\backend\llvm\bin\Debug at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:101) ... 22 more Caused by: java.io.IOException: Unable to delete c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build\Win32\backend\llvm\bin\Debug at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.scm.subversion.UpdateWithCleanUpdater$TaskImpl$1.handleStatus(UpdateWithCleanUpdater.java:74) ... 21 more no change for https://subversion.***/branches/sanity/vd/sanity since the previous build [EnvInject] - Executing scripts and injecting environment variables after the SCM step. [EnvInject] - Injecting as environment variables the properties content BuildOrigin=Private [EnvInject] - Variables injected successfully. [GP] $ python C:\Users\cvcctest\AppData\Local\Temp\hudson6435932133762858247.py Cleanup of old artifacts Deleting:c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\buildLogs\test_report_Build_corei7_1_Win32_Debug.xml Deleting:c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\buildLogs\test_report_LIT_Tests_corei7_1_Win32_Debug.xml [GP] $ python C:\Users\cvcctest\AppData\Local\Temp\hudson946168166299217150.py

    Jenkins JIRA | 4 years ago | Vlad Dovlekaev
    org.tmatesoft.svn.core.SVNException: svn: Unable to delete c:\H\workspace\PCompiler_vd\BldT\Debug\TrgtT\Win32\slvT\GP\trunk\build\Win32\backend\llvm\bin\Debug
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    file.delete() only works the first time

    Stack Overflow | 2 years ago | Hisushi
    java.io.IOException: Failed to delete original file ...\dir\c [0]c[1]\c[2]c[3]\shaOLD after copy to ...\dir_inDB\c[0]c[1]\c[0]c[1]\shaNEW</p> <blockquote> <p>at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2835)
  6. 0

    We are facing sometimes the situation that a unit test job is successful and a mail with success is sent out to the developers but when they look into their dashboards the job is marked as failure because something went wrong when deleting the workspace on a slave. This is somehow confusing and we would be glad if there could be an option to ignore failures of the ws-cleanup plugin for the overall job outcome. 22:57:42 Recording fingerprints 22:57:42 Email was triggered for: Success 22:57:42 Sending email for trigger: Success 22:57:42 Sending email to: tests@lists.internal.net 22:57:43 22:58:14 Deleting project workspace... ERROR: Publisher hudson.plugins.ws_cleanup.WsCleanup aborted due to exception 22:58:14 hudson.util.IOException2: remote file operation failed: C:\Workspace\Some_Tests at hudson.remoting.Channel@4260877a:SLAVE7 22:58:14 at hudson.FilePath.act(FilePath.java:838) 22:58:14 at hudson.FilePath.act(FilePath.java:824) 22:58:14 at hudson.FilePath.deleteRecursive(FilePath.java:908) 22:58:14 at hudson.plugins.ws_cleanup.WsCleanup.perform(WsCleanup.java:68) 22:58:14 at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) 22:58:14 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 22:58:14 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) 22:58:14 at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) 22:58:14 at hudson.model.Run.execute(Run.java:1546) 22:58:14 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 22:58:14 at hudson.model.ResourceController.execute(ResourceController.java:88) 22:58:14 at hudson.model.Executor.run(Executor.java:236) 22:58:14 Caused by: java.io.IOException: Unable to delete C:\Workspace\Some_Tests\Bin\Debug - files in dir: [C:\Workspace\Some_Tests\Bin\Debug\XmlSchemaUtilitiesTests.pdb] 22:58:14 at hudson.Util.deleteFile(Util.java:238) 22:58:14 at hudson.Util.deleteRecursive(Util.java:289) 22:58:14 at hudson.Util.deleteContentsRecursive(Util.java:200) 22:58:14 at hudson.Util.deleteRecursive(Util.java:280) 22:58:14 at hudson.Util.deleteContentsRecursive(Util.java:200) 22:58:14 at hudson.Util.deleteRecursive(Util.java:280) 22:58:14 at hudson.Util.deleteContentsRecursive(Util.java:200) 22:58:14 at hudson.Util.deleteRecursive(Util.java:280) 22:58:14 at hudson.Util.deleteContentsRecursive(Util.java:200) 22:58:14 at hudson.Util.deleteRecursive(Util.java:280) 22:58:14 at hudson.FilePath$11.invoke(FilePath.java:910) 22:58:14 at hudson.FilePath$11.invoke(FilePath.java:908) 22:58:14 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2200) 22:58:14 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 22:58:14 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 22:58:14 at hudson.remoting.Request$2.run(Request.java:287) 22:58:14 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 22:58:14 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 22:58:14 at java.util.concurrent.FutureTask.run(Unknown Source) 22:58:14 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 22:58:14 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 22:58:14 at hudson.remoting.Engine$1$1.run(Engine.java:60) 22:58:14 at java.lang.Thread.run(Unknown Source) 22:58:14 Notifying upstream projects of job completion 22:58:14 Finished: FAILURE

    Jenkins JIRA | 4 years ago | Dirk Kuypers
    hudson.util.IOException2: remote file operation failed: C:\Workspace\Some_Tests at hudson.remoting.Channel@4260877a:SLAVE7

    1 unregistered visitors
    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. java.io.IOException

      Failed to delete C:\Personal\Tattva\sms-x-reloaded\SMSX\build\intermediates\transforms\instantRun\debug\folders\4000\1\enhanced\com\tattva\sup\chatcards2\ChatcardsAdapter$$Lambda$3$override.class

      at com.android.utils.FileUtils.delete()
    2. com.android.tools.common
      FileUtils.delete
      1. com.android.utils.FileUtils.delete(FileUtils.java:114)
      1 frame
    3. com.android.build
      TransformTask$2.call
      1. com.android.build.gradle.internal.transforms.InstantRunTransform.deleteOutputFile(InstantRunTransform.java:354)
      2. com.android.build.gradle.internal.transforms.InstantRunTransform.transform(InstantRunTransform.java:193)
      3. com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:151)
      4. com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:148)
      4 frames
    4. com.android.builder
      ThreadRecorder$1.record
      1. com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:55)
      2. com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:47)
      2 frames
    5. com.android.build
      TransformTask.transform
      1. com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:147)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    7. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      1 frame
    8. Gradle Core
      StoppableExecutorImpl$1.run
      1. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:244)
      2. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
      3. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:231)
      4. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
      5. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
      6. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
      7. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
      8. org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
      9. org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
      10. org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
      11. org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
      12. org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
      13. org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
      14. org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
      15. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
      16. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
      17. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:62)
      18. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
      19. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
      20. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
      20 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames