This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JNDI: InvalidNameException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI: InvalidNameException" Watch "JNDI: InvalidNameException" New topic
Author

JNDI: InvalidNameException

Nuno Miguel Santos
Greenhorn

Joined: Nov 01, 2011
Posts: 10
I'm always getting an error when getting a name from my active directory server.

The error is the following:

javax.naming.InvalidNameException: Invalid name: "CN=»OGMA Serviço LAN/WAN",cn=Recipients,cn=Users,,dc=intra

After googling a bit, I found the following information

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4307193
http://docs.oracle.com/javase/jndi/tutorial/beyond/names/syntax.html

As you can see, I tried both with the parser approach and the composite name approach, but the error continues!

What am I missing?

Here's my code that does those operations:



Regards,
Nuno.
 
jQuery in Action, 2nd edition
 
subject: JNDI: InvalidNameException
 
Similar Threads
not able to execute the ejb plz help!
LDAP Authentication
ServiceUnavailable Exception
javax.naming.NoInitialContextException although jndi.properties in classpath