Connection reset by peer java.net.SocketException: Transport endpoint is not connected
I am using NIO threads in which ServerSocketChannel will be opened and client port will be bind.But when we tried to read the data from Socket chanel then below mention exception was displayed.It will be greatful if anyone provides the solution.

Connection reset by peer java.net.SocketException: Transport endpoint is not connected
	at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
	at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:669)
	at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:386)
	at iyp.trncomms.ConnRecordWriter.checkShutDown(ConnRecordWriter.java:131)
	at iyp.trncomms.ConnRecordWriter.continueWriting(ConnRecordWriter.java:214)
	at iyp.trncomms.ConnRecordWriter.retry(ConnRecordWriter.java:101)
	at iyp.trncomms.ConnRecordWriter.shutDown(ConnRecordWriter.java:92)
	at iyp.trncomms.ConnRecord$WorkingState.toOnHoldState(ConnRecord.java:1224)
	at iyp.trncomms.ConnRecord$WorkingState.onInputError(ConnRecord.java:1152)
	at iyp.trncomms.ConnRecord.read(ConnRecord.java:124)
	at iyp.trncomms.NIO.run(NIO.java:137)


Thanks,
Sandhya
Connection reset by peer java.net.SocketException: Transport endpoint is not connected
===

I am using NIO threads in which ServerSocketChannel will be opened and client port will be bind.But when we tried to read the data from Socket chanel then below mention exception was displayed.It will be greatful if anyone provides the solution.

Connection reset by peer java.net.SocketException: Transport endpoint is not connected
	at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
	at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:669)
	at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:386)
	at iyp.trncomms.ConnRecordWriter.checkShutDown(ConnRecordWriter.java:131)
	at iyp.trncomms.ConnRecordWriter.continueWriting(ConnRecordWriter.java:214)
	at iyp.trncomms.ConnRecordWriter.retry(ConnRecordWriter.java:101)
	at iyp.trncomms.ConnRecordWriter.shutDown(ConnRecordWriter.java:92)
	at iyp.trncomms.ConnRecord$WorkingState.toOnHoldState(ConnRecord.java:1224)
	at iyp.trncomms.ConnRecord$WorkingState.onInputError(ConnRecord.java:1152)
	at iyp.trncomms.ConnRecord.read(ConnRecord.java:124)
	at iyp.trncomms.NIO.run(NIO.java:137)


Thanks,
Sandhya