Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-61051

REST API issue createmeta response throws a NullPointerException.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Needs Triage (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 6.3.6
    • Fix Version/s: None
    • Component/s: REST API
    • Labels:

      Description

      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:

      <status>
      <status-code>500</status-code>
      <stack-trace>java.lang.NullPointerException</stack-trace>
      </status>
      

      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:

      /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)
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            juan18 Juan de Anda
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated: