ERROR:DBCP borrowObject failed: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection

Does anyone know what this error means?I have already installed Analyzer 6.5 on Win NT, on locally installed Tomcat web server and the oracle 9i database is on a solaris box.I think the problem is it is not able to connect to the oracle repository but I don't know how to fix it. Thanks,Haroon

Joe,
It may happen during testOnReserve, too.
Slava
"Joseph Weinstein" <[email protected]> wrote in message
news:[email protected]..
That means the Oracle URL you supplied to the pool is incorrect forconnecting to the
DBMS you want. If the same pool definition works sometimes and sometimesnot,
then it's an oracle problem with rapid connection requests. Make the poolmake all it's
connections at startup, by setting init=max, and this shouldn't happen.
Joe
Najib wrote:
Hi,
I am using a WebLogic Server 5.1. I created a connection pool to access
Oracle DB 8.1.7. It works fine but some times i have this pb :
Tue Apr 16 08:35:37 GMT 2002:<I> <JDBC Pool> Sleeping increateResource()
SQLException Pool connect failed: weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Io exception: The Network Adapter could notestablish the connection
atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
atoracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
atoracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
EnvFactory.java:164)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
EnvFactory.java:123)
can some one help me please.
thinx.

Similar Messages

  • DBCP borrowObject failed: java.sql.SQLException: Io exception: The Network

    My web application connection to Oracle is successful and displays proper output but sometimes i get this error and then i am not able to login to application.But again if I try logging in after sometime then there's no error and application works fine.
    Can anyone advice me on why only sometimes I get the error
    DBCP borrowObject failed: java.sql.SQLException: Io exception: The Network .I am using tomcat server and jdbc:oracle:thin driver for connect
    Thanks .
    Pallavi

    My web application connection to Oracle is successful
    and displays proper output but sometimes i get this
    error and then i am not able to login to
    application.But again if I try logging in after
    sometime then there's no error and application works
    fine.
    Can anyone advice me on why only sometimes I get the
    error
    DBCP borrowObject failed: java.sql.SQLException: Io
    exception: The Network .I am using tomcat server and
    jdbc:oracle:thin driver for connect
    Thanks .
    PallaviIt seems it has to do with the network not working properly; sometimes it works and sometimes just not. So DBCP sometimes can't get any connection to give you.
    You can probably configure dbcp (or Tomcat if you are using its built-in datasource) to retry until it can get a "good" connection, but for this you' ll have to look at dbcp or Tomcat docs (if you never heard of DBCP you it is probably useless to look in its docs, because probably Tomcat is responsible for its configuration).

  • Java.sql.SQLException: Io exception: The Network Adapter could not establish the conn

    Hello all!
    First of all, I want to say I read all the answers to this problem that were posted in the past in this forum.
    I try to connect from the intranet to an Oracle database, named bc01. The string I use is "jdbc:oracle:thin:@192.168.199.11:1521:bc01". On the 192.168.199.11 machine the listener and oracleservice services are started. The bc01 is correctly added to tnsnames.ora. If I issue a tnsping80 192.168.199.11 from the console it works. However, if I issue the same command from my workstation, it doesn't work (says No listener). So what am I missing here?
    Any help is much appreciated !
    Thank you very much!

    Faizan,
    Normally this error is reported when the database is either not available or the URL is invalid. Please check the URL whether you have a valid DB connection there.
    Also I see the getConnection missing e,g.
    Connection conn = ds.getConnection();
    regards
    Debu
    I am trying to setup DataSource for my application and I am using oracle 8.1.6.3 database. I have following entry in the data-sources.xml file
    <data-source
                   class="oracle.jdbc.pool.OracleDataSource"
                   name="jdbc/pool/OracleDS"
                   location="jdbc/ConnectionDS"
                   pooled-location="jdbc/pool/OracleDS"
                   url="jdbc:oracle:thin:@machine:1521:development"
                   username="user"
                   password="password"
                   min-connections="3"
                   max-connections="50"
                   wait-timeout="10"               
                   inactivity-timeout="30"
         />
    In my JSP code I am doing following to access the database
    ResultSet sqlResultSet = null;
    PreparedStatement stm = null;
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource)ic.lookup("jdbc/OracleDS");
    stm = conn.prepareStatement(updtUser);
    I got following exception when I ran teh code
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Thanks for help
    Faizan

  • [java.sql.SQLException: Io exception: The Network Adapter could not establish the connection]

    Hello,
    I have recently installed Weblogic6.1Sp1 server with Weblogic Intergration 2.1
    on solaris 7 and im getting this error when connecting to the database (oracle816.3);
    I have changed Oracle drivers and tried many different configurations, with no
    luck, Could someone give me some guidance or has anyone encounted this error before.
    Thanks
    Bobby
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection]
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at com.bea.wlpi.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:187)
    at com.bea.wlpi.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:1177)
    at weblogic.security.utils.Pool.getInstance(Pool.java:57)
    at com.bea.wlpi.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:104)
    at com.bea.wlpi.rdbmsrealm.RDBMSRealm.getUser(RDBMSRealm.java:145)
    at weblogic.security.acl.CachingRealm.getUserEntry(CachingRealm.java:806)
    at weblogic.security.acl.CachingRealm.getUser(CachingRealm.java:670)
    at weblogic.security.acl.internal.FileRealm.getPrincipalFromAnyRealm(FileRealm.java:1008)
    at weblogic.security.acl.internal.FileRealm.ensureRequiredObjectsExist(FileRealm.java:957)
    at weblogic.security.acl.internal.FileRealm.loadMembers(FileRealm.java:1202)
    at weblogic.security.SecurityService.initializeRealm(SecurityService.java:274)
    at weblogic.security.SecurityService.initialize(SecurityService.java:115)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:390)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
    at weblogic.Server.main(Server.java:35)

    Hi. This is definitely an oracle-only problem, so you should simplify the problem
    down to a small standalone program using the oracle thin driver to make a connection.
    Once you get this to work, weblogic will also be able to do it. Make sure that
    when you try to have weblogic succeed after you can do it with oracle code only,
    that the driver you used to succeed with, is ahead of any weblogic jars in
    the server classpath. Note that we ship a classes12.zip in our packaging, but
    Oracle has since released a newer one (with the same name!) that has some bugs
    fixed. Make sure the later one is the one the JVM will pick up.
    Joe
    Bobby wrote:
    >
    Hello,
    I have recently installed Weblogic6.1Sp1 server with Weblogic Intergration 2.1
    on solaris 7 and im getting this error when connecting to the database (oracle816.3);
    I have changed Oracle drivers and tried many different configurations, with no
    luck, Could someone give me some guidance or has anyone encounted this error before.
    Thanks
    Bobby
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection]
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at com.bea.wlpi.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:187)
    at com.bea.wlpi.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:1177)
    at weblogic.security.utils.Pool.getInstance(Pool.java:57)
    at com.bea.wlpi.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:104)
    at com.bea.wlpi.rdbmsrealm.RDBMSRealm.getUser(RDBMSRealm.java:145)
    at weblogic.security.acl.CachingRealm.getUserEntry(CachingRealm.java:806)
    at weblogic.security.acl.CachingRealm.getUser(CachingRealm.java:670)
    at weblogic.security.acl.internal.FileRealm.getPrincipalFromAnyRealm(FileRealm.java:1008)
    at weblogic.security.acl.internal.FileRealm.ensureRequiredObjectsExist(FileRealm.java:957)
    at weblogic.security.acl.internal.FileRealm.loadMembers(FileRealm.java:1202)
    at weblogic.security.SecurityService.initializeRealm(SecurityService.java:274)
    at weblogic.security.SecurityService.initialize(SecurityService.java:115)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:390)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
    at weblogic.Server.main(Server.java:35)

  • Java.sql.SQLException: Io exception: The Network Adapter could not establish the

    Dear all,
    I have been trying to connect to Oracle 8 from Java but without success.
    I am using the following driver: oracle.jdbc.driver.OracleDriver
    and the thin protocol as follows:
    jdbc:oracle:thin:userid/password@databasename:1512:sid
    I am getting the error message:
    java.sql.SQLException: Io exception: The Network Adapter could not establish th
    connection
    I am using jdk1.3 with classes12.zip added to the classpath settings.
    Can anybody help please.
    Regards,
    [email protected] or [email protected]
    null

    Dear colleague,
    I am using a stand alone database running on my windows 98 laptop.
    I connect successfully via sql plus using the user id: scott and password tiger.
    Below is the entry of my tnsname.ora:
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    I am finding difficult to specify a host, but I have tried the following combinations:
    DriverManager.getConnection ("jdbc:oracle:thin:@koudry:1521:PLSExtProc","scott", "tiger");
    where the machine name is koudry and PLSExtProc the sid.
    DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:PLSExtProc","scott", "tiger");
    and also 127.0.0.1 which is the ip address of the localhost. All these give me the following error:
    Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap
    ter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:263)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at web.main(web.java:10)
    When I use the oci protocol like:
    DriverManager.getConnection ("jdbc:oracle:oci8:@127.0.0.1:1521:PLSExtProc","scott", "tiger");
    I get the following error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
    at oracle.jdbc.oci8.OCIDBAccess.make_c_state(Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:233)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:249)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at web.main(web.java:10)
    Below is the entry for autoexec.bat:
    set classpath=.;c:\oracle\ora81\jdbc\lib\classes12.zip;
    mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
    mode con codepage select=850
    keyb uk,,C:\WINDOWS\COMMAND\keyboard.sys
    SET Path=c:\Oracle\Ora81\lib;c:\Oracle\Ora81\bin;"C:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN";C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\DOS;C:\JDK1.3\BIN;C:\MSSQL7\BINN;C:\JDK1.3\SRC;
    Can anyone see what I am doing wrong.
    Thanks,
    Richard Koudry
    null

  • Java.sql.SQLException: Io exception: The Network Adapter could not establish the co

    I am using Oracle 9i Server just the
    Weblogic 5.1 and also using Oracle 8.1.6 client for weblogic. When I start the weblogic application I am getting the following error message
    "java.sql.SQLException: Io exception: The Network Adapter could not establish the co
    nnection

    On 10 Feb 2003 09:51:52 -0800, Shankar Viswanathan
    <[email protected]> wrote:
    I am using Oracle 9i Server just the
    Weblogic 5.1 and also using Oracle 8.1.6 client for weblogic. When I start the weblogic application I am getting the following error message
    "java.sql.SQLException: Io exception: The Network Adapter could not establish the co
    nnection
    "You're not providing a lot of information here, but I'll assume a few
    things and say...
    Ensure the URL param is set properly in the pool def. Check hostname,
    port and database/TNS entry. Also, try dbpinging the database with the
    following:
    java utils.dbping ORACLE <user> <password> <dbname>
    substitute the appropriate values where necessary. For example, I have
    a TNS def called 'jforum.world' for a particular oracle instance. User
    is 'auser' and the password is 'apass'. The following command will
    test the connection:
    java utils.dbping ORACLE auser apass jforum.world
    Alternatively, you can try tnsping, an oracle util, to test the
    connectability.
    If either of these utils work, then it's probably a typo somewhere in
    the pool properties.
    Bon

  • 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

  • SQL error: Io exception: The Network Adapter could not establish the connec

    Hi,
    I am sure this question has been asked a million times and maybe i haven't searched the forum enough.
    But here's the situation. I haven't used oracle too much. So I am not too familiar with data-source and what not..
    I downloaded the latest version of oc4j(standalone) a few days back. I am trying to get the Oc4j j2eehome/demo/ormap to work .
    I deployed the application manually by editing server.xml and http-web-site.xml files...
    But i get this error
    SQL error: Io exception: The Network Adapter could not establish the connection
    I have no clue what that is..
    I know its got to do with the bean not connecting to the Database. Do i need to download the oracle database server too.. The documentation says something about the cloudscape database.. Well basically i am lost..
    Any information will be very helpful.
    regards
    -amit

    Hi Amit --
    This exception means that the container can't connect to the database instance to which it has been directed to use.
    If you are using the ormap demo, then this is an entity bean based sample and will need a database.
    The database configurations are stored at the server level in the j2ee/home/config/data-sources.xml file. In this file you will see entries that define a datasource using a set of "locations", provides details on where the database instance (host, port, sid) and what the logon details are.
    For the container, a default-data-source is defined (ie one to use if no others are supplied) in the j2ee/home/config/application.xml.
    <orion-application autocreate-tables="false"
    default-data-source="jdbc/OracleDS">
    To make it work simply, make sure that you have a datasource named jdbc/OracleDS defined in the data-sources.xml file (which should be there as a template) and that the connection details for it point to a valid database instance and user.
    cheers
    -steve-

  • 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 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

  • IO Error: The Network Adapter could not establish the connection in oracle

    Hi experts,
    I have oracle developer days installed in my vitrual box machine. The connection to oracle datatase (11.2.0.2) contained in the oracle developer days was working fine via sql developer. I use eclipse to write some java programs to connect the database. However, somehow, I cannot connect the database via sql deveoper anymore. This is the error I got when I tried to connect it via basic connection type:
    Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    Can anybody shed a light on this issue please. Thanks a lot in advance.

    user571093 wrote:
    Hi experts,
    I have oracle developer days installed in my vitrual box machine. The connection to oracle datatase (11.2.0.2) contained in the oracle developer days was working fine via sql developer. I use eclipse to write some java programs to connect the database. However, somehow, I cannot connect the database via sql deveoper anymore. This is the error I got when I tried to connect it via basic connection type:
    Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    Can anybody shed a light on this issue please. Thanks a lot in advance.Do you realize & understand that we are NOT standing behind you?
    I, too, am running Oracle Developer Days inside VirtualBox.
    On which system is SQL Developer installed?
    The post errors indicate an OS/networking issue.
    when was last time all worked without error?
    what changed since then?
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Sql exeption: Io exception: The Network Adapter could not establish the connection

    when i tried to connect to a oracle server using visual age for java i had this error message:
    "java.sql.SQLException: Io exception: The Network Adapter could not establish the connection"
    any ideas ...

    if u r using think jdbc driver then check the Host name/address (IP Address) of the server and the SID and the port number.. there is no other reason for this.
    Sometimes.. when the database is behind the firewall and the ports/IP is not open then due to denial of access this error occurs.
    HTH.
    Rajeev

  • JDBC Error - The Network Adapter could not establish the connection

    Hi all,
    I appreciate if anyone could help me out with my issue. I wrote simple java code on win 2000 to test whether I will be able to access Oracle 8i DB resided at some xxx.xxx.xxx.xxx machine within the network.
    The code is:
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@111.111.11.11:1526:DBinstance","user","password");
    The fist line here is executing and the problem is with second line of code. After executing this application from my DOS window, I am getting error:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:324)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:266)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at DBConn.getConn(DBConn.java:15)
    at DBConn.main(DBConn.java:40)
    I have installed Oracle client, where I can access the same database using SQL * Plus, but why I am unable to access the database from a Java Application? Do I need any web/application server to access it?
    Any suggestions please?
    Thanks,
    cs

    I am sorry guys, I was using the port number as 1526, where I need to use 1521...

  • HOW TO RESOLVE(Test failed: The Network Adapter could not establish the connection)

    Hii
    I want to create new databse as sysdba in jdev.I followed the steps as given in
    Oracle JDeveloper 11g Release 2 Tutorials - Designing and Building Database Tables
    In step 7 create database user and database connection, I am not able to do that and getting the error
    (Test failed: The Network Adapter could not establish the connection).
    Please help me.

    Hi,
    Could you please provide all value you pass to the connection properties on the connection creation panel? First of all, you should choose "Generic JDBC" as the connection type in order to use BDB SQL JDBC driver.
    Regards,
    Cindy

  • Error: The Network Adapter could not establish the connection

    hi, i am using classes111.zip (the oracle 8.0.5 thin driver) with
    linux and gnu jsp pages. the backend is an oracle 8.04 NT
    database.
    i get this error: "The Network Adapter could not establish the
    connection " my question is this - is this error the client
    problem or the db server problem. here is the code:
    String driverName = "oracle.jdbc.OracleDriver";
    String url = "jdbc:oracle:thin:oracle1:1541:ORCL";
    String user = "demo";
    String pwd = "demo";
    String SQL = "";
    ResultSet rs;
    try
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection con = DriverManager.getConnection(url,
    user, pwd );
    DatabaseMetaData dma = con.getMetaData();
    Statement stmt = con.createStatement();
    rs = stmt.executeQuery("select * from test");
    while(rs.next())
    out.println(rs.getString("xx") +
    rs.getString("yy"));
    catch( SQLException e )
    out.println("
    error: -> " + e + " <-
    exiting
    any ideas?
    thanks in advance,
    steve
    null

    hi, i am using classes111.zip (the oracle 8.0.5 thin driver) with
    linux and gnu jsp pages. the backend is an oracle 8.04 NT
    database.
    i get this error: "The Network Adapter could not establish the
    connection " my question is this - is this error the client
    problem or the db server problem. here is the code:
    String driverName = "oracle.jdbc.OracleDriver";
    String url = "jdbc:oracle:thin:oracle1:1541:ORCL";
    String user = "demo";
    String pwd = "demo";
    String SQL = "";
    ResultSet rs;
    try
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    Connection con = DriverManager.getConnection(url,
    user, pwd );
    DatabaseMetaData dma = con.getMetaData();
    Statement stmt = con.createStatement();
    rs = stmt.executeQuery("select * from test");
    while(rs.next())
    out.println(rs.getString("xx") +
    rs.getString("yy"));
    catch( SQLException e )
    out.println("
    error: -> " + e + " <-
    exiting
    any ideas?
    thanks in advance,
    steve
    null

Maybe you are looking for

  • To retieve tasks when user tasks are created using Jdeveloper BPELDesigner

    I am trying to get the list of tasks which are created using Jdeveloper BPel designer. I have used the following code : Locator loc = new Locator("default","bpel");           IWorklistService taskService = (IWorklistService)loc.lookupService(IWorklis

  • Save Apps to Memory Card

    Hi, Is it possible to automatically set the memory card as the default storage space for downloading applications? Is it possible to move applications from the device memory to the media card once they have been downloaded? Thanks

  • Client 11g silent installation guidance

    Hello everyone, I am just starting my journey into the world of Oracle. Typically it has not been a smooth start hence my post here. I have been asked to arrange a silent install of the 11g Client (v11.1.0.6.21 specifically) onto a Windows XP machine

  • FTXP Issue -Help me

    Hi, I am configuring out put tax and input tax in FTXP.I have to enter the tax percentage A/R Sales Tax 1  against MW1 under accrued head.but this field is in grey color mode and not able to enter the tax rate.it is open the field A/R Sales Tax 3  ag

  • Change af:selectOneChoice to af:inputText on insert

    Hi, I'm using Jdeveloper Studio Edition Version 11.1.2.3.0 Basically I have a view attribute (based on entity) that has a LOV (used in af:query in the page and af:table). The attribute is updatable only while new. Now when I add a new row in my table