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

ClassCastException with Sun/Spring LDAP classes in a plugin

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              jwalton joe
              jwalton joe
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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