SonarQube 8.1 didn't startup due to NullPointException: Rule id must be set

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Hi

I just started to install Sonarqube 8.1 on Oracle 11. When I started Sonarqube, it failed. The web.log reported error:
java.lang.NullPointerException: Rule id must be set.
at org.sonar.db.rule.RuleDao.insertruleParam(RuleDao.java:236)

I checked the database, there were 425 rules in rules table, and 0 record in rule_parameters table.

Any idea on it? How to fix it and make sonarqube work.

Thanks
Scott

Scott,

What plugins are in your $SONARQUBE_HOME/extensions/plugins folder? Anything that doesn’t come by default?

Colin

I only copied oracle 12 jdbc.jar file into jdbc-driver\oracle folder, besides this, all files are all default files inside the downloaded file sonarqube-8.1.031237.zip.

I only copied oracle 12 jdbc.jar file into jdbc-driver\driver folder, besides this, all files are default files in sonarqube-8.1.0.31237.zip.