SonarQube在Windows 10上无法启动。

huangapple go评论79阅读模式
英文:

SonarQube does not start windows 10

问题

以下是翻译好的部分:

我在Windows 10上使用JAVA JDK-15启动sonarqube-8.4.2.36762时遇到问题。
在Wrapper.conf中,我已经设置了正确的JDK路径。

以下是日志内容:

--> 包装器已启动为控制台
正在启动JVM...
包装器(版本3.2.3)http://wrapper.tanukisoftware.org
版权所有1999-2006年谭凯软件公司保留所有权利。

2020.10.02 15:53:29 信息  app[][o.s.a.AppFileSystem] 清理或创建临时目录C:\sonarqube-8.4.2.36762\temp
2020.10.02 15:53:29 信息  app[][o.s.a.es.EsSettings] Elasticsearch在/127.0.0.1:9001上监听
2020.10.02 15:53:29 信息  app[][o.s.a.ProcessLauncherImpl] 从[C:\sonarqube-8.4.2.36762\elasticsearch]启动进程[[key='es', ipcIndex=1, logFilenamePrefix=es]]: C:\Program Files\Java\jdk-15\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=C:\sonarqube-8.4.2.36762\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube-8.4.2.36762\elasticsearch -Des.path.conf=C:\sonarqube-8.4.2.36762\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2020.10.02 15:53:29 信息  app[][o.s.a.SchedulerImpl] 等待Elasticsearch启动和运行
无法识别的VM选项'UseConcMarkSweepGC'
错误:无法创建Java虚拟机。
错误:发生了致命异常。程序将退出。
2020.10.02 15:53:30 警告  app[][o.s.a.p.AbstractManagedProcess] 进程退出,退出值[es]:1
2020.10.02 15:53:30 信息  app[][o.s.a.SchedulerImpl] 进程[es]已停止
2020.10.02 15:53:30 信息  app[][o.s.a.SchedulerImpl] SonarQube已停止
严重的StatusLogger在加载Log4j提供程序之前被中断。
java.lang.InterruptedException
	at java.base/java.util.concurrent.locks.ReentrantLock$Sync.lockInterruptibly(ReentrantLock.java:159)
	at java.base/java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:372)
	at org.apache.logging.log4j.util.ProviderUtil.lazyInit(ProviderUtil.java:121)
	...
	...

JDK-15是否存在任何问题?

英文:

I have a problem with start sonarqube-8.4.2.36762 on windows 10 with JAVA JDK-15.
In Wrapper.conf I've set the right path to JDK.

This is the log:

--> Wrapper Started as Console
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

2020.10.02 15:53:29 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-8.4.2.36762\temp
2020.10.02 15:53:29 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.10.02 15:53:29 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube-8.4.2.36762\elasticsearch]: C:\Program Files\Java\jdk-15\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=C:\sonarqube-8.4.2.36762\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube-8.4.2.36762\elasticsearch -Des.path.conf=C:\sonarqube-8.4.2.36762\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2020.10.02 15:53:29 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
2020.10.02 15:53:30 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2020.10.02 15:53:30 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.10.02 15:53:30 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
FATAL StatusLogger Interrupted before Log4j Providers could be loaded.
 java.lang.InterruptedException
	at java.base/java.util.concurrent.locks.ReentrantLock$Sync.lockInterruptibly(ReentrantLock.java:159)
	at java.base/java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:372)
	at org.apache.logging.log4j.util.ProviderUtil.lazyInit(ProviderUtil.java:121)
	at org.apache.logging.log4j.util.ProviderUtil.hasProviders(ProviderUtil.java:108)
	at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:89)
	at org.elasticsearch.common.unit.ByteSizeValue.<clinit>(ByteSizeValue.java:39)
	at org.elasticsearch.common.network.NetworkService.<clinit>(NetworkService.java:57)
	at org.elasticsearch.transport.TransportSettings.<clinit>(TransportSettings.java:74)
	at org.elasticsearch.client.transport.TransportClient.newPluginService(TransportClient.java:105)
	at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:135)
	at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:277)
	at org.sonar.application.es.EsConnectorImpl$MinimalTransportClient.<init>(EsConnectorImpl.java:103)
	at org.sonar.application.es.EsConnectorImpl.buildTransportClient(EsConnectorImpl.java:89)
	at org.sonar.application.es.EsConnectorImpl.getTransportClient(EsConnectorImpl.java:74)
	at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:61)
	at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:88)
	at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:73)
	at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:58)
	at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:220)
	at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:285)
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
<-- Wrapper Stopped

Is there any problem with JDK-15?

答案1

得分: 2

这是与Java 15有关的问题。您需要安装Java 11来执行该程序:

SonarQube需要Java 11来运行。

例如,您可以从这个网站下载它。

英文:

It is a problem with Java 15. You need to install Java 11 to execute the program:

> SonarQube requires Java 11 to run

For example you can download it from this website.

答案2

得分: 0

它在我安装了JDK 11版本并移除了我之前安装的更新的JDK 16版本后也对我起作用(必须卸载,否则我仍然会得到相同的错误)。我从Oracle网站获取了JDK 11。

英文:

It also worked for me when I install JDK 11 version and remove newer JDK 16 version I installed previously(it is a must to uninstall otherwise I was still getting same error). I got the JDK 11 from Oracle website

huangapple
  • 本文由 发表于 2020年10月2日 22:06:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/64172955.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定