java.lang.IllegalArgumentException: Illegal Capacity: -1

Atlassian JIRA | Renan Battaglin | 8 years 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

    If the LDAP Directory Connector *Use memberOf for group membership* is disabled, the problem does not happen. {code} 2009-08-05 13:24:06,738 http-8095-Processor25 DEBUG [integration.directory.connector.MicrosoftActiveDirectory] Iterating a search result size of: 999 2009-08-05 13:24:06,740 http-8095-Processor25 DEBUG [console.action.principal.ViewPrincipal] Illegal Capacity: -1 java.lang.IllegalArgumentException: Illegal Capacity: -1 at java.util.ArrayList.<init>(ArrayList.java:111) at com.atlassian.crowd.integration.directory.connector.RFC4519Directory.findGroupMembershipsOfUserViaMemberOf(RFC4519Directory.java:343) at com.atlassian.crowd.integration.directory.connector.RFC4519Directory.searchGroupRelationshipsWithGroupTypeSpecified(RFC4519Directory.java:291) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.searchGroupRelationships(SpringLDAPConnector.java:1173) at com.atlassian.crowd.integration.directory.cache.CachingLDAPDirectory.findGroupMembershipsOfUser(CachingLDAPDirectory.java:764) at com.atlassian.crowd.integration.directory.cache.CachingLDAPDirectory.searchGroupRelationships(CachingLDAPDirectory.java:649) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.searchDirectGroupRelationships(DirectoryManagerGeneric.java:634) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) {code}

    Atlassian JIRA | 8 years ago | Renan Battaglin
    java.lang.IllegalArgumentException: Illegal Capacity: -1
  2. 0

    If the LDAP Directory Connector *Use memberOf for group membership* is disabled, the problem does not happen. {code} 2009-08-05 13:24:06,738 http-8095-Processor25 DEBUG [integration.directory.connector.MicrosoftActiveDirectory] Iterating a search result size of: 999 2009-08-05 13:24:06,740 http-8095-Processor25 DEBUG [console.action.principal.ViewPrincipal] Illegal Capacity: -1 java.lang.IllegalArgumentException: Illegal Capacity: -1 at java.util.ArrayList.<init>(ArrayList.java:111) at com.atlassian.crowd.integration.directory.connector.RFC4519Directory.findGroupMembershipsOfUserViaMemberOf(RFC4519Directory.java:343) at com.atlassian.crowd.integration.directory.connector.RFC4519Directory.searchGroupRelationshipsWithGroupTypeSpecified(RFC4519Directory.java:291) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.searchGroupRelationships(SpringLDAPConnector.java:1173) at com.atlassian.crowd.integration.directory.cache.CachingLDAPDirectory.findGroupMembershipsOfUser(CachingLDAPDirectory.java:764) at com.atlassian.crowd.integration.directory.cache.CachingLDAPDirectory.searchGroupRelationships(CachingLDAPDirectory.java:649) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.searchDirectGroupRelationships(DirectoryManagerGeneric.java:634) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) {code}

    Atlassian JIRA | 8 years ago | Renan Battaglin
    java.lang.IllegalArgumentException: Illegal Capacity: -1
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Can weblogic client takes empty arrays being returned.

    Oracle Community | 10 years ago | 666705
    java.lang.IllegalArgumentException: Illegal Capacity: -1
  5. 0

    Can weblogic client takes empty arrays being returned.

    Oracle Community | 10 years ago | 843833
    java.lang.IllegalArgumentException: Illegal Capacity: -1

    1 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

      Illegal Capacity: -1

      at java.util.ArrayList.<init>()
    2. Java RT
      ArrayList.<init>
      1. java.util.ArrayList.<init>(ArrayList.java:111)
      1 frame
    3. com.atlassian.crowd
      DirectoryManagerGeneric.searchDirectGroupRelationships
      1. com.atlassian.crowd.integration.directory.connector.RFC4519Directory.findGroupMembershipsOfUserViaMemberOf(RFC4519Directory.java:343)
      2. com.atlassian.crowd.integration.directory.connector.RFC4519Directory.searchGroupRelationshipsWithGroupTypeSpecified(RFC4519Directory.java:291)
      3. com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.searchGroupRelationships(SpringLDAPConnector.java:1173)
      4. com.atlassian.crowd.integration.directory.cache.CachingLDAPDirectory.findGroupMembershipsOfUser(CachingLDAPDirectory.java:764)
      5. com.atlassian.crowd.integration.directory.cache.CachingLDAPDirectory.searchGroupRelationships(CachingLDAPDirectory.java:649)
      6. com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.searchDirectGroupRelationships(DirectoryManagerGeneric.java:634)
      6 frames
    4. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2 frames