Some more information : I get the same thing with the emulator.
The exception happens on a : socketChannel.write(output). My code previously opens the socketChannel with the InetSocketAddress of my server, allocates my buffers and serializes the data. Not sure it really helps, but here is the exception : 04-26 11:43:30.799: WARN/System.err(650): java.net.SocketException: Broken pipe 04-26 11:43:30.799: WARN/System.err(650): at org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native Method) 04-26 11:43:30.809: WARN/System.err(650): at org.apache.harmony.luni.platform.OSNetworkSystem.write(OSNetworkSystem.java: 804) 04-26 11:43:30.819: WARN/System.err(650): at org.apache.harmony.nio.internal.SocketChannelImpl.writeImpl(SocketChannelImpl.java: 564) 04-26 11:43:30.819: WARN/System.err(650): at org.apache.harmony.nio.internal.SocketChannelImpl.write(SocketChannelImpl.java: 491) On Apr 22, 8:23 pm, moju27 <[email protected]> wrote: > Hello :) > > I'm currently writing an application to communicate with my server app > which is on a PC on the LAN. I'm using a SocketChannel and it causes > an IO exception (brokenpipe). The weird and really problematic part > is that this exception only occurs onCupcake!!! > > To give more details, the exception happens when I'm writing on the > socket channel. The socket channel says that it's connected / bound, > everything seems to be correct. Plus I see my client on the server > side. > By the way, I use a non blocking socket. > > So, I would be very happy if anyone had a clue regarding this ... I > couldn't find any help anywhere else. > > Thanks, > > Morgane > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

