Author Topic: GENJI and Desktop application  (Read 4928 times)

Offline persmen

  • Newbie
  • *
  • Posts: 18
  • Karma: 2
  • Kemal KUCUKTASCI
GENJI and Desktop application
« 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.


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: GENJI and Desktop application
« Reply #1 on: April 25, 2008, 04:02:03 PM »
Are you sure TServer port is 3000? Check it on CME

Offline persmen

  • Newbie
  • *
  • Posts: 18
  • Karma: 2
  • Kemal KUCUKTASCI
Re: GENJI and Desktop application
« Reply #2 on: May 28, 2008, 06:37:47 AM »
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.

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Re: GENJI and Desktop application
« Reply #3 on: June 27, 2008, 07:34:51 AM »
Uhm, why would you want to use SWING?