Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2414

ClassCastException with Sun/Spring LDAP classes in a plugin

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.3.4
    • 2.2.2
    • None

      Sun and Spring LDAP classes are exported inconsistently to plugins, causing:

      java.lang.ClassCastException: com.sun.jndi.ldap.LdapCtx cannot be cast to org.springframework.ldap.core.DirContextAdapter. 
      

      on a call to findUserWithAttributesByName. This can be worked around by passing:

      -Datlassian.org.osgi.framework.bootdelegation=sun.*, com.sun.*, org.springframework.ldap.core.*
      

      A more stable fix would probably be to tweak the exported inclusions/exclusions in components/crowd-server/src/main/resources/applicationContext-CrowdPlugins.xml.

            [CWD-2414] ClassCastException with Sun/Spring LDAP classes in a plugin

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1509959 ] New: JAC Bug Workflow v3 [ 3364865 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            vkharisma made changes -
            Link New: This issue is related to JRACLOUD-25757 [ JRACLOUD-25757 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1392585 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1509959 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 288197 ] New: Simplified Crowd Development Workflow v2 [ 1392585 ]
            Mark Lassau (Inactive) made changes -
            Link New: This issue is related to JRA-25757 [ JRA-25757 ]
            joe made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Technical Review [ 10028 ] New: Resolved [ 5 ]

            joe added a comment -

            Crowd now sets the context ClassLoader so JNDI can load Spring's DefaultDirObjectFactory.

            joe added a comment - Crowd now sets the context ClassLoader so JNDI can load Spring's DefaultDirObjectFactory .
            joe made changes -
            Worklog Id Original: 100008 [ 100008 ]
            Remaining Estimate Original: 12h [ 43200 ] New: 5h [ 18000 ]
            Time Spent New: 7h [ 25200 ]
            joe logged work - 27/Sep/2011 3:19 AM
            • Time Spent:
              7h
               
              <No comment>
            joe made changes -
            Status Original: In Progress [ 3 ] New: Technical Review [ 10028 ]

              jwalton joe
              jwalton joe
              Affected customers:
              2 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 12h
                  12h
                  Remaining:
                  Time Spent - 7h Remaining Estimate - 5h
                  5h
                  Logged:
                  Time Spent - 7h Remaining Estimate - 5h
                  7h