Failure establishing connection to debugger

Hi all,
I'm using SQL developer 3.1.07 and I'm unable to use the debugger functionality. I've searched and found a number of other threads that relate to either VPN's or users putting the server address in the debugger host but I'm still unable to resolve the issue.
The difference here may be that I have virtualbox set up on my pc and have all the associated VM IP addresses set up.
Virtualbox is not running when I attempt this.
the message I'm getting is (IP address hashed out):
Connecting to the database whitehat.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '###.29.34.96', '65078' )
ORA-30683: failure establishing connection to debugger
ORA-12535: TNS:operation timed out
ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
ORA-06512: at line 1The above address is the one chosen by SQL developer initially and is also the one shown in my sys_context('userenv','ip_address').
The database server itself is not on my PC, but is readily accessible on the network.
I'm at a bit of a loss as to how to proceed. any suggestions?
Edited by: WhiteHat on May 8, 2013 9:26 AM
fixed embarrassing spelling oversight in the subject line

>
The above address is the one chosen by SQL developer initially and is also the one shown in my sys_context('userenv','ip_address').
>
It might be a firewall issue; especially if you have been working with VM on that machine.
While you wait for one of the sql dev people to respond you may want to review this doc about 'Running and Debugging PL/SQL and Java Stored Procedures'.
This is from the Fusion Middleware doc for JDeveloper but sql developer is based on JDeveloper
http://docs.oracle.com/cd/E16162_01/user.1112/e17455/dev_stored_proc.htm
>
29.3.2 How to Specify the Database Debugger Port
When the database debugger is running, for example to debug PL/SQL through a database connection, the ports used are randomly assigned. This can cause problems with firewalls, and to avoid them you can edit the ide.properties file to ensure that a specific port is used.
To specify the port:
If necessary, close JDeveloper.
In a text editor, open jdev_install/jdeveloper/jdev/system/oracle.jdeveloper.release_number/ide.properties.
Type the following:
DatabaseDebuggerPortOverride=port_number
where port_number is the port number you want the debugger to use.
Save ide.properties. When you restart JDeveloper, the port you specified will be used.
>
The entire section at the link provides more information about establishing a debugger connection if you haven't done that before on any machine.

