java.lang.IllegalArgumentException: Value is too long for issue author login: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

55 views
Skip to first unread message

Frederico Silva Guimarães

unread,
Jan 30, 2017, 3:54:48 PM1/30/17
to SonarQube
Hi

Yesterday we changed the rules of one of our projects, and since then the analysis is failing with the error below.

{noformat}
Stack:
java.lang.IllegalArgumentException: Value is too long for issue author login: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:148) ~[guava-17.0.jar:na]
	at org.sonar.db.issue.IssueDto.setAuthorLogin(IssueDto.java:353) ~[sonar-db-5.6.1.jar:na]
	at org.sonar.db.issue.IssueDto.toDtoForComputationInsert(IssueDto.java:129) ~[sonar-db-5.6.1.jar:na]
	at org.sonar.server.computation.step.PersistIssuesStep.execute(PersistIssuesStep.java:69) ~[sonar-server-5.6.1.jar:na]
	at org.sonar.server.computation.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:64) ~[sonar-server-5.6.1.jar:na]
	at org.sonar.server.computation.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:52) ~[sonar-server-5.6.1.jar:na]
	at org.sonar.server.computation.taskprocessor.report.ReportTaskProcessor.process(ReportTaskProcessor.java:75) ~[sonar-server-5.6.1.jar:na]
	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:81) [sonar-server-5.6.1.jar:na]
	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:56) [sonar-server-5.6.1.jar:na]
	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:35) [sonar-server-5.6.1.jar:na]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_101]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_101]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_101]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_101]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
2017.01.30 16:42:28 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=sgl | type=REPORT | id=AVnwr0Dz3syUbWgWOt8O | submitter=jenkins | time=13516ms
{noformat}

The message is right...
because of  a configuration error, an user commited some changesets with a giant login (300+)... we cannot change the changesets (they were already pushed, and a long time ago)

1 - What can we do to stop this error on sonar?

2 - Why this error only showed up after we changed the rules?
(I think it was because the old rules generated no issue on the files of the changesets with the giant login...)

Julien Lancelot

unread,
Jan 31, 2017, 4:44:10 AM1/31/17
to Frederico Silva Guimarães, SonarQube
Hi,

As you said, the error is right : ).
Then what you can do is :
  • Commit again on this file with a correct login
  • Ignore the file by using the property "sonar.exclusions" (See docs for more details)
+++

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/24f2a908-f2eb-4669-947c-10e69aeef8c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Julien LANCELOT | SonarSource

Frederico Silva Guimarães

unread,
Jan 31, 2017, 8:04:59 AM1/31/17
to SonarQube, fred...@gmail.com
Hi

The problem is that there are a lot commits in a lot of files with that author... (and the error does not show the file)

Sonar only care about the author of the last commit?
So any commit - with another author - on the problem file with fix the problem?

Frederico Silva Guimarães

unread,
Jan 31, 2017, 8:53:01 AM1/31/17
to SonarQube, fred...@gmail.com
Hi

We made a new commit on each java file of the project, so in every file the last commit is not from a "big login" anymore, but the error continues...

What can we do?

Sonar should have an option to "crop" the login instead of throw an error (actually, i think it should be the default behavior, as the repository allows big logins...)

Frederico Silva Guimarães

unread,
Jan 31, 2017, 10:45:28 AM1/31/17
to SonarQube, fred...@gmail.com

Is there a way to make sonar not get the author information from te commit?

G. Ann Campbell

unread,
Jan 31, 2017, 11:44:27 AM1/31/17
to SonarQube
Please don't cross-post here and on StackOverflow

Frederico Silva Guimarães

unread,
Feb 1, 2017, 8:23:42 AM2/1/17
to SonarQube
OK
Reply all
Reply to author
Forward
0 new messages