skip to Main Content

When I start sonarqube 8.9 on CentOS 8 server. startup failing with java.lang.NoClassDefFoundError: PanwHooks Exception message.

tried different startup method getting the same exception. Any tips to fix this issue?

jvm 1    | WrapperListener.start runner thread started.
jvm 1    | WrapperSimpleApp: start(args) Will wait up to 2 seconds for the main method to complete.
jvm 1    | WrapperSimpleApp: invoking main method
jvm 1    | 2021.07.16 21:45:47 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/sonarqube-8.9.0.43852/temp
jvm 1    | 2021.07.16 21:45:47 DEBUG app[][o.s.a.NodeLifecycle] WrapperSimpleAppMain tryToMoveTo from INIT to STARTING => true
jvm 1    | 2021.07.16 21:45:47 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] WrapperSimpleAppMain tryToMoveTo es from INIT to STARTING => true
jvm 1    | 2021.07.16 21:45:47 INFO  app[][o.s.a.es.EsSettings] Elasticsearch cluster enabled. Connect to hosts [192.168.81.88,192.168.81.107,192.168.81.108]
jvm 1    | 2021.07.16 21:45:47 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 192.168.81.108:9001, TCP: 192.168.81.108:9002]
jvm 1    | 2021.07.16 21:45:47 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/sonarqube-8.9.0.43852/elasticsearch]:
/opt/sonarqube/sonarqube-8.9.0.43852/elasticsearch/bin/elasticsearch
jvm 1    |
jvm 1    | WrapperSimpleApp: Encountered an error running main: java.lang.NoClassDefFoundError: PanwHooks
jvm 1    | java.lang.NoClassDefFoundError: PanwHooks
jvm 1    |      at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java)
jvm 1    |      at org.sonar.application.ProcessLauncherImpl$JavaLangProcessBuilder.start(ProcessLauncherImpl.java:379)
jvm 1    |      at org.sonar.application.ProcessLauncherImpl.launchExternal(ProcessLauncherImpl.java:128)
jvm 1    |      at org.sonar.application.ProcessLauncherImpl.launch(ProcessLauncherImpl.java:97)
jvm 1    |      at org.sonar.application.SchedulerImpl.lambda$tryToStartProcess$2(SchedulerImpl.java:196)
jvm 1    |      at org.sonar.application.process.ManagedProcessHandler.start(ManagedProcessHandler.java:73)
jvm 1    |      at org.sonar.application.SchedulerImpl.tryToStartProcess(SchedulerImpl.java:194)
jvm 1    |      at org.sonar.application.SchedulerImpl.tryToStartEs(SchedulerImpl.java:146)
jvm 1    |      at org.sonar.application.SchedulerImpl.tryToStartAll(SchedulerImpl.java:138)
jvm 1    |      at org.sonar.application.SchedulerImpl.schedule(SchedulerImpl.java:112)
jvm 1    |      at org.sonar.application.App.start(App.java:68)
jvm 1    |      at org.sonar.application.App.main(App.java:97)
jvm 1    |      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    |      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jvm 1    |      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.base/java.lang.Thread.run(Thread.java:829)
jvm 1    | WrapperSimpleApp: start(args) end.  Main Completed=true, exitCode=1
jvm 1    | WrapperListener.start runner thread stopped.
jvm 1    | returned from WrapperListener.start()
jvm 1    | WrapperListener.start() returned an exit code of 1.

Thanks

2

Answers


  1. Chosen as BEST ANSWER

    After upgrading openjdk to 11.0.12 SonarQube is starting.

    # java -version
    openjdk version "11.0.12" 2021-07-20 LTS
    OpenJDK Runtime Environment 18.9 (build 11.0.12+7-LTS)
    OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7-LTS, mixed mode, sharing)
    

  2. A search on the SonarQube community revealed this post. They seemed to indicate if you are running systemd, you do not need the wrapper and pointed people to the guide located here. They posted their resolved systemd configuration file, which you haven’t, so it may not be the same issue, but you are failing with the same ‘java.lang.NoClassDefFoundError: PanwHooks` issue, both of you were on platforms that use systemd, and their solution involved modifying the systemd configuration to remove the Listener.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search