java.lang.NullPointerException

Atlassian JIRA | Yilin Mo [Atlassian] | 4 years ago
  1. 0

    h3. Summary Unable to edit project roles h3. Steps to Reproduce # Create 24 project roles. # Create 451 projects. # Open page "Administration >> Users >> Project roles (for any user)" then edit the project role. # Save the changes. h3. Expected Results Saving the changes without any error. h3. Actual Results A 500 error page will be displayed. You may find either of the exceptions below in the logs: {noformat} 2013-04-25 18:34:15,707 http-bio-6523-exec-14 ERROR [500ErrorPage.jsp] Exception caught in 500 page null java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.updateRoleActorsForProjectRole(EditUserProjectRoles.java:146) at com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.doExecute(EditUserProjectRoles.java:54) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:221) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:150) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) (...) at java.lang.Thread.run(Thread.java:680) {noformat} {noformat} com.atlassian.jira.util.dbc.Assertions$NullArgumentException: parameter should not be null! com.atlassian.jira.util.dbc.Assertions$NullArgumentException: parameter should not be null! at com.atlassian.jira.util.dbc.Assertions.notNull(Assertions.java:29) at com.atlassian.jira.security.roles.actor.UserRoleActorFactory.createRoleActor(UserRoleActorFactory.java:71) at com.atlassian.jira.security.roles.PluginDelegatingRoleActorFactory.createRoleActor(PluginDelegatingRoleActorFactory.java:38) at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.createRoleActors(DefaultProjectRoleService.java:962) at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.updateActorsToProjectRole(DefaultProjectRoleService.java:891) at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.addActorsToProjectRole(DefaultProjectRoleService.java:1207) at com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.updateRoleActorsForProjectRole(EditUserProjectRoles.java:170) at com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.doExecute(EditUserProjectRoles.java:52) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:87) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) (...) at java.lang.Thread.run(Thread.java:722) {noformat} h3.Workaround # Backup the {{server.xml}} file. # Edit the {{server.xml}} file and add the parameter below in the *Connector* used for JIRA: {code} maxParameterCount="-1" {code} Example: {code:borderStyle=solid|borderColor=#6A8EB3|bgColor=#F8F8F8} <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" maxParameterCount="-1"/> {code} # Restart JIRA. Source: https://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Common_Attributes

    Atlassian JIRA | 4 years ago | Yilin MO [Atlassian]
    java.lang.NullPointerException
  2. 0

    h3. Summary Unable to edit project roles h3. Steps to Reproduce # Create 24 project roles. # Create 451 projects. # Open page "Administration >> Users >> Project roles (for any user)" then edit the project role. # Save the changes. h3. Expected Results Saving the changes without any error. h3. Actual Results A 500 error page will be displayed. You may find either of the exceptions below in the logs: {noformat} 2013-04-25 18:34:15,707 http-bio-6523-exec-14 ERROR [500ErrorPage.jsp] Exception caught in 500 page null java.lang.NullPointerException at com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.updateRoleActorsForProjectRole(EditUserProjectRoles.java:146) at com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.doExecute(EditUserProjectRoles.java:54) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:221) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:150) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) (...) at java.lang.Thread.run(Thread.java:680) {noformat} {noformat} com.atlassian.jira.util.dbc.Assertions$NullArgumentException: parameter should not be null! com.atlassian.jira.util.dbc.Assertions$NullArgumentException: parameter should not be null! at com.atlassian.jira.util.dbc.Assertions.notNull(Assertions.java:29) at com.atlassian.jira.security.roles.actor.UserRoleActorFactory.createRoleActor(UserRoleActorFactory.java:71) at com.atlassian.jira.security.roles.PluginDelegatingRoleActorFactory.createRoleActor(PluginDelegatingRoleActorFactory.java:38) at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.createRoleActors(DefaultProjectRoleService.java:962) at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.updateActorsToProjectRole(DefaultProjectRoleService.java:891) at com.atlassian.jira.bc.projectroles.DefaultProjectRoleService.addActorsToProjectRole(DefaultProjectRoleService.java:1207) at com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.updateRoleActorsForProjectRole(EditUserProjectRoles.java:170) at com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.doExecute(EditUserProjectRoles.java:52) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:87) at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) (...) at java.lang.Thread.run(Thread.java:722) {noformat} h3.Workaround # Backup the {{server.xml}} file. # Edit the {{server.xml}} file and add the parameter below in the *Connector* used for JIRA: {code} maxParameterCount="-1" {code} Example: {code:borderStyle=solid|borderColor=#6A8EB3|bgColor=#F8F8F8} <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" maxParameterCount="-1"/> {code} # Restart JIRA. Source: https://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Common_Attributes

    Atlassian JIRA | 4 years ago | Yilin Mo [Atlassian]
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.updateRoleActorsForProjectRole()
    2. com.atlassian.jira
      EditUserProjectRoles.doExecute
      1. com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.updateRoleActorsForProjectRole(EditUserProjectRoles.java:146)
      2. com.atlassian.jira.web.action.admin.user.EditUserProjectRoles.doExecute(EditUserProjectRoles.java:54)
      2 frames
    3. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:165)
      1 frame
    4. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82)
      1 frame
    5. webwork.interceptor
      DefaultInterceptorChain.proceed
      1. webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
      2. webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)
      3. webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
      4. webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)
      4 frames
    6. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:221)
      2. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:150)
      2 frames
    7. com.atlassian.jira
      JiraWebworkActionDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:153)
      1 frame
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      1 frame
    9. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    10. com.atlassian.jira
      ChainedFilterStepRunner.doFilter
      1. com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:78)
      1 frame
    11. Glassfish Core
      ApplicationFilterChain.internalDoFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      1 frame