Announcement Announcement Module
Collapse
No announcement yet.
CommunicationException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • CommunicationException

    I get this error while searching the LDAP. (The occurance is rare though)
    My users are complaing about this.

    Code:
    [08-22-07:16:14:37- (WARN )] org.springframework.ws.soap.server.SoapMessageDispatcher  : Endpoint invocation resulted in excep
    tion - responding with SOAP Fault
    org.springframework.ldap.CommunicationException: Request: 297 cancelled; nested exception is javax.naming.CommunicationExcepti
    on: Request: 297 cancelled; remaining name '/'
    Caused by:
    javax.naming.CommunicationException: Request: 297 cancelled; remaining name '/'
            at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60)
            at com.sun.jndi.ldap.Connection.readReply(Connection.java:405)
            at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:611)
            at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:534)
            at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1944)
            at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
            at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
            at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
            at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
            at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:257)
            at org.springframework.ldap.core.LdapTemplate$3.executeSearch(LdapTemplate.java:200)
            at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:263)
            at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:204)
            at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:592)
            at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:500)
            at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:426)
            at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:449)
            at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:468)
            at com.mcgrawhill.hrtech.directory.dao.SpringLdapDaoImpl.searchLDAP(SpringLdapDaoImpl.java:101)
            at com.mcgrawhill.hrtech.directory.service.DirectoryServiceBasicSearchRequestImpl.searchDirectory(DirectoryServiceBasi
    cSearchRequestImpl.java:40)
            at com.mcgrawhill.hrtech.directory.endpoint.DirectoryServiceBasicRequestEndpoint.invokeInternal(DirectoryServiceBasicR
    equestEndpoint.java:104)
            at org.springframework.ws.server.endpoint.AbstractDom4jPayloadEndpoint.invoke(AbstractDom4jPayloadEndpoint.java:47)
            at org.springframework.ws.server.endpoint.PayloadEndpointAdapter.invoke(PayloadEndpointAdapter.java:43)
            at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:205)
            at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:166)
            at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handle(WebServiceMessageReceiverObj
    ectSupport.java:78)
            at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandl
    erAdapter.java:60)
     at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:125)
            at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:461)
            at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:426)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Thanks in advance
    Vignesh

  • #2
    Sorry missed out the config.

    Code:
    	<bean id="contextSource"
    		class="org.springframework.ldap.core.support.LdapContextSource">
    		<property name="urls" value="${ldap_url.value}" />
    		<property name="userDn" value="${ldap_userDn.value}" />
    		<property name="password" value="${ldap_password.value}" />
    		<property name="base" value="${ldap_base.value}" />
    		<property name="dirObjectFactory"
    			value="org.springframework.ldap.core.support.DefaultDirObjectFactory" />
    	</bean>
    
    	<bean id="ldapTemplate"
    		class="org.springframework.ldap.core.LdapTemplate">
    		<constructor-arg ref="contextSource" />
    	</bean>

    Comment

    Working...
    X