java.io.IOException: File X:\s\workspace\nexus-oss-its\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\logs\nexus.log unable to be deleted.

Sonatype JIRA | Peter Lynch | 5 years 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

    https://builds.sonatype.org/view/nexus/job/nexus-oss-its/131/jdk=java-6x,label=win/testReport/junit/org.sonatype.nexus.integrationtests.nexus4635nexusVersion/Nexus4635OldNexusVersionIT/_BeforeMethod_oncePerClassSetUp/ {noformat} Error Message File X:\s\workspace\nexus-oss-its\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\logs\nexus.log unable to be deleted. Stacktrace java.io.IOException: File X:\s\workspace\nexus-oss-its\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\logs\nexus.log unable to be deleted. at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1373) at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1625) at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1570) at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1361) at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.cleanWorkDir(AbstractNexusIntegrationTest.java:546) at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.beforeStartClean(AbstractNexusIntegrationTest.java:440) at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.oncePerClassSetUp(AbstractNexusIntegrationTest.java:347) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:158) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:98) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) ... Removed 27 stack frames {noformat}

    Sonatype JIRA | 5 years ago | Peter Lynch
    java.io.IOException: File X:\s\workspace\nexus-oss-its\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\logs\nexus.log unable to be deleted.

    Root Cause Analysis

    1. java.io.IOException

      File X:\s\workspace\nexus-oss-its\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\logs\nexus.log unable to be deleted.

      at org.codehaus.plexus.util.FileUtils.forceDelete()
    2. Plexus Common Utilities
      FileUtils.forceDelete
      1. org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1373)
      2. org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1625)
      3. org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1570)
      4. org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1361)
      4 frames
    3. org.sonatype.nexus
      AbstractNexusIntegrationTest.oncePerClassSetUp
      1. org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.cleanWorkDir(AbstractNexusIntegrationTest.java:546)
      2. org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.beforeStartClean(AbstractNexusIntegrationTest.java:440)
      3. org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.oncePerClassSetUp(AbstractNexusIntegrationTest.java:347)
      3 frames
    4. org.apache.maven
      TestNGProvider.invoke
      1. org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70)
      2. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:158)
      3. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:98)
      4. org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
      4 frames
    5. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
      2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
      3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
      4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
      5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
      5 frames