java.io.FileNotFoundException: D:\mbc\testng-bug\.\target\surefire-reports\testng-results.xml (The system cannot find the path specified.)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Christian Mötzing, 10 months ago
D:\mbc\testng-bug\.\target\surefire-reports\testng-results.xml (The system cannot find the path specified.)
via GitHub by rab2215
, 2 years ago
C:\folder\folder\targe t\surefire-reports\testng-results.xml (The system cannot find the path specified )
via GitHub by rab2215
, 2 years ago
C:\SeleniumNavigation\selenium-grid-service\targe t\surefire-reports\testng-results.xml (The system cannot find the path specified )
via Oracle Community by 843840, 1 year ago
..\data\message.txt (The system cannot find the path specified)
via GitHub by claytonneal
, 2 years ago
reports\testng (Access is denied)
via Google Groups by Fahad Anwar, 1 year ago
S:\XNAT\cache\archive_specification.xml (The system cannot find the path specified)
java.io.FileNotFoundException: D:\mbc\testng-bug\.\target\surefire-reports\testng-results.xml (The system cannot find the path specified.)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:205)
at java.io.FileOutputStream.(FileOutputStream.java:156)
at java.io.FileWriter.(FileWriter.java:84)
at org.testng.internal.Utils.writeUtf8File(Utils.java:107)
at org.testng.reporters.XMLReporter.generateReport(XMLReporter.java:66)
at org.testng.TestNG.generateReports(TestNG.java:1115)
at org.testng.TestNG.run(TestNG.java:1074)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:128)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:112)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:112)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
4 times, 1 month ago
Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
93 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.