Error 56 in TCP IP Communication

Hi All,
 I am developing Test Cases to Test our Product, I am using TCP IP Communication to communicate the Hardware (Not NI Hardware) where a firmware is running inside. in the test cases i will communicate the firmware and request it to give me required information in a specified format, it will in response will give the required information. So as I have test cases, I will be opening and closing the port for each test case. till here every thing is going well, but after some test cases are executed I an getting a error 56 while i am trying to open the port.
I am using TCP Listen VI form TCP/IP Pallet; I am sure that not because of Firewall issue.
Please suggest me what could be the reason and solution for it
Thanks and Regards,
Phani.

Why are you using TCP Listen in your code? This is used when you are writing a server that will accept connections from remote devices. From your description it sounds like you need to open a connection to the remote device. Also, can you post your code or example code that shows when you get the timeout error (error 56 = timeout). Generally you get a timeout error when you are writing (rare) or reading from a connection. You can also get a timeout when opening a connection. If you are getting the timeout on a read are you reading the data correctly? That is, generally the data will be a fixed format and you will know how many bytes you need to read. The data may also be written to include the amount of data which is being sent. Or a very common method for simple devices is to use a termination character to mark the end of the data. You need to know how your data should be received and use the correct method for reading the data. If you simply specify to read 1024 bytes but the device only sends you 50 you will timeout. You would have to look at the data to see if you received the complete response.
If you are truly using TCP Listen you may be sitting there waiting for someone to talk to you but the device is nevers trying to connect. As mentioned earlier you may need to use TCP Open instead to establish the conenction with the device.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • TCP/IP communication with remote host

    Hey guys,I wrote a class for TCP/IP communication with remote host.I am trying to use this class in following way:Its not working.One thing I am not sure about if I can give IP address of the machine while creating a socket.Please take a look at my program and let me know where i am doing wrong.Help me!
    CommunicationAgent commAgent;
    commAgent= new TCPIPCommAgent();
    writer = commAgent.getWriter("CASS");
    /* Send GC request message to CASS */
    writer.print(searchduedateRequestMsg);
    /* Get reader object to read TCP IP response from CASS */
    reader = commAgent.getReader("CASS");
    /* Read response message */
    String respMsg = reader.readLine();
    if(respMsg!=null)
    System.out.println("Search due date Response from CASS is:" +respMsg);
    else
    System.out.println("Error in reading search due date response");
    and here is my class responsible for TCP/IP communication:
    * Created on Jul 15, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    package com.prtc.commif.framework;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.PrintStream;
    import java.net.Socket;
    import java.net.UnknownHostException;
    import java.util.Properties;
    import com.prtc.commif.framework.interfaces.CommunicationAgent;
    import com.prtc.commif.util.InputResources;
    * @author spolireddy
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class TCPIPCommAgent implements CommunicationAgent
    public BufferedReader getReader(String system)
    InputResources inputResources = new InputResources();
    Properties props=inputResources.getProperties(system + ".properties");
    Socket socket=null;
    BufferedReader in=null;
    //Get this from the properties
    String hostName = "113.132.192.21";
    //Get this from the properties
    int port = 10103;
    try
    socket = new Socket(hostName, port);
    in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    catch (UnknownHostException e)
    System.err.println("Unable to identify the Host: " + hostName + ":" + port);
    System.exit(1);
    catch (IOException e)
    System.err.println("Couldn't get I/O for the connection to: "     + hostName + ":" + port);
    System.exit(1);
    return in;
    public PrintStream getWriter(String system)
    InputResources inputResources = new InputResources();
    Properties props=inputResources.getProperties(system + ".properties");
    Socket socket=null;
    PrintStream out=null;
    //Get this from the properties file
    String hostName = "113.132.192.21";
    //Get this from the properties file
    int port = 10103;
    try
    socket = new Socket(hostName, port);
    out = new PrintStream(socket.getOutputStream(), true);
    catch (UnknownHostException e)
    System.err.println("Unable to identify the Host: " + hostName + ":" + port);
    System.exit(1);
    catch (IOException e)
    System.err.println("Couldn't get I/O for the connection to: "     + hostName + ":" + port);
    System.exit(1);
    return out;

    Hi,
    Yes, you can specify ip-address as host-address.
    What do you expect the class to do? Why does reader and writer both open sockets?
    What happens when you run the program?
    /Kaj

  • Some problems in TCP/IP communication between PC&DSP

    I have programmed a VI for TCP/IP
    communication between PC (Client) and DSP (Server), which could be downloaded
    at below link. It just achieves some basic features, like send commands to DSP
    to set some registers, and receive data or status from DSP. Additionally I programmed
    a Sever vi in labview to test the client. You know the real Server is in the
    DSP programmed using C language.
    My problems are:
    1.      
    I don’t know how to add some “stop”
    in the two VIs to get out of the loops, I tried but it didn’t work well.
    2.      
    I’m not clear to add some error
    handles, you know when I stop the vi by pushing the round red button to stop the
    vi, it turns out some error dialog about TCP/IP.
    3.      
    It is about the TCP/IP. when
    the server writes data to connection ID, if the client doesn’t read them, then
    where the data goes?
    Attachments:
    metaclient.vi ‏42 KB
    metaserver.vi ‏30 KB

    可以通过添加布尔控件来停止循环,同时可以通过变量的方式来同时跳出多个循环。
    你的程序肯定存在什么问题,需要的是调试。

  • "An error occurred in the communication with the BW server"

    Hi, when I open BEx Analyzer and try to connect to my BW server to run a query, I get this message, "An error occurred in the communication with the BW server".
    Can someone help me.
    thanks
    Pat.

    If it's happening consistently, it could be a problem with your local m/cs  MS office and/or SAP GUI.
    If it was working before:
    1) Uninstall  SAP GUI and  MS office.
    2) Install  MS Office and SAP GUI...then try to connect to BW.
    Good luck, BB

  • Short dump Error during VM container communication between ABAP and JAVA.

    Hello All,
    Can anybody please help with resolving the following issue:
    Short dump is displayed, when I try to insert CRM product (type: material) in the document (opportunity). This CRM product was created in CRM directly.
    When I try to insert ECC migrated material, everything works fine.
    Here is the details of dump:
    Short text
        Error during VM container communication between ABAP and JAVA
    Information on where terminated
        Termination occurred in the ABAP program "SAPLPRC_INT" - in "GET_PRICING_PROCEDURE_INFO".
        The main program was "SAPMHTTP ". In the source code you have the termination point in line 100 of the (Include) program "LPRC_INTF35".
    Thank you!

    hi Willie,
         this is the dump, and i have used the t-code sm52 . the VMC is not active.
    |Short Text                                                                                        |
    |    Error during VM Container communication between ABAP and JAVA.                                |
    |What happened?                                                                                    |
    |    The current program had to be terminated because of an                                        |
    |    error when installing the R/3 System.                                                         |
    |    Error in the RFC layer.                                                                       |
    |What can you do?                                                                                  |
    |    Note which actions and entries caused the error to occur.                                     |
    |                                                                                                  |
    |    Consult your SAP administrator.                                                               |
    |                                                                                                  |
    |    Using transaction ST22 for ABAP dump analysis, you can view, manage,                          |
    |    and retain termination messages for longer periods.                                           |
    |Error analysis                                                                                    |
    |    An error has occurred in the RFC layer during communication between                           |
    |    JAVA and the ABAP stack. This prevents data from being passed correctly                       |
    |    between the two stacks.                                                                       |
    |                                                                                                  |
    |    Message    = TH_VMC_SERV_NOT_ACTIVE                                                           |
    |    Return code = -1007                                                                           |
    |    Pointer    = "000007DD348F6138"                                                               |
    |How to correct the error                                                                          |
    |    Check whether the VMC is active on your application server. To do this,                       |
    |    run transaction SM52. If the VMC is not active, contact your SAP                              |
    |    administrator.                                                                                |
    Regards
    Charles

  • ERROR in the RFC communication when parabatch is set to more 3 (default)

    Hi experts,
    We have a 10 blades BIA system connecting to our BW Production. When we set the parabatch to more than the default 3 (we set to 4 or 5), We keep getting 'Batchpara Error' and 'Error in the RFC Communication: Error when opening an RFC Connection' during the initial index build. Here are what we do and what we see:
    1. set parabatch to 5 and build 1 initial index (cube is 46 mil rows, 22 GB in size) - Failed with the above errors
    2. set parabatch back to 3 and build 1 initial index (same cube as above)- successful but slow
    3. set parbatch back to 3 and build 2 initial indexes simultaneously (16 mil rows/4GB and 6 mil rows/2 GB) - Failed with the above errors.
    In the BIA index log I see the following error:
    Error in the RFC communication: Error when opening an RFC connection (TREX_BIP)
    Message no. STREX005
    In SM37 in one of the logs I see the followings:
    Parabatch Error
    Any light you can shed on why we are encountering this issue will be much appreciated. Also, I observed that there is a long idle time in all systems (BIA, DB2, BW) and seemed like their respective resources were not utilized at all. Once in a while I do see surge of cpu/memory usage in all systems but not too terrible. I'm puzzled by why there is such long interval of idle time in all systems while the initial index build is going on.
    BTW...we did the same thing (set parabatch to 5, and run parallel initial builds) in our non-prod BIA (2 blades) and QA BW landscape and do not have any issue at all.
    Thanks!
    Kee

    Hello
    PLease check the sapnotes and check the developer trace for more information.
    Note 314530 - Number of RFC/CPIC connections for external clients
    Note: 1070034
    It can also be because your system has reached it its max gateway connections...also check whether you are getting error message "Communication error, CPIC return code 017, SAP return code 450
    " in sm21  ???
    Regards
    Karthikeyan.K

  • Error in HTTP_AAE receiver communication channel, PI 7.4 dual stack

    Dear Experts,
    I am facing the below certificate error in HTTP_AAE receiver communication channel while using the third party (bank) private key. Third party bank server is HTTPS enabled, moreover they have generated the public and private keys on their server, and they shared the corresponding private keys in .p12 format to us. Our scenario in SAP PI is synchronous ABAP Proxy to HTTP_AAE, when I see the message in SXMB_MONI after testing, we get he below certificate error, though we have provided the correct path from keystorage view and keystorage entry in HTTP_AAE receiver communication channel
    “com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SENDING_HTTP_REQUEST, sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”
    We have imported the private key provided by bank in Netweaver admin key storage, by following the below steps.
    NWA -> Certificates -> Key Storage -> TrustedCA->Import Entry->Entry Type->PKCS#12 Key Pair->select the .p12 file->import.
    Please see the attached doc for related screenshots.
    Please experts help me experts as this is on high priority from client, also suggest me if I am doing anything wrong here.
    Thanks,
    Farhan

    Hi Farhaan,
    do you have only one certificate or multiple certificate? HTTPS can have 2 or 3 certificates (Root, Intermediate [optional, if any 3rd party person is there in the middle then we can get this certificate] and system certificates).
    The issue is with the certificate and it can be because All the certificate is not present or path is not correct.
    Please refer the below wiki in which solution is given for this peroblem.
    Troubleshooting 7.1 - End-User Experience Monitoring - SCN Wiki
    The similar issue is resolved by applying SP level patch, please refer the below discussion
    SAP PI 7. 3 HTTP_AAE Receiver with SSL
    Please check the below blog -
    Configure the HTTP_AAE receiver communication channel with SSL
    please also check the below discussion
    Where to Import Clients SSL certificate for HTTP_AAE
    regards,
    Harish

  • Error occurred during HTTP communication

    I'm trying to launch ICWC from gui and here's the message that comes up in the web page :
    The runtime repository could not be interpreted
    An exception has occurredException Class CX_BSP_WD_HTTP_COMM_ERROR
    Text: Error occurred during HTTP communication
    Program: CL_BSP_WD_STREAM_LOADER=======CP
    Include: CL_BSP_WD_STREAM_LOADER=======CM002
    Source Text Row: 10
    URL is: https://<servername>.<clientname>.edu:8253/sap(bD1lbiZjPTY1MiZkPW1pbiZpPTEmcz1TSUQlM2FBTk9OJTNhcXVha2VfRFIyXzUzJTNhekxVMEJ5V0lJeWVTXzFsTEtnb1JjVVZqZXJXVldUUzF6bVdlM210Ti1BVFQ=)/bc/bsp/sap/ic_base/default.htm
    We run CRM 5.0 Support Pack 8.
    Appreciate any ideas on how to correct this.
    Thanks,
    Naga.

    Hi Naga,
    I have exactly the same issue...how did you resolve this?
    If it was the services in SICF, which ones did you need to activate?
    Thanks,
    Alan

  • TCP\IP Communication in the XI

    Hello,
    We have a scenario in which we have to communicate with a 3rd party system from our ECC system using the tcp\ip protocol. We used the XI by building a BPM with a transformation step that uses a java class, in which we opened a socket connection and sent and received our messages, as described in the weblog .<a href="/people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi:///people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi
    The main problem we encountered is that we have to maintain a continuous connection to the 3rd party system, and we can't find a way to make this possible using the XI (it keeps stateless beans for the transformation steps, therefore closing the connection when the class run ends).
    Is there a way to maintain a continuous connection of tcp\ip from the XI? Maybe by using an adapter?
    Thanks in advance,
    Tal.

    I used the transformation class to call a custom web service that keeps the connection open and handles all tcp/ip communication.

  • CVI RT (Real Time) - HOST TCP/IP Communication

    Hi,
    I am using CVI 2012 Real Time with PXI hardware. I am using TCP/IP communication b/n RT and Host. RT is server and Host is client. In my application, after TCP connection is established between client and server, client will send a command , take for example "GET_DATA" to RT, RT has to respond to that by sending that data.
    I am successful in
    Establishing RT-Host TCP communication ( I am able to see that host is reading the welcome message sent by RT).
    Host is sending the command "GET_DATA" to RT.
    RT is receiving the "GET_DATA" command from Host.
    In TCP server call back function, in TCP_DATAREADY event, i am using ServerTCPRead() to read data from Host. After reading the data, i am comparing the data with expected command and based on that i will be sending the data using ServerTCPWrite().
    RT is reading the command from Host, but it is not writing the data to client. I am not sure whether I can use ServerTCPWrite() in TCP Server call back function.
    I also tried using multithreaded concept, but not getting success.
    Please suggest any solution for this.
    Thanks,
    Haari

    Hey Rashid,
    Check out this tutorial with examples and let me know if it helps.
    Stephanie O.
    DIAdem Product Manager
    National Instruments

  • Real Time TCP/IP communication

    Hi,
          I am using the following hardware:
         PXIe-1062Q
         PXIe-8108
         PXI-5600 (02 card for 40MHz Bandwidth)
         PXIe-5641R (both inputs are used; one for each PXI-5600)
         PMA-1115
         Labview 2009
         I am using instrument mode to detect the real time hopping signal and writing it to a spreadsheet.
         My question is that how can I transfer data on LAN in real time to create a waveform in software on a remote computer before writing it to spreadsheet.  I am looking for something like real time TCP/IP communication.I have attached my VI. Kindly guide me that how can I do this?
    Thanks and Regards,
    Rashid
    Solved!
    Go to Solution.
    Attachments:
    FOR.vi ‏54 KB

    Hey Rashid,
    Check out this tutorial with examples and let me know if it helps.
    Stephanie O.
    DIAdem Product Manager
    National Instruments

  • Recommended way to secure my TCP/IP Communication

    This may be basic, sorry, but I never had to worry about this.
    What is the recommended way to secure my TCP/IP communication?
    I will have a simple server listening on a TCP socket and servicing client requests. Unfortunately, the server must run at a site only accessible to the client via the internet. The client is a .NET (C#) application. Typically, I'd connect the 2 easily with standard sockets and be done. In this case, I must protect the information being transfered.
    What would you use? SSL? I am not too familiar on how to do this on the .NET end.

    A common way to secure communications over TCP is SSL, yes. If your question is "How do use SSL in my .NET client?" then perhaps you should seek a more appropriate forum.

  • Error at sender JDBC communication channel

    Dear All,
    While executing JDBC(MS-Access)-PI-RFC interface, we are getting error in sender JDBC communication channel. The error is as following:
    Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
    sappidev\Datatran\Database.mdb' using the JDBC driver 'jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Can not establish connection:: SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'.
    I have checked various posts on forums and as per those no drivers installation is required to access MS-Access database and I am not able to find any post which could solve my problem.
    Kindly guide me on what might be the problem and how this can be resolved.
    Regards,
    NJ

    Hi Nishu,
      That error ALWAYS means your DSN name is incorrect or can't be accessed for some reason (permission). The ODBC part says that the bridge is working.
      But that DSN is 100% wrong or cannot be seen by the user account that the server is running as. Make sure you have a system DSN and not a user one.
    You can refer these....
    http://bytes.com/topic/java/answers/625400-java-sql-sqlexception-microsoft-odbc-driver-manager-data-source-name-not-found
    http://www.daniweb.com/forums/thread13092.html#
    Hope this will help you....
    Regds,
    Pinangshuk.

  • Network Hotsync - Error Starting TCP Listen?

    I've had no trouble using Network Hotsync in the past. Now whn I try to enable it using Hotsync Manager on the PC I get an error message: "Error Starting TCP Listen"
    Everything looks fine in the SETUP dialog....as soon as I try to select "Network" in Hotsync Manager I get the error. I've had no problem with USB syncs.
    Anybody ever seen this error message? ideas?
    Post relates to: Palm TX

    I have the same error message.  Did you ever find a solution?
    Post relates to: Palm TX

  • Web Application Designer -Unknown Error Occured during Portal Communication

    we are getting the below error while using the Web Application Designer .
    "Unknown Error Occured during Portal Communication"
    Vesrion
    SAPBW 700 SP14 on ABAP & SP12 on JAVA.
    Found the below error in the default trace
    Error 1
    Exception thrown Fri Aug 15 11:29:15,070:Exception thrown by application running in JCo Server
    java.lang.RuntimeException: Bean RSWR_PREEXECUTION_PROXYnot found on host smy14sap99, ProgId =SMY14SAP99_PORTAL_BD1: Object not found in lookup of RSWR_PREEXECUTION_PROXY.
    Error 2
    Error> occured >Fri Aug 15 11:29:12,413<
    RfcException:
    message: 'ashost' is missing
    Return code: RFC_INVALID_PARAMETER(19)
    error group: 101
    key: RFC_ERROR_PROGRAM

    Hello,
    Have a look at these Notes
    SAP Note 988484 RC=12 in after import method for objects BTMP and BITM
    SAP Note 916090 RFC-error messages in Web Application Designer 2004s
    Thanks
    Chandran

Maybe you are looking for

  • Error creating a database on oracle9i

    I have win2k server SP2 with 30 Gb and 1.7Gb RAM. I installed oracle9i software Ok. But when I create a database an error appears in dbca (read or write error), I tried first a general purpose database, after I tried a new database with less options

  • Can Check Number be start with zero?

    Dear all,                I knew that check number on SBO is numeric but check number of my country some number can start with zero and it effected to check number printing form. So, I'm not sure whether we can set check number to be charactor or not.

  • CS5.1 - OpenGL stops working after making a lasso selection

    I'm starting to tear my hear out at the moment. Everything was working fine with CS5.1 on a 32bit version of Windows 7, then out of the blue I got multiple warnings from windows saying that my hard drive was about to fail. Thankfully I managed to get

  • Where have all the Gurus gone?

    If the DW gurus are not going to be in this forum answering questions, where can we find them? Did they start their own forum?

  • User Level based Validation caching

    Hi, This is with references to JSP/JPDK based portlets. To implement validation based caching in JSP portlets, the first step I understand is to create our own class that extends JspValidateRenderer and reference this new class in the provider.xml fi