It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sonar for Stash integration

David Harper Jun 10, 2015


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


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.


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
Answer accepted
Mibex Software Jun 10, 2015


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:


Michael (author of the plug-in)

David Harper Jun 10, 2015

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

Mibex Software Jun 10, 2015

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

0 votes
David Harper Jun 10, 2015

Actually turning on debugging helped:


2015-06-10 13:02:05,298 ERROR [http-nio-7990-exec-35] david.harper @QVPR8Yx781x516753x13 1stc7fi, "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( ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:4.4.1]
at org.apache.http.util.CharArrayBuffer.append( ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:4.4.1]
at org.apache.http.util.EntityUtils.toString( ~[plugin.6139044561542379346.sonar4stash-1.3.3_1433931375000.jar:4.4.1]
at org.apache.http.util.EntityUtils.toString( ~[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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,651 views 1 18
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you