javax.naming.CommunicationException: connection closed [Root exception is java.io.IOException: connection closed]; remaining name ''

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Spring JIRA by Timothy, 1 year ago
connection closed [Root exception is java.io.IOException: connection closed]; remaining name ''
via Spring JIRA by Timothy, 1 year ago
connection closed [Root exception is java.io.IOException: connection closed]; remaining name ''
via Oracle Community by 666705, 1 year ago
connection closed [Root exception is java.io.IOException: connection closed]; remaining name 'dc=mydomain'
via Stack Overflow by Anand
, 1 year ago
connection closed [Root exception is java.io.IOException: connection closed]; remaining name 'uid=foo,ou=People,dc=example,dc=com'
javax.naming.CommunicationException: connection closed [Root exception is java.io.IOException: connection closed]; remaining name ''
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1973)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1818)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1743)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:328)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:313)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:238)
at org.springframework.ldap.pool.validation.DefaultDirContextValidator.validateDirContext(DefaultDirContextValidator.java:154)
at org.springframework.ldap.pool.factory.PoolingContextSource.getContext(PoolingContextSource.java:394)
at org.springframework.ldap.pool.factory.PoolingContextSource.getReadOnlyContext(PoolingContextSource.java:374)
at org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:770)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.