Similar Messages

  • Failure establishing connection to debugger through sql developer

    i am trying to debug the procedure through debug option which i have in sqldeveloper. i am trying accessing the remote DB through client machine. my machine is accessing through VPN. and i am getting error as
    Connecting to the database vtprod342@VTRMSD01.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: ALTER SESSION SET PLSQL_COMPILER_FLAGS=INTERPRETED
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '130.174.12.111', '4000' )
    ORA-30683: failure establishing connection to debugger
    ORA-12535: TNS:operation timed out
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 1
    Process exited.
    Disconnecting from the database vtprod342@VTRMSD01.
    and when i checked on my system ipconfig i am geeting as below, please let me know what is the ip and port i need to set..... "168.185.5.73" this is the my remote Database IP.
    C:\Documents and Settings\selvaraj.v>ipconfig
    Windows IP Configuration
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . : corp.mphasis.com
    IP Address. . . . . . . . . . . . : 172.20.34.16
    Subnet Mask . . . . . . . . . . . : 255.255.255.192
    Default Gateway . . . . . . . . . : 172.20.34.1
    Ethernet adapter {9A1DB242-8CB4-4EA9-8415-5CA3D0001C5A}:
    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 130.174.12.111
    Subnet Mask . . . . . . . . . . . : 255.255.252.0
    Default Gateway . . . . . . . . . :
    Thanks in Advance

    The database needs to be able to contact your PC, and I think your IP on the VPN is 172.20.34.16 rather than 130.174.12.111, correct?
    If so, check Preferences - Debugger - Prompt for Debugger Host, initiate another debug session, and when prompted, give that IP instead. Once you had a successful debug session, I'm pretty sure you can uncheck the preference again.
    If still no go, some firewall (PC or network) might be blocking the database from reaching your PC.
    Hope that helps,
    K.

  • Debugger on Windows Vista - ORA-30683: Failure establishing connection to d

    We can't get the debugger to work on our Vista machines... On our XP machines we don't have this problem, so I suspect it's a "Vista" issue.
    The vista machine is a desktop running sql developer, connection to another machines (server's) database. XP machines connect and debug on that same database fine.
    We get this error when debugging:
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP('0.0.0.0', '4000')
    ORA-30683: Failure establishing connection to debugger
    ORA-12541: TNS: no listener
    ORA-06512: at "SYS"."DBMS_DEBUG_JDWP", line 68
    we've tried:
    1) controlling the port on the SQL Developer preferences to be 4000, then making an exception on the firewall (on the vista machien) for that port
    2) making an exception for sql developerj.exe files
    3) Running it as an administrator
    no luck.
    I do notice that on teh first line, it puts: CONNECT_TCP('0.0.0.0', '4000')
    The zero's... on an xp machine, the IP: 127.0.0.0 would be there instead. Not sure if that's related to the problem.
    Please help, we can't debug on our Vista machines until this is resolved.

    Definitely. The database needs to be able to contact your PC, so '0.0.0.0' won't work.
    Check Preferences - Debugger - Prompt for Debugger Host, initiate another debug session, and when prompted, give your IP instead. Once you had a successful debug session, I'm pretty sure you can uncheck the preference again.
    Have fun,
    K.

  • Process terminated without establishing connection to debugger

    I'm using FB 4.5.1 on Windows and trying to use StageVideo for a mobile app.  The video file plays, I can hear audio but no video.  In multiple posts I've seen that you need to add -swf-version=13 or -swf-version=14 to the compiler options.  I have AIR 3.1 installed on this box so I used 14 (same result with 13) and when I try to run or debug I get the launch error, Process terminated without establishing connection to debugger.
    I can use -swf-version=11 and it runs, but the video doesn't work.  I've downloaded Flash debugger 11.1 and get the same results as using 10.2.  So is my problem because FB doesn't recognize the latest version of AIR or something else?... basically, how do I fix this?? 

    I just had a D'oh moment... Two things: (1) Needed to change the application namespace in application-app.xml to 3.1 and (2 which is the D'oh part), actually install the 3.1 SDK.

  • Unable to connect to debugger

    Developer cannot connect to debugger. when I attempt to execute a procedure in a pcakage to debug it I get:
    Connecting to the database DBConnection1.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: ALTER SESSION SET PLSQL_COMPILER_FLAGS=INTERPRETED
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '127.0.0.1', '1286' )
    ORA-30683: failure establishing connection to debugger
    ORA-12541: TNS:no listener
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 1
    Process exited.
    Disconnecting from the database DBConnection1.
    I can connect with the database via SQL*Plus. SQL Developer is on my machine, is there a listener for the debugger? Any help would be appreciated.

    You need to enable 'Prompt for Debugger Host for Database Debugging' under Tools -> Preferences -> Debugger.
    Otherwise it is assuming that the database is local to your pc and the remote database can't connect to yours since the ip address defaults to 127.0.0.1. (who knows why they did it this way.. but many other had this problem)
    Eric

  • How do I connect the debugger for remotely debugging PL/SQL?

    Hi everyone,
    Remotely debugging PL/SQL from JDeveloper and SQL Developer is something I have tried unsuccessfully to do.
    The steps I took were to right-click my connection, select Remote Debug... and specify "4000" for the Port and "n.n.n.n" for the Local address which seems to correctly start the listener. (I used ipconfig to double-check the address.) Then, I run the anonymous block you see below.
    begin
    dbms_debug_jdwp.connect_tcp( 'n.n.n.n', 4000 );
    end;
    But, I always get the following error:
    Error starting at line 18 in command:
    begin
    dbms_debug_jdwp.connect_tcp( 'n.n.n.n', 4000 );
    end;
    Error report:
    ORA-30683: failure establishing connection to debugger
    ORA-12535: TNS:operation timed out
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 2
    30683. 00000 -  "failure establishing connection to debugger"
    *Cause:    An error was indicated when trying to establish a connection
               to a debugger. Usually a TNS error will display along with
               this message to further explain the problem, although this
               TNS error will likely be hidden if you choose to trap the error.
    *Action:   Correct the indicated parameter value and try again.
    Additionally, my firewall in Windows 7 is disabled, and I work remotely from home via VPN.
    The instructions are thatI followed: Sue's Blog... again...: Remote Debugging with SQL Developer.
    Any help would be greatly appreciated. Thanks!
    James

    I found the answer.
    Object classes are missing.
    The right insert code is down but I have a new question.
    -How can I assign Resource acces to user in PL/SQL?
    Right insert code:
    declare
    vn_retval pls_integer;
    emp_session dbms_ldap.session;
    emp_dn varchar2(256);
    emp_array dbms_ldap.mod_array;
    emp_vals dbms_ldap.string_collection ;
    vv_ldap_host varchar2(256);
    vv_ldap_port varchar2(256);
    vv_ldap_user varchar2(256);
    vv_ldap_passwd varchar2(256);
    vv_ldap_base varchar2(256);
    begin
    vn_retval := -1;
    vv_ldap_host := 'XXXXXXX';
    vv_ldap_port := '389');
    vv_ldap_user := 'LDAP_USER';
    vv_ldap_passwd:= 'LDAP_PASSWD';
    vv_ldap_base := 'LDAP_BASE';
    dbms_ldap.use_exception := true;
    -- Initialize ldap library and get session handle.
    emp_session := dbms_ldap.init(vv_ldap_host, vv_ldap_port);
    -- Bind to the directory
    vn_retval := dbms_ldap.simple_bind_s(emp_session, vv_ldap_user, vv_ldap_passwd);
    -- Process New Entry in the database
    -- Create and setup attribute array for the New entry
    emp_array := dbms_ldap.create_mod_array(4);
    emp_vals(1) := 'NAME';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'cn', emp_vals);
    emp_vals(1) := 'NAME';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'sn', emp_vals);
    emp_vals(1) := 'top';
    emp_vals(2) := 'person';
    emp_vals(3) := 'organizationalPerson';
    emp_vals(4) := 'orcluserv2';
    emp_vals(5) := 'orcluser';
    emp_vals(6) := 'inetOrgPerson';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'objectclass', emp_vals);
    emp_vals.delete;
    emp_vals(1) := 'NAME' || '1';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'userpassword', emp_vals);
    -- DN for Entry to be Added under 'ldap_base'
    emp_dn := 'cn=' || 'NAME' || ', ' || vv_ldap_base ;
    -- Add new Entry to ldap directory
    vn_retval := dbms_ldap.add_s(emp_session, emp_dn, emp_array);
    -- Free attribute array (emp_array)
    dbms_ldap.free_mod_array(emp_array);
    -- Unbind from ldap directory
    vn_retval := dbms_ldap.unbind_s(emp_session);
    end;

  • VMware SQL 2008R2 bcp error - SQLState = 08001, NativeError = 0 Error = [Microsoft][SQL Server Client 10.0] Client unable to establish connection due to prelogin failure

    Can someone help me resolve this error?   Thanks  
    Windows Server 2008 R2  Standard SP1 64-bit -  SQL Server 2008R2 Standard 64-bit 
    VMware vCenter Server Version 5.1.0
    SQLState = 08001, NativeError = 0
    Error = [Microsoft][SQL Server Native Client 10.0]Client unable to establish connection due to prelogin failure
    bcp program: 
    bcp SYM.dbo.ACCOUNT in "D:\Data\SQLExtract\EXTRACT.ACCOUNT" -f"D:\Data\SQLCommands\FMT.ACCOUNT" -S DEV-DATA\TEST\ -T -oSYMLOAD.LOG Type SYMLOAD.LOG >> SYMLOAD.LOG.CUMULATIVE
    The bcp program executes successfully on a local instance of SQL Server.

    The error has nothing to do with BCP as such, but it is a connection problem. That is, for some reason you cannot connect to your instance from the VM. I would exect that you face a similar problem if you tried SSMS.
    It could be a firewall issue, but prelogin suggests that you reach the instance. But possibly you don't come far enough for the login failure to be recorded. Possibly the instance is not configured to audit login failures.
    The message you would see would be similar to
    2010-08-18 14:11:30.91 Logon       Error: 17809, Severity: 20, State: 3
    Possibly followed by a a line that details the message. The error number may be different.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Status Failure -lo exception:network adapter could not establish connection

    Hi, installed SQL DEVELOPER today and its driving me mad... I am getting this error
    Status Failure -lo exception:network adapter could not establish connection.
    Basic tab I have all the right information, tried test gives same error...
    hostname ajas
    port 1521
    sid altaf
    TNS
    Network alias altaf
    connect identifier altaf(TRIED SINCE NETW ALIAS DIDNT WORK)
    went to TNS tab and from the list selected the right entry for NETWORK ALIAS,tried test still same error... tested with connect identifier still same error...went to Advanced entered this string jdbc:oracle:thin:@ajas:1521:altaf ..... still same error...what the hell is wrong...here is the tnsnames.ora entry ...
    ALTAF =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = AJAS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = altaf)
    by the way I am able to connect with sql*plus ... lsnrctl gives the lsnr so thats running... tnslsnr is also running...also installed the latest java sdk i.e 1.5... i have set new path to point to this new java.exe i.e 1.5 one... this is really crazy and havent see such probs in any tools i have ever used and that too using it in normal pc ... God knows what will happen if used for remote db's....
    here is listener.ora
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = AJAS)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = altaf)
    (ORACLE_HOME = C:\oracle\ora92)
    (SID_NAME = altaf)
    no one seems to have answer for this... there are all kinds of strange replies for this problem.... anyone has solved this prob plz reply....
    Message was edited by:
    ajashadi

    I've had the same problem when I installed the latest version of SQL developer (1.2.1.32.13) on a machine that still had an older, working version. My problem went away when I changed from an IP name to an IP address. on the connection setup window.

  • Essbase Error(1021001) Failed to Establish Connection With SQL Database...?

    Hi there!
    I am very new in Essbase and I am receiving the error message quoted below while trying to load data in a Cube. Weird thing is that we have checked all connections already and they are working correctly, however this process is still failing.
    If someone can give us an idea to troubleshoot it, that would be really appreciated.
    Thanks very much in advance for any help and regards!
    MAXL> deploy data from model 'Production_GL_Cube_SchemaModel' in cube schema '\Production_GL\Cube_Schemas\Production_GL_Cube_Schema' login AdminUserAccount identified by MyPassword on host 'ServerName.MyCompany.com' to application 'ORA_HFM' database 'GL' overwrite values using connection 'ServerName' keep all errors on error ignore dataload write 'E:\Logs\DataLoad_Error_2013.04.19.16.23.00.txt';
    BPM Connect Status: Success
    Failed to deploy Essbase cube. Caused by: Failed to load data into database: GL. Caused by: Cannot get async process
    state. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server. See log for more information
    BPM maxl deployment ...failure.

    Hi Celvin,
    Thanks for your reply and my apologies for not coming back before on this issue.
    For the benefit of other readers, after hours struggling with the issue, we focused our attention in the following portion of the ORA_HFM.log file:
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/54996/Info(1013157)
    Received Command [Import] from user [Service_Acct@Native Directory] using [GL.rul] with data file [SQL]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021041)
    Connection String is [DRIVER={DataDirect 6.1 Oracle Wire Protocol};Host=MyEssbaseServer01.MyCompany.com;Port=1521;SID=PRODUCTION;UID=...;PWD=...;ArraySize=1000000;]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021006)
    SELECT Statement [SELECT cp_127."ACCT" AS "Accounts_CHILD",
             cp_127."PERIOD_MEMBER" AS "Period_CHILD",
             cp_127."PERIOD_YEAR" AS "Years_CHILD",
             'INPUT'  AS "View_CHILD",
             cp_127."ENTITY"  AS "Entity_CHILD",
             cp_127."PRODUCT_LINE" AS "Custom1_Product_CHILD",
             cp_127."Function" AS "Custom4_Function_CHILD",
             cp_127."B_U" AS "Business_Unit_ORACLEBUSINESS",
             cp_127."ORACLEFUNCTION" AS "Oracle_Function_CHILD",
             cp_127."LEGALENTITY" AS "Oracle_Entity_CHILD",
             'P' || cp_127."PRODUCTLINE" AS "Oracle_Product_CHILD",
             'A'[Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021043)
    Connection has been established
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021044)
    Starting to execute query
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021013)
    ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-04063: view "REP_ESSBASE.VW_GL_BALANCES" has errors]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Info(1021014)
    ODBC Layer Error: Native Error code [4063]
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Sat Apr 20 11:48:34 2013]Local/ORA_HFM/GL/Service_Acct@Native Directory/8964/Error(1003050)
    Data Load Transaction Aborted With Error [1021001]
    Then we concentrated in the following error message: *ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]ORA-04063: view "REP_ESSBASE.VW_GL_BALANCES" has errors]*
    So, we checked the database and noticed the schema and their views were damaged and -due to this- they lost all their properties (like data types, for example). So, we had to recompile all of them in order to avoid any loss of data. This was done in TOAD, as per the following info: https://support.quest.com/SolutionDetail.aspx?id=SOL66821
    Finally, once all the views on this schema were rebuilt and fixed, we were able to deploy the Cube again.
    Hope this help in the future. Cheers!!

  • Essbase Studio - Failed to Establish Connection With SQL Database Server

    Hi all,
    I am new to Hyperion and am having trouble deploying what seems a simple cube in Essbase Studio.
    My environment is Windows 2003, EPM 11.1.1.2, SQL Server 2000.
    I have the following two issues which may be related.
    1. The EPM System Diagnostic tool says that Hyperion Foundation cannot connect to the SQL database.
    Error:
    Failed: Connection to database
    Error: java.net.UnknownHostException: <server name: <server name>
    Recommended Action:
    Every other EPM application is able to connect to the database. I have tried re-configuring Foundation Services and checking the config files and nothing looks wrong. I would appreciate advice on how to fix this.
    2 In Essbase Studio, I was able to connect to the database where the source data is, build the minischema and create dimensions and measures. But when I run the cube deployment wizard I get the error:
    Message: Failed to deploy Essbase cube
    Caused By: Failed to build Essbase cube dimension: (Time)
    Caused By: Cannot incremental build. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server. See log for more information
    …ODBC Layer Error: [08001] ==> [[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied.]
    I have checked the DSN as well as the connections set up within Studio, and they are all able to connect to the database. I am using the admin user for the Essbase server and have created a different user for the databases where the data resides and the shared services database. I tried using the same user all the way through and this didn’t help.
    Can you please advise what else I can check or change to resolve this issue.
    Also, can you work in EAS with cubes that are created in Studio? I tried looking at it and I got an error that the rule file couldn’t be accessed because it was created in Studio.
    After the above failures, I tried creating a cube in EIS, with mixed success. I have been able to load the members and data without errors. But when I try to view the data in the cube, I am seeing field names for the measures instead of the data itself.
    ...Definitely more questions than answers at this stage of my learning.
    Regards
    Michelle

    Michelle,
    I don't know if you found an answer to you question after so many months but I was hoping I could be helpful.
    The issue you are experience happens often when the dimension that you are getting an error on, in this case TIME, is built from a snowflake lineage and there is a bad foreign key reference. This dimension is most like high-up in your outline build process for Essbase Studio and this prevents the build from happening usually early on.
    Check your logs also. They are in Hyperion > Products > logs > essbase > essbasestudio.
    You can also make your logs more verbose by setting a configuration variable in the essbase studio server.properties file but that should only be used for debugging as it really saps performance.
    And, yes, you can of course edit an Essbase Studio deployed cube in EAS. However, any changes you make to the cube in EAS are subject to being wiped-out upon the next Essbase Studio deployment of that Applicaion/Database combo.
    If you want to provide more detail, screenshots, etc. I would be glad to help where I can.
    Cheers,
    Christian
    http://www.artofbi.com

  • An established connection was aborted by the software in your host machine

    I have found this example in your library about "Asynchronous Client Socket"
    and when i try to add 
    Send(client,"This is another test message<EOF>");
    sendDone.WaitOne();
    Receive(client);receiveDone.WaitOne();in StartClient() method as shown belowIt throws an error "An established connection was aborted by the software in your host machine"How can i solve this errorusing System;using System.Net;
    using System.Net.Sockets;
    using System.Threading;
    using System.Text;
    // State object for receiving data from remote device.publicclass StateObject {
    // Client socket.public Socket workSocket = null;
    // Size of receive buffer.publicconstint BufferSize = 256;
    // Receive buffer.publicbyte[] buffer = newbyte[BufferSize];
    // Received data string.public StringBuilder sb = new StringBuilder();
    publicclass AsynchronousClient {
    // The port number for the remote device.privateconstint port = 11000;
    // ManualResetEvent instances signal completion.privatestatic ManualResetEvent connectDone =
    new ManualResetEvent(false);
    privatestatic ManualResetEvent sendDone =
    new ManualResetEvent(false);
    privatestatic ManualResetEvent receiveDone =
    new ManualResetEvent(false);
    // The response from the remote device.privatestatic String response = String.Empty;
    privatestaticvoid StartClient() {
    // Connect to a remote device.try {
    // Establish the remote endpoint for the socket.// The name of the // remote device is "host.contoso.com".
    IPHostEntry ipHostInfo = Dns.Resolve("host.contoso.com");
    IPAddress ipAddress = ipHostInfo.AddressList[0];
    IPEndPoint remoteEP = new IPEndPoint(ipAddress, port);
    // Create a TCP/IP socket.
    Socket client = new Socket(AddressFamily.InterNetwork,
    SocketType.Stream, ProtocolType.Tcp);
    // Connect to the remote endpoint.
    client.BeginConnect( remoteEP,
    new AsyncCallback(ConnectCallback), client);
    connectDone.WaitOne();
    // Send test data to the remote device.
    Send(client,"This is a test<EOF>");
    sendDone.WaitOne();
    // Receive the response from the remote device.
    Receive(client);
    receiveDone.WaitOne();
    Send(client,"This is another test message<EOF>");
    sendDone.WaitOne(); Receive(client);
    receiveDone.WaitOne(); // Write the response to the console.
    Console.WriteLine("Response received : {0}", response);
    // Release the socket.
    client.Shutdown(SocketShutdown.Both);
    client.Close();
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    privatestaticvoid ConnectCallback(IAsyncResult ar) {
    try {
    // Retrieve the socket from the state object.
    Socket client = (Socket) ar.AsyncState;
    // Complete the connection.
    client.EndConnect(ar);
    Console.WriteLine("Socket connected to {0}",
    client.RemoteEndPoint.ToString());
    // Signal that the connection has been made.
    connectDone.Set();
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    privatestaticvoid Receive(Socket client) {
    try {
    // Create the state object.
    StateObject state = new StateObject();
    state.workSocket = client;
    // Begin receiving the data from the remote device.
    client.BeginReceive( state.buffer, 0, StateObject.BufferSize, 0,
    new AsyncCallback(ReceiveCallback), state);
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    privatestaticvoid ReceiveCallback( IAsyncResult ar ) {
    try {
    // Retrieve the state object and the client socket // from the asynchronous state object.
    StateObject state = (StateObject) ar.AsyncState;
    Socket client = state.workSocket;
    // Read data from the remote device.int bytesRead = client.EndReceive(ar);
    if (bytesRead > 0) {
    // There might be more data, so store the data received so far.
    state.sb.Append(Encoding.ASCII.GetString(state.buffer,0,bytesRead));
    // Get the rest of the data.
    client.BeginReceive(state.buffer,0,StateObject.BufferSize,0,
    new AsyncCallback(ReceiveCallback), state);
    } else {
    // All the data has arrived; put it in response.if (state.sb.Length > 1) {
    response = state.sb.ToString();
    // Signal that all bytes have been received.
    receiveDone.Set();
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    privatestaticvoid Send(Socket client, String data) {
    // Convert the string data to byte data using ASCII encoding.byte[] byteData = Encoding.ASCII.GetBytes(data);
    // Begin sending the data to the remote device.
    client.BeginSend(byteData, 0, byteData.Length, 0,
    new AsyncCallback(SendCallback), client);
    privatestaticvoid SendCallback(IAsyncResult ar) {
    try {
    // Retrieve the socket from the state object.
    Socket client = (Socket) ar.AsyncState;
    // Complete sending the data to the remote device.int bytesSent = client.EndSend(ar);
    Console.WriteLine("Sent {0} bytes to server.", bytesSent);
    // Signal that all bytes have been sent.
    sendDone.Set();
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    publicstaticint Main(String[] args) {
    StartClient();
    return 0;

    Hi Jack,
    I have test the code,both
    Asynchronous Client Socket Example and
    Asynchronous Server Socket Example works fine on my side.
    Server Screenshot                                                    Client
    Screenshot
    >>An established connection was aborted by the software in your host machine
    From the error message,
    Firstly please try to check if there is a firewall between the sender and receiver, make sure that it does not closing the connection because of idle timeout, or just turn off the firewall for testing.
    Also someone try to reset to solve the issue.
    <Copied>
    The issue here was the timeout on the central distributor. That was causing the connection to reset when the receiver did not
    pick up the message within the time limit.  Alter the reset, when this program tried to receive on the socket it would fail with "An established connection was aborted by the software in your host machine" and this generated the failure audits. 
    </Copied>
    In addtion, there is a thread talking about the similar thread, please have a look.
    C# An established connection was aborted by the software in your host machine
    Best of luck!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to open any websites from the search engines. the ones I have tried are google, yahoo and ask. They opened until recently. The popup says" Firefox can't establish connection to the server." Ask worked last night but is not working now.

    When I try to open a web site from one of the search engines a pop up shows stating that Firefox can't establish connection to the server. I can't open any websites through any of the search engines.

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Problem in establishing connection with mysql 5.0

    Hi,
    I am using JCAPS 5.1. I tried to insert data to mysql database table.
    But i got following error
    java.sql.SQLException: Error in allocating a connection. Cause:
    Physical Connection doesn't exist.
    My intention is to read file in which data are comma seperated and to
    populate those values to a mysql 5.0 database table.
    Sample DATA in file [test.txt]
    111,gg,23,MFG
    112,hh,24,MFG
    113,ii,25,RETAIL
    114,jj,26,IT
    Database table: employee
    eno,ename,eage,edept
    While creating JDBC OTD there is no problem in establishing connection with database. But after deploying i got above error.
    I have used Mysql 5.0 Connector/J JDBC driver. Added JDBC driver jar files to following directories as required.
    1) C:\JavaCAPS51\logicalhost\is\lib
    2)C:\JavaCAPS51\logicalhost\is\domains\test\lib
    Steps i have followed as per JDBC-ODBC -eway user guide doc.
    1) Created USerDefined OTD and added necessary fields
    2) Created JDBC OTD.
    3) Created JAVA collaboration and do business process for inserting
    4) Mapped all components by creating in Connectivity MAp
    5) created necessary external systems in envrionment explorer.[JDBC External System and File External System]
    6)Created Deployment profile
    5) Deployed it.
    After deploying it gives error as
    java.sql.SQLException: Error in allocating a connection. Cause: Physical Connection doesn't exist
    Please let me know the solution for problem.
    Message was edited by:
    VenkateshSampoornam

    In the environment definition,
    -> External Application JDBC
    -> Properties
    -> Outbound JDBC Connection
    You have the database URL in the "DriverProperties" field
    Valid URL would be : jdbc:mysql://localhost:3306/caps
    !! The doc says that this field is optional !! Seems to be an error in the doc:
    Hope this helps
    Seb

  • Help Needed in establishing connection between Kepware OPC server and UDS 4

    Hi All,
    I am in the process of establishing connection between Kepware OPC server and UDS 4.0,
    Can anyone guide me through the process of configuring UDS 4.0 to establish conection with the Kepware.
    Any standard documentation on UDS 4.0 will be of great help.
    Thanks in advance,
    Shyam

    HI Rajesh,
    I am creating OPC DA instance and when i try to browse for the OPC servers available in the machine, the list is blank. i am not able to view any OPC servers.
    Actuallt the Kepware OPC server and UDS are installed in the same machine.
    Can you plz through some ligh on this
    Regards,
    SHyam

  • I used to be able to email photos from my Lightroom software quite successfully. I needed to change my password several days ago in my gmail account. Now when I try to email photos I receive a message saying "Failed to establish connection with the outgoi

    I used to be able to email photos from my Lightroom software 5.7 for MAC quite successfully. I needed to change my password several days ago in my gmail account. Now when I try to email photos I receive a message saying "Failed to establish connection with the outgoing email server. Please make sure you have entered the email account and password correctly."
    I have been trying to get help from Adobe for 3 days. I have sent a message through "Get Support", 2 days ago, but no one has contacted me. I have tried by phone, but no one will help me. When I purchased Lightroom in May, 2014, I was able to receive phone help. I am now told that I don't qualify because I am not a Creative Cloud customer.   I have been assigned a case number  186291729.
    PLEASE HELP ME FIX THIS PROBLEM

    I, too, have this problem. I see no one is responding with a solution? Hello? Can someone please advise?
    Oh, and, yes, I have manually verified repeatedly that the information I gave to Lightroom is correct, and I still get the same error message when I try to validate.

Maybe you are looking for

  • Error getting while using BAPI "BAPI_ACC_DOCUMENT_POST" in the Web Dynpro

    Hello Everyone, I am trying to use BAPI_ACC_DOCUMENT_POST to post a docuemnt, for this I have created a web application and in that I have created one view. In the layout of the view I have developed three groups 1. document header 2.Currency 3. GL a

  • File Browse Validation not stopping upload

    Hi Guys, I am using Apex 4.0 and need help with the following please: I have a file browse item which uploads a file into the built in WWV_FLOW_FILES. The problem is it uploads even when there is an error and my validation flags up. Is it supposed to

  • Testing ABAP mapping

    Hi,         I have created one ABAP mapping class with the method IF_MAPPING~EXECUTE.I tried to test the mapping program in a report by passing  the source(XML document as a string).The call to the mapping method is done as follows: CALL METHOD CLASS

  • SCOM monitoring of a repetitive alert

    I have a vendor system that has an overly aggressive built-in windows event log alert.  I am wondering how to work with SCOM to best build an alert that meets my needs. Our system holds 'unused' data elements in a DB.  About once a year we have to go

  • Confusion with Membership and Billing

    I currently have Creative Cloud (Student and Teacher Edition) installed on my laptop for about a year now. I downloaded it through free subscription offered on a website, with a redemption code (thanks to an agreement between my college and Adobe.) F