After decompiling the class Strings I was able to see that this API tries to lower-case everything. The TO_LOWER_CASE array (char []) does not have any chinese/japanese character that is why the ArrayIndexOutOfBoundsException happens... The question is: What now? should I override those methods? Is there another way?
Thanks On Thu, Jan 9, 2014 at 6:40 PM, Flavio Mattos <[email protected]>wrote: > hi guys... > > I am facing an java.lang.ArrayIndexOutOfBoundsException: 33539 > when I try to call the constructor to create an entry.. > > Entry entry = new > DefaultEntry("uid=netbeans,ou=customer_service,ou=employees,dc=example,dc=com", > "cn: netbeans", > "sn: netbeans", > "givenName: 范", > "mail: [email protected], > "userPassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=", > "objectClass: inetOrgPerson", > "objectClass: organizationalPerson", > "objectClass: person", > "objectClass: top" > ); > > Does anybody have any idea? > I have tried to use Base64.encodeBase64String("范".getBytes()); > It gives me something like 6IyD, which is correct, but when I look in the > LDAP studio it still like 6IyD > > > > Thanks >
