java.net.SocketException: Connection reset]; remaining name '']


Samebug tips2

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.


7 months ago
Expert tip

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3


7 months ago
Expert tip

Solutions on the web1

Solution icon of googlegroups
via Google Groups by Misagh, 1 year ago
Connection reset]; remaining name '']

Stack trace

java.net.SocketException: Connection
 reset]; remaining name '']
	at org.ldaptive.provider.ProviderUtils.throwOperationException(ProviderUtils.java:67)
	at org.ldaptive.provider.jndi.JndiConnection.processNamingException(JndiConnection.java:756)
	at org.ldaptive.provider.jndi.JndiConnection$JndiSearchIterator.initialize(JndiConnection.java:888)
	at org.ldaptive.provider.jndi.JndiConnection.search(JndiConnection.java:533)
	at org.ldaptive.SearchOperation.executeSearch(SearchOperation.java:119)
	at org.ldaptive.SearchOperation.invoke(SearchOperation.java:101)
	at org.ldaptive.SearchOperation.invoke(SearchOperation.java:28)
	at org.ldaptive.AbstractOperation.execute(AbstractOperation.java:142)
	at org.ldaptive.pool.SearchValidator.validate(SearchValidator.java:97)
	at org.ldaptive.pool.SearchValidator.validate(SearchValidator.java:34)
	at org.ldaptive.pool.AbstractPool.validate(AbstractPool.java:223)
	at org.ldaptive.pool.AbstractConnectionPool.validate(AbstractConnectionPool.java:805)
	at org.ldaptive.pool.AbstractConnectionPool$3.run(AbstractConnectionPool.java:308)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: javax.naming.CommunicationException: Connection reset [Root
 exception is java.net.SocketException: Connection reset]; remaining name ''
	at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:2002)
	at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1844)
	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1769)
	at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:392)
	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:358)
	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:341)
	at org.ldaptive.provider.jndi.JndiConnection$JndiSearchIterator.search(JndiConnection.java:969)
	at org.ldaptive.provider.jndi.JndiConnection$JndiSearchIterator.initialize(JndiConnection.java:882)
	... 17 more
Caused by: java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:189)
	at java.net.SocketInputStream.read(SocketInputStream.java:121)
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954)
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:911)
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
	at com.sun.jndi.ldap.Connection.run(Connection.java:848)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago
3 times, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
22 times, 8 months ago
2 times, 1 year ago
465 more bugmates