Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
arjunwadeswati
Posts: 20
Registered: ‎03-01-2011
My Device: --
Accepted Solution

SocketException

Hi,

 

Can anyone explain me "Connection Reset by Peer" error

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: SocketException

What statement is throwing this Exception?   Were you in a connection at the time?

Developer
YamilBracho
Posts: 713
Registered: ‎05-31-2010
My Device: 8520

Re: SocketException

It could be : 1) Read error (The server does not get the data sent by client 2) Write Error (the client does not get data sent by the server), 3) Ping Timeout (It not possible to resolve the address of the peers), 4) Broken pipe (the server receives data but when it send the answer does not find a way). 

Please give us more details...

Contributor
arjunwadeswati
Posts: 20
Registered: ‎03-01-2011
My Device: --

Re: SocketException

whenever i am reading data from dataInputStream it throws an exception as i am getting 0 value as a response

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: SocketException

So your Server processing is not sending you anything back?

Contributor
arjunwadeswati
Posts: 20
Registered: ‎03-01-2011
My Device: --

Re: SocketException

Whenever i am connection socket through GPRS or Wi-Fi it works properly means sending and receiving of bytes is proper but by using BIS connection type i found it difficult that resonse from the server is 0