Discussion:
[testng-users] Getting an NPE - There was an error in the forked process
Nagesh
2015-11-07 03:53:24 UTC
Permalink
I see the following exception at the end of my WebDriver run. Using TestNG
v6.9.9 and FailSafe plugin 2.19. Any ideas what could be the issue here?

Here's a stack trace from the run -

build 06-Nov-2015 19:10:36 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test (webdrivertest) on project turbo-webdriver: Execution webdrivertest of goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test failed: There was an error in the forked process
build 06-Nov-2015 19:10:36 [ERROR] java.lang.NullPointerException
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileOutputStream.<init>(FileOutputStream.java:203)
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileWriter.<init>(FileWriter.java:107)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.flushToFile(FileStringBuffer.java:122)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:51)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:28)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLUtils.appendAttributes(XMLUtils.java:99)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLStringBuffer.addEmptyElement(XMLStringBuffer.java:279)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElement(JUnitXMLReporter.java:224)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElementFromTestResults(JUnitXMLReporter.java:187)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:178)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.onFinish(JUnitXMLReporter.java:118)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.fireEvent(TestRunner.java:1250)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.afterRun(TestRunner.java:1041)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.run(TestRunner.java:628)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.run(SuiteRunner.java:261)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.run(TestNG.java:1048)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:282)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:83)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:114)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
build 06-Nov-2015 19:10:36 [ERROR] -> [Help 1]
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build 06-Nov-2015 19:10:36 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] For more information about the errors and possible solutions, please read the following articles:
build 06-Nov-2015 19:10:36 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException


