unhandled exception loading [/plugins/servlet/sonar4stash/repo-admin/COMMON/corporate-pom]

Stash version 3.7.1

Sonar4Stash version 1.9.0-stash

Attempting to update sonar4stash configuration for an existing project.  The plugin was previously enabled using an older version of sonar4stash.

 

2016-08-24 08:07:23,966 ERROR [http-nio-8080-exec-647] @CDLE9Rx487x11915857x0 1w76tbk 172.22.10.190,127.0.0.1 "GET /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/plugins/servlet/sonar4stash/repo-admin/COMMON/corporate-pom]
java.lang.NullPointerException: null
at java.net.URLEncoder.encode(URLEncoder.java:205) ~[na:1.7.0_45]
at ch.mibex.stash.sonar4stash.sonar.DefaultSonarClient$$anonfun$findProject$1.apply(DefaultSonarClient.scala:1001) ~[na:na]
at ch.mibex.stash.sonar4stash.sonar.DefaultSonarClient$$anonfun$findProject$1.apply(DefaultSonarClient.scala:1000) ~[na:na]
at ch.mibex.stash.sonar4stash.Utils$.using(Utils.scala:22) ~[na:na]
at ch.mibex.stash.sonar4stash.sonar.DefaultSonarClient.findProject(DefaultSonarClient.scala:1000) ~[na:na]
at ch.mibex.stash.sonar4stash.settings.RepoConfig$$anonfun$getSonarProjectDescription$1$$anonfun$apply$19.apply(RepoConfig.scala:507) ~[na:na]
at ch.mibex.stash.sonar4stash.settings.RepoConfig$$anonfun$getSonarProjectDescription$1$$anonfun$apply$19.apply(RepoConfig.scala:506) ~[na:na]
at scala.Option.flatMap(Option.scala:170) ~[na:na]
at ch.mibex.stash.sonar4stash.settings.RepoConfig$$anonfun$getSonarProjectDescription$1.apply(RepoConfig.scala:506) ~[na:na]
at ch.mibex.stash.sonar4stash.settings.RepoConfig$$anonfun$getSonarProjectDescription$1.apply(RepoConfig.scala:505) ~[na:na]
at scala.Option.flatMap(Option.scala:170) ~[na:na]
at ch.mibex.stash.sonar4stash.settings.RepoConfig.getSonarProjectDescription(RepoConfig.scala:505) ~[na:na]
at ch.mibex.stash.sonar4stash.settings.RepoConfig.toPageContext(RepoConfig.scala:474) ~[na:na]
at ch.mibex.stash.sonar4stash.settings.RepoConfigServlet.render(RepoConfigServlet.scala:122) ~[na:na]
at ch.mibex.stash.sonar4stash.settings.RepoConfigServlet.doGet(RepoConfigServlet.scala:64) ~[na:na]
at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) ~[na:na]
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:181) ~[sitemesh-2.5-atlassian-10.jar:na]
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:85) ~[sitemesh-2.5-atlassian-10.jar:na]
at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:86) ~[StashAuthenticationFilter.class:na]
at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) ~[BeforeLoginPluginAuthenticationFilter.class:na]
at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) ~[BeforeLoginPluginAuthenticationFilter.class:na]
at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) ~[atlassian-trusted-apps-core-3.0.8.jar:na]
at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) ~[na:na]
at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:32) ~[na:na]
at com.atlassian.analytics.client.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32) ~[na:na]
at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) ~[BeforeLoginPluginAuthenticationFilter.class:na]
at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) ~[BeforeLoginPluginAuthenticationFilter.class:na]
at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:85) ~[stash-service-impl-3.7.1.jar:na]
at com.atlassian.stash.internal.hazelcast.ConfigurableWebFilter.doFilter(ConfigurableWebFilter.java:38) ~[ConfigurableWebFilter.class:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45]
:

2 answers

Here is the current configuration for the project:

[git@phx-mgtl01009 log]$ curl http://localhost:8080/rest/sonar4stash/latest/projects/common/repos/corporate-pom/settings|python -m json.tool
{
"bitmap$0": false,
"duplicateCode": {
"showDuplicateCode": true
},
"issues": {
"showSonarIssues": true,
"sonarIssueMinSeverity": "MAJOR"
},
"mergeChecks": {
"mergeChecksEnabled": false,
"qualityGatesEnabled": false,
"sonarIssueTypeMaxNew": "MAJOR"
},
"project": {
"analysisMode": "LEAK_PERIOD",
"buildType": "AUTO",
"illegalBranchCharReplacement": "_",
"projectBaseKey": "choicehotels:corporate-pom",
"projectCleanupEnabled": true,
"serverConfigId": 1,
"sonarEnabled": true
},
"provisioning": {
"propertiesProvisioningEnabled": false,
"qualityProfileProvisioningEnabled": false
},
"statistics": {
"collapsedByDefault": false,
"showQualityGates": true,
"showStatistics": true
},
"testCoverage": {
"coverageType": "UT",
"showCoverage": false
}
}

 

Resolved:  Installed sonar4stash version 1.9.1-stash

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 ...

235 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