[xSocket-develop] Problem when implementing IConnectionScoped
Status: Inactive
Brought to you by:
grro
|
From: Петър И. <pet...@re...> - 2010-01-25 11:14:26
|
Hello,
I have problem when implementing IConnectionScoped.
I have this class:
public class ServerEchoHandler
implements IDataHandler,IDisconnectHandler,IConnectHandler,
IConnectionScoped
and this one:
public class ClientSessionInfo
implements Cloneable
ClientSessionInfo sessionData;
in ServerEchoHandler i got this method :
public Object clone() throws CloneNotSupportedException
{
ServerEchoHandler copy = (ServerEchoHandler ) super.clone();
copy.sessionData = (ClientSessionInfo )this.sessionData.clone();
return copy;
}
in ClientSessionInfo :
public Object clone()
{
Object clone = null;
try
{
clone = super.clone();
}
catch(CloneNotSupportedException e)
{
// should never happen
}
return clone;
}
When I start the client and try to connect to my server,the server
throws this : "WARNING: error occured while accepting connection"
and the connection is not accepted from the server.
When I remove the implementation of IConnectionScoped everything works
fine-the server accept connection from my client.
Is there anyone that can help me.Thanks!
|