{"action":"opened","issue":{"url":"https://api.github.com/repos/cbeust/testng/issues/591","labels_url":"https://api.github.com/repos/cbeust/testng/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/cbeust/testng/issues/591/comments","events_url":"https://api.github.com/repos/cbeust/testng/issues/591/events","html_url":"https://github.com/cbeust/testng/issues/591","id":54264433,"number":591,"title":"XMLReporter listener cannot find file","user":{"login":"rab2215","id":6473132,"avatar_url":"https://avatars.githubusercontent.com/u/6473132?v=3","gravatar_id":"","url":"https://api.github.com/users/rab2215","html_url":"https://github.com/rab2215","followers_url":"https://api.github.com/users/rab2215/followers","following_url":"https://api.github.com/users/rab2215/following{/other_user}","gists_url":"https://api.github.com/users/rab2215/gists{/gist_id}","starred_url":"https://api.github.com/users/rab2215/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rab2215/subscriptions","organizations_url":"https://api.github.com/users/rab2215/orgs","repos_url":"https://api.github.com/users/rab2215/repos","events_url":"https://api.github.com/users/rab2215/events{/privacy}","received_events_url":"https://api.github.com/users/rab2215/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-13T23:34:44Z","updated_at":"2015-01-13T23:34:44Z","closed_at":null,"body":" Since encountering an earlier issue I reported (testNG not creating HTML report #562), which causes the html report to not be generated(and as a result my custom html reporter doesn't get executed), I decided to disable the default listeners and only enable the XMLReporter (since Jenkins requires it for the testNG plugin to report results) as well as my custom listener as shown below. \r\n\r\n<properties>  \r\n\t<property>\r\n\t\t<name>usedefaultlisteners</name>\r\n\t\t<value>false</value> \r\n\t</property>\t\r\n\t<property>\r\n\t\t<name>listener</name>\r\n\t\t<value>org.testng.reporters.XMLReporter, com.theyTookOurJobs.MyCustomListener</value>\r\n\t</property>\r\n</properties> \r\n\r\nWhen running this configuration, I receive this error:\r\n\r\njava.io.FileNotFoundException: C:\\SeleniumNavigation\\selenium-grid-service\\targe\r\nt\\surefire-reports\\testng-results.xml (The system cannot find the path specified\r\n)\r\n        at java.io.FileOutputStream.open(Native Method)\r\n        at java.io.FileOutputStream.<init>(FileOutputStream.java:221)\r\n        at java.io.FileOutputStream.<init>(FileOutputStream.java:171)\r\n        at java.io.FileWriter.<init>(FileWriter.java:90)\r\n        at org.testng.internal.Utils.writeUtf8File(Utils.java:107)\r\n        at org.testng.reporters.XMLReporter.generateReport(XMLReporter.java:66)\r\n        at org.testng.TestNG.generateReports(TestNG.java:1115)\r\n        at org.testng.TestNG.run(TestNG.java:1074)\r\n        at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.ja\r\nva:91)\r\n        at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMult\r\ni(TestNGDirectoryTestSuite.java:204)\r\n        at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(Tes\r\ntNGDirectoryTestSuite.java:107)\r\n        at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider\r\n.java:113)\r\n        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameCla\r\nssLoader(ForkedBooter.java:200)\r\n        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork\r\nedBooter.java:153)\r\n        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:\r\n103)\r\n\r\nI have run this without my listener as well so I know that's not this issue, am I missing a dependency that the XMLReporter needs or is there something else going on here?"}}