minakari
Oct 5th, 2007, 02:15 AM
I am using springldap framework in my application,but there is a problem I can't cast it to String what can I do?
String userPassword = (String) attributes.get("userPassword").get();
if (userPassword != null)
contactDTO.setUserPassword(userPassword);
and the ERROR is :
java.lang.ClassCastException
String userPassword = (String) attributes.get("userPassword").get();
if (userPassword != null)
contactDTO.setUserPassword(userPassword);
and the ERROR is :
java.lang.ClassCastException