Java.lang.InterruptedException: null

→ Wrapper Started as Console
Launching a JVM…
WrapperManager class initialized by thread: main Using classloader: jdk.internal.loader.ClassLoaders$AppClassLoader@73d16e93
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

Wrapper Manager: JVM #1
Running a 64-bit JVM.
Wrapper Manager: Registering shutdown hook
Wrapper Manager: Using wrapper
Load native library. One or more attempts may fail if platform specific libraries do not exist.
Loading native library failed: wrapper-windows-x86-64.dll Cause: java.lang.UnsatisfiedLinkError: no wrapper-windows-x86-64 in java.library.path: ./lib
Loaded native library: wrapper.dll
Calling native initialization method.
Initializing WrapperManager native library.
Java Executable: D:\Program Files\Java\jdk-16.0.2\bin\java.exe
Windows version: 10.0.19042
Java Version : 16.0.2+7-67 Java HotSpot™ 64-Bit Server VM
Java VM Vendor : Oracle Corporation

Control event monitor thread started.
Startup runner thread started.
WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@5c29bfd, args) called by thread: main
Communications runner thread started.
Open socket to wrapper…Wrapper-Connection
Opened Socket from 31000 to 32000
Send a packet KEY : jMOvqX2L7b1EX08P
handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000])
Received a packet LOW_LOG_LEVEL : 1
Wrapper Manager: LowLogLevel from Wrapper is 1
Received a packet PING_TIMEOUT : 0
PingTimeout from Wrapper is 0
Received a packet PROPERTIES : (Property Values)
Received a packet START : start
calling WrapperListener.start()
Waiting for WrapperListener.start runner thread to complete.
WrapperListener.start runner thread started.
WrapperSimpleApp: start(args) Will wait up to 2 seconds for the main method to complete.
WrapperSimpleApp: invoking main method
2021.09.07 19:36:49 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Users\Hassan Yaseen\Desktop\sonarqube-9.0.1.46107\sonarqube-9.0.1.46107\temp
2021.09.07 19:36:49 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:59538]
2021.09.07 19:36:49 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [C:\Users\Hassan Yaseen\Desktop\sonarqube-9.0.1.46107\sonarqube-9.0.1.46107\elasticsearch]: D:\Program Files\Java\jdk-16.0.2\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.io.tmpdir=C:\Users\Hassan Yaseen\Desktop\sonarqube-9.0.1.46107\sonarqube-9.0.1.46107\temp -XX:ErrorFile=…/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 -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 -Djava.locale.providers=COMPAT -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\Users\Hassan Yaseen\Desktop\sonarqube-9.0.1.46107\sonarqube-9.0.1.46107\elasticsearch -Des.path.conf=C:\Users\Hassan Yaseen\Desktop\sonarqube-9.0.1.46107\sonarqube-9.0.1.46107\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2021.09.07 19:36:49 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.
2021.09.07 19:36:49 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2021.09.07 19:36:49 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2021.09.07 19:36:49 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
Wrapper Manager: ShutdownHook started
WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook
Send a packet STOP : 0
Startup runner thread stopped.
2021.09.07 19:36:50 ERROR app[o.s.a.p.EsManagedProcess] Failed to check status
java.lang.RuntimeException: thread waiting for the response was interrupted
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:849)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:283)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1654)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1624)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1594)
at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:119)
at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:64)
at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:89)
at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:74)
at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:59)
at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:220)
at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:285)
Caused by: java.lang.InterruptedException: null
at java.base/java.lang.Object.wait(Native Method)
at java.base/java.lang.Object.wait(Object.java:320)
at org.apache.http.concurrent.BasicFuture.get(BasicFuture.java:82)
at org.apache.http.impl.nio.client.FutureWrapper.get(FutureWrapper.java:70)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:279)
… 11 common frames omitted
Send a packet START_PENDING : 5000

Hi @muzammil_shahid ,

Welcome to SonarSource Community! :sonarsource:

In your sonar.log snippet, I see this:

Please check your es.log file. What appears in there?

Please also check https://docs.sonarqube.org/latest/requirements/requirements/ and Hardware recommendations as well.

Lastly, please try an Elasticsearch reindex as described in https://docs.sonarqube.org/latest/faq/:

How do I trigger a full ElasticSearch reindex?

Currently, the only way to force a reindex is to:

  • Stop your server
  • Remove the contents of the $SQ_HOME/data/es7 directory
  • Start your server

Before doing this, you should be aware first that processes are in place on the SonarQube side that out-of-sync indices are detected and corrected, and second that a full re-index can be quite lengthy depending on the size of your instance.

Joe

I’m installing SonarQube 9.8 enterprise version in Windows Server 2012 R2. Also, we updated resources, and now we have 8 cores and 16GB RAM, but we have the same problem because when I execute StartSonar.bat, the server slowly, then we watched the error: java.lang.InterruptedException: null.

What can I do?

Hi @edgar2704 ,

Please create a new thread so we can help you with your specific issue. Please also add the following details:

  • What kind of deployment or environment is SonarQube running in? Azure app service, on-premise, AWS VM, localhost, etc.? Where are you deploying it?
  • Please zip and attach your $SQ_HOME/logs folder for us to review.

Already, I created a new topic with my problem.