Socket Connection : Class Cast Exception
Hai everybody,
I worked with a MIDP program that have client & server communication, I have wrote only this much on theServerSide:-
UUID x=new UUID(0x0003);
String uuid=x.toString();
StreamConnectionNotifier scn=(StreamConnectionNotifier)Connector.open("btspp://localhost:"+uuid+";name=SPPEx");
StreamConnection sc=(StreamConnection)scn.acceptAndOpen();
si.setText("Client Connected");
On theClient Side :-
StreamConnection sc=(StreamConnection)Connector.open("btspp://localhost:5");
si.setText("Connection Established With Server");
But when I am trying to connect with client to server , on the client side Iam getting theError :-
java.lang.ClassCastException
please any body can help me
Thanks & Regards
Sulfikkar

