Genesys CTI User Forum
Genesys CTI User Forum => Genesys-related Development => Topic started by: persmen on April 25, 2008, 03:34:50 PM
-
Hi everybody.
i have sample code like next;
public void ConnectionTest(){
TeleServerContext cnt;
TeleLine tl;
try{
// TServer IP and Port
cnt=new TeleServerContext(new String("10.51.2.170"), 3000);
}
catch(TeleServerContextException e){
javax.swing.JOptionPane.showMessageDialog(null, e.toString());
return;
}
try{
tl=new TeleLine(cnt);
tl.setAppName("FONOBANK");
tl.setAppPasswd(null);
tl.open();
}
// Error description Cannot open socket
catch(TeleLineException e){
javax.swing.JOptionPane.showMessageDialog(null, e.toString()+"\n"+e.getStackTrace().toString());
return;
}
javax.swing.JOptionPane.showMessageDialog(null, "Server connected");
}
so im using Netbeans for IDE and Java 1.6.0 for JDK
In tl.Open() line application wait about 1 minute and throw and exception. Exception Message is
[u][b]Genesys.JTele.TeleLineexception: Cannot open socket: Connection Reset[/b][/u]
I think this must be simple. But i dont know what is the problem. Can anybody help.
-
Are you sure TServer port is 3000? Check it on CME
-
Ok. I found the problem. (All ports and definitions ok by the way.)
I'm not looking too detailed but problem is in new Java Desktop Apllication framework. :o
Now im using standart swing framework and problem is gone.
For your information.
-
Uhm, why would you want to use SWING?