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

Google Groups | Christian Mötzing | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Possible bugs with reporter handling

    Google Groups | 2 years ago | Christian Mötzing
    java.io.FileNotFoundException: D:\mbc\testng-bug\.\target\surefire-reports\testng-results.xml (The system cannot find the path specified.)
  2. 0

    XMLReporter listener cannot find file

    GitHub | 2 years ago | rab2215
    java.io.FileNotFoundException: C:\folder\folder\targe t\surefire-reports\testng-results.xml (The system cannot find the path specified )
  3. 0

    XMLReporter listener cannot find file

    GitHub | 2 years ago | rab2215
    java.io.FileNotFoundException: C:\SeleniumNavigation\selenium-grid-service\targe t\surefire-reports\testng-results.xml (The system cannot find the path specified )
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: [m2] HIbernate/Spring/Myfaces dependency hell

    apache.org | 2 years ago
    java.io.FileNotFoundException: /files273067436 (Permission denied)
  6. 0

    Report Designer writes to files in its own installation. This means that it cannot operate in a multi-user environment. I should be able to install Report Designer as root, and then execute it as any user. This is the standard means of installing and running applications. Any files that need to be written (application settings, JNDI connections, etc.) are done so in the user's home directory ($HOME/.Report). If I try to run PRD as a normal user after having installed it as root, it gives errors in the console about not being able to write to files. Here's one example that appears after starting PRD: 14:24:47,577 ERROR [Logger] misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0023 - Could not return object IVersionHelper of scope null 14:24:47,578 ERROR [Logger] Error: Pentaho Pentaho BI Platform 1.7.1.1112 14:24:47,579 ERROR [Logger] misc-org.pentaho.core.audit.AuditHelper: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied) org.pentaho.core.audit.AuditException: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied) at org.pentaho.core.audit.AuditFileEntry.auditAll(AuditFileEntry.java:106) at org.pentaho.core.audit.AuditEntry.auditAll(AuditEntry.java:61) at org.pentaho.core.audit.AuditEntry.auditJobDuration(AuditEntry.java:54) at org.pentaho.core.audit.AuditHelper.audit(AuditHelper.java:81) at org.pentaho.core.session.BaseSession.<init>(BaseSession.java:55) at org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:51) at org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:47) at org.pentaho.core.session.StandaloneSession.<init>(StandaloneSession.java:43) at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:292) at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:212) at org.pentaho.jfreereport.wizard.utility.PentahoUtility.startup(PentahoUtility.java:65) at org.pentaho.jfreereport.wizard.utility.PentahoUtility.startup(PentahoUtility.java:33) at org.pentaho.reportdesigner.crm.report.ReportDialog.preload(ReportDialog.java:472) at org.pentaho.reportdesigner.crm.report.ReportDialog.access$100(ReportDialog.java:229) at org.pentaho.reportdesigner.crm.report.ReportDialog$2$1.run(ReportDialog.java:347) Caused by: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:177) at java.io.FileWriter.<init>(FileWriter.java:90) at org.pentaho.core.audit.AuditFileEntry.auditAll(AuditFileEntry.java:72) ... 14 more 14:24:47,580 ERROR [Logger] Error end: To work around this, I am forced to run these commands as root: # touch report-designer/pentaho.log report-designer/resources/solutions/system/logs/audit/PentahoAuditLog.log # find report-designer/ -iname "*.log" -exec chmod 0666 {} + # find report-designer/ -iname "*.properties" -exec chmod 0666 {} + This means that the files are writable, but the problem is that they are writable by everyone. These files should really be in $HOME/.Report so that the application doesn't need to write to its own installation directory.

    Pentaho BI Platform Tracking | 8 years ago | Sridhar Dhanapalan
    org.pentaho.core.audit.AuditException: java.io.FileNotFoundException: resources/solutions/system/logs/audit/PentahoAuditLog.log (Permission denied)

  1. bluebunnty 8 times, last 3 months ago
  2. nasimk 37 times, last 3 months ago
  3. Alexandru Popa 6 times, last 3 months ago
  4. pranavprakash 2 times, last 4 months ago
  5. rp 1 times, last 6 months ago
1 more registered users
11 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.FileNotFoundException

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

    at java.io.FileOutputStream.open()
  2. Java RT
    FileWriter.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:205)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:156)
    4. java.io.FileWriter.<init>(FileWriter.java:84)
    4 frames
  3. TestNG
    TestNG.run
    1. org.testng.internal.Utils.writeUtf8File(Utils.java:107)
    2. org.testng.reporters.XMLReporter.generateReport(XMLReporter.java:66)
    3. org.testng.TestNG.generateReports(TestNG.java:1115)
    4. org.testng.TestNG.run(TestNG.java:1074)
    4 frames
  4. org.apache.maven
    TestNGProvider.invoke
    1. org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115)
    2. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:128)
    3. org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:112)
    4. org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:112)
    4 frames
  5. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
    2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
    3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
    3 frames