java.lang.IllegalArgumentException: entityNameToMatch argument cannot be null

Atlassian JIRA | Chris LePetit [Atlassian] | 5 years ago
  1. 0

    Adding 'anyone' to jira-system-administrators privileges breaks admin panel. So, aside from the obviously bad nature of adding the anyone group to this permission, it tends to leave things in a broken state afterwards. The Admin panel does not render anything and there are stack traces in the logs like this: {noformat} Nov 11, 2011 4:05:07 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.IllegalArgumentException: entityNameToMatch argument cannot be null at org.apache.commons.lang.Validate.notNull(Validate.java:192) at com.atlassian.crowd.search.query.membership.MembershipQuery.<init>(MembershipQuery.java:26) at com.atlassian.crowd.search.query.membership.UserMembersOfGroupQuery.<init>(UserMembersOfGroupQuery.java:11) at com.atlassian.crowd.search.builder.QueryBuilder.createMembershipQuery(QueryBuilder.java:179) at com.atlassian.crowd.search.builder.QueryBuilder$PartialMembershipQueryWithNameToMatch.returningAtMost(QueryBuilder.java:287) at com.atlassian.jira.user.util.UserUtilImpl.getGroupMembers(UserUtilImpl.java:1197) ... {noformat} What's curious about this, is I can't replicate it on a clean install, but the problem has occurred to a number of customers - they did appear to be using apache or other proxies to clean up the URL in each case. We've got a number of tickets about warning people when adding the anyone group here - I wonder if there's possibly now enough reason to prevent people from adding the anyone group to jira-system-admins at all? Is there even a use case for that permission? h3. Workaround Please refer to our [Error Creating New Ticket or Accessing Administration Section After JIRA Upgrade|https://confluence.atlassian.com/display/JIRAKB/Error+Creating+New+Ticket+or+Accessing+Administration+Section+After+JIRA+Upgrade] KB article for further information on how to fix this. h3. Suggested Fix Add an upgrade task to check for this, and if it exists remove those 'Anyone' permissions provided it does not restrict access to log into the instance. h3. Notes It is also possible this error may occur when performing an in-place upgrade from 3.3.1 to 4.4.5. This is not the recommended method, please use the XML method as per [Upgrading JIRA 3.x Data to JIRA 6.x|https://confluence.atlassian.com/display/JIRA/Upgrading+JIRA+3.x+Data+to+JIRA+6.x].

    Atlassian JIRA | 5 years ago | Chris LePetit [Atlassian]
    java.lang.IllegalArgumentException: entityNameToMatch argument cannot be null
  2. 0

    Adding 'anyone' to jira-system-administrators privileges breaks admin panel. So, aside from the obviously bad nature of adding the anyone group to this permission, it tends to leave things in a broken state afterwards. The Admin panel does not render anything and there are stack traces in the logs like this: {noformat} Nov 11, 2011 4:05:07 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.IllegalArgumentException: entityNameToMatch argument cannot be null at org.apache.commons.lang.Validate.notNull(Validate.java:192) at com.atlassian.crowd.search.query.membership.MembershipQuery.<init>(MembershipQuery.java:26) at com.atlassian.crowd.search.query.membership.UserMembersOfGroupQuery.<init>(UserMembersOfGroupQuery.java:11) at com.atlassian.crowd.search.builder.QueryBuilder.createMembershipQuery(QueryBuilder.java:179) at com.atlassian.crowd.search.builder.QueryBuilder$PartialMembershipQueryWithNameToMatch.returningAtMost(QueryBuilder.java:287) at com.atlassian.jira.user.util.UserUtilImpl.getGroupMembers(UserUtilImpl.java:1197) ... {noformat} What's curious about this, is I can't replicate it on a clean install, but the problem has occurred to a number of customers - they did appear to be using apache or other proxies to clean up the URL in each case. We've got a number of tickets about warning people when adding the anyone group here - I wonder if there's possibly now enough reason to prevent people from adding the anyone group to jira-system-admins at all? Is there even a use case for that permission? h3. Workaround Please refer to our [Error Creating New Ticket or Accessing Administration Section After JIRA Upgrade|https://confluence.atlassian.com/display/JIRAKB/Error+Creating+New+Ticket+or+Accessing+Administration+Section+After+JIRA+Upgrade] KB article for further information on how to fix this. h3. Suggested Fix Add an upgrade task to check for this, and if it exists remove those 'Anyone' permissions provided it does not restrict access to log into the instance. h3. Notes It is also possible this error may occur when performing an in-place upgrade from 3.3.1 to 4.4.5. This is not the recommended method, please use the XML method as per [Upgrading JIRA 3.x Data to JIRA 6.x|https://confluence.atlassian.com/display/JIRA/Upgrading+JIRA+3.x+Data+to+JIRA+6.x].

    Atlassian JIRA | 5 years ago | Chris LePetit [Atlassian]
    java.lang.IllegalArgumentException: entityNameToMatch argument cannot be null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    nie mozna usunac gildi

    GitHub | 2 years ago | x0dus
    org.bukkit.command.CommandException: Unhandled exception executing 'ga usun ZUO' in net.dzikoysk.funnyguilds.command.util.Performer(ga)
  5. 0

    An error occured with PermissionsEx!

    GitHub | 2 years ago | lalo5
    java.lang.IllegalArgumentException: Permissions being checked must not be null!

    5 unregistered visitors
    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.IllegalArgumentException

      entityNameToMatch argument cannot be null

      at org.apache.commons.lang.Validate.notNull()
    2. Commons Lang
      Validate.notNull
      1. org.apache.commons.lang.Validate.notNull(Validate.java:192)
      1 frame
    3. com.atlassian.crowd
      QueryBuilder$PartialMembershipQueryWithNameToMatch.returningAtMost
      1. com.atlassian.crowd.search.query.membership.MembershipQuery.<init>(MembershipQuery.java:26)
      2. com.atlassian.crowd.search.query.membership.UserMembersOfGroupQuery.<init>(UserMembersOfGroupQuery.java:11)
      3. com.atlassian.crowd.search.builder.QueryBuilder.createMembershipQuery(QueryBuilder.java:179)
      4. com.atlassian.crowd.search.builder.QueryBuilder$PartialMembershipQueryWithNameToMatch.returningAtMost(QueryBuilder.java:287)
      4 frames
    4. com.atlassian.jira
      UserUtilImpl.getGroupMembers
      1. com.atlassian.jira.user.util.UserUtilImpl.getGroupMembers(UserUtilImpl.java:1197)
      1 frame