Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Plain Socket pool and reuse

843811Apr 12 2002 — edited Aug 24 2003
I am trying to create a pool of sockets and reuse them without having to recreate everytime. But I have problems re-using the sockets. The first read and recv are fine but when I re-use the socket, a null-pointer is thrown while invoking getOutputStream() on the socket object(though the socket does not qualify for null condition. I am zapped. After every read and recv, I am closing the streams.
Please let me know if there is something that I am missing here. If reqd I can cut paste the code here.

Thanks for your help
KR
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 21 2003
Added on Apr 12 2002
5 comments
318 views