NullPointerException trying to add an issue type screen scheme

One of our users is getting a NullPointerException when trying at add n issue type screen scheme to an issue type. This is Jira 4.4.4, stack dump (from atlassian-jira.log) attached.

Caused by: java.lang.NullPointerException

2012-12-03 14:55:37,072 TP-Processor7 ERROR ajones2 895x23326x1 1x6tmn3 10.133.26.14 /secure/admin/ConfigureFieldScreen.jspa [webwork.util.ValueStack] query="/usedIn" {[id="null" type="5" va

lues=""]} {[id="usedIn" type="8" values=""]}

java.lang.reflect.InvocationTargetException

at sun.reflect.GeneratedMethodAccessor1129.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)

at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)

at webwork.util.ValueStack.findValue(ValueStack.java:414)

at webwork.util.ValueStack.findValue(ValueStack.java:213)

at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62)

at webwork.view.taglib.ParamTag.doEndTag(ParamTag.java:59)

at org.apache.jsp.secure.admin.views.issuefields.screens.configurefieldscreen_jsp._jspx_meth_ui_005fparam_005f0(configurefieldscreen_jsp.java:1099)

at org.apache.jsp.secure.admin.views.issuefields.screens.configurefieldscreen_jsp._jspx_meth_ui_005fcomponent_005f0(configurefieldscreen_jsp.java:1066)

at org.apache.jsp.secure.admin.views.issuefields.screens.configurefieldscreen_jsp._jspx_meth_page_005fparam_005f3(configurefieldscreen_jsp.java:1018)

at org.apache.jsp.secure.admin.views.issuefields.screens.configurefieldscreen_jsp._jspx_meth_page_005fapplyDecorator_005f0(configurefieldscreen_jsp.java:825)

at org.apache.jsp.secure.admin.views.issuefields.screens.configurefieldscreen_jsp._jspService(configurefieldscreen_jsp.java:149)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)

at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)

at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)

at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)

at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:75)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:150)

at com.atlassian.jira.web.filters.JiraLoginFilter.doFilter(JiraLoginFilter.java:70)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)

at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)

3 answers

1 accepted

Accepted Answer
1 vote

Appears to be same as the exception documented here - https://confluence.atlassian.com/display/JIRAKB/Unable+to+View+Screens+in+Project+Administration+Due+to+java.lang.NullPointerException

Can you try the resolution there?

0 votes

Hi Robin,

Can you try to do the integrity checker and see if there's any inconsistency in database.

If it's no error found, please kindly ask your server admin to try the following to clean up caches/works to narrow down the problem:

  1. Shutdown your Jira
  2. Remove the following directories as they will rebuild when you restart jira
    • jira-home-path/plugins/.osgi-plugins
    • jira-home-path/plugins/.bundled-plugins
    • jira-home-path/caches/indexes
    • jira-installation-path/work
  3. Restart Jira
  4. Reindex Jira

Hope it helps Merry Xmas.

Regards,

John

Integrity checker fixed a small number of errors.

User confirms that the problem is still there, but the error is different - stack trace is below:

regards,

Robin

--

2012-12-21 13:40:16,521 TP-Processor7 ERROR [500ErrorPage.jsp] Exception caught in 500 page null

java.lang.NullPointerException

at com.atlassian.jira.issue.fields.screen.issuetype.DefaultProjectIssueTypeScreenSchemeHelper.getProjectsForFieldScreenSchemes(DefaultProjectIssueTypeScree

nSchemeHelper.java:71)

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.multitenant.impl.MultiTenantComponentFactoryImpl$AbstractMultiTenantAwareInvocationHandler.invokeInternal(MultiTenantComponentFactoryImpl.

java:181)

at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$MultiTenantAwareInvocationHandler.invoke(MultiTenantComponentFactoryImpl.java:211)

at $Proxy240.getProjectsForFieldScreenSchemes(Unknown Source)

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.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java

:129)

at $Proxy240.getProjectsForFieldScreenSchemes(Unknown Source)

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.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)

at $Proxy240.getProjectsForFieldScreenSchemes(Unknown Source)

at com.atlassian.jira.projectconfig.contextproviders.ProjectScreensContextProvider.getScreenSchemes(ProjectScreensContextProvider.java:119)

at com.atlassian.jira.projectconfig.contextproviders.ProjectScreensContextProvider.getContextMap(ProjectScreensContextProvider.java:80)

at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.initContextMap(CacheableContextProviderDecorator.java:70)

at com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator.getContextMap(CacheableContextProviderDecorator.java:46)

at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.getHtml(DefaultWebPanelModuleDescriptor.java:141)

at com.atlassian.jira.projectconfig.tab.WebPanelTab.getTab(WebPanelTab.java:75)

at com.atlassian.jira.projectconfig.servlet.PanelServlet.outputTab(PanelServlet.java:163)

at com.atlassian.jira.projectconfig.servlet.PanelServlet.doGet(PanelServlet.java:136)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

is permission scheme setted to project???

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

465 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you