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

567 views
Skip to first unread message

Nagesh

unread,
Nov 6, 2015, 10:53:24 PM11/6/15
to testng-users
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

Nat

unread,
Nov 7, 2015, 12:58:52 AM11/7/15
to testng-users
Disk full or permission problem perhaps.

Nagesh

unread,
Nov 9, 2015, 8:11:06 PM11/9/15
to testng-users
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.

Krishnan Mahadevan

unread,
Nov 9, 2015, 8:44:12 PM11/9/15
to testng...@googlegroups.com
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/

--
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

unread,
Nov 9, 2015, 11:43:07 PM11/9/15
to testng-users
Thanks for elaborating Krishnan. The exception appears intermittently on our build machines. I'll take a look.
Reply all
Reply to author
Forward
0 new messages