Sonar for Stash integration

Hey,

I'm almost there with integrating Stash and Sonarqube, but I'm having issues with this button:

server-unreachable-a.png

It takes about a minute, then timesout with the following error, but I can't work out why? There is nothing interesting in the log. The response goes to an internal webservice which obscures the actual call being made.

server-unreachable.png

As you can see, the other integrations are fine (icons in the diff, and the dev panel shows on the main page). 

I'm logging in as an admin user. 

My SonarQube sits in front of an Apache proxy which hides the port.

Any help would be much appreciated.

2 answers

1 accepted

Hi,

How many Sonar issues are there in this Sonar project? We are aware of performance problems for the "show issues in pull request" feature when there are a lot of issues (> 10'000). If this is the case, you might want to watch the corresponding JIRA issue here and vote for it: https://mibexsoftware.atlassian.net/projects/SONAR/issues/SONAR-16

Thanks,

Michael (author of the plug-in)

Hi Michael, Thanks for the great plugin. In the whole project we have 139,742 issues! ( -_- ) I'll definitely sign-up and vote, thanks.

You're welcome. We are working on this right now.

Actually turning on debugging helped:

 

2015-06-10 13:02:05,298 ERROR [http-nio-7990-exec-35] david.harper @QVPR8Yx781x516753x13 1stc7fi 10.7.1.204,127.0.0.1 "GET /rest/sonar4stash/1.0/issues-in-pr/issues HTTP/1.1" c.a.p.r.c.e.j.ThrowableExceptionMapper Uncaught exception thrown by REST service: Java heap space
java.lang.OutOfMemoryError: Java heap space
at org.apache.http.util.CharArrayBuffer.expand(CharArrayBuffer.java:61) ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:4.4.1]
at org.apache.http.util.CharArrayBuffer.append(CharArrayBuffer.java:91) ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:4.4.1]
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:245) ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:4.4.1]
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:288) ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:4.4.1]
at ch.mibex.stash.sonar4stash.sonar.DefaultSonarClient.doGet(DefaultSonarClient.scala:512) ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:na]
at ch.mibex.stash.sonar4stash.sonar.DefaultSonarClient.getIssuesInProject(DefaultSonarClient.scala:179) ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:na]
at ch.mibex.stash.sonar4stash.sonar.issues.SonarIssuesInPRResource.getSonarIssuesInPr(SonarIssuesInPRResource.scala:69) ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:na]
... 25 frames trimmed

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

638 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot