ClassCastException with Sun/Spring LDAP classes in a plugin

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 2.3.4
    • Affects Version/s: 2.2.2
    • Component/s: 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.

            Assignee:
            joe
            Reporter:
            joe
            Votes:
            2 Vote for this issue
            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