Re: [xSocket-develop] ExtendedClosedChannelException: could not write. channel is close or not init
Status: Inactive
Brought to you by:
grro
|
From: Gregor R. <gre...@gm...> - 2010-03-23 13:23:32
|
Hi Damien, would you please send some code snippets regarding to this issue or better a JUnit test ;-) Gregor ----- Original Message ----- From: Damien DE SAINT LAURENT Sent: 03/23/10 10:52 AM To: xso...@li... Subject: [xSocket-develop] ExtendedClosedChannelException: could not write. channel is close or not initialized Hi , I would like to use a non blocking client ( I use constructor NonBlockingConnection(host, port) + setHandler ( my Handler that implements IDataHandler and IConnectHandler) but I get this exception org.xsocket.connection.ExtendedClosedChannelException: could not write. channel is close or not initialized at org.xsocket.connection.AbstractNonBlockingStream.ensureStreamIsOpenAndWritable(AbstractNonBlockingStream.java:1539) at org.xsocket.connection.AbstractNonBlockingStream.write(AbstractNonBlockingStream.java:1056) at org.xsocket.connection.AbstractNonBlockingStream.write(AbstractNonBlockingStream.java:1041) at org.xsocket.connection.SynchronizedNonBlockingConnection.write(SynchronizedNonBlockingConnection.java:552) when trying to write a String value on the non blocking connection What did I miss ? Thanks Damien |