java - Partner not reached error in JCO.destination -


i'm having problem establishing connection sap in java program. i'm following examples come in jco download error:

    com.sap.conn.jco.jcoexception: (102) rfc_error_communication: connect sap gateway failed     connection parameters: type=a dest=abap_as_without_pool ashost=xx.xx.x.xx sysnr=00 pcs=1      location    cpic (tcp/ip) on local host unicode     error       partner 'xx.xx.x.xx:3300' not reached      time        wed jul 08 08:18:28 2015     release     711     component   ni (network interface)     version     39     rc          -10     module      nixxi.cpp     line        3147     detail      nipconnect2: xx.xx.x.xx:3300     system call connect     errno       10060     errno text  wsaetimedout: connection timed out     counter     2 

i don't know can be, i'm writing down correct connection properties (ashost,user,passwd,sysnr,etc). has else has had problem this?

this connection code:

    properties connectproperties = new properties();     connectproperties.setproperty(destinationdataprovider.jco_ashost, "xx.xx.x.xx");     connectproperties.setproperty(destinationdataprovider.jco_sysnr,  "00");     connectproperties.setproperty(destinationdataprovider.jco_client, "020");     connectproperties.setproperty(destinationdataprovider.jco_user,   "xxxxxx");     connectproperties.setproperty(destinationdataprovider.jco_passwd, "xxxxxxx");     connectproperties.setproperty(destinationdataprovider.jco_lang,   "en");     createdatafile(abap_as, "jcodestination", connectproperties); 

after instantiate object properties , call method connect written this:

    jcodestination destination = jcodestinationmanager.getdestination(abap_as);     system.out.println("attributes:");     system.out.println(destination.getattributes());     system.out.println(); 

i'm working on java, using netbeans, sapjco3.jar added libraries. have dll file comes?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -