ERROR: Maven JVM terminated unexpectedly with exit code 0 | Selenium Forum
M
Posted on 12/10/2015
Hi Ashish,

I keep getting this error and build fails in jenkins even thou the tests are run successfully and the reports are generated.
This has been bugging me for weeks.Any help in this is much appreciated.

ERROR: Maven JVM terminated unexpectedly with exit code 0

Thanks
Ajay

M
Replied on 13/10/2015

upload a screen shot of the error.


M
Replied on 13/10/2015

what environment are you using?


M
Replied on 13/10/2015

[attachment=0:1w2j6plh]screenshot.png[/attachment:1w2j6plh]Hi Ashish,

Please find the screenshot attached below.

Iam using cucumber with java.
Maven 3.3.3
cucumber-1.2.4
selenium 2.48.1

Thanks
ajay

Responsive image

M
Replied on 13/10/2015

P.S

JDK 1.8.0.51


Thanks
Ajay


M
Replied on 13/10/2015

everything in your environment seems to fine but the reason why the error is coming is not clear.

what is the command are you giving to execute the project?


M
Replied on 15/10/2015

MVN integration-test

To Debug

-X integration-test

Thanks
Ajay


M
Replied on 16/10/2015

hi,
can you dump all the debug info here which you got from [color=#FF0000:v05x2g8r]-X integration-test[/color:v05x2g8r].

I'll check your error out.

I can see some of it in screen shot but full stack trace will be better.


M
Replied on 17/10/2015

HI Ashish ,

Iam attaching the debug log below.

Thanks
Ajay

[attachment=0:dgyvv9g8]jenkisDebug.txt[/attachment:dgyvv9g8]


M
Replied on 19/10/2015

HI Ashish

I figured out the problem.It is because of cucumber main class we are using in POM.xml

Main class has system.exit which would cause jenkins to throw that error as cucumber jvm exits .

http://stackoverflow.com/questions/18467115/cucumber-jvm-seems-to-use-system-exit

Thanks
Ajay


M
Replied on 19/10/2015

glad to know.