Getting an NPE - There was an error in the forked process

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting an NPE - There was an error in the forked process

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] 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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Nat
Reply | Threaded
Open this post in threaded view
|

Re: Getting an NPE - There was an error in the forked process

Nat
Disk full or permission problem perhaps.

On Friday, November 6, 2015 at 7:53:24 PM UTC-8, Nagesh wrote:
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] <a href="http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FPluginExecutionException\46sa\75D\46sntz\0751\46usg\75AFQjCNGMdo0FgJibmNU8Z0IANDLAA0B6Bg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FPluginExecutionException\46sa\75D\46sntz\0751\46usg\75AFQjCNGMdo0FgJibmNU8Z0IANDLAA0B6Bg&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Getting an NPE - There was an error in the forked process

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.

On Friday, November 6, 2015 at 9:58:52 PM UTC-8, Nat wrote:
Disk full or permission problem perhaps.

On Friday, November 6, 2015 at 7:53:24 PM UTC-8, Nagesh wrote:
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] <a href="http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FPluginExecutionException\46sa\75D\46sntz\0751\46usg\75AFQjCNGMdo0FgJibmNU8Z0IANDLAA0B6Bg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FPluginExecutionException\46sa\75D\46sntz\0751\46usg\75AFQjCNGMdo0FgJibmNU8Z0IANDLAA0B6Bg&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Getting an NPE - There was an error in the forked process

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!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Tue, Nov 10, 2015 at 6:41 AM, Nagesh <[hidden email]> wrote:
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.

On Friday, November 6, 2015 at 9:58:52 PM UTC-8, Nat wrote:
Disk full or permission problem perhaps.

On Friday, November 6, 2015 at 7:53:24 PM UTC-8, Nagesh wrote:
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 [hidden email].
To post to this group, send email to [hidden email].
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Getting an NPE - There was an error in the forked process

Nagesh
Thanks for elaborating Krishnan. The exception appears intermittently on our build machines. I'll take a look.

On Monday, November 9, 2015 at 5:44:12 PM UTC-8, Krishnan wrote:
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!"
My Scribblings @ <a href="http://wakened-cognition.blogspot.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fwakened-cognition.blogspot.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHzOdYJCASIDF_28vQtkp9gnKAYSQ&#39;;return true;">http://wakened-cognition.blogspot.com/
My Technical Scribbings @ <a href="http://rationaleemotions.wordpress.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Frationaleemotions.wordpress.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Frationaleemotions.wordpress.com%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEcBOKyRn0lpL8LDbBuyAlKdwgXwQ&#39;;return true;">http://rationaleemotions.wordpress.com/

On Tue, Nov 10, 2015 at 6:41 AM, Nagesh <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="oG_0nXS_EAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">nagesh....@...> wrote:
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.

On Friday, November 6, 2015 at 9:58:52 PM UTC-8, Nat wrote:
Disk full or permission problem perhaps.

On Friday, November 6, 2015 at 7:53:24 PM UTC-8, Nagesh wrote:
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] <a href="http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FPluginExecutionException\46sa\75D\46sntz\0751\46usg\75AFQjCNGMdo0FgJibmNU8Z0IANDLAA0B6Bg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FMAVEN%2FPluginExecutionException\46sa\75D\46sntz\0751\46usg\75AFQjCNGMdo0FgJibmNU8Z0IANDLAA0B6Bg&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="oG_0nXS_EAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng-users...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="oG_0nXS_EAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">testng...@....
Visit this group at <a href="http://groups.google.com/group/testng-users" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://groups.google.com/group/testng-users&#39;;return true;" onclick="this.href=&#39;http://groups.google.com/group/testng-users&#39;;return true;">http://groups.google.com/group/testng-users.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.