FTPOpen Data Connection​: Could not establish connection

I need to transfer data files from a local directory to a remote system via FTP.
I can open an FTP connection, login and list existing files at the remote location. I even tried to rename files at the remote location, it works.
Trying to sen files to the remote location using the FTPPutFile.vi causes an error "FTPOpen Data Connection: Could not establish connection".
Any idea, what causes that error?
Thank you in advance,
Andreas Langer

That's very peculiar that this should be happening, as it obviously sounds as though you have already established a connection. Have you tried running any example VIs? This is usually where I start to debug a problem. It shows me whether my code is wrong or something else (which is hopefully the issue).
I found a good example for you on NI's website which makes a call to both "Get File" and "Put File". It ran successfully for me. You may want to see if it gives you the same errors.
It's currently configured for an FTP server which I use, so you'll want to change its connection, but that's available through the front panel. Let me know how it works for you.
J.R. Allen
Attachments:
ftp[1].vi ‏36 KB

Similar Messages

  • Ftp error Could not establish connection

    hello there,
    I am trying to connect to ftp server to get a file from it.
    I used the "FTP get file.vi"
    here a screenshot showing the front panel and the block diagram:
    on the left there is filezilla showing that the ftp server is connected just fine and the remote path showing the files which I want to get one of them "log.txt"
    I filled the same info into my labview vi .. and when I hit run this error pops up
    Error 0 occurred at FTPOpen Data Connection: Could not establish connection
    Possible reason(s):
    LabVIEW: Error connecting to GPIB driver or device.
    =========================
    VISA: (Hex 0x0) Operation completed successfully.
    I don't know what wrong am I doing... any ideas?
    Thanks!
    Solved!
    Go to Solution.

    Thanks for your reply.. I solved the problem 1 minute ago .. turned the data connection from active to passive by using false in active terminal..
    another error pops up that I need to put the same file type as the file I am asking to get .. I made the local path g:\file.txt and it workd just fine ...
    Thanks,,

  • Jdbc. The Network Adapter could not establish the connection. Help Please!!

    I've found several responses over this issue, but none works for me.
    I'm trying to setup a simple jdbc connection from a simple program.
    Platform:
    Fedora Core 4 (FC4) on AMD 64 bits
    Java 1.4.2_04 (64 bits)
    ORacle 10g or Oracle 9.2.0.4 (none works);
    Tips:
    - I can't connect to a remote server, nor to a local server
    - I can connect using SQLplus
    - TNSPing works fine
    - Listener it's up
    - my connection string is jdbc:oracle:thin:user/name@host:port:sid
    - Also try jdbc:oracle:thin:user/name@//host:port/sid
    - I'v tryied with classes12.jar, odbj14.jar
    - my hostname it's ok.
    I've monitored ip traffic on remote computer. While using TNSPING I detect activity. While using jdbc, no.
    Please, any idea??

    Thanks for your reply.
    To your questions:
    - I´v tried both IP, host, and even host.domain
    - I can connect from remote workstation using toad, and from local using sqlplus.
    - I can´t connect via jdbc.
    Folowing:
    A) my sample code
    B) the stack trace
    C) the listener status (from my 9i server. Also tryied another servr with 10g)
    when I call this program, I´ve tried severl connection strings:
    jdbc:oracle:thin:user/pass@sdd51:1521:ebf
    jdbc:oracle:thin:user/pass@:sdd51.sdd.com.ar:1521:ebf
    jdbc:oracle:thin:user/pass@:10.10.10.51:1521:ebf
    also try the other sintax:
    jdbc:oracle:thin:user/pass@//sdd51:1521/ebf
    In the classpath, I´tryied:
    clasess12.jar
    ojdbc14.jar
    nls_charset12.jar
    thanks
    A)=================================================
    // Import the JDBC classes
    import java.sql.*;
    import oracle.jdbc.pool.OracleDataSource;
    import java.io.*;
    import java.util.*;
    public class test
    // The query we will execute
    static final String query = "select 'Hello JDBC: ' || sysdate from dual";
    // The connection to the database
    static Connection conn;
    // Create the User Interface
    static public void main (String args[])
    try {
    String connect_string = args[0];
         // See if we need to open the connection to the database
         if (conn == null)
    // Create a OracleDataSource instance and set URL
    OracleDataSource ods = new OracleDataSource();
    ods.setURL(connect_string);
         // Connect to the databse
         System.out.println ("Connecting to " + connect_string + "\n");
         conn = ods.getConnection ();
         System.out.println ("Connected\n");
         // Create a statement
         Statement stmt = conn.createStatement ();
         // Execute the query
         System.out.println ("Executing query " + query + "\n");
         ResultSet rset = stmt.executeQuery (query);
         // Dump the result
         while (rset.next ())
         System.out.println (rset.getString (1) + "\n");
         // We're done
         System.out.println ("done.\n");
    catch (Exception e)
    e.printStackTrace();
         // Oops
         System.out.println (e.getMessage () + "\n");
    B)=================================================
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:212)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:102)
         at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:85)
         at test.main(test.java:66)
    C)=================================================
    LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 30-JAN-2006 17:39:59
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 9.2.0.1.0 - Production
    Start Date 24-JAN-2006 11:16:18
    Uptime 6 days 6 hr. 23 min. 40 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Log File /opt/oracle/product/9.2.0/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sdd51.sdd.com.ar)(PORT=1521)))
    Services Summary...
    Service "ebf" has 1 instance(s).
    Instance "ebf", status READY, has 1 handler(s) for this service...
    The command completed successfully

  • Top Link error 17002 The Network Adapter could not establish the connection

    I have installed an application developped in an another environnement.
    I have created the database schema in my own database.
    I have created a database connection to this schema.
    I have reconciled the schema using this connection (so the database and the connection are available and correct from jdeveloper)
    I have updated the Mapping to use the new connection and new generated the mapping status report without any errors
    and i still have this error ! The Network Adapter could not establish the connection when i access any jsp document containing data from the database.
    I check and recheck everything and all is correct ... sure something is wrong somewhere ... where is the question ...

    Sorry I think you didn't read the thread or you read it too fast !
    I'm not a beginner and I know what the problem is but all the settings are correct in jdev and the database and the listener are running ... i'm able to browse the tables, seeing data reconciling objects with the database connection referenced in the top link descriptor
    It seem that top link is using something else and i don't understand from where it took the connection description.

  • SQL Developer Connection Error: Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection

    Hi, I'm running the following setup:
    Mac OS X 10.8.4
    Virtual Box 4.2.16 r86992
    Oracle Developer Days (don't know the version, just downloaded it)
    SQL Developer 3.2.20.09
    Networking is host-only, I tried bridged but that doesn't make a difference for the problem at hand. I can ping my virtual box just fine, telnet to port 1521 looks good too:
    $ ping 192.168.56.101
    PING 192.168.56.101 (192.168.56.101): 56 data bytes
    64 bytes from 192.168.56.101: icmp_seq=0 ttl=64 time=0.449 ms
    ^C
    --- 192.168.56.101 ping statistics ---
    1 packets transmitted, 1 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.449/0.449/0.449/0.000 ms
    $ telnet 192.168.56.101 1521
    Trying 192.168.56.101...
    Connected to 192.168.56.101.
    Escape character is '^]'.
    asdf
    asdf
    Connection closed by foreign host.
    When I create a new connection with sql developer, with the same hostname / IP (192.168.56.101), Port 1521 (didn't change that) and SID orcl, basic connection type, it can't even connect, throwing the error mentioned in the subject:
    Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    I have looked at various threads in the forums here but I'm still stymied why the connection seems to be ok, yet sql developer has problems with it. If I create an ssh tunnel so sql developer only has to connect to localhost it works:
    ssh -L 1521:192.168.56.101:1521 -l oracle 192.168.56.101
    Message was edited by: 2a2e67cd-b5b2-4229-9fa6-21f5dfe0760d

    Hi Ali,
    This may be of varoius reasons..
    Is the database that you are connecting on the same PC?
    You have specified Hostname: localhost.
    If not please replace it with the IP of that server.
    Else please check whether the database listener is started or not. if not please start the listener.
    Check the SID by tnsping command.
    Hope this will help you..
    Thanks
    Ashok

  • SCS-SSM-10 failover - could not establish a connection

    Hi,
    I'm trying to set up Cicso asa csc-ssm-10 modules for failover, and see the following messasge, when setup is complete and after system failover has been enabled:
    InterScan for CSC SSM could not establish a  connection. The software, hardware, and patch version on the peer  devices must match. Please reconcile the mismatch that was detected and  try again.
    What could be the issue?

    Yes, Jouni you are absolutely right, both devices should be Identical from hardware, software and licensing perspectives here are the output from show module 1 details command from both devices
    ciscoasa# show module 1 details
    Getting details from the Service Module, please wait...
    ASA 5500 Series Content Security Services Module-10
    Model:              ASA-SSM-CSC-10
    Hardware version:   1.0
    Serial Number:      JAF1125001C
    Firmware version:   1.0(11)2
    Software version:   CSC SSM 6.6.1125.0
    MAC Address Range:  001b.54f7.8d00 to 001b.54f7.8d00
    App. name:          CSC SSM
    App. Status:        Up
    App. Status Desc:   CSC SSM scan services are available
    App. version:       6.6.1125.0
    Data plane Status:  Up
    Status:             Up
    HTTP Service:       Up
    HTTPS Service:      Up
    Mail Service:       Up
    FTP  Service:       Up
    Activated:          Yes
    Mgmt IP addr: x.x.x.11
    Mgmt web port: xxxxx
    Peer IP addr:   x.x.x.1
    show module 1 details
    Getting details from the Service Module, please wait...
    ASA 5500 Series Content Security Services Module-10
    Model:              ASA-SSM-CSC-10-K9
    Hardware version:   1.0
    Serial Number:      JAD164401TU
    Firmware version:   1.0(11)5
    Software version:   CSC SSM 6.6.1125.0
    MAC Address Range:  30f7.0dbc.ca96 to 30f7.0dbc.ca96
    App. name:          CSC SSM
    App. Status:        Up
    App. Status Desc:   CSC SSM scan services are available
    App. version:       6.6.1125.0
    Data plane Status:  Up
    Status:             Up
    HTTP Service:       Up
    HTTPS Service:      Up
    Mail Service:       Up
    FTP  Service:       Up
    Activated:          Yes
    Mgmt IP addr:      x.x.x.22
    Mgmt web port:      xxxxx
    Peer IP addr:       x.x.x.2

  • Network Adapter could not establish connection during installation

    Hi,
    I'm trying to install html db v10.2.0.1 and http server on the Fedora Core 4 platform and am getting a "Network Adapter could not establish connection during installation" error. This occurs after pressing Next at on the Specify HTML DB Database Details dialog box. Note that I'm not new to oracle databases or html db. I can't seem to find a similar thread on this forum related to the html db v2 install and I've read the FAQ related to the installation, making sure that I unset the TNS_ADMIN and ORACLE_HOME environment variables before launching the installer. I also checked that I can connect to the database via the listener, sqlplus sys@database as sysdba. I checked the listener status:
    [oracle@hinault ~]$ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 18-AUG-2005 12:03:23
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 18-AUG-2005 08:11:25
    Uptime 0 days 3 hr. 51 min. 58 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File /u01/app/oracle/product/10.2.0/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hinault.com)(PORT=1521)))
    Services Summary...
    Service "tibbetts" has 1 instance(s).
    Instance "tibbetts", status READY, has 1 handler(s) for this service...
    Service "tibbettsXDB" has 1 instance(s).
    Instance "tibbetts", status READY, has 1 handler(s) for this service...
    Service "tibbetts_XPT" has 1 instance(s).
    Instance "tibbetts", status READY, has 1 handler(s) for this service...
    The command completed successfully
    I also checked the installation log files. Here's the contents of the end of the file:
    schemaName = sys
    schemaPassword = Protected value, not to be logged
    connectString = //hinault.com:1521/tibbetts
    userName = FLOWS_010600
    INFO: Query Returned: ERROR:Exception occured while connecting to database. Please check the connection details of the database you specified and retry.
    Io exception: The Network Adapter could not establish the connection
    SEVERE: The installer has encountered the following error while trying to connect to the target database:
    ERROR:Exception occured while connecting to database. Please check the connection details of the database you specified and retry.
    Io exception: The Network Adapter could not establish the connection
    INFO: User Selected: Yes/OK
    I also checked the listener log and it looks normal. I checked that I entered the correct values in the Specify HTML DB Database Details dialog box, hostname, port and service name.

    [root@hinault sbin]# ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:12:3F:DF:23:BF
    inet addr:10.100.41.136 Bcast:10.100.41.255 Mask:255.255.255.0
    inet6 addr: fe80::212:3fff:fedf:23bf/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:72238 errors:0 dropped:0 overruns:0 frame:0
    TX packets:44289 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:19151698 (18.2 MiB) TX bytes:4351417 (4.1 MiB)
    Interrupt:9
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:6838 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6838 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:3168107 (3.0 MiB) TX bytes:3168107 (3.0 MiB)
    sit0 Link encap:IPv6-in-IPv4
    NOARP MTU:1480 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

  • Hotspot login cannot open the page because it could not establish a secure connection to the server.

    I am trying to connect to a public wifi network.  My iPad connects marvoulesly.  My iPhone not so much.  I have an iPhone 4 and everytime I go to connect, it goes to a pop up page where I'm supposed to click a link to adhere to their TOS.  When I get the pop up page I get "Hotspot login cannot open the page because it could not establish a secure connection to the server"
    I've reset the network settings and nothing changed.  Same error message.  Any tips or tricks to fix this?  I'm laid up on bed rest in the hospital and would really rather that I not use all my data minutes...
    Thanks!

    Updated to iOS6 on an iPhone 4 this morning, and now when I attempt to connect to my work wireless, it connects for a moment then attempts to popup some login page (I sometimes get the hotspot login error you've mentioned) and because the page doesn't exist I can't get connected to the wireless netowrk.
    What the heck have apple broken in this update?
    Why when joining a normal wireless network is my phone even going near a Login page? What is this and how do I disable it?
    Oh, and I'm posting here because your suggestions of disabling the Wi-Fi and Cellular data netowkrs doesn't solve the problem.
    [Edit: seems while typing this leaving the cellular data disabled, it's now letting my join wireless - seems to be some timeout on it fixing the issue - I'd still like to know what this login page is it's attempting to locate is for.]
    -A

  • Jdbc thin error : The Network Adapter could not establish the connection

    jdbc thin error : The Network Adapter could not establish the connection
    I have been able to create a webservice as per the article Build a PL/SQL Web Service by jason price from otn website. while executing url to call the pl/sql procedure to get the data i am encountering this error
    The Network Adapter could not establish the connection in the resultant xml output. Am I missing something here ?
    Please see ouput below
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.sql.SQLException: Io exception: The Network Adapter could not establish the connection</faultstring>
    <faultactor>/plsqlsample/dbfunc</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope
    my oc4j/j2ee/home/config/data-sources.xml file has this entry for the connection
    <data-source class="com.evermind.sql.DriverManagerDataSource" connection-driver="oracle.jdbc.driver.OracleDriver" ejb-location="jdbc/hr_connDS" inactivity-timeout="30" location="jdbc/hr_connCoreDS" name="jdev-connection:hr_conn" password="xxxx" pooled-location="jdbc/hr_connPooledDS" url="jdbc:oracle:thin:@o11idev.concentra.com:9200:DEV1" username="hr8" xa-location="jdbc/xa/hr_connXADS"/>
    I am not able to debug this error and any information to debug this error would be appreciated. I have scanned the metalink short of logging a tar. I am using the oc4j install on the 9ias webserver and not the jdeveloper/oc4j combination. The apps server runs 9ias on hp/ux.
    Thanks
    ashok

    Ashok,
    Your database connection URL doesn't look right to me. The default database connection listener port is 1521 (not 9200). You can check this using the "lsnrctl" utility.
    To find the "host" and SID parts (of the URL), use the following SQL query:
    select HOST_NAME, INSTANCE_NAME from V$INSTANCEGood Luck,
    Avi.

  • The network adaptor could not establish the connection

    Hi all,
    my Oracle version :10g
    operating System:windows vista home premium.
    I wrote a jdbc program,Actually it gives the output correctly upto yesterday but it gives the error message now:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :111)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :145)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :254)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    438)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:34)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at First.MakeConnection(first.java:21)
    at abc1.main(abc1.java:10)
    And also in my
    C:\oracle\product\10.2.0\db_1\network\log\listener
    shows:
    09-APR-2008 20:20:44 * ping * 0
    09-APR-2008 20:20:44 * (CONNECT_DATA=(SID=ssanthu)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=SANTHU-PC)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=51637)) * establish * ssanthu * 0
    09-APR-2008 20:20:44 * service_update * ssanthu * 0
    09-APR-2008 20:20:44 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.100)(PORT=1521)))(VERSION=169870080)) * status * 0
    09-APR-2008 20:20:52 * (CONNECT_DATA=(SID=ssanthu)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=SANTHU-PC)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=51642)) * establish * ssanthu * 0
    09-APR-2008 20:20:53 * service_update * ssanthu * 0
    09-APR-2008 20:20:59 * (CONNECT_DATA=(SID=ssanthu)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=SANTHU-PC)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=51643)) * establish * ssanthu * 0
    09-APR-2008 20:21:15 * (CONNECT_DATA=(SID=ssanthu)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=SANTHU-PC)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.100)(PORT=51644)) * establish * ssanthu * 0
    09-APR-2008 22:16:43 * service_died * ssanthu * 12547
    TNS-12547: TNS:lost contact
    TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Production on 10-APR-2008 03:15:15
    Copyright (c) 1991, 2006, Oracle. All rights reserved.
    System parameter file is C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    Log messages written to C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Trace information written to C:\oracle\product\10.2.0\db_1\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=2384
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.100)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    TNSLSNR for 32-bit Windows: Version 10.2.0.3.0 - Production on 10-APR-2008 13:34:38
    Copyright (c) 1991, 2006, Oracle. All rights reserved.
    please can any one suggest me.....why i got the error like this.
    Thanks in advance.
    Edited by: javagrl on Apr 11, 2008 9:26 AM
    Edited by: javagrl on Apr 11, 2008 9:27 AM
    Edited by: javagrl on Apr 11, 2008 9:27 AM

    If it worked yesterday, but not today, that proabably means you turned off your computer between then and now.
    I suspect you set up some classpath term using say a dos window that when you turned off your computer, went away.
    You need to put the classpath in some configuration file such as <start><control panel><admin tools><data sources odbc>,
    or add information to your tnsnames file, or add an item to your computer's PATH.

  • The Network Adapter could not establish the connection Error Code: 17002

    Hi,
    after upgrade b41 to b49, I get error from subject, without any changes in my app.
    This occurs only on Oracle AS, on standalone OC4J application works OK.
    I use connection defined in persistence.xml:
    <non-jta-data-source>jdbc/MyAppDS</non-jta-data-source>
    and can successfully test this connection in Enterprise manager.
    Also, I tried all tricks mentioned here:
    http://www.websina.com/bugzero/kb/oracle-connection.html
    I know, that this is JDBC layer problem, but I am sure, that my connection is OK, and
    after downgrade to b48 this problem fall away.
    Bye,
    Lumir

    Could you provide the full stack trace to the exception.Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Výjimka vstupu/výstupu: The Network Adapter could not establish the connection
    Error Code: 17002
         at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
         at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
         at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:185)
         at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:242)
         at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:309)
         at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117)
         at oracle.toplink.essentials.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:135)
         at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:458)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:586)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:235)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:227)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
         at idea.isko.db.service.impl.AbstractServiceImpl.createEntityManager(AbstractServiceImpl.java:77)
    How have you deployed your application exactly, i.e. what is the structure of your ear. I use standard war for deploy.
    Is the DataSource defined in your server, or your application? Defined on server, test on Enterprise manager passed successfully.
    Try using a direct JDBC connection in your persistence.xml (driver/url), does this work?Not work, this same exception.
    How do you access your entity manager? (managed, non-managed, jta, non-jta?)non-managed, non-jta.
    FYI, I make downgrade to build 48, and this works - it is last version without this problem.
    I added some tracing code to my SessionCustomizer:customize():
    DatabaseLogin login = session.getLogin();
    logger.fine("URL is :" + login.getDatabaseURL());
    With build 48, connection defined using toplink.jdbc.* , the output is:
    07/06/11 10:04:36.218 10.1.3.1.0 Started
    07/06/11 10:04:43.593 MyApp: 10.1.3.1.0 Started
    07/06/11 10:05:18.578 MyApp: FINE - Customizing session - directProperties
    07/06/11 10:05:18.578 MyApp: FINE - URL is :jdbc:oracle:thin:@(DESCRIPTION ... (cut)
    07/06/11 10:07:16.875 MyApp: 10.1.3.1.0 Stopped
    And after upgrade to build 50:
    07/06/11 10:10:12.703 10.1.3.1.0 Started
    07/06/11 10:10:30.953 MyApp: 10.1.3.1.0 Started
    07/06/11 10:10:52.281 MyApp: FINE - Customizing session - directProperties
    07/06/11 10:10:52.296 MyApp: FINER - THROW
    Local Exception Stack:
    Exception [TOPLINK-28014] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Exception was thrown while processing property [toplink.session.customizer] with value [idea.jpa.util.ToplinkSessionCustomizer].
    Internal Exception: Exception [TOPLINK-7058] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: Invalid Connector [JNDIConnectordatasource name=>null] (must be of type DefaultConnector).
    It seems to me, that Login is not properly initialized when app. run in Oracle AS.
    Bye,
    Lumir

  • -lo exception the network adapter could not establish the connection

    Hi,
    I am getting following error when connecing to Oracle database
    error: -lo exception the network adapter could not establish the connection
    I am able to connect through sqlplus
    pls help
    thanks

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\2101571>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon Aug 29 22:56:02 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> kocdw as sysdba
    SP2-0734: unknown command beginning "kocdw as s..." - rest of line ignored.
    SQL> conn kocdw
    Enter password:
    Connected.
    SQL> startup
    ORA-01031: insufficient privileges
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> startup
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> select instance_name from V$instance;
    INSTANCE_NAME
    orcl01
    SQL> SELECT * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL>

  • Coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {10.242.152.242/10.242.152.242:8088}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpA

    Hi
    I have installed coheI have installed coherence server "fmw_12.1.3.0.0_coherence_Disk1_1of1.zip" along with Examples on windows machine and C++ client coherence-cpp-12.1.3.0.0b51709-windows-x86-vs2012.zip on the same machine.
    I have built the "contacts" C++ Example successfully and while I execute this "contacts" using run I am facing TcpAcceptor error.
    On my coherence server the TcpAcceptor is listening on port 8088, so I have modified the extend-cache-config.xml file with values "ip address of my windows machine" and port as "8088".
    All the time I am getting below error,
    coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {10.242.152.242/10.242.152.242:8088}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor
        at class coherence::lang::TypedHandle<class coherence::component::net::extend::PofConnection> __thiscall coherence::component::util::TcpInitiator::openConne
    ction(void)(TcpInitiator.cpp:307)
        at coherence::component::util::TcpInitiator::openConnection
        at coherence::component::util::Initiator::ensureConnection
        at coherence::component::net::extend::RemoteCacheService::openChannel
        at coherence::component::net::extend::RemoteService::doStart
        at coherence::component::net::extend::RemoteService::start
        at coherence::component::util::SafeService::startService
        at coherence::component::util::SafeService::restartService
        at coherence::component::util::SafeService::ensureRunningServiceInternal
        at coherence::component::util::SafeService::start
        at coherence::net::DefaultConfigurableCacheFactory::configureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache
        at coherence::net::DefaultConfigurableCacheFactory::configureCache
        at coherence::net::DefaultConfigurableCacheFactory::ensureCache
        at coherence::net::CacheFactory::getCache
        at unsigned __int64 coherence::lang::class_spec<class coherence::lang::Managed<class ContactId>,class coherence::lang::extends<class coherence::lang::Object,class coherence::lang::Void<class coherence::lang::Object> >,class coherence::lang::implements<void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void> >::sizeOf(bool)
        at _onexit
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at BaseThreadInitThunk
        at RtlInitializeExceptionChain
        at RtlInitializeExceptionChain
        on thread "main"
    Caused by: coherence::net::messaging::ConnectionException: coherence::component::util::TcpInitiator::TcpConnection@029EAD78{Id=NULL, Open=1, LocalAddress=NULL,
    RemoteAddress=10.242.152.242/10.242.152.242:8088}: socket disconnect
        at class coherence::lang::TypedHandle<class coherence::net::messaging::Response> __thiscall coherence::component::net::extend::AbstractPofRequest::Status::g
    etResponse(void)(AbstractPofRequest.cpp:203)
        at coherence::component::net::extend::AbstractPofRequest::Status::getResponse
        at coherence::component::net::extend::AbstractPofRequest::Status::waitForResponse
        at coherence::component::util::Initiator::openConnection
        at coherence::component::net::extend::PofConnection::open
        at coherence::component::util::TcpInitiator::openConnection
        at coherence::component::util::Initiator::ensureConnection
        at coherence::component::net::extend::RemoteCacheService::openChannel
        at coherence::component::net::extend::RemoteService::doStart
        at coherence::component::net::extend::RemoteService::start
        at coherence::component::util::SafeService::startService
        at coherence::component::util::SafeService::restartService
        at coherence::component::util::SafeService::ensureRunningServiceInternal
        at coherence::component::util::SafeService::start
        at coherence::net::DefaultConfigurableCacheFactory::configureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureService
        at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache
        at coherence::net::DefaultConfigurableCacheFactory::configureCache
        at coherence::net::DefaultConfigurableCacheFactory::ensureCache
        at coherence::net::CacheFactory::getCache
        at unsigned __int64 coherence::lang::class_spec<class coherence::lang::Managed<class ContactId>,class coherence::lang::extends<class coherence::lang::Object
    ,class coherence::lang::Void<class coherence::lang::Object> >,class coherence::lang::implements<void,void,void,void,void,void,void,void,void,void,void,void,void
    ,void,void,void> >::sizeOf(bool)
        at _onexit
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at class coherence::util::Hashtable * coherence::lang::factory<class coherence::util::Hashtable>::create(void)
        at BaseThreadInitThunk
        at RtlInitializeExceptionChain
        at RtlInitializeExceptionChain
        on thread "main"
    Caused by: coherence::io::IOException: socket disconnect
        at unsigned int __thiscall coherence::net::Socket::readInternal(unsigned char *,unsigned int)(Socket.cpp:333)
        at coherence::net::Socket::readInternal
        at coherence::net::Socket::SocketInput::read
        at coherence::io::BufferedInputStream::fillBuffer
        at coherence::io::BufferedInputStream::read
        at coherence::component::util::TcpInitiator::readMessageLength
        at coherence::component::util::TcpInitiator::TcpConnection::TcpReader::onNotify
        at coherence::component::util::Daemon::run
        at coherence::lang::Thread::run
        on thread "ExtendTcpCacheService:coherence::component::util::TcpInitiator:coherence::component::util::TcpInitiator::TcpConnection::TcpReader"

    We are facing same issue.    Could you please provide us any working .Net sample code for the version 12.1.2.0.
    <ssl>
                  <protocol>Tls</protocol>
                  <local-certificates>
                    <certificate>
                      <url>c:\Cert\</url>
                      <password>password</password>
                      <flags>DefaultKeySet</flags>
                    </certificate>
                  </local-certificates>
                </ssl>
    thanks
    Bala

  • Clean Access Server could not establish a secure connection

    I have a OOB Real IP GW setup on v4.1.2
    I seem to have a problem with the CAS connecting to the CAM although I have added the CAS to the CAM and can manage the CAS from the CAM.
    I noticed while troubleshooting client authentication that the client was not being redirected to the logon web page and it had full access to the trusted network from the untrusted authentication vlan. I eventually figured out that if I change the CAS Filter Fallback method from Allow to ignore then it tries to authenticate the client. However the fact that the fallback is activated tells you that something is not right.
    I have 2 problems:
    A) The clients web page is redirected for authentication but it only lists the domain name in the URL and not the hostname or host IP. In the lab I do not have a DNS server and it would not help as it does not include the hostname in the URL anyway. How do I fix this or perhaps it's related to the 2nd problem.
    B) When I manually change the URL by replacing the domain name with the IP of the CAS (untrusted OOB Real IP GW) then I get the following error message when logging on:
    Network Error:
    Clean Access Server could not establish a secure connection to Clean Access Manager at mydomain.com.
    This could be due to one or more of the following reasons: 1) Clean Access Manager certificate has expired 2) Clean Access Manager certificate cannot be trusted or 3) Clean Access Manager cannot be reached.
    Please report this to your network administrator.
    I would guess the culprit is No 2 but surely the system can run on self signed certificates? I have an NTP server so time is in sync. I have even tried regenerating the cetificates on the CAM
    & CAS.
    Any ideas?

    To overcome problem B, I regenerated the SSL Certificates using the host IP address instead of the name for all the CAM & CAS appliances. This seems to have resolved this problem.
    I also SSH'd from each of the CAS's to each of the CAM's from the CLI and it then prompts to permanently store the certificates. I'm not sure it this was necessary though.

  • WSUS Sync is not working Sync failed: UssCommunicationError: WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. --- System.Security.Authentication.AuthenticationException: The remote

    I know there are loads of posts with same issue and most of them were related to proxy and connectivity .
    This was case for me as well (few months back). Now the same error is back. But I've confirmed that FW ports and proxy are fine this time around.
    server is configured on http port 80 
    ERROR
    Sync failed: UssCommunicationError: WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid
    according to the validation procedure.~~at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request). Source: Microsoft.SystemsManagementServer.SoftwareUpdatesManagement.WSyncAction.WSyncAction.SyncWSUS
    I've checked proxy server connectivity. I'm able browse following site from WSUS server
    http://catalog.update.microsoft.com/v7/site/Home.aspx?sku=wsus&version=3.2.7600.226&protocol=1.8
    I did telnet proxy server on the particular port (8080) and that is also fine.
    I've doubt on certificates, any idea which are the certificates which we need to look? And if certificate is expired then (my guess) we won't be able open the above mentioned windows update catalog site?
    Any tips appreciated !
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

    Hi Lawrence ! - Many thanks for looking into this thread and replying. Appreciate your help.
    Your reply  ("SSL is enabled/configured, and the certificate being used is invalid
    (or the cert does not exist or cannot be obtained), or the SSL connection could not be established.") is very helpful.
    I've already tested CONTENT DOWNLOAD and it's working fine. WSUS Sync was also working fine for years with proxy server configured on port (8080) and WSUS server on port 80.
    My Guess (this is my best guess ;)) is this something to do with Firewall or Proxy side configuration rather than WSUS. However, I'm not finding a way to prove this to proxy/firewall team. From their perspective all the required port communication open and
    proxy server is also reachable. More over we're able to access internet (Microsoft Update Catalog site) over same port (8080).
    Any other hints where I can prove them it's a sure shot problem from their side.
    Thanks again !!
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

Maybe you are looking for