java.lang.NullPointerException

Atlassian JIRA | Juan de Anda | 10 months 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

    When using the JIRA REST API to get issue creation metadata we hit (GET) the following route: /rest/api/2/issue/createmeta?expand=projects.issuetypes.fields See https://docs.atlassian.com/jira/REST/latest/#api/2/issue-getCreateIssueMeta for documentation about that route. We expect to get the issue creation data with issue types and fields expanded, however we get an error response: {code:xml} <status> <status-code>500</status-code> <stack-trace>java.lang.NullPointerException</stack-trace> </status> {code} The stack trace isn’t really helpful. What could be wrong or how could we investigate further? JIRA Server Build 6336 Version 6.3.6 --- Edit --- We found the following log: {code:java} /rest/api/2/issue/createmeta [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null java.lang.NullPointerException at com.atlassian.jira.rest.v2.issue.AbstractMetaFieldBeanBuilder.getFieldMetaBean(AbstractMetaFieldBeanBuilder.java:123) at com.atlassian.jira.rest.v2.issue.AbstractMetaFieldBeanBuilder.build(AbstractMetaFieldBeanBuilder.java:94) at com.atlassian.jira.rest.v2.issue.CreateMetaFieldBeanBuilder.build(CreateMetaFieldBeanBuilder.java:61) at com.atlassian.jira.rest.v2.issue.CreateMetaIssueTypeBean$1.expand(CreateMetaIssueTypeBean.java:31) at com.atlassian.plugins.rest.common.expand.SelfExpandingExpander.expandInternal(SelfExpandingExpander.java:17) ... 16 filtered at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:55) ... 1 filtered at com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:39) ... 15 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68) ... 86 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 16 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 74 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) {code}

    Atlassian JIRA | 10 months ago | Juan de Anda
    java.lang.NullPointerException
  2. 0

    When using the JIRA REST API to get issue creation metadata we hit (GET) the following route: /rest/api/2/issue/createmeta?expand=projects.issuetypes.fields See https://docs.atlassian.com/jira/REST/latest/#api/2/issue-getCreateIssueMeta for documentation about that route. We expect to get the issue creation data with issue types and fields expanded, however we get an error response: {code:xml} <status> <status-code>500</status-code> <stack-trace>java.lang.NullPointerException</stack-trace> </status> {code} The stack trace isn’t really helpful. What could be wrong or how could we investigate further? JIRA Server Build 6336 Version 6.3.6 --- Edit --- We found the following log: {code:java} /rest/api/2/issue/createmeta [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null java.lang.NullPointerException at com.atlassian.jira.rest.v2.issue.AbstractMetaFieldBeanBuilder.getFieldMetaBean(AbstractMetaFieldBeanBuilder.java:123) at com.atlassian.jira.rest.v2.issue.AbstractMetaFieldBeanBuilder.build(AbstractMetaFieldBeanBuilder.java:94) at com.atlassian.jira.rest.v2.issue.CreateMetaFieldBeanBuilder.build(CreateMetaFieldBeanBuilder.java:61) at com.atlassian.jira.rest.v2.issue.CreateMetaIssueTypeBean$1.expand(CreateMetaIssueTypeBean.java:31) at com.atlassian.plugins.rest.common.expand.SelfExpandingExpander.expandInternal(SelfExpandingExpander.java:17) ... 16 filtered at com.atlassian.jira.rest.exception.ExceptionInterceptor.intercept(ExceptionInterceptor.java:55) ... 1 filtered at com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor.intercept(RequestScopeInterceptor.java:39) ... 15 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154) ... 1 filtered at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68) ... 86 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) ... 16 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 74 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) {code}

    Atlassian JIRA | 10 months ago | Juan de Anda
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.rest.v2.issue.AbstractMetaFieldBeanBuilder.getFieldMetaBean()
    2. com.atlassian.jira
      CreateMetaIssueTypeBean$1.expand
      1. com.atlassian.jira.rest.v2.issue.AbstractMetaFieldBeanBuilder.getFieldMetaBean(AbstractMetaFieldBeanBuilder.java:123)
      2. com.atlassian.jira.rest.v2.issue.AbstractMetaFieldBeanBuilder.build(AbstractMetaFieldBeanBuilder.java:94)
      3. com.atlassian.jira.rest.v2.issue.CreateMetaFieldBeanBuilder.build(CreateMetaFieldBeanBuilder.java:61)
      4. com.atlassian.jira.rest.v2.issue.CreateMetaIssueTypeBean$1.expand(CreateMetaIssueTypeBean.java:31)
      4 frames
    3. com.atlassian.plugins
      SelfExpandingExpander.expandInternal
      1. com.atlassian.plugins.rest.common.expand.SelfExpandingExpander.expandInternal(SelfExpandingExpander.java:17)
      1 frame