安装 json 插件后 Sonarqube 不运行

问题描述 投票:0回答:0

我最近将 sonarqube 从 8.8 版本升级到 9.9 社区版。

我已经安装了 Sonarqube Community edition 版本 9.9,它在我的 Windows 系统上运行得非常好。

我有一些 json 代码,我想用 sonarqube 扫描它们,所以我找到了 json-plugin 也可以扫描 json 文件。 我下载了 jar 并将下载的 jar 放在

<SONARQUBE_HOME>/extensions/plugins
中,如 sonarqube documentation

中所述

一旦我重新启动服务器,sonarqube 不会通过给出以下错误来启动:

D:\sonarqube-9.9.0.65466\bin\windows-x86-64>StartSonar.bat
Starting SonarQube...
2023.04.12 18:38:14 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory D:\sonarqube-9.9.0.65466\temp
2023.04.12 18:38:14 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:51323]
2023.04.12 18:38:14 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [D:\sonarqube-9.9.0.65466\elasticsearch]: C:\Program Files\Java\jdk-17\bin\java -XX:+UseG1GC -Djava.io.tmpdir=D:\sonarqube-9.9.0.65466\temp -XX:ErrorFile=D:\sonarqube-9.9.0.65466\logs\es_hs_err_pid%p.log -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djna.tmpdir=D:\sonarqube-9.9.0.65466\temp -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j2.formatMsgNoLookups=true -Djava.locale.providers=COMPAT -Dcom.redhat.fips=false -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=D:\sonarqube-9.9.0.65466\elasticsearch -Des.path.conf=D:\sonarqube-9.9.0.65466\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2023.04.12 18:38:14 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.04.12 18:38:34 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2023.04.12 18:38:34 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[WEB_SERVER] from [D:\sonarqube-9.9.0.65466]: C:\Program Files\Java\jdk-17\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=D:\sonarqube-9.9.0.65466\temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.9.0.65466.jar;D:\sonarqube-9.9.0.65466\lib\jdbc\h2\h2-2.1.214.jar org.sonar.server.app.WebServer D:\sonarqube-9.9.0.65466\temp\sq-process3341444263512329691properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/D:/sonarqube-9.9.0.65466/lib/sonar-application-9.9.0.65466.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2023.04.12 18:38:44 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.04.12 18:38:44 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.04.12 18:38:44 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

PS:同样的方法适用于sonarqube 8.8版本

sonarqube sonarqube-scan
© www.soinside.com 2019 - 2024. All rights reserved.