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
Genesys.JTele.TeleLineexception: Cannot open socket: Connection Reset
I think this must be simple. But i dont know what is the problem. Can anybody help.