0 Replies Latest reply: Dec 27, 2011 1:34 AM by kaja.mohideen RSS

    DirectoryContext.search with WildCard "*" Fails in 64 Bit JRE

    kaja.mohideen
      Hi all,

      I'm using DirectoryContext.search with wildcard "*" filter. it works fine in 32 Bit JRE, but throws the following exception when I run the same in Solaris 64 Bit JRE.

      Exception in thread "main" javax.naming.directory.InvalidSearchFilterException: invalid attribute description; remaining name 'ou=People,dc=mydomain,dc=com'
      at com.sun.jndi.ldap.Filter.encodeSimpleFilter(Unknown Source)
      at com.sun.jndi.ldap.Filter.encodeFilter(Unknown Source)
      at com.sun.jndi.ldap.Filter.encodeFilterList(Unknown Source)
      at com.sun.jndi.ldap.Filter.encodeComplexFilter(Unknown Source)
      at com.sun.jndi.ldap.Filter.encodeFilter(Unknown Source)
      at com.sun.jndi.ldap.Filter.encodeFilterString(Unknown Source)
      at com.sun.jndi.ldap.LdapClient.search(Unknown Source)
      at com.sun.jndi.ldap.LdapCtx.doSearch(Unknown Source)
      at com.sun.jndi.ldap.LdapCtx.searchAux(Unknown Source)
      at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)
      at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(Unknown Source)
      at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)
      at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)
      at javax.naming.directory.InitialDirContext.search(Unknown Source)

      Please help.

      Thanks in advance,

      Regards,
      Kaja