SAP 8.8 Add-On Connection Timed Out....

Hi Experts,
I am new to SAP 8.8.I Created a Customized Add-On by using  B1DESetup_2.1 Specifically give for the SAP 8.8.  I Installed the AddOn in the Same PC(Machine) where i Developed the Customization. It Installs fine...But when i Start the Add-On it Showing Add-On Connection TimeOut Message...(But my Code Works fine with out the AddOn Identifier....)
Thing that i need to Share....
1) I Doesnt give any Add-On Identifier at the time of connecting with the UI....
2) Do we need any Add-On Identifier in before connecting to the UI API....
//SboGuiApi.AddonIdentifier = "";
3) I need a claritiy that in the 2007B/2005B we created the Add-On but we doest added any Addon Identifier....at that time addon Works Fine...
4) How can i Get the Add-On Identifier...(Should i need to get it from the SAP)
5)Because of not Giving the Addon Identifier...did i getting the Add-On Connection Timed Out....while starting the Add-On...
Thanks in Advance,
MadhuSudhana Rao.G

Hi,
Please review the SAP Note 912572 which explains in what cases this error you reported occurs and how to solve the issue.
Wish it helps you.
Best regards,
Lucy Shen

Similar Messages

  • When starting the Add-on: Connection timed out issue

    When starting the Add-on: Connection timed out issue
    Hi,
    We have a client in SAP 2005 PL 44.
    I built the add-on for them using simple installer wizard ( I tried advanced set-up also).
    When starting the add-on, I get the message 'Connection Timed Out'.
    Add-on status is failed.
    But the add-on is actually connected. i.e, The functionality associated with the add-on is working fine.
    I had SAP 2007 before and un/reinstalled SAP 2005 in order to connect with this client.
    I had built the same add-on in a similar way for the same client for lot many times in the past, but I never got this issue.
    I tried the following:
    1) Delete SM_OBS_DLL and un/reinstall DI API
    2) un/reinstall B1DE
    Always I'm getting this error.
    Please let me know your inputs.
    Thanks.
    Geetha

    Hi Geetha,
    The timeout issue has been discussed quite a bit already on this forum. Please do a search or look at these threads:
    Timed Out Error with ADDON
    Addon Connection Timed out
    Regards
    Aravind

  • 2004 Registering Add On Connection Timed Out

    Hi I am having a bit of trouble getting an addon to register and load successfully in SBO 2004...
    I can get the Add On to Install properly, however when I load it, I get the error :
    Add-on connection timed out
    This occurs even though the add on has successfully loaded in the background and is running.  In the Add On Manager the status of the add on is set to Failed...
    I tried setting the AddonIdentifier string before connecting in my code using the Add-on Identifier Generator (Development and Implementation strings but these did not help)
    The Helloworld sample was a good help getting thus far, but even when try to install that as an add it disconnects straight away.
    Any help much appreciated!

    Hi Frank,
    I think the problem was the fact that I was hardcoding the connection string. After I changed it to accept it through the command arguments that the SAP application passes in it seems to connect fine - below is the procedure that I use to connect, I have left the commented lines in to show you how i was trying to connect.  I am still unsure as to when to use the AddonIdentifier property however.
    I have the add-on working 85% well now, but have posted again at SAP Business One SDK any input on this post would be very appreciated!
    Thanks,
    Daniel
              private bool SingleSignOn()
                   SAPbouiCOM.SboGuiApi objGui = new SAPbouiCOM.SboGuiApi();
                   objCompany = new SAPbobsCOM.Company();
                   string strCookie;
                   string strConnection;
                   long lngConnectResult;
                   try
                        //objGui.AddonIdentifier = "4CC8B8ACE0273A61489738C94047855DE8768CDD37F64D4F11E82759A542BD515D5A6E4F50A19B939FBB0FA844FA35C7B604E771";
                        //objGui.Connect("0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056");
                        objGui.Connect(Environment.GetCommandLineArgs().GetValue(1).ToString());
                        objApplication = objGui.GetApplication(-1);
                        strCookie = objCompany.GetContextCookie();
                        strConnection = objApplication.Company.GetConnectionContext(strCookie);
                        if(objCompany.Connected)
                             objCompany.Disconnect();
                        lngConnectResult = objCompany.SetSboLoginContext(strConnection);
                        if(lngConnectResult != 0)
                             System.Windows.Forms.MessageBox.Show("Connection failed, make sure SAP Business One is running and you are logged into a Company");
                             return false;
                        lngConnectResult = objCompany.Connect();
                   catch
                        System.Windows.Forms.MessageBox.Show("Connection failed, make sure SAP Business One is running and you are logged into a Company");
                        return false;
                   return true;

  • Add on connection timed out

    what is the meaning of Add on connection timed out error and how to solve this error?
    Edited by: Neetu Dhami on May 30, 2008 5:36 PM

    Dear
    Please review Note 912572 which explains in what cases
    this error you reported occurs and how to solve the issue.
    please update the Connection String in your addon
    code as explained in the  Note and test the connection again.
    if this does not help, please check if the issue occurs on particular workstation or all. and if the error occurs, try again, will the issue gone?
    Best Regards,
    xiaodan an
    sap business one forum team

  • SP01: Add-on connection timed out.

    I have upgraded an existing add-on to SP01. It runs fine in development mode and it installs correctly using and installer and Add-on Administration.
    When it tries to execute in production mode it gives the error: "Add-on connection timed out" after only about 12 seconds.
    I have checked the sapbobscom2005.dll and it is the correct version and special build.
    Any suggestions on how to resolve this are greatly appreciated.
    Mel

    Hi Mel,
    This behavior is not new in SP01 to my best knowledge!
    I remember having found the same behavior back in 2004...
    What you need to do is to first connect to UI API + afterwards eventually do some more initializations!
    HTH,
    Frank

  • Add-on connection timed out Error

    Hi all,
          I have created an add on following sdk help. (ie; a blanket project). The add - on installs properly but while runnig it gives connection timed out error. I have found a lot of similar threads in the form. but all of them uses B1DE. And the B1DE is not getting installed properly in my system . the installation of B1DE completes sucessfully but i dont find any SAP templates in my Visual studio 2005. I suppose its a B1DE version problem since while installing it is asking for vsual basic .net 2003 path where as I have oly VS 2005. From where do I get B1DE versionfor VS 2005 ?
    Regards,
    Priya

    Priya,
    You download B1DE from the same area as you download the B1DE for VS 2003.
    https://www.sdn.sap.com/irj/sdn/businessone?rid=/webcontent/uuid/a175fb62-0c01-0010-a8b5-fa58a13b1cf7 [original link is broken]
    You need to download B1DE for VS 2005.
    Eddy

  • Error: Network Connection Timed Out

    I am beyond ****** off at the moment. My iTunes was working perfectly until two weeks ago, and now it insists my Network Connection Timed Out when I try to access the store or update podcasts.
    It can't be my internet connection, because as you can see, I'm able to access the internet. For some reason it's this specific copy of iTunes (7.5), because the iT7 downstairs works perfectly. Of course, since Apple are so fecking stingy, I can't add a few files from there without wiping everything off my iPod.
    So here's the run-down:
    I'm using a Dell Inspiron 8600, Windows XP, browsing with Firefox and attempting to load the latest podcasts onto my iPod Shuffle. I don't give a toss about downloading songs, I just want to update my podcasts without having to search the net for the source file.
    I ran the Network Diagnostics and it insists the Conneciton to iTunes failed, suggesting I adjust my cable (i don't have one - it's wireless) or flush my dns settings (which i've done several times).
    I found a thread on these forums from March and tried every solution:
    - uninstalling and reinstalling itunes... doesn't work.
    - opening Internet Explorer 7, then opening iTunes... doesn't work.
    - searching for a host file and removing the phobos apple line... doesn't work. The phobos line wasn't there
    - using itunes 7... doesn't work.
    - flushing my dns... doesn't work.
    - turning off my firewall.... doesn't work.
    - avoiding clashes with mcafee or zone alarm... doesn't work, cos i don't use those
    I think it's appalling that I've tried all this, and i'm still no closer to knowing what the problem is, and that Apple failed to respond to any of the other people's problems in the earlier thread. And that i spent about ten minutes signing up to this fecking forum just to ask for help. Surely support should be readily available to anyone!
    Can anybody help me? In the other thread, people found alternative sites for buying music, but has anyone got an alternative, ipod-compatible podcasting program?

    I have this same problem. Here's what I can add to this discussion - iTunes accessed the iTunes store a day or two ago. I have a home network and can access the internet from all of the networked PCs. I can access the iTunes store from all of the networked PCs using Internet Explorer. I can access the iTunes store from my laptop iTunes. I can not access the iTunes store from my workstation PC. I get the same "network connection timed out" message. I downloaded and installed a new (same version) of iTunes on the workstation PC. both the laptop and the workstation are running the same OS (Windows XP SP2), both are Dell computers, both are accessing the internet via a wired connection to the same switch and the same router. All other internet connections work fine.
    What's different? In the last couple of days my Workstation lost access to a network printer. I worked with HP for over an hour to re-establish network connection to that printer with no success. I have access to the same networked printer from my laptop.
    The IP address for the network printer is identical to what it was when it was installed - HP suggests looking for a change to the IP address. I made no changes to the workstation PC, the home network or the router, ISP, or internet connection.
    But, it seems to me that the loss of access to the HP networked printer and the inability of iTunes to access the iTunes store are related.
    I also called Apple and attempted to get technical support. I own 4 iPods with 104 Gbs of storage on them, I own 1900 CDs and iTunes has 36.5 days of music loaded into it.
    I purchased Apple Care on all of the iPods - it's expired and they never warned me. They want to charge me $29 to fix this problem - even though I no longer can purchase music via the iTunes Store, so I need to pay $29 in order to gain access to the iTunes store to spend more money with Apple?! Not a smart business decision. I own a few other PC based music programs and more than willing to transfer all of it out of iTunes and into one of the other products. I'll sell all the iPods on eBay and purchase other MP3 players if I must.
    But, I suspect the problem is (1) Apple doesn't have a documented answer to this problem, (2) the level 1 techs that answer the support phone are clueless - they just e-mailed me the same article from the Apple website that I told them I read and does not apply to my problem, and obviously does not resolve my problem. (3) Apple is not setup to resolve this type of problem with their level 1 support, and they can't escalate the problem without charging us.
    I'll try again on Monday, may even purchase Apple Care first and then use that. The Apple Care Tech Support is typically better than the free level 1 call in support.
    Suggestions, comments, etc. are all appreciated.
    nlc
    <SCRIPT language=JavaScript>
    <!--
    var SymRealOnLoad;
    var SymRealOnUnload;
    function SymOnUnload()
    window.open = SymWinOpen;
    if(SymRealOnUnload != null)
    SymRealOnUnload();
    function SymOnLoad()
    if(SymRealOnLoad != null)
    SymRealOnLoad();
    window.open = SymRealWinOpen;
    SymRealOnUnload = window.onunload;
    window.onunload = SymOnUnload;
    SymRealOnLoad = window.onload;
    window.onload = SymOnLoad;
    //-->
    </SCRIPT>

  • Getting error  connection timed out while invoking webservice from bpel.

    Hi,
    I am trying to call a secure webservice developed in .Net having extension .svc from the bpel service and in response i am getting error
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{summary=<summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection timed out: connect</summary>
    I am able to call this web service from the java programme using HTTPClient by setting the username/password and soapaction in http Header but not from the BPEL process. This .Net service is synchronous in nature. I also set the proxy in opmn.xml but didn't got any success.
    Please reply me ASAP. Need urgent help.
    Thanks.

    Are you working on 11g ? if this is 11g
    How are you invoking the webservice ...does it have any authentication..
    If the webservice which you are invoking has basic http authentication...
    1. In the composite.xml file, right click on the reference and configure WS policies. In security tab, add a security policy named"oracle/wss_http_token_client_policy"
    2. Add two binding properties for the reference
    (i) oracle.webservices.auth.username
    (ii) oracle.webservices.auth.password
    and provide the username and password for those two properties...
    Just try this out...
    Thanks,
    N

  • Connection Timed Out error while saving messages in Solution Database

    Dear Experts,
    I have configured trex in solution manager..while saving service messages in 'Solution Database' i used to get "page cannot be displayed" now iam getting the fallowing error..please suggest any changes required..
    500 Connection timed out
    Error: -5
    Version: 7000
    Component: ICM
    Date/Time: Thu May 14 15:11:24 2009 
    Module: icxxthr.c
    Line: 2698
    Server: Host_<SID>_<Sys no>
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    Regards,
    Babu

    Hi Babu,
    you might try the following on the server where the problem occurred: call transaction SMICM -> Goto Services -> Select the service you are working with ->
    Service Change -> increase value for "Max. Processing Time"
    In case your application still times out you should see the changed value displayed.
    Sometimes just executing the application again 2-4 times might help, because compiling might happen and is taking some time in the system.
    With regards to parameters see also SAP Note [824554|https://service.sap.com/sap/support/notes/824554].
    Best regards,
      Andreas

  • JDBC Lookup in PI 7.1 - SELECT ? FROM DUAL and Connection timed out

    Hi,
    We have a scenarios (Idoc to JMS) with JDBC lookup. We have used graphical JDBC lookup functionality.
    We are reading country names for a given country code from SAP in an external database table. The query is so simple. That  should not take much time
    Now the actual issues is,
    When we are executing the scenario, its taking quite a long time. Almost 6 minutes to excute a mapping. Which causing high performance issue in the Porduction.
    We started the inviestigation about found some interesting stuff. Here we have used Willy Introscope for the investigation.
    1. First few messages are taking quite a long time. LIke 6 minutes per messages. As i can see in the log i am getting below error in Willy,
    I dont know why PI is executing below queury apart from real secelt query to fetch the country name. I am getting below error: Error Message: Backends|ABCD2 mydatabase01-1526 (Oracle DB)|SQL|Dynamic|Query|SELECT ? FROM DUAL: java.sql.SQLException: Io exception: Connection timed out
    2. After couple of messages, interface works very normal. I mean rest of the messages works pretty fine.
    Please let me know if you have any idea about this error. What could be the problem for the issue.
    Thank you in advnace.
    Best Regards,
    Prasad.

    Did you check how many SQL requests were executed per one message ? Do you have a log of these SQL requests ?
    I assume that the country table is quite small, so that lookup should not be an issue.
    About this:
    >Message: Backends|ABCD2 mydatabase01-1526 (Oracle DB)|SQL|Dynamic|Query|SELECT ? FROM DUAL: >java.sql.SQLException: Io exception: Connection timed out
    1. I only know SELECT * FROM DUAL, not SELECT ? FROM DUAL. Better use the former
    2. the exception means that the database server can not be reached => check your network configuration
    So I assume that there is a network (performance) problem between PI and this Oracle server. Or the Oracle Server is so overloaded that it has (sometimes) problems in processing new requests.
    CSY
    Edited by: Christian Sy on Mar 9, 2010 10:17 AM

  • FTPS receiver side - Connection problem:connection timed out: connect

    Hi experts,
    I must connect to an external server to send files with FTPS.
    I have created receiver CC with connection security: FTPS for control and data connection
    Command order: TLS, USER, PASS, PBSZ, PROT
    Connect mode: per file transfer
    port : 990 (given by third part)
    data connection: passive (suggested by third part)
    My problem is that communication channel raise a connection timed out error, see below for log.
    I've already followed the steps suggested by this thread:
    FTPS Transfer Failing with Connection Timeout
    but no luck.
    Thanks
    Fabio Boni
    2011-05-18 12:21:01 Success Connecting to FTP server "ftps.xxx.xxx.it"
    2011-05-18 12:21:02 Success Write to FTP server "ftps.xxx.xxx.it", directory "/in", -> file "Delivery20110518-122102-155.xml"
    2011-05-18 12:21:02 Success Transfer: "BIN" mode, size 1760 bytes, character encoding -
    2011-05-18 12:21:23 Error Attempt to process file failed with java.net.ConnectException: Connection timed out: connect
    2011-05-18 12:21:23 Error Exception caught by adapter framework: Connection timed out: connect
    2011-05-18 12:21:23 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Connection timed out: connect: java.net.ConnectException: Connection timed out: connect
    2011-05-18 12:21:23 Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Connection timed out: connect: java.net.ConnectException: Connection timed out: connect.

    As Fabio said, the file adapter log return this log:
    2011-05-18 12:21:01 Success Connecting to FTP server "ftps.xxx.xxx.it"
    2011-05-18 12:21:02 Success Write to FTP server "ftps.xxx.xxx.it", directory "/in", -> file "Delivery20110518-122102-155.xml"
    2011-05-18 12:21:02 Success Transfer: "BIN" mode, size 1760 bytes, character encoding -
    2011-05-18 12:21:23 Error Attempt to process file failed with java.net.ConnectException: Connection timed out: connect
    Seem that FTP access into server is executed successfully and adapter write file, but raise timeout exception.

  • 500 Connection timed out

    Hello,
    I receive a 500 Connection timed out error.
    I know that there are some threads to this error but I can´t find a solution for us.
    This is the error description:
    Error:            -5
    Version:        7000
    Component:  ICM
    Date/Time:    Tue Mar 04 07:02:38 2008
    Module:        icxxthr.c
    Line:             2698
    Server:         crmprod_CRP_01
    Error Tag:     {-}
    Detail:          Connection to partner timed out after 60s
    Now I have found in this forum some information about the parameters icm/keep_alive_timeout, icm/conn_timeout and icm/server_port_*
    Our settings for this parameters are:
    icm/server_port_0 = PROT=HTTP,PORT=8001
    icm/server_port_1 = PROT=SMTP,PORT=25
    icm/keep_alive_timeout (sec.) = 600
    icm/conn_timeout (msec.) = 5000
    Can someone please explain me which parameters occurs this error and which parameters I can change that the connection time is longer than 60 seconds?
    Where can I change the parameters?
    Regards
    Philipp

    Hi,
    Parameter icm/conn_timeout
    icm/conn_timeout is used to set the timeout when setting up the connection. If the timeout is exceeded, an error page is generally displayed with the information "404 Resource not found" "Partner not reached".
    Therefore, exceeding the icm/conn_timeout does not lead to a "500 Connection timed out" error message.
    Processing timeout and keepalive timeout
    The icm/keep_alive_timeout and icm/server_port_< n > parameters define the keepalive timeout and the processing timeout.
    ICM distinguishes between these two types of timeout.
    The processing timeout is the timeout between the HTTP request being issued and the HTTP response being received.
    If the ICM is used as a server for the relevant HTTP request (in other words, when it forwards an incoming request to the SAP Web Application Server), the processing timeout is the time that the ICM will wait until a response is received from the SAP Web Application Server (ABAP or J2EE). This interval may be exceeded with long-running applications in ABAP or the J2EE engine. If the processing timeouts are exceeded, the ICM sends the client an HTTP response with the error code "500 Connection timed out".
    If the ICM serves as a client for the relevant HTTP request (that is, when it forwards outgoing requests from the SAP Web Application Server), the processing timeout is the time that the ICM waits until a response is received from the network. This interval may also be exceeded in the case of long-running applications in the network.
    The keepalive timeout specifies how long the network should remain open after a request has been processed successfully so that the TCP/IP connection does not have to be reestablished if additional requests are received.
    When you set the keepalive timeout, this does not normally lead to timeout errors. You should set the keepalive timeout high enough that the connection does not have to be reestablished for requests that are sent within a short time of each other, but low enough that the number of unused open TCP/IP connections is not unnecessarily high. Exceeding the Keepalive timeout should never cause an error.
    Configuration of the ICM parameters for the processing timeout and the keepalive timeout
    For the ICM, the parameters mentioned here are in the instance profile.
    The processing timeout is set for individual services with the following parameter:
    icm/server_port_ < n > = ...,PROCTIMEOUT=< s >.
    The keepalive timeout can be set globally for all services of the ICM with the parameter icm/keepalive_timeout.
    You can also set it for individual services by using the following parameter:
    icm/server_port_ < n > = ...,TIMEOUT=< s >.
      If you set this parameter, it overwrites parameter icm/keepalive_timeout for the specified service.
    Even if the ICM serves as client for a request, the TIMEOUT and PROCTIMEOUT parameters of icm/server_port_ < n > control the timeouts for the relevant protocol, provided that you have set TIMEOUT or PROCTIMEOUT.
    If you have not set the PROCTIMEOUT parameter, TIMEOUT (or icm/keepalive_timeout) defines both the processing timeout and the keepalive timeout. Also, as of release 6.40, the keepalive timeout is limited to a maximum of 30 seconds.
    In a system where the default timeout settings of 30 seconds for the keepalive timeout and the processing timeout are not sufficient because of long-running applications, we recommend that you set the TIMEOUT and PROCTIMEOUT parameters for the relevant services so that you can configure them independently of each other. In addition, we recommend that you do not set the TIMEOUT value higher than necessary, for example, to the usual default value of 30 seconds.
    We recommend, for example, the following settings:
    icm/server_port_0 = PROT=HTTP,PORT=1080,TIMEOUT=30,PROCTIMEOUT=600
    to allow a maximum processing time of 10 minutes.
    I hope this info will help you to sort out the error you getting.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • Upgrading to 4.2 iphone and ipad error "network connection timed out"

    When trying to upgrade both ipad and iphone to 4.2 the download runs then stops with error message "network connection timed out" and says try again later. I have downloaded movies that take over an hour so I know it is not just time. I have trying turning off firewall and virus as well as empting cache and still no results. really believe it has something to do with windows 7 settings. any ideas?

    I was having the same problem and after several weeks of technical support they basically gave-up and suggested I try installing Kaspersky KIS 2012 (not yet released, but available on their ftp download site as a "current version"). 
    Anyway, I installed it and now I can update my iOS on my iPhone and iPad.  Voilla!  However, Kaspersky claim that this is not a common problem.  Yeah, right! 
    If you want to upgrade to KIS v12 (2012) or KAV v12 (2012), then here is how:
    1) Download v12 (2012) from the ftp site here:
    ftp://ftp2.kasperskyftp.com/consumer-products/Current_Versions/KIS2012/
    2) Disconnect from Internet (doh!)
    3) Stop Kaspersky (right click on the "K" in the tool tray and select "Exit")
    4) Uninstall Kaspersky from the Control Panel (Programs / Add-Delete Programs)
    5) Reboot after uninstalling old version
    6) After rebooting, install KIS/KAV v12 (2012)
    7) When it prompts for install key, re-connect to the Internet and enter the key code (usually on the back of the envelope the original installation disk is in).  The key code for earlier versions should work (at least it did for code with KIS 2010, two versions earlier).
    8) Reboot when done
    Finally, if this works for you (or anyone else), please post here, since Kaspersky seems to think it is very rare case that it worked for me... ha! 

  • Losing Airport/ Get message "connection timed out" when try to re-connect

    This has happened several times over the past few days. First time, trying to re-connect, it didn't see my network name. Then re-entered name, selected/joined, password shows up, but connection times out. Tonight, it saw my name, password showed up, but wouldn't connect, not matter what, with message "connection timed out."
    Both times the only thing that worked was a re-start. Tonight, even after a re-start, got "connection timed out" message at first, but was able to get back on by clicking on the icon. I see the following logs.
    Error: airportd MIG failed = -6 ((null)) (port = 26123)
    Macintosh-3 Apple80211Agent[91]: Error joining .......: Connection timeout (-6 timeout connecting)
    Macintosh-3 airportd[673]: Error: Apple80211Associate() failed -6
    Until this happens, the connection is solid, usually with 54 mbs. I've googled around for these logs, but haven't seen anything conclusive. Any ideas? Thanks.

    Don't mean to add to the possible confusion here, but most newer routers (Apple included) allow their users to "hide" their network, so it's also very possible and likely in an apartment situation that you can pick up interference from a network that you or Air Radar cannot "see".
    So, trying to find the "right" channel becomes a bit more of guessing game.
    Understand that you need "g" for your devices. For the future though, you might watch the Air Radar screen for channels in the 36-48 and 149-161 range to see how much less activity is going on there.

  • Connection refused to host: connection timed out

    I have been struggling with this problem a couple of days now so I really hope someone can help me. I am trying to get rmi to work in a NAT environment. We use a firewall, so I have opened port 1099 and 2020 which I use as a fixed port for communication (just to be sure it is not a firewall thing); I use the following code:
    //server
    public class ComputeEngine extends UnicastRemoteObject
    implements Compute
    public ComputeEngine() throws RemoteException {
    super();
    public String getMessage() {
    return "you have successfully connected to the server";
    public static void main(String[] args) {
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    String port = args[0];
    try {
    RMISocketFactory.setSocketFactory(new FixedPortRMISocketFactory(Integer.parseInt(port)));
    } catch (IOException e) {
    e.printStackTrace();
    LocateRegistry.createRegistry( 1099 );
    catch (RemoteException e1) {
    e1.printStackTrace();
    String name = "rmi://localhost/Compute";
    try {
    Compute engine = new ComputeEngine();
    Naming.rebind(name, engine);
    System.out.println("ComputeEngine bound");
    while(true); //stay alive
    } catch (Exception e) {
    System.err.println("ComputeEngine exception: " + e.getMessage());
    e.printStackTrace();
    public Socket createSocket(String host, int port)
    throws IOException {
    System.out.println("creating socket to host : " + host + " on port " + port);
    return new Socket(host, port);
    * Create a server socket on the specified port (port 0 indicates
    * an anonymous port) and writes out some debugging info
    * @param port the port number
    * @return the server socket on the specified port
    * @exception IOException if an I/O error occurs during server socket
    * creation
    * @since JDK1.1
    public ServerSocket createServerSocket(int port)
    throws IOException {
    port = (port == 0 ? portnumber : port);
    System.out.println("creating ServerSocket on port " + port);
    return new ServerSocket(port);
    //client
    public class ComputePi {
    public static void main(String args[]) {
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    String name = "rmi://" + args[0] + "/Compute";
    Compute comp = (Compute) Naming.lookup(name);
    System.out.println("connected to server");
    System.out.println(comp.getMessage());
    } catch (Exception e) {
    System.err.println("ComputePi exception: " + e.getMessage());
    e.printStackTrace();
    I start the client with:
    java -Djava.security.policy=policy.all -jar client.jar 194.2.4.6:1099
    I start the server with:
    java -Djava.rmi.server.codebase="file:/C:\RMI\\server.jar" -Djava.rmi.server.hostname="194.2.4.6" -Djava.security.policy=policy.all -jar server.jar 2020
    As you can see I set the "-Djava.rmi.server.hostname" property which should be a solution to the NAT problem. However I keep getting the following exception!!??!!:
    ComputePi exception: Connection refused to host: 194.2.4.6; nested exception is:
         java.net.ConnectException: Connection timed out: connect
    java.rmi.ConnectException: Connection refused to host: 194.2.4.6; nested exception is:
         java.net.ConnectException: Connection timed out: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
         at sun.rmi.server.UnicastRef.newCall(Unknown Source)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at java.rmi.Naming.lookup(Unknown Source)
         at client.ComputePi.main(ComputePi.java:14)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
         ... 7 more
    Can anyone help me with this, please??????
    kind regards,
    Christiaan

    Yes, i can ping it from the client.
    I have also noticed that when i run my server with the option -Djava.rmi.server.hostname=IP the applications stops automatically after a few minuts...
    I'm not using nothing about codebase. I have the stub and skel classes in server and client machines..
    I add the complete exception:
    Client exception: java.rmi.ConnectException: Connection refused to host: external_IP; nested exception is:
    java.net.ConnectException: Connection timed out: connect
    java.rmi.ConnectException: Connection refused to host: external_IP; nested exception is:
    java.net.ConnectException: Connection timed out: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
    at example.hello.Server_Stub.sayHello(Unknown Source)
    at example.hello.Client.main(Client.java:55)
    Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:426)
    at java.net.Socket.connect(Socket.java:376)
    at java.net.Socket.<init>(Socket.java:291)
    at java.net.Socket.<init>(Socket.java:119)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
    SocketFactory.java:22)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
    SocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
    ... 5 more

Maybe you are looking for

  • HT4946 How can I restore just the contacts from a backup?

    I had to restore my computer to factory settings as it would not download any new apps from iTunes.  I now want to restore my contacts.  I do not want to restore settings, etc. as these may have been the source of the problem. I don't want to sync al

  • Unable to download itunes 10.5 for windows 7. multiple errors

    I get multiple errors while downloading itunes 10.5 during set up: 1. apple mobile device failed to start. Verify you have sufficient privileges to start system services. 2. An error occured during installation of assembly "Microsoft.VC80.CRT error w

  • ITunes hangs when I try to sync with my apple devices

    Hello, I have followed troubleshooting article iTunes: May become unresponsive when connecting iPhone, iPad, or iPod touch  but this hasn't help me fix the issue. I am running OS/X 10.9.4 and iOS 7.1.2 When I create a new user account on my MAC  the

  • XQuery - In search of alternatives for "ora:view"

    Instead of the following XQuery statement, what could be alternatives, regarding re-writing the statement, via options like: - xmltable - xsql - xpath - table(xmlsequence()) - etc So I am looking for alternative statements and/or an alternative for o

  • What drivers to load?

    I will be re-installing Windows XP on my system that has an MSI-7125-010 Neo4 platinum mb. Can you verify for me which drivers I will need or not need? It's been a few years since I've done this. I will not be using RAID. Thanks.