As of today we suddenly got the following error: Illegal char <*> at index 0: **/generated

We are using Sonarcloud (or SonarQube Cloud). As of today we suddenly are getting the following error with all of our PR. Even with PR that work fine this morning.

10:33:03.759 DEBUG Cleanup org.eclipse.jgit.util.FS$FileStoreAttributes$$Lambda/0x0000027f103a3b28@49e4c2d5 during JVM shutdown

##\[error\]10:33:03.763 ERROR Error during SonarScanner Engine execution

java.nio.file.InvalidPathException: Illegal char <\*> at index 0: \*\*/generated
    at java.base/sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
    at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source)
    at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source)

For your information, we are using the following exclusions, but this maps are unchanged since sep 2025.

SonarCloudExclusionsFrontend: ‘**/generated/**,**/lib/**,**/build/**,**/target/**,Docker/**,Tests/**,Pipelines/**,**/Frontend/tests/**,**/Frontend/public/cesium/**,**/*bundle*.js,**/*.xml,**/jquery.datetimepicker.full.min.js,**/app.js,**/model.themelayer.js,**/route.js,**/router.js,**/model.*.js,**/Factories/*,**/Directives/*,**/*.html,**/*.css,**/*.scss,**/config.js,**/store.js,**/store-storage.js,**/FeedbackDetail.vue,**/dist/**/*,**/node_modules/**/*,*.spec.*,**/NpsLv01/**/*,**/*.xsl,**/*.xsd,**/*.svg,**/constants/*.js,**/locales/*.json’

SonarCloudExclusionsBackend: ‘**/generated/**,**/lib/**,**/build/**,**/target/**,Docker/**,Tests/**,Pipelines/**,**/Migrations/*,**/obj/debug/*’

Does anyone know whats the problem?

We are having the same problem since today, with the exact same error

It seems to be a problem with the **/folder/** pattern. I was able to run the analysis by changing the pattern to **/folder/**/*.ts

Thanks for your information! Unfortunately your work-around will not be easy for use. Hopefully this will be fixed asap by the SonarQube team.

Hi,

Could we have the full log, starting from the analysis command?

ETA: Also, I guess neither of you changed any configuration recently?

 
Thx,
Ann

You are right I/we did not make any changes to our configuration.

Is this the information you are looking for? See attachtment.

Sonarcloud-log.zip (25.6 KB)

Hi,

Thanks for the log!

We’ve declared an incident for this and are investigating.

 
Ann

Template for a good new topic, formatted with Markdown:

  • ALM used : Bitbucket Cloud

  • CI system used : Azure DevOps

  • Scanner command used when applicable (private details masked)
    C:\WINDOWS\system32\cmd.exe /D /S /C "D:\Tools\apache-maven-3.8.4\bin\mvn.cmd -f D:\Tools\devopsagent\_work\63\s\pom.xml -s D:\Tools\devopsagent\_work\_temp\settings.xml -U "- clean package org.sonarsource.scanner.maven:sonar-maven-plugin:RELEASE:sonar"

  • Languages of the repository: Java

  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)

    [ERROR] Error during SonarScanner Engine execution
    
    java.nio.file.InvalidPathException: Illegal char <*> at index 0: **/com/company/lm/common
    
     at java.base/sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
    
     at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source)
    
     at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
    
     at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
    
     at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
    
     at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Unknown Source)
    
     at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
    
     at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
    
     at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
    
     at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
    
     at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)
    
     at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)
    
     at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
    
     at java.base/java.util.stream.ReferencePipeline.anyMatch(Unknown Source)
    
     at org.sonar.scanner.scan.filesystem.AbstractExclusionFilters.matchPathPattern(AbstractExclusionFilters.java:278)
    
     at org.sonar.scanner.scan.filesystem.AbstractExclusionFilters.isExcludedFromExclusionProperty(AbstractExclusionFilters.java:267)
    
     at org.sonar.scanner.scan.filesystem.AbstractExclusionFilters.isExcludedByExclusionPatternAsParentDirectory(AbstractExclusionFilters.java:220)
    
     at org.sonar.scanner.scan.filesystem.DirectoryFileVisitor.isExcluded(DirectoryFileVisitor.java:101)
    
     at org.sonar.scanner.scan.filesystem.DirectoryFileVisitor.preVisitDirectory(DirectoryFileVisitor.java:54)
    
     at org.sonar.scanner.scan.filesystem.DirectoryFileVisitor.preVisitDirectory(DirectoryFileVisitor.java:24)
    
     at java.base/java.nio.file.Files.walkFileTree(Unknown Source)
    
     at org.sonar.scanner.scan.filesystem.ProjectFilePreprocessor.processDirectory(ProjectFilePreprocessor.java:190)
    
     at org.sonar.scanner.scan.filesystem.ProjectFilePreprocessor.processModuleSources(ProjectFilePreprocessor.java:172)
    
     at org.sonar.scanner.scan.filesystem.ProjectFilePreprocessor.processModule(ProjectFilePreprocessor.java:155)
    
     at org.sonar.scanner.scan.filesystem.ProjectFilePreprocessor.processModulesRecursively(ProjectFilePreprocessor.java:142)
    
     at org.sonar.scanner.scan.filesystem.ProjectFilePreprocessor.execute(ProjectFilePreprocessor.java:101)
    
     at org.sonar.scanner.bootstrap.SpringScannerContainer.doAfterStart(SpringScannerContainer.java:508)
    
     at org.sonar.scanner.bootstrap.SpringScannerContainer.startComponents(SpringScannerContainer.java:444)
    
     at org.sonar.scanner.spring.SpringComponentContainer.execute(SpringComponentContainer.java:185)
    
     at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:150)
    
     at org.sonar.scanner.spring.SpringComponentContainer.startComponents(SpringComponentContainer.java:206)
    
     at org.sonar.scanner.spring.SpringComponentContainer.execute(SpringComponentContainer.java:185)
    
     at org.sonar.scanner.bootstrap.ScannerMain.runScannerEngine(ScannerMain.java:143)
    
     at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:58)
    
     at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:42)
    
  • Steps to reproduce
    Run maven command that has sonar setting in pom.xml as below

    <properties>
    
            <sonar.organization>comanyCode</sonar.organization>
    
            <sonar.host.url>https://sonarcloud.io</sonar.host.url>
    
            <sonar.coverage.jacoco.xmlReportPaths>target/jacoco-report/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
    
            <sonar.exclusions>**/com/company/lm/common/**,**/com/company/lm/configuration/**</sonar.exclusions>
    
        </properties>
    
  • Potential workaround
    update exclusion property as we noticed ant pattern is not working when it starts with ** . In another word - global pattern

    <sonar.exclusions>com/company/lm/common/**,com/company/lm/configuration/**</sonar.exclusions>

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi all,

We’ve rolled back the change that caused this. It should be fixed for you.

 
Ann

Thank you it did worked for us

Hi Ann,

Also our pipelines all working as usual! Builds and PRs can now be completed again!

Thanks for you quick response and action taken!

Have a great weekend!

Adrie