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

Similar Messages

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

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

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

    Hi All,
    I run tomcat and connect to Oracle fine, both on the same machine.
    I also run some batch processes daily and they often run without problems. The batch processes lots of selects and updates/inserts onto Oracle.
    These tend to work fine, but sometimes when they run I get
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    So a batch process will be running doing lots of selects and updates then it just decides it had enough and throws this error each time it tries to connect. Meanwhile tomcat continues to run fine through the same TNS listener, but subsequent batch jobs fail to connect.I normally have to restart the TNS Listener.
    I connect through the same class whether connecting through Tomcat or from the batch process with this:
    public static Connection getConnection(String caller) throws SQLException{
    try{
    Connection con;
    if (standalone){
    try{Class.forName(driver);}catch(ClassNotFoundException e){}
    con=DriverManager.getConnection(url,user,password);
    return con;
    }else{
    if (ds==null)initialiseContext();
    con=ds.getConnection();
    return con;
    }catch(SQLException e){
    ds=null;
    logger.debug("Problem in DBAccess.getConnection()...");
    logger.debug(e.getMessage());
    e.printStackTrace();
    throw e;
    I specifiy params such as MaxIdle with Tomcat using the xml config but not when its standalone - could this be affecting it?
    Any idea?
    Thanks.

    lovingbarcelona wrote:
    * Yep I get the same on the dev box.
    * I am definitely closing all the connections, I keep a close watch on that.
    Oracle should be able to handle lots of connections no problem, I agree, and it is through tomcat.
    Yet the exception that you get says that it isn't. Oracle, for example, on a single box shouldn't be able to handle 100,000 simultaneous connections.
    I would be very surprised if it couldn't handle 1,000. And if there was an issue at that point it would be a resource bound issue, like CPU (on the single box) rather than connections.
    You suggested licensing issues?I believe at one time, not necessarily now, the Oracle server would be sold such that it limited the number of simultenous connections. This could have been a relatively low number. There are quite a few assumptions in that - the major one would be it is based on my faulty memory and second would be that it was years ago.
    By the way you are not running this on a unix variant system without redoing the kernel limits to set up for a server system right?

  • SQL Developer 1.5 - The Network Adapter could not establish the connection

    I was using SQL Developer 1.2 until this afternoon. I saw that 1.5 was available so I decided to try it out.
    Unfortunately, I cannot connect. I've tried connecting the same way I've done with 1.2 and it gives me the error:
    "Io exception: The Network Adapter could not establish the connection"
    No firewall changes, tns changes have been done the whole 10 minutes I was transitioning over from 1.2 to 1.5.
    Any ideas how I can get 1.5 to connect?

    Hi Echoi ,
    1/Do you want us to look at the tnsnames.ora and see if we spot anything?
    2/There are complications with existing ORACLE_HOME s:
    Re: 1.5 not working at all for me
    post from dooneill:
    Hi Thomas,
    SQL Developer does pick up the JDBC drivers from your local ORACLE_HOME.
    To ensure your using the shipped JDBC drivers you could use the following small script.
    I would appreciate if you could tell me if this works and what version of Oracle you have installed locally.
    1) Close SQL Developer
    2) Create a sqldeveloper.cmd file in the SQL Developer root directory
    3) With the following contents
    SET ORACLE_HOME=%CD%
    start sqldeveloper.exe
    4) Run sqldeveloper.cmd
    Thanks
    Dermot.
    -Turloch

  • Failure-Io Exception:The network adapter could not establish the connection

    Hi,
    I am new to sql developer and need help regarding establishing connection in my PC.
    I gave the following details for establishing connection.
    Connection Name: DB
    Username: myDB
    passwd: xxxxx
    Role: Default
    Connection Type: Basic
    Host Name: localhost
    Port: 1521
    SID: xe
    When I tested the connection the following error occured:
    Failure -Io Exception: The network adapter could not establish the connection
    Please help me out.
    Thanks in advance.

    Some information showing:
    How to check if there is something listening on a machine/port (there are also port scanners like nmap)
    first a success: ctrl - ] typed in by me.
    $ telnet localhost 1521
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    ^]
    telnet> quit
    Connection closed.
    then a fail:
    $ telnet localhost 1522
    Trying 127.0.0.1...
    telnet: Unable to connect to remote host: Connection refused
    $
    Oracle also has tools to get the status of the 'listener' which is listening on the port, including database names for example 'lsnrctl stat' but it may have too many dependencies and privileges required to go into here.
    If you do not have XE, you can install it with very few restrictions.
    -Turloch

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

    Hi All,
    any one can assist me .
    I installed latest SQL developer in my home laptop
    I am trying to connect using my SQL developer using my database UN and PW.
    It is giving the following error message
    Failure-lo exception:The network adapter could not establish the connection
    Thanks in advance.
    Regards,
    Veera Lenin

    THis error usually means there is no network path to the database host, or there is a firewall in the way.
    What details are you using in the connection definition?
    Where is the database - on the same machine or on another machine?

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

  • 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

  • Error "Io exception: The Network Adapter could not establish the connection

    Just now i configured Enterprise Manager in Oracle 10g.
    I connect to server via OEM, i can able to connect it.
    After logged in when i click on administration tab, it throws an error
    "Database Error
    Io exception: The Network Adapter could not establish the connection"
    What could be the problem?
    Thanks in Advance

    Could you please specify the OS you are working with, as well as the exact 10g DB version you are referring to?
    ~ Madrid

  • Failure -lo exception: The Network Adapter could not establish the connecti

    I get the following error when I attempt to connect:
    Failure -lo exception: The Network Adapter could not establish the connection
    I'm running 64-bit Windows XP Pro. Is that possibly an issue? I can ping the server. I am going to go now and install Oracle client software, to see whether I can tnsping and then connect from that.
    The remote listener is up and running. I did check that.
    What else might be the problem?

    Kris,
    I don't mind having to re-key connections between versions of Raptor, but if Raptor is going to save a connection that worked when I entered it, I expect that connection to work when I restart Raptor.
    If you can't save a connection with just the TNS Alias, at least save it as something that works - convert it to the basic format.
    Having said that - I would certainly prefer the connection to be saved as the TNS Alias if it could be. We have in the past had cases where we have modified the SID or Listener Port behind a TNS Alias to reduce downtimes during upgrades. With a centralised TNS Names file (which we have), there is only one place to update - if we are saving the full details behind the connection on every developer's PC, there is then a lot of additional places where the details need to be changed.

  • Remote db.SQl dev -The network adapter could not establish the connection"

    I have 64 bit Win 7 and 32 bit oracle 11g client (I guess it is 32 bit; this was already installed on the system when i received the laptop). Is there a way to confirm if it is 32 bit or 64 bit? I am not sure if that matters?
    When i try to use SQL developer to connect to remote database; i get the error - "Status - Failure - The test failed. The network adapter could not establish the connection"
    But i can connect to the same remote database using another machine. So i am sure the host name, port etc details are correct.
    Not sure what is the issue with my client?
    Please guide.

    Similar thread
    SQL Developer: "network adapter could not establish the connection"

  • The Network Adapter could not establish the connection;

    Hi
    I am using Oracle 9i JDeveloper Version 9.0.3.5.
    While running tutorial i am facing following error:
    Exception Details.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3675)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:365)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:536)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1194)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1121)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:664)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:736)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:575)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:240)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:703)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:232)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1773)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2460)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2398)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2257)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2072)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1976)
         at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:2494)
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1304)
         at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:384)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:210)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:169)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1147)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1008)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:977)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:944)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:931)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:873)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:858)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:827)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:686)
         at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:846)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:351)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3675)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:365)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:536)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1194)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1121)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:664)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:736)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:575)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:240)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:703)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:232)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1773)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2460)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2398)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2257)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2072)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1976)
         at oracle.apps.fnd.profiles.Profiles.getConnection(Profiles.java:2494)
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1304)
         at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:384)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:210)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:169)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1147)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1008)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:977)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:944)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:931)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:873)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:858)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:827)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:686)
         at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:846)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:351)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    I have checked all the setups. Its as per document.
    I will appreciate any help on this.
    Thanks & Regards
    Samir

    Hi,
    according to the message, the database is not accessible. This can be because the database is down or the database connect information points e.g. to a wrong port
    Frank

Maybe you are looking for