This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "apply not implemented for PrimProcedure" while attempting to use JNDI


Valtteri Vuorikoski wrote:

>Nov 19 CVS source is giving the same error, unfortunately.
>
I tried your test case, after starting to the ldap server that comes
with RedHat 7.2.  I didn't get as far as you did:

Using ldap.scm containing the following:

(define env (make <java.util.Hashtable>))
(require <javax.naming.Context>)
(invoke env 'put INITIAL_CONTEXT_FACTORY 'com.sun.jndi.ldap.LdapCtxFactory)
(invoke env 'put PROVIDER_URL '|ldap://localhost:389|)
(define dctx (make <javax.naming.directory.InitialDirContext> env))
(define attr (make <javax.naming.directory.BasicAttributes> #t))
(invoke attr 'put (make <javax.naming.directory.BasicAttribute> 'uid 
"vuori"))

I did:

$ KAWALIB=. bin/kawa -f ~/ldap.scm  --
#|kawa:1|# (define answer (invoke dctx 'search '|ou=people, dc=magenta, 
dc=net| attr))
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such 
Object]; remaining name 'ou=people,dc=magenta, dc=net'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2761)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2682)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2488)
    at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1660)
    at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1583)
    at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1575)
    at 
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:347)
    at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:296)
    at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:280)
    at 
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:267)
    at 
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:210)
    at java.lang.reflect.Method.invoke(Native Method)
    at gnu.expr.PrimProcedure.applyV(PrimProcedure.java:142)
    at gnu.expr.GenericProc.applyN(GenericProc.java:75)
    at gnu.kawa.reflect.Invoke.applyN(Invoke.java:149)
    at gnu.kawa.reflect.Invoke.applyN(Invoke.java:49)
    at gnu.expr.ApplyExp.eval(ApplyExp.java:46)
    at gnu.expr.SetExp.eval(SetExp.java:88)
    at gnu.expr.Expression.eval(Expression.java:21)
    at gnu.expr.ModuleExp.evalModule(ModuleExp.java:182)
    at kawa.Shell.run(Shell.java:77)
    at kawa.Shell.run(Shell.java:32)
    at kawa.repl.main(repl.java:184)

I don't know ldap enough to go further.
    --Per


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]