java.lang.NullPointerException

Atlassian JIRA | Peter Obara [Atlassian] | 5 years ago
  1. 0

    Because there is old data for sprints that have no sprint dates, any lookup for sprints will NPE 2012-03-22 18:28:50,363 http-9080-6 ERROR pobara 1108x1484x1 zlxwyc /rest/greenhopper/1.0/sprint/create/model.json [server.impl.application.WebApplicationImpl] Internal server error java.lang.NullPointerException at com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl$2.compare(SprintQueryServiceImpl.java:98) at com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl$2.compare(SprintQueryServiceImpl.java:92) at java.util.Arrays.mergeSort(Arrays.java:1270) at java.util.Arrays.sort(Arrays.java:1210) at java.util.Collections.sort(Collections.java:159) at com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl.sortSprints(SprintQueryServiceImpl.java:91) at com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl.getSprints(SprintQueryServiceImpl.java:86) at com.atlassian.greenhopper.web.rapid.sprint.CreateSprintHelper.createDefaultSprintName(CreateSprintHelper.java:89) at com.atlassian.greenhopper.web.rapid.sprint.CreateSprintResource$1.call(CreateSprintResource.java:89) at com.atlassian.greenhopper.web.rapid.sprint.CreateSprintResource$1.call(CreateSprintResource.java:70) at com.atlassian.greenhopper.web.util.RestCall.response(RestCall.java:48) at com.atlassian.greenhopper.web.AbstractResource.response(AbstractResource.java:40) at com.atlassian.greenhopper.web.rapid.sprint.CreateSprintResource.getStartModel(CreateSprintResource.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:206) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:90) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:38) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:98) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.access$100(DispatchProviderHelper.java:28) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:202) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:654) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)

    Atlassian JIRA | 5 years ago | Peter Obara [Atlassian]
    java.lang.NullPointerException
  2. 0

    Because there is old data for sprints that have no sprint dates, any lookup for sprints will NPE 2012-03-22 18:28:50,363 http-9080-6 ERROR pobara 1108x1484x1 zlxwyc /rest/greenhopper/1.0/sprint/create/model.json [server.impl.application.WebApplicationImpl] Internal server error java.lang.NullPointerException at com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl$2.compare(SprintQueryServiceImpl.java:98) at com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl$2.compare(SprintQueryServiceImpl.java:92) at java.util.Arrays.mergeSort(Arrays.java:1270) at java.util.Arrays.sort(Arrays.java:1210) at java.util.Collections.sort(Collections.java:159) at com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl.sortSprints(SprintQueryServiceImpl.java:91) at com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl.getSprints(SprintQueryServiceImpl.java:86) at com.atlassian.greenhopper.web.rapid.sprint.CreateSprintHelper.createDefaultSprintName(CreateSprintHelper.java:89) at com.atlassian.greenhopper.web.rapid.sprint.CreateSprintResource$1.call(CreateSprintResource.java:89) at com.atlassian.greenhopper.web.rapid.sprint.CreateSprintResource$1.call(CreateSprintResource.java:70) at com.atlassian.greenhopper.web.util.RestCall.response(RestCall.java:48) at com.atlassian.greenhopper.web.AbstractResource.response(AbstractResource.java:40) at com.atlassian.greenhopper.web.rapid.sprint.CreateSprintResource.getStartModel(CreateSprintResource.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:206) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:90) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:38) at com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:98) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.access$100(DispatchProviderHelper.java:28) at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:202) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:654) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)

    Atlassian JIRA | 5 years ago | Peter Obara [Atlassian]
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      No message provided

      at com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl$2.compare()
    2. com.atlassian.greenhopper
      SprintQueryServiceImpl$2.compare
      1. com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl$2.compare(SprintQueryServiceImpl.java:98)
      2. com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl$2.compare(SprintQueryServiceImpl.java:92)
      2 frames
    3. Java RT
      Collections.sort
      1. java.util.Arrays.mergeSort(Arrays.java:1270)
      2. java.util.Arrays.sort(Arrays.java:1210)
      3. java.util.Collections.sort(Collections.java:159)
      3 frames
    4. com.atlassian.greenhopper
      CreateSprintResource.getStartModel
      1. com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl.sortSprints(SprintQueryServiceImpl.java:91)
      2. com.atlassian.greenhopper.service.sprint.SprintQueryServiceImpl.getSprints(SprintQueryServiceImpl.java:86)
      3. com.atlassian.greenhopper.web.rapid.sprint.CreateSprintHelper.createDefaultSprintName(CreateSprintHelper.java:89)
      4. com.atlassian.greenhopper.web.rapid.sprint.CreateSprintResource$1.call(CreateSprintResource.java:89)
      5. com.atlassian.greenhopper.web.rapid.sprint.CreateSprintResource$1.call(CreateSprintResource.java:70)
      6. com.atlassian.greenhopper.web.util.RestCall.response(RestCall.java:48)
      7. com.atlassian.greenhopper.web.AbstractResource.response(AbstractResource.java:40)
      8. com.atlassian.greenhopper.web.rapid.sprint.CreateSprintResource.getStartModel(CreateSprintResource.java:69)
      8 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. com.atlassian.plugins
      DispatchProviderHelper$ResponseOutInvoker._dispatch
      1. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:206)
      2. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$1.intercept(DispatchProviderHelper.java:90)
      3. com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61)
      4. com.atlassian.plugins.rest.common.expand.interceptor.ExpandInterceptor.intercept(ExpandInterceptor.java:38)
      5. com.atlassian.plugins.rest.common.interceptor.impl.DefaultMethodInvocation.invoke(DefaultMethodInvocation.java:61)
      6. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.invokeMethodWithInterceptors(DispatchProviderHelper.java:98)
      7. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper.access$100(DispatchProviderHelper.java:28)
      8. com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker._dispatch(DispatchProviderHelper.java:202)
      8 frames
    7. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
      2. com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:163)
      3. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
      4. com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
      5. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
      6. com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
      7. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:654)
      8. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612)
      8 frames