java.lang.NullPointerException

Atlassian JIRA | Nick Mason [Atlassian] | 5 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

    A customer is receiving an error when trying to sign into JIRA via the Bonfire extension on their OnDemand instance: {quote} JIRA Server Error. Please try logging in via JIRA, then close and re-open Bonfire. The URL https://<OnDemand URL>/rest/bonfire/1.0/fields/10020 responded with a status code of 500 {quote} In the logs it blows up with this stack trace: {code:none} 2011-10-27 11:47:02,134 TP-Processor12 WARN sysadmin 707x7513x2 1eenlyg 59.167.133.99,207.223.247.15 /rest/bonfire/1.0/sessions/user [excalibur.service.dao.SessionDao] Error loading indexed sessions array iterator Oct 27, 2011 11:47:03 AM com.sun.jersey.server.impl.application.WebApplicationImpl onException SEVERE: Internal server error java.lang.NullPointerException at com.atlassian.bonfire.service.rest.CustomFieldOptionService.attachCustomFieldDefaultValue(CustomFieldOptionService.java:140) at com.atlassian.bonfire.rest.FieldsResource.getCustomFieldBean(FieldsResource.java:210) at com.atlassian.bonfire.rest.FieldsResource.getFieldListBean(FieldsResource.java:185) at com.atlassian.bonfire.rest.FieldsResource.getFieldsForProjectFromPath(FieldsResource.java:133) 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) [...] {code}

    Atlassian JIRA | 5 years ago | Nick Mason [Atlassian]
    java.lang.NullPointerException
  2. 0

    A customer is receiving an error when trying to sign into JIRA via the Bonfire extension on their OnDemand instance: {quote} JIRA Server Error. Please try logging in via JIRA, then close and re-open Bonfire. The URL https://<OnDemand URL>/rest/bonfire/1.0/fields/10020 responded with a status code of 500 {quote} In the logs it blows up with this stack trace: {code:none} 2011-10-27 11:47:02,134 TP-Processor12 WARN sysadmin 707x7513x2 1eenlyg 59.167.133.99,207.223.247.15 /rest/bonfire/1.0/sessions/user [excalibur.service.dao.SessionDao] Error loading indexed sessions array iterator Oct 27, 2011 11:47:03 AM com.sun.jersey.server.impl.application.WebApplicationImpl onException SEVERE: Internal server error java.lang.NullPointerException at com.atlassian.bonfire.service.rest.CustomFieldOptionService.attachCustomFieldDefaultValue(CustomFieldOptionService.java:140) at com.atlassian.bonfire.rest.FieldsResource.getCustomFieldBean(FieldsResource.java:210) at com.atlassian.bonfire.rest.FieldsResource.getFieldListBean(FieldsResource.java:185) at com.atlassian.bonfire.rest.FieldsResource.getFieldsForProjectFromPath(FieldsResource.java:133) 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) [...] {code}

    Atlassian JIRA | 5 years ago | Nick Mason [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.bonfire.service.rest.CustomFieldOptionService.attachCustomFieldDefaultValue()
    2. com.atlassian.bonfire
      FieldsResource.getFieldsForProjectFromPath
      1. com.atlassian.bonfire.service.rest.CustomFieldOptionService.attachCustomFieldDefaultValue(CustomFieldOptionService.java:140)
      2. com.atlassian.bonfire.rest.FieldsResource.getCustomFieldBean(FieldsResource.java:210)
      3. com.atlassian.bonfire.rest.FieldsResource.getFieldListBean(FieldsResource.java:185)
      4. com.atlassian.bonfire.rest.FieldsResource.getFieldsForProjectFromPath(FieldsResource.java:133)
      4 frames
    3. 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
    4. 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
    5. Jersey
      ResourceJavaMethodDispatcher.dispatch
      1. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
      1 frame