You need to remove the spring-ldap-1.3.1.RELEASE-all.jar! That is a very old library.
The error you are receiving has to do with Java generics, and I suspect the type parameters get stripped of during compilation.
So it seems like your app is trying to implement the interface from the 1.3.1 release:
public interface AttributesMapper {
/**
* Map Attributes to an object. The supplied attributes are the attributes
* from a single SearchResult.
*
* @param attributes
* attributes from a SearchResult.
* @return an object built from the attributes.
* @throws NamingException
* if any error occurs mapping the attributes
*/
Object mapFromAttributes(Attributes attributes)
throws NamingException;
}
Instead of the 2.3.1 release:
public interface AttributesMapper<T> {
/**
* Map Attributes to an object. The supplied attributes are the attributes
* from a single SearchResult.
*
* @param attributes
* attributes from a SearchResult.
* @return an object built from the attributes.
* @throws NamingException
* if any error occurs mapping the attributes
*/
T mapFromAttributes(Attributes attributes)
throws NamingException;
}
Hi Ruan,
I can confirm that the spring-ldap-core-2.0.1.RELEASE.jar has been removed and I can see the spring-ldap-core-2.3.1.RELEASE.jar, see the screenshot below: