java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • While viewing the source tab in jira, Stash sometimes returns error "500: Internal Server Error". Stack trace: {code} 2014-07-22 15:28:35,717 ERROR [http-bio-7991-exec-4] dcresswell 928x9448x0 imlj5j 192.168.0.217,127.0.0.1 "GET /rest/jira/1.0/issues/ADM-7525/commits HTTP/1.1" c.a.s.r.e.UnhandledExceptionMapper Unhandled exception while processing REST call java.lang.NullPointerException: null at com.atlassian.stash.rest.data.RestDetailedChangeset.<init>(RestDetailedChangeset.java:23) ~[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.integration.jira.rest.JiraResource$1.apply(JiraResource.java:41) ~[stash-jira-integration-3.1.3_1404865948000.jar:na] at com.atlassian.stash.integration.jira.rest.JiraResource$1.apply(JiraResource.java:37) ~[stash-jira-integration-3.1.3_1404865948000.jar:na] at com.google.common.collect.Iterators$8.next(Iterators.java:812) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.Lists.newArrayList(Lists.java:139) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217) ~[guava-11.0.2-atlassian-01.jar:na] at com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:36) ~[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:44) ~[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:26) ~[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.integration.jira.rest.JiraResource.getCommits(JiraResource.java:64) ~[stash-jira-integration-3.1.3_1404865948000.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.2.1_1402545180000.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.6.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69) [atlassian-oauth-service-provider-plugin-1.9.2_1402545180000.jar: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:70) [stash-service-impl-3.1.3.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_60] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60] ... 179 frames trimmed {code} It looks like changeset is coming as null. This happens when stash couldn't find a changeset in Git {code} c.a.s.i.s.g.c.d.BatchChangeDiffTreeHandler Changeset '6b72afdfb14a55421bd6f35ebf43dee9eb8db7e2' does not exist in repository 'DEV' {code}
    via by Justin Thomas [Atlassian],
  • While viewing the source tab in jira, Stash sometimes returns error "500: Internal Server Error". Stack trace: {code} 2014-07-22 15:28:35,717 ERROR [http-bio-7991-exec-4] dcresswell 928x9448x0 imlj5j 192.168.0.217,127.0.0.1 "GET /rest/jira/1.0/issues/ADM-7525/commits HTTP/1.1" c.a.s.r.e.UnhandledExceptionMapper Unhandled exception while processing REST call java.lang.NullPointerException: null at com.atlassian.stash.rest.data.RestDetailedChangeset.<init>(RestDetailedChangeset.java:23) ~[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.integration.jira.rest.JiraResource$1.apply(JiraResource.java:41) ~[stash-jira-integration-3.1.3_1404865948000.jar:na] at com.atlassian.stash.integration.jira.rest.JiraResource$1.apply(JiraResource.java:37) ~[stash-jira-integration-3.1.3_1404865948000.jar:na] at com.google.common.collect.Iterators$8.next(Iterators.java:812) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.Lists.newArrayList(Lists.java:139) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256) ~[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217) ~[guava-11.0.2-atlassian-01.jar:na] at com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:36) ~[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:44) ~[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:26) ~[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.integration.jira.rest.JiraResource.getCommits(JiraResource.java:64) ~[stash-jira-integration-3.1.3_1404865948000.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.2.1_1402545180000.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.6.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69) [atlassian-oauth-service-provider-plugin-1.9.2_1402545180000.jar: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:70) [stash-service-impl-3.1.3.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_60] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60] ... 179 frames trimmed {code} It looks like changeset is coming as null. This happens when stash couldn't find a changeset in Git {code} c.a.s.i.s.g.c.d.BatchChangeDiffTreeHandler Changeset '6b72afdfb14a55421bd6f35ebf43dee9eb8db7e2' does not exist in repository 'DEV' {code}
    via by Justin Thomas [Atlassian],
    • java.lang.NullPointerException: null at com.atlassian.stash.rest.data.RestDetailedChangeset.<init>(RestDetailedChangeset.java:23)[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.integration.jira.rest.JiraResource$1.apply(JiraResource.java:41)[stash-jira-integration-3.1.3_1404865948000.jar:na] at com.atlassian.stash.integration.jira.rest.JiraResource$1.apply(JiraResource.java:37)[stash-jira-integration-3.1.3_1404865948000.jar:na] at com.google.common.collect.Iterators$8.next(Iterators.java:812)[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.Lists.newArrayList(Lists.java:139)[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256)[guava-11.0.2-atlassian-01.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217)[guava-11.0.2-atlassian-01.jar:na] at com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:36)[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:44)[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:26)[stash-rest-common-3.1.3.jar:na] at com.atlassian.stash.integration.jira.rest.JiraResource.getCommits(JiraResource.java:64)[stash-jira-integration-3.1.3_1404865948000.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)[applinks-plugin-4.2.1_1402545180000.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.6.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69)[atlassian-oauth-service-provider-plugin-1.9.2_1402545180000.jar: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:70)[stash-service-impl-3.1.3.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_60] at java.lang.Thread.run(Thread.java:745)[na:1.7.0_60]
    No Bugmate found.