junit.framework.AssertionFailedError: Exception in constructor: testCustomerProvider (org.mule.api.MuleRuntimeException: Unable to create a canonical file for file:/C:/repo/org/mule/mule-core/2.0.0-RC3-SNAPSHOT/mule-core-2.0.0-RC3-SNAPSHOT-tests.jar!/mule-test-exclusions.txt

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I get this if I don't have a mule-test-exclusions.xml file around. I shouldn't have to have one IMO as the idea is that all my tests should work and I shouldn't have to exclude anything :-) junit.framework.AssertionFailedError: Exception in constructor: testCustomerProvider (org.mule.api.MuleRuntimeException: Unable to create a canonical file for file:/C:/repo/org/mule/mule-core/2.0.0-RC3-SNAPSHOT/mule-core-2.0.0-RC3-SNAPSHOT-tests.jar!/mule-test-exclusions.txt at org.mule.util.FileUtils.newFile(FileUtils.java:352) at org.mule.tck.AbstractMuleTestCase$TestInfo.<init>(AbstractMuleTestCase.java:603) at org.mule.tck.AbstractMuleTestCase.createTestInfo(AbstractMuleTestCase.java:173) at org.mule.tck.AbstractMuleTestCase.<init>(AbstractMuleTestCase.java:151) at org.mule.tck.FunctionalTestCase.<init>(FunctionalTestCase.java:38) at org.mule.providers.abdera.CustomerTest.<init>(CustomerTest.java:19) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at junit.framework.TestSuite.createTest(TestSuite.java:131) at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at junit.framework.TestSuite.<init>(TestSuite.java:75) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.Win32FileSystem.canonicalize(Unknown Source) at java.io.File.getCanonicalPath(Unknown Source) at java.io.File.getCanonicalFile(Unknown Source) at org.mule.util.FileUtils.newFile(FileUtils.java:348) ... 18 more ) at junit.framework.Assert.fail(Assert.java:47) at junit.framework.TestSuite$1.runTest(TestSuite.java:263) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    via by Dan Diephouse,
  • I get this if I don't have a mule-test-exclusions.xml file around. I shouldn't have to have one IMO as the idea is that all my tests should work and I shouldn't have to exclude anything :-) junit.framework.AssertionFailedError: Exception in constructor: testCustomerProvider (org.mule.api.MuleRuntimeException: Unable to create a canonical file for file:/C:/repo/org/mule/mule-core/2.0.0-RC3-SNAPSHOT/mule-core-2.0.0-RC3-SNAPSHOT-tests.jar!/mule-test-exclusions.txt at org.mule.util.FileUtils.newFile(FileUtils.java:352) at org.mule.tck.AbstractMuleTestCase$TestInfo.<init>(AbstractMuleTestCase.java:603) at org.mule.tck.AbstractMuleTestCase.createTestInfo(AbstractMuleTestCase.java:173) at org.mule.tck.AbstractMuleTestCase.<init>(AbstractMuleTestCase.java:151) at org.mule.tck.FunctionalTestCase.<init>(FunctionalTestCase.java:38) at org.mule.providers.abdera.CustomerTest.<init>(CustomerTest.java:19) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at junit.framework.TestSuite.createTest(TestSuite.java:131) at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at junit.framework.TestSuite.<init>(TestSuite.java:75) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.Win32FileSystem.canonicalize(Unknown Source) at java.io.File.getCanonicalPath(Unknown Source) at java.io.File.getCanonicalFile(Unknown Source) at org.mule.util.FileUtils.newFile(FileUtils.java:348) ... 18 more ) at junit.framework.Assert.fail(Assert.java:47) at junit.framework.TestSuite$1.runTest(TestSuite.java:263) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    via by Dan Diephouse,
  • Workspace Feedback #2
    via GitHub by Joeran
    ,
  • Initializing project state error
    via Stack Overflow by user2083882
    ,
    • junit.framework.AssertionFailedError: Exception in constructor: testCustomerProvider (org.mule.api.MuleRuntimeException: Unable to create a canonical file for file:/C:/repo/org/mule/mule-core/2.0.0-RC3-SNAPSHOT/mule-core-2.0.0-RC3-SNAPSHOT-tests.jar!/mule-test-exclusions.txt at org.mule.util.FileUtils.newFile(FileUtils.java:352) at org.mule.tck.AbstractMuleTestCase$TestInfo.<init>(AbstractMuleTestCase.java:603) at org.mule.tck.AbstractMuleTestCase.createTestInfo(AbstractMuleTestCase.java:173) at org.mule.tck.AbstractMuleTestCase.<init>(AbstractMuleTestCase.java:151) at org.mule.tck.FunctionalTestCase.<init>(FunctionalTestCase.java:38) at org.mule.providers.abdera.CustomerTest.<init>(CustomerTest.java:19) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at junit.framework.TestSuite.createTest(TestSuite.java:131) at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at junit.framework.TestSuite.<init>(TestSuite.java:75) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.Win32FileSystem.canonicalize(Unknown Source) at java.io.File.getCanonicalPath(Unknown Source) at java.io.File.getCanonicalFile(Unknown Source) at org.mule.util.FileUtils.newFile(FileUtils.java:348) ... 18 more

    Users with the same issue

    Unknown visitor1 times, last one,
    treefolk
    treefolk2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    17 more bugmates