Groovy plugin (1.8) issue with Sonarqube 9.4

  • I just installed Sonarqube 9.4 with the 1.8 groovy plugin
  • when scanning a project (with the latest “sonar-scanner”)
  • if there are some .groovy file, I get the following error
ERROR: Error during SonarScanner execution
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ', (comma)' with class 'java.lang.String' to class 'char'
	at org.codehaus.groovy.runtime.typehandling.ShortTypeHandling.castToChar(
	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.charUnbox(
	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToPrimitive(
	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(
	at groovy.lang.MetaClassImpl.setProperty(
	at groovy.lang.MetaClassImpl.setProperty(

any idea what could be wrong?

Maybe it is a plugin issue? (I created sonarqube 9.4 issue · Issue #151 · Inform-Software/sonar-groovy · GitHub)


It looks like you’ve already created an issue on the plugin repo. That’s really your best chance of getting help since that plugin isn’t supported by SonarSource.


@Nicolas_Zin Do you have any update on this?