SonarQube bitbucket pipeline returning error for

I’m trying to run my bitbucket pipeline but keep getting this error

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@60285225-org.sonar.scanner.scan.ProjectLock': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'DefaultInputProject' defined in org.sonar.scanner.scan.InputProjectProvider: Unsatisfied dependency expressed through method 'provide' parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProjectReactor' defined in org.sonar.scanner.scan.MutableProjectReactorProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.bootstrap.ProjectReactor]: Factory method 'provide' threw exception; nested exception is java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /opt/atlassian/pipelines/.../F?rs?kringskassan.pdf

Im using sonnar qube dev edition 10.7
in my pipeline I add this

  • export LANG=en_US.UTF-8
  • export LC_ALL=en_US.UTF-8

and
/d:“sonar.sourceEncoding=UTF-8”
/d:“sonar.exclusions=**/*.pdf”

and in my sonar.properties file I also add this sonar.exclusions, but nothing helped me.
name of the file is Försäkringskassan

Can someone help me?

Hi,

Welcome to the community and thanks for this report!

Which scanner - flavor and version - are you using?

 
Thx,
Ann

Hi Ann,

I was able to solve this problem by adding this line of code
export LC_ALL=C.UTF-8
within the Sonar Scanner.

Thx,
Nevena

1 Like