• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[SOLVED]Re: javax.naming.NameNotFoundException: [LDAP: error code 32..]...BUT....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED]Re: javax.naming.NameNotFoundException: [LDAP: error code 32..]...BUT....


  • Subject: [SOLVED]Re: javax.naming.NameNotFoundException: [LDAP: error code 32..]...BUT....
  • From: Gustavo Adolfo Pizano <email@hidden>
  • Date: Thu, 7 May 2009 16:51:15 +0200

Hello, well I solved!, I putted on the URL in the EOModel Config ldap://localhost:389/0=xws
and now its working.

but this brings me a doubt, what if the tree is huge, I can't just start looking from the root, so there should be a way to specify in the code from where I want to search in the ldap tree.

Any clues

thanks a lot

Gustavo


On May 7, 2009, at 4:33 PM, Gustavo Adolfo Pizano wrote:

Hello
I was trying to get this work, but still nothing, I made the following to see what directory context I was, because it seems Im not positioned in the right place to makes search.

JNDIContext a = new JNDIContext(EOAdaptor.adaptorWithModel(EOModelGroup.defaultGroup().modelNamed("MyEOModel")));

System.out.println(a.initialDirContext());

and I get on screen from the println a null.... 

so I dunno if the problem is somewhere in this way, or Im just completely lost (my guess the second option).


Thanks for any help..

Gustavo



On May 7, 2009, at 2:21 PM, Gustavo Pizano wrote:

Hello, 
I reverse engineered the LDAP schema to EOModel, now I have to follwoing

an entity XWSContactsGroup, a XWSContact, and a XWSContactElement.

I made the following relationships, whiteout flattering,

 XWSContactsGroup >>    << XWSContact >>   <  XWSContactElement.

now, I want to fetch a specific XWSContacGroup dowing the follwoing


XWSContactsGroup cg = XWSContactsGroup.fetchRequiredXWSContactsGroup(ec, "cn","Contacts");

and this is the result 

com.webobjects.jndiadaptor.JNDIAdaptorException: Cannot search (&(objectClass=xwsContactsGroup)(cn=Contacts)): javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name ''


Im not LDAP  expert, but my boss kinda told me that the & sign shouldn't be there, but I don't have control over that & generation,... so... 

I guess there should be another to make the fetch.

Any ideas?


Thanks 

Gus



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object] when fetching (From: Gustavo Pizano <email@hidden>)
 >Re: javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object] when fetching (From: Gustavo Adolfo Pizano <email@hidden>)

  • Prev by Date: Re: javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object] when fetching
  • Next by Date: Re: No snapshot for gid _EOIntegralKeyGlobalID
  • Previous by thread: Re: javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object] when fetching
  • Next by thread: can't create WOComponent
  • Index(es):
    • Date
    • Thread