-Nagesh
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Nat
2015-11-07 05:58:52 UTC
Permalink
Disk full or permission problem perhaps.
Post by Nagesh
I see the following exception at the end of my WebDriver run. Using TestNG
v6.9.9 and FailSafe plugin 2.19. Any ideas what could be the issue here?
Here's a stack trace from the run -
build 06-Nov-2015 19:10:36 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test (webdrivertest) on project turbo-webdriver: Execution webdrivertest of goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test failed: There was an error in the forked process
build 06-Nov-2015 19:10:36 [ERROR] java.lang.NullPointerException
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileOutputStream.<init>(FileOutputStream.java:203)
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileWriter.<init>(FileWriter.java:107)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.flushToFile(FileStringBuffer.java:122)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:51)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:28)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLUtils.appendAttributes(XMLUtils.java:99)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLStringBuffer.addEmptyElement(XMLStringBuffer.java:279)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElement(JUnitXMLReporter.java:224)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElementFromTestResults(JUnitXMLReporter.java:187)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:178)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.onFinish(JUnitXMLReporter.java:118)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.fireEvent(TestRunner.java:1250)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.afterRun(TestRunner.java:1041)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.run(TestRunner.java:628)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.run(SuiteRunner.java:261)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.run(TestNG.java:1048)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:282)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:83)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:114)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
build 06-Nov-2015 19:10:36 [ERROR] -> [Help 1]
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build 06-Nov-2015 19:10:36 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
-Nagesh
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Nagesh
2015-11-10 01:11:06 UTC
Permalink
Thanks Nat. How did you come to the conclusion that it's probably a disk
full/permission issue? The stack trace doesn't seem to indicate that.
Post by Nat
Disk full or permission problem perhaps.
Post by Nagesh
I see the following exception at the end of my WebDriver run. Using
TestNG v6.9.9 and FailSafe plugin 2.19. Any ideas what could be the issue
here?
Here's a stack trace from the run -
build 06-Nov-2015 19:10:36 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test (webdrivertest) on project turbo-webdriver: Execution webdrivertest of goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test failed: There was an error in the forked process
build 06-Nov-2015 19:10:36 [ERROR] java.lang.NullPointerException
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileOutputStream.<init>(FileOutputStream.java:203)
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileWriter.<init>(FileWriter.java:107)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.flushToFile(FileStringBuffer.java:122)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:51)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:28)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLUtils.appendAttributes(XMLUtils.java:99)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLStringBuffer.addEmptyElement(XMLStringBuffer.java:279)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElement(JUnitXMLReporter.java:224)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElementFromTestResults(JUnitXMLReporter.java:187)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:178)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.onFinish(JUnitXMLReporter.java:118)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.fireEvent(TestRunner.java:1250)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.afterRun(TestRunner.java:1041)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.run(TestRunner.java:628)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.run(SuiteRunner.java:261)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.run(TestNG.java:1048)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:282)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:83)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:114)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
build 06-Nov-2015 19:10:36 [ERROR] -> [Help 1]
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build 06-Nov-2015 19:10:36 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
-Nagesh
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Krishnan Mahadevan
2015-11-10 01:44:00 UTC
Permalink
The exception is stemming from FileWriter. And those can be some of the
root causes behind that exception.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening
or in love with someone else!"
Post by Nagesh
Thanks Nat. How did you come to the conclusion that it's probably a disk
full/permission issue? The stack trace doesn't seem to indicate that.
Post by Nat
Disk full or permission problem perhaps.
Post by Nagesh
I see the following exception at the end of my WebDriver run. Using
TestNG v6.9.9 and FailSafe plugin 2.19. Any ideas what could be the issue
here?
Here's a stack trace from the run -
build 06-Nov-2015 19:10:36 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test (webdrivertest) on project turbo-webdriver: Execution webdrivertest of goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test failed: There was an error in the forked process
build 06-Nov-2015 19:10:36 [ERROR] java.lang.NullPointerException
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileOutputStream.<init>(FileOutputStream.java:203)
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileWriter.<init>(FileWriter.java:107)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.flushToFile(FileStringBuffer.java:122)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:51)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:28)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLUtils.appendAttributes(XMLUtils.java:99)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLStringBuffer.addEmptyElement(XMLStringBuffer.java:279)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElement(JUnitXMLReporter.java:224)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElementFromTestResults(JUnitXMLReporter.java:187)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:178)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.onFinish(JUnitXMLReporter.java:118)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.fireEvent(TestRunner.java:1250)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.afterRun(TestRunner.java:1041)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.run(TestRunner.java:628)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.run(SuiteRunner.java:261)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.run(TestNG.java:1048)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:282)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:83)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:114)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
build 06-Nov-2015 19:10:36 [ERROR] -> [Help 1]
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build 06-Nov-2015 19:10:36 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
-Nagesh
--
You received this message because you are subscribed to the Google Groups
"testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Nagesh
2015-11-10 04:43:06 UTC
Permalink
Thanks for elaborating Krishnan. The exception appears intermittently on
our build machines. I'll take a look.
Post by Krishnan Mahadevan
The exception is stemming from FileWriter. And those can be some of the
root causes behind that exception.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening
or in love with someone else!"
Post by Nagesh
Thanks Nat. How did you come to the conclusion that it's probably a disk
full/permission issue? The stack trace doesn't seem to indicate that.
Post by Nat
Disk full or permission problem perhaps.
Post by Nagesh
I see the following exception at the end of my WebDriver run. Using
TestNG v6.9.9 and FailSafe plugin 2.19. Any ideas what could be the issue
here?
Here's a stack trace from the run -
build 06-Nov-2015 19:10:36 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test (webdrivertest) on project turbo-webdriver: Execution webdrivertest of goal org.apache.maven.plugins:maven-failsafe-plugin:2.19:integration-test failed: There was an error in the forked process
build 06-Nov-2015 19:10:36 [ERROR] java.lang.NullPointerException
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileOutputStream.<init>(FileOutputStream.java:203)
build 06-Nov-2015 19:10:36 [ERROR] at java.io.FileWriter.<init>(FileWriter.java:107)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.flushToFile(FileStringBuffer.java:122)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:51)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:28)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLUtils.appendAttributes(XMLUtils.java:99)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.XMLStringBuffer.addEmptyElement(XMLStringBuffer.java:279)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElement(JUnitXMLReporter.java:224)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.createElementFromTestResults(JUnitXMLReporter.java:187)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:178)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.reporters.JUnitXMLReporter.onFinish(JUnitXMLReporter.java:118)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.fireEvent(TestRunner.java:1250)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.afterRun(TestRunner.java:1041)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestRunner.run(TestRunner.java:628)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunner.run(SuiteRunner.java:261)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
build 06-Nov-2015 19:10:36 [ERROR] at org.testng.TestNG.run(TestNG.java:1048)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:282)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:83)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:114)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
build 06-Nov-2015 19:10:36 [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
build 06-Nov-2015 19:10:36 [ERROR] -> [Help 1]
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build 06-Nov-2015 19:10:36 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
build 06-Nov-2015 19:10:36 [ERROR]
build 06-Nov-2015 19:10:36 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
-Nagesh
--
You received this message because you are subscribed to the Google Groups
"testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Loading...