java/lang/NoClassDefFoundError: java/lang/Object

Team,
I’m facing the following issue for a few projects (the rest of the projects running fine). Kindly help in fixing.
2022/02/04 13:01:00 Running Sonar
[Pipeline] withSonarQubeEnv
Injecting SonarQube environment variables using the configuration: sonar
[Pipeline] {
[Pipeline] isUnix
[Pipeline] sh

  • set +x
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    [Pipeline] }
    WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succeed?
    [Pipeline] // withSonarQubeEnv
    [Pipeline] }
    [Pipeline] // gitlabCommitStatus
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] logstash
    [Pipeline] {
    [Pipeline] echo
    [logstash-plugin]: Unable to instantiate LogstashIndexerDao with current configuration.
    STAGE_ERROR: sonar
    [Pipeline] }
  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Ans. SONAR 8.9.6 LTS (Communitry version)
  • what are you trying to achieve
    Ans. Sonary analysis.
  • what have you tried so far to achieve this
    Ans : Tried Sonar to point to JDK 11.0.13

Please help in fixing. Thank you.

Hi,

I guess you’re trying collect analysis logs? But this failed LogStash process is external to analysis. We’re probably not going to be able to help you here.

 
Ann

Hi Campbell, logstash is by default it displays on all builds as a failure because it’s not configured.

But actual failure is sonar. Kidly help. We are getting above error for a few projects not all.

Hi,

Would you like to provide the failing SonarQube analysis log? So far there’s no much to go on.

 
Ann

Soon the SONAR scan starts getting this error…there is no much output log.

image

image

Hi,

That error look like a problem with your java installation. I would try searching for that error string & see if any of the advice resonates.

 
Ann

Sure , have already on same page. But I keep looking into it.