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