com.atlassian.jira.util.dbc.Assertions$NullArgumentException: parameter should not be null!

Atlassian JIRA | Andriy Yakovlev [Atlassian] | 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

    h3. Summary If JIRA has non-existing user in the _Administer project_ permission of the Project Permission then it stops showing top dropdown header. h3. Steps to Reproduce Use Project Configurator plugin # On Source: ## Create a project ## Create a user called TestUser1 ## Amend the permission scheme to use this user, add as admin for project ## Export the project config with PC plugin # On Dest ## DO NOT CREATE USER TestUser1 ## Import project config via PC plugin h3. Expected Results It works fine h3. Actual Results Top dropdown page header is not present. The below exception is thrown in the atlassian-jira.log file: {noformat} 2016-04-14 09:51:57,891 http-bio-8443-exec-26 ERROR admin 591x87653x2 1x6uly9 127.0.0.1 /secure/project/ViewProjects.jspa [webwork.util.ValueStack] METHOD: "projectAdmin", exception: 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.type.SingleUser.hasPermission(SingleUser.java:150) at com.atlassian.jira.security.type.SingleUser.hasPermission(SingleUser.java:138) at com.atlassian.jira.permission.DefaultPermissionSchemeManager$4.hasPermission(DefaultPermissionSchemeManager.java:591) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:844) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:586) at com.atlassian.jira.security.DefaultPermissionManager.doProjectPermissionCheck(DefaultPermissionManager.java:361) at com.atlassian.jira.security.DefaultPermissionManager.hasPermission(DefaultPermissionManager.java:218) at com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:144) <+2> (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at com.sun.proxy.$Proxy14.hasPermission(Unknown Source) at com.atlassian.jira.web.action.project.ViewProjects.isProjectAdmin(ViewProjects.java:98) <+2> (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) .... {noformat} h3. Notes h3.Workaround Check project permission page and remove non-existing users

    Atlassian JIRA | 10 months ago | Andriy Yakovlev [Atlassian]
    com.atlassian.jira.util.dbc.Assertions$NullArgumentException: parameter should not be null!
  2. 0

    h3. Summary If JIRA has non-existing user in the _Administer project_ permission of the Project Permission then it stops showing top dropdown header. h3. Steps to Reproduce Use Project Configurator plugin # On Source: ## Create a project ## Create a user called TestUser1 ## Amend the permission scheme to use this user, add as admin for project ## Export the project config with PC plugin # On Dest ## DO NOT CREATE USER TestUser1 ## Import project config via PC plugin h3. Expected Results It works fine h3. Actual Results Top dropdown page header is not present. The below exception is thrown in the atlassian-jira.log file: {noformat} 2016-04-14 09:51:57,891 http-bio-8443-exec-26 ERROR admin 591x87653x2 1x6uly9 127.0.0.1 /secure/project/ViewProjects.jspa [webwork.util.ValueStack] METHOD: "projectAdmin", exception: 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.type.SingleUser.hasPermission(SingleUser.java:150) at com.atlassian.jira.security.type.SingleUser.hasPermission(SingleUser.java:138) at com.atlassian.jira.permission.DefaultPermissionSchemeManager$4.hasPermission(DefaultPermissionSchemeManager.java:591) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:844) at com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:586) at com.atlassian.jira.security.DefaultPermissionManager.doProjectPermissionCheck(DefaultPermissionManager.java:361) at com.atlassian.jira.security.DefaultPermissionManager.hasPermission(DefaultPermissionManager.java:218) at com.atlassian.jira.security.WorkflowBasedPermissionManager.hasPermission(WorkflowBasedPermissionManager.java:144) <+2> (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at com.sun.proxy.$Proxy14.hasPermission(Unknown Source) at com.atlassian.jira.web.action.project.ViewProjects.isProjectAdmin(ViewProjects.java:98) <+2> (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) .... {noformat} h3. Notes Problem may occurs executing other actions, eg: Issue Create. h3.Workaround * Check project permission page and remove non-existing users * Use updated version of Project Configurator plugin. The versions with the fix (*1.13.1-J6* and *1.13.1-J7*) were released 2016-06-10.

    Atlassian JIRA | 10 months ago | Andriy Yakovlev [Atlassian]
    com.atlassian.jira.util.dbc.Assertions$NullArgumentException: parameter should not be null!

    Root Cause Analysis

    1. com.atlassian.jira.util.dbc.Assertions$NullArgumentException

      parameter should not be null!

      at com.atlassian.jira.util.dbc.Assertions.notNull()
    2. com.atlassian.jira
      DefaultPermissionManager.hasPermission
      1. com.atlassian.jira.util.dbc.Assertions.notNull(Assertions.java:29)
      2. com.atlassian.jira.security.type.SingleUser.hasPermission(SingleUser.java:150)
      3. com.atlassian.jira.security.type.SingleUser.hasPermission(SingleUser.java:138)
      4. com.atlassian.jira.permission.DefaultPermissionSchemeManager$4.hasPermission(DefaultPermissionSchemeManager.java:591)
      5. com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:844)
      6. com.atlassian.jira.permission.DefaultPermissionSchemeManager.hasSchemePermission(DefaultPermissionSchemeManager.java:586)
      7. com.atlassian.jira.security.DefaultPermissionManager.doProjectPermissionCheck(DefaultPermissionManager.java:361)
      8. com.atlassian.jira.security.DefaultPermissionManager.hasPermission(DefaultPermissionManager.java:218)
      8 frames