Hi Ajay, if you want to have dynamic values in your endpoint URI's you need to use `toD`[1] instead of `to`,
zoran [1] https://camel.apache.org/message-endpoint.html#MessageEndpoint-DynamicTo On Wed, May 17, 2017 at 11:08 AM, Ajay <ajayjku...@gmail.com> wrote: > Hello, I`m newbie in Camel and I`m trying to create an LDAP connection, > > <to > uri="ldap:ldapserver?base=EPName=${in.header.name},applicationName=apk"/> > > *Unfortunately* I got this exception that > > > [31m [0;39m[05/17/17 12:59:13:350] DefaultErrorHandle [1;31mE [0;39m > [SAPCRequest ] [ [36m570763373-4:19:1:1:1 [0;39m]- Failed > delivery for (MessageId: > ID:promius111.tac.co.th-46302-1494570763373-4:19:1:1:1 on ExchangeId: > ID-promius111-tac-co-th-59072-1495000037808-0-1). Exhausted after delivery > attempt: 1 caught: javax.naming.NameNotFoundException: [LDAP: error code 32 > - No Such Object]; remaining name > 'EPName=${in.header.name},applicationName=apk' > > [31mjavax.naming.NameNotFoundException: [LDAP: error code 32 - No Such > Object] > at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3161) > ~[na:1.8.0_121] > at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3082) > ~[na:1.8.0_121] > at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2888) > ~[na:1.8.0_121] > at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1846) > ~[na:1.8.0_121] > at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1769) > ~[na:1.8.0_121] > at > com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:392) > ~[na:1.8.0_121] > > I think it is due to passing one param value as ${in.header.name}. Can > anyone help me to solve this. > > Thank in advance, > Ajay > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/LDAP-search-tp5799687.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Zoran Regvart