Colin
(Colin)
May 23, 2022, 8:47am
3
Hey there.
We’ve seen some similar problem reports:
I’m trying to test scanning a new repo and getting a “Visit of Component failed” error in the background tasks, with what looks like a value too long for column BINARY VARYING error as the root cause:
### Error updating database. Cause: org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='dto.data', mode=IN, javaType=class java.lang.Object, jdbcType=BINARY, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: o…
Helo,
I’m running the following commands
* dotnet test Tests/MyProject.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
* dotnet sonarscanner begin /k:"my-project" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="token" /d:sonar.scm.disabled=true /d:sonar.cs.opencover.reportsPaths="C:\MyProject\coverage.opencover.xml" /d:sonar.coverage.exclusions="**Tests*.cs"
* dotnet build
* dotnet sonarscanner end /d:sonar.login="token"
for the first time the sonar background task…
It typically boils down to:
The embedded H2 database being used (which is not meant for production use)
A very large file being indexed
How large is the file (either by file size for Lines of Code) that is mentioned in the error?
In any case since this in an XML coverage report (I’m not sure why it is being indexed in the first place), you could probably add an exclusion and be on your way.
/d:sonar.exclusions=**/coverage.opencover.xml
The Scanner for .NET relies on the .csproj
files in a project to direct it to which files it should analyze. Perhaps you have a very wide inclusion for XML files? See the documentation on Advanced Topics > Analyzing languages other than C# and VB