Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven JVM terminated unexpectedly with exit code 0 on weblogic deploy

I have written pom.xml for auto deployment process between hudson and deployment servers.

The script which i return its working perfectly i can see the application in web logic server. The application has been deployed in the web logic server. No issues that.

All the remaining task is also very well working in the servers but the build is failing as failed by saying the below error in hudson

[ServerConnectionImpl.close():332] : Closing DM connection   
[ServerConnectionImpl.close():352] : Unregistered all listeners  
[ServerConnectionImpl.closeJMX():372] : Closed JMX connection  
[ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection  
[ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection  
**ERROR: Maven JVM terminated unexpectedly with exit code 0**  
Sending e-mails to: [email protected]  
Finished: FAILURE

I don't know why this is happening in maven.

Here is my maven opts set in Hudson server.

Maven_OPTS : -Xms256m -Xmx1024m -XX:MaxPermSize=512m
like image 687
Rocky Avatar asked Jul 26 '11 12:07

Rocky


1 Answers

This is a very old question yet I just ran into this weird issue and this costed me 3 hours in debugging the Jenkins Job configurations and Jenkins plugins. This answer is to help others if they encounter the same.

Root cause: I got to know that one of a developer in my team has used system.exit(0); in his java code so actual problem was in code not with jenkins job.

Solution: Remove

system.exit(0); 
like image 171
amitdeol Avatar answered Nov 11 '22 20:11

amitdeol