Detailed CICD (16) - Sonar reported an error: java.lang.IllegalStateException: Webapp did not start solution

Today, I will continue to introduce the relevant knowledge of Linux operation and maintenance. The main content of this article is the solution of a Sonar error.

1. Error reporting

Today, when I was configuring Sonar, I found a very strange phenomenon, Sonar could not be started, and Sonar reported the following error message:

java.lang.IllegalStateException: Webapp did not start

insert image description here

Second, the reason for the error

Generally speaking, this error occurs because the Sonar version is too high and the MySQL version is too low. However, I knew this situation when I installed Sonar, so I specifically queried the correspondence between Sonar and MySQL versions, and my Sonar and MySQL did not have any matching problems.
I recalled the installation and startup process of Sonar, and suspected that the reason for the error was as follows:
Before this startup, I forgot to open the MySQL database. Later, after troubleshooting this error, I started Sonar again, probably because the MySQL database was not opened before. Open an issue with Sonar.

3. Error resolution

Restart the device, then open the MySQL database first, and then open Sonar, the problem is solved, Sonar opens without exception, as shown below:
insert image description here
I hope my solution to the problem can help students studying Sonar!
Originality is not easy, please indicate the source for reprinting: https://blog.csdn.net/weixin_40228200

Guess you like

Origin blog.csdn.net/weixin_40228200/article/details/123930398