Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Process finished with exit code 1 Spring Boot Intellij

I've received the message "Process finished with exit code 1" when I run my project. I have tried several solutions but no topic is the same error as mine. My project doesn't execute any line of code, just abort the process.enter image description here

like image 276
Roberto Avatar asked Sep 26 '17 14:09

Roberto


People also ask

What is Process exit code 1?

Exit Code 1 means that a container terminated, typically due to an application error or an invalid reference. An application error is a programming error in any code running within the container.

How do I run first Spring Boot program in IntelliJ?

From the main menu, select File | New | Project. In the left pane of the New Project wizard, select Spring Initializr. Go through the steps of the Spring Initializr project wizard.

What is exit code 0 IntelliJ?

Exit code 0 means, the application was ended without errors.


2 Answers

Try to get stack trace by putting "try-catch" block, arround "run" method calling, in your main method, and print stack trace within "catch" as follows.

   public static void main(String[] args) {     try {         SpringApplication.run(MyApplication.class, args);     } catch (Exception e) {         e.printStackTrace();      } } 
like image 115
Yasitha Bandara Avatar answered Sep 22 '22 15:09

Yasitha Bandara


  1. Delete folder .idea from project folder.
  2. Delete all .iml from project folder.
like image 33
Roberto Avatar answered Sep 19 '22 15:09

Roberto