java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Juan de Anda,
  • 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}
    via by Juan de Anda,
    • 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)
    No Bugmate found.