java.lang.NullPointerException: null

Atlassian JIRA | Justin Thomas [Atlassian] | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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}

    Atlassian JIRA | 3 years ago | Justin Thomas [Atlassian]
    java.lang.NullPointerException: null
  2. 0

    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}

    Atlassian JIRA | 3 years ago | Justin Thomas [Atlassian]
    java.lang.NullPointerException: null
  3. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at com.atlassian.stash.rest.data.RestDetailedChangeset.<init>()
    2. com.atlassian.stash
      JiraResource$1.apply
      1. com.atlassian.stash.rest.data.RestDetailedChangeset.<init>(RestDetailedChangeset.java:23)[stash-rest-common-3.1.3.jar:na]
      2. com.atlassian.stash.integration.jira.rest.JiraResource$1.apply(JiraResource.java:41)[stash-jira-integration-3.1.3_1404865948000.jar:na]
      3. com.atlassian.stash.integration.jira.rest.JiraResource$1.apply(JiraResource.java:37)[stash-jira-integration-3.1.3_1404865948000.jar:na]
      3 frames
    3. Guava
      ImmutableList.copyOf
      1. com.google.common.collect.Iterators$8.next(Iterators.java:812)[guava-11.0.2-atlassian-01.jar:na]
      2. com.google.common.collect.Lists.newArrayList(Lists.java:139)[guava-11.0.2-atlassian-01.jar:na]
      3. com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256)[guava-11.0.2-atlassian-01.jar:na]
      4. com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217)[guava-11.0.2-atlassian-01.jar:na]
      4 frames
    4. com.atlassian.stash
      JiraResource.getCommits
      1. com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:36)[stash-rest-common-3.1.3.jar:na]
      2. com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:44)[stash-rest-common-3.1.3.jar:na]
      3. com.atlassian.stash.rest.data.RestPage.<init>(RestPage.java:26)[stash-rest-common-3.1.3.jar:na]
      4. com.atlassian.stash.integration.jira.rest.JiraResource.getCommits(JiraResource.java:64)[stash-jira-integration-3.1.3_1404865948000.jar:na]
      4 frames
    5. com.atlassian.applinks
      ContextFilter.doFilter
      1. com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)[applinks-plugin-4.2.1_1402545180000.jar:na]
      1 frame
    6. com.atlassian.stash
      BeforeLoginPluginAuthenticationFilter.doFilter
      1. com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:86)[StashAuthenticationFilter.class:na]
      2. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111)[BeforeLoginPluginAuthenticationFilter.class:na]
      3. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77)[BeforeLoginPluginAuthenticationFilter.class:na]
      3 frames
    7. com.atlassian.security
      TrustedApplicationsFilter.doFilter
      1. com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100)[atlassian-trusted-apps-core-3.0.6.jar:na]
      1 frame
    8. com.atlassian.oauth
      OAuthFilter.doFilter
      1. com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:69)[atlassian-oauth-service-provider-plugin-1.9.2_1402545180000.jar:na]
      1 frame
    9. com.atlassian.stash
      DefaultRequestManager.doAsRequest
      1. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89)[BeforeLoginPluginAuthenticationFilter.class:na]
      2. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75)[BeforeLoginPluginAuthenticationFilter.class:na]
      3. com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:70)[stash-service-impl-3.1.3.jar:na]
      3 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_60]
      2. java.lang.Thread.run(Thread.java:745)[na:1.7.0_60]
      2 frames