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

0 votes
Accepted answer

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 Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

228 views 3 7
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