java.lang.AssertionError: could not delete target C:\Users\daniel\AppData\Local\Temp\testCopyTo153300954676497026

Jenkins JIRA | trejkaz | 7 years ago
  1. 0

    FilePathTest.testCopyTo2 fails in version 1.316, preventing me from building Hudson as test failures abort the build. Here is the full failure, which appears to occur with 100% reliability on Windows Vista: ------------------------------------------------------------------------------- Test set: hudson.FilePathTest ------------------------------------------------------------------------------- Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.659 sec <<< FAILURE! testCopyTo2(hudson.FilePathTest) Time elapsed: 0.086 sec <<< FAILURE! java.lang.AssertionError: could not delete target C:\Users\daniel\AppData\Local\Temp\testCopyTo153300954676497026 at org.junit.Assert.fail(Assert.java:71) at org.junit.Assert.assertTrue(Assert.java:34) at hudson.FilePathTest.testCopyTo2(FilePathTest.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

    Jenkins JIRA | 7 years ago | trejkaz
    java.lang.AssertionError: could not delete target C:\Users\daniel\AppData\Local\Temp\testCopyTo153300954676497026
  2. 0

    FilePathTest.testCopyTo2 fails in version 1.316, preventing me from building Hudson as test failures abort the build. Here is the full failure, which appears to occur with 100% reliability on Windows Vista: ------------------------------------------------------------------------------- Test set: hudson.FilePathTest ------------------------------------------------------------------------------- Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.659 sec <<< FAILURE! testCopyTo2(hudson.FilePathTest) Time elapsed: 0.086 sec <<< FAILURE! java.lang.AssertionError: could not delete target C:\Users\daniel\AppData\Local\Temp\testCopyTo153300954676497026 at org.junit.Assert.fail(Assert.java:71) at org.junit.Assert.assertTrue(Assert.java:34) at hudson.FilePathTest.testCopyTo2(FilePathTest.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

    Jenkins JIRA | 7 years ago | trejkaz
    java.lang.AssertionError: could not delete target C:\Users\daniel\AppData\Local\Temp\testCopyTo153300954676497026
  3. 0

    Junit 4 failure s - Java Programming - KnowCoding.com

    knowcoding.com | 1 year ago
    java.lang.AssertionError: File should have been saved
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I think one class is over riding the other - Java Programming - KnowCoding.com

    knowcoding.com | 1 year ago
    java.lang.AssertionError: File should have been saved

  1. andyglick 2 times, last 3 months ago
  2. WoodenDoors 2 times, last 8 months ago
10 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.lang.AssertionError

    could not delete target C:\Users\daniel\AppData\Local\Temp\testCopyTo153300954676497026

    at org.junit.Assert.fail()
  2. JUnit
    Assert.assertTrue
    1. org.junit.Assert.fail(Assert.java:71)
    2. org.junit.Assert.assertTrue(Assert.java:34)
    2 frames
  3. Hudson
    FilePathTest.testCopyTo2
    1. hudson.FilePathTest.testCopyTo2(FilePathTest.java:101)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. JUnit
    OldTestClassRunner.run
    1. junit.framework.TestCase.runTest(TestCase.java:168)
    2. junit.framework.TestCase.runBare(TestCase.java:134)
    3. junit.framework.TestResult$1.protect(TestResult.java:110)
    4. junit.framework.TestResult.runProtected(TestResult.java:128)
    5. junit.framework.TestResult.run(TestResult.java:113)
    6. junit.framework.TestCase.run(TestCase.java:124)
    7. junit.framework.TestSuite.runTest(TestSuite.java:232)
    8. junit.framework.TestSuite.run(TestSuite.java:227)
    9. org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
    9 frames
  6. JUnit4 Provider
    JUnit4TestSet.execute
    1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    1 frame
  7. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:177)
    3 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  9. SureFire
    SurefireBooter.main
    1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
    2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
    2 frames