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

Similar Messages

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

  • JDBC says: "The Network Adapter could not establish the connection"

    Hi all! I'm trying to run a servlet that does SQL queries, but I keep getting a "The Network Adapter could not establish the connection" SQL exception on the connection attempt. Code follows.
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class InterpreteSQL extends HttpServlet
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection connection=DriverManager.getConnection("jdbc:oracle:thin:@labdb.dsi.unive.it:1521:lab","[my account here]","[my password here]");
                   Statement statement=connection.createStatement();
                   ResultSet res=statement.executeQuery("SELECT * FROM TabellaProva");
                   stampaResultSet(res,response.getWriter());
              catch (Exception e)
                   response.getWriter().println(e.toString());
    // stampaResultSet method here, which would just print the result set.
    Of course, the bits in brackets have the actual account and password in the code. ;)
    If I make a standalone program with the same code, it works fine. I'm using Tomcat 4.0.3 on a Windows 98 machine. The machine is not directly connected to the internet, but through a router. There's a firewall but it isn't blocking the program. Since the standalone version works, I suppose it's a Tomcat configuration issue.
    Can anyone help?

    I too had the same problem
    Check out for the related services. It must be running.
    One way to know about is try using SQL+ and execute some query.Thats it.

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

  • 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

  • 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

  • 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

  • I got a The Network Adapter could not establish the connection..

    hi guys,
    i've just downloaded and installed oracle 10g express in my win 7 installation.
    i've already created 2 tables and one user and everything seems to be ok.
    but.. there's a but!!! i've tried to connect (using driver ojdbc14) from netbeans and i got a "The Network Adapter could not establish the connection" error.
    the connection string is:
    jdbc:oracle:thin:@pcs:1251:XE
    (pcs is my pc's name).
    what problem can be?
    many thanks ;)

    lsnrctl service
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-ABR-2011 01:53:14
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    Resumen de Servicios...
    El servicio "CLRExtProc" tiene 1 instancia(s).
    La instancia "CLRExtProc", con estado UNKNOWN, tiene 3 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:0 rechazado:0
    LOCAL SERVER
    "ORACLE SERVER" establecidos:0 rechazados:0 actuales:0 máximo:25 estado:ready
    CLRExtProc
    (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_F94_50C6352F.ORA))
    "ORACLE SERVER" establecidos:0 rechazados:0 actuales:0 máximo:25 estado:ready
    CLRExtProc
    (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_F94_50C6352F.ORA))
    El servicio "PLSExtProc" tiene 1 instancia(s).
    La instancia "PLSExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:0 rechazado:0
    LOCAL SERVER
    El servicio "XEXDB" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "D000" establecidos:0 rechazados:0 actuales:0 máximo:1002 estado:ready
    DISPATCHER <machine: PCS, pid: 3440>
    (ADDRESS=(PROTOCOL=tcp)(HOST=pcs)(PORT=49160))
    El servicio "XE_XPT" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:5 rechazado:0 estado:ready
    LOCAL SERVER
    El servicio "xe" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    Manejador(es):
    "DEDICATED" establecido:5 rechazado:0 estado:ready
    LOCAL SERVER
    El comando ha terminado correctamente
    lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-ABR-2011 01:53:03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Conectándose a (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    ESTADO del LISTENER
    Alias LISTENER
    Versión TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Fecha de Inicio 06-ABR-2011 00:13:13
    Tiempo Actividad 0 días 1 hr. 39 min. 51 seg.
    Nivel de Rastreo off
    Seguridad ON: Local OS Authentication
    SNMP OFF
    Servicio por Defecto XE
    Parámetros del Listener C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log del Listener C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Recibiendo Resumen de Puntos Finales...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcs)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Resumen de Servicios...
    El servicio "CLRExtProc" tiene 1 instancia(s).
    La instancia "CLRExtProc", con estado UNKNOWN, tiene 3 manejador(es) para este servicio...
    El servicio "PLSExtProc" tiene 1 instancia(s).
    La instancia "PLSExtProc", con estado UNKNOWN, tiene 1 manejador(es) para este servicio...
    El servicio "XEXDB" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "XE_XPT" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    El servicio "xe" tiene 1 instancia(s).
    La instancia "xe", con estado READY, tiene 1 manejador(es) para este servicio...
    El comando ha terminado correctamente

  • Session.xml-The Network Adapter could not establish the connection

    I am using Oracle TopLink 10g Release 3 (10.1.3.1.0) and Weblogic 9.2.
    TopLink Configurations in session.xml are as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="10g Release 3 (10.1.3.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>default</name>
    <event-listener-classes/>
    <primary-project xsi:type="xml">BharosaTLMappings.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <user-name>bharosa</user-name>
    <password>orclam</password>
    <sequencing>
    <default-sequence xsi:type="native-sequence">
    <name>Native</name>
    <preallocation-size>1</preallocation-size>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@10.77.199.114:1521:orcl</connection-url>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    When I start the server I, the log shows the following errors list:
    [TopLink Info]: 2007.10.19 03:11:37.391--ServerSession(4922317)--TopLink, version: Oracle TopLink - 10g Releas
    e 3 (10.1.3.1.0) (Build 061004)
    [TopLink Severe]: 2007.10.19 03:11:58.485--ServerSession(4922317)--Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptio
    ns.DatabaseException
    Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectio
    nError Code: 17002
    at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:276)
    at oracle.toplink.sessions.DefaultConnector.connect(DefaultConnector.java:64)
    at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:147)
    at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:197)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:220)
    at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:273)
    at oracle.toplink.threetier.ConnectionPool.buildConnection(ConnectionPool.java:82)
    at oracle.toplink.threetier.ConnectionPool.startUp(ConnectionPool.java:304)
    at oracle.toplink.threetier.ServerSession.connect(ServerSession.java:435)
    at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:503)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:379)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:184)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getDefaultSession(SessionManager.java:98)
    at com.bharosa.common.toplink.TopLinkDBMgr.<init>(TopLinkDBMgr.java:54)
    at com.bharosa.vcrypt.dataaccess.util.VCryptDataAccessMgr.initializeDBMgr(VCryptDataAccessMgr.java:132
    at com.bharosa.vcrypt.dataaccess.util.VCryptDataAccessMgr.<init>(VCryptDataAccessMgr.java:58)
    at com.bharosa.common.actions.AuthRequestProcessor.<init>(AuthRequestProcessor.java:49)
    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:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:145)
    at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:573)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1162)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.jav
    a:3214)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at oracle.toplink.sessions.DefaultConnector.connect(DefaultConnector.java:62)
    ... 39 more
    <Oct 19, 2007 3:11:58 PM GMT+05:30> <Error> <HTTP> <BEA-101105> <[weblogic.servlet.internal.WebAppServletConte
    xt@10285d8 - appName: 'oarm', name: 'oarm', context-path: '/oarm'] error-page location: "/FA_error404.jsp" for
    the error-code: "404" does not exist. Serving the default error page.>
    What should I do? And when the server starts and I run the application, I get the following error:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    Can anybody help me...?????

    Can you try writing a testcase that allows you to connect to the database by going through JDBC ?

  • JDeveloper Oracle XE The Network Adapter could not establish the connectio

    I installed JDeveloper 10.1.2 and oracle express on Fedora.
    Now I cannot create a database connection from jdeveloper using the connection navigator
    The hostname, port etc is correct.
    Sqlplus and everything else regarding the database on the command line works fine.
    Did I miss something ?
    Maybe an environment setting ?
    I did the following installation (all on the same host):
    Java runtime
    JDeveloper
    XE Database
    Testing a connection I used the Oracele Database Express Edition 2 Day PLus Java Developer Guide.
    Is this documentation complete ?
    Can someone also explain to me what the error message
    Io exception: The Network Adapter could not establish the connection EXACTLY means ??
    Where does it go wrong ?
    Is there a checklist for thsi kind of thin-java connection problems ?

    Here some extra info, as I just said I did a default installation.
    The listener is up on port 1521, see ouput:
    LSNRCTL for Linux: Version 10.2.0.1.0 - Beta on 01-FEB-2006 15:21:01
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=linux900)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Beta
    Start Date 01-FEB-2006 15:01:51
    Uptime 0 days 0 hr. 19 min. 10 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/ne twork/admin/listener.ora
    Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/ne twork/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux900)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux900)(PORT=8080))(Presentation=H TTP)(Session=RAW))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 1 instance(s).
    Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "XE", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Also tnsping works fine:
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 01-FEB-2006 15:29:32
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = linux900)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (20 msec)
    So still I dont known what is going wrong here, the following properties are used by this connection:
    Type: Oracle (JDBC)
    Driver: oracle.jdbc.driver.OracleDriver
    User: hr
    URL: jdbc:oracle:thin:@linux900:1521:XE
    Is the driver used by JDeveloper correct ?
    There is a note on XE that the use of oracle.jdbc.driver.* classes is deprecated but still supported.

  • What is "The Network Adapter could not establish the connection" ??

    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
         oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
         oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:254)
         oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:386)
         oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:413)
         oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164)
         oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
         java.sql.DriverManager.getConnection(Unknown Source)
         java.sql.DriverManager.getConnection(Unknown Source)
         org.apache.jsp.ord_005fresult_jsp._jspService(ord_005fresult_jsp.java:310)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    what is the problem here??
    i don't have any problem yesterday.
    but today i got this one.........

    The Network Adapter exception is caused because:
    1. The database host name or port number is wrong.
    The HOST and PORT are specified when a JDBC
    connection is configured.
    2. The database TNSListener has not been started. The TNSListener may be started with the lsnrctl utility.
    C:\>lsnrctl start

  • Connection Problem : The Network Adapter could not establish the connection

    I am trying to connect to an Oracle 9i database using the jdbc drivers from the jdbc/lib directory. Whatever I try I get the error "The Network Adapter could not establish the connection.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:oradev", "user1", "secret");
    The listener is running, I believe the SID is correct. I am able to connect to the database using SQLPLUS, SQLPLUSW, etc. I am running using JDK 1.4.2 and ojdbc14.jar is on my classpath.
    I am running out of ideas so any help would be appreciated.
    Thanks,
    Richard

    I been trying a few more tests and if I change the connection string to "jdbc:oracle:thin:@<tnsname> which I believe you can do, it now raises the exception :-
    java.sql.SQLException: Io exception: SO Exception was generated
    Any Ideas?
    Thanks,
    Richard

  • 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

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

Maybe you are looking for

  • Unable to Change Main Report Page Orientation in Crystal 10

    Hi, My report has 8 sub reports and every sub report is placed in a report footer section. When I change the page orientation from portrait to landscape, no change in main report. but It does change the sub report paper orientation. Is it because of

  • Minor problem - side bars not extending to footer

    Hi- I created a page layout that includes two side bars on either side of the "body" area. Normally these have text in them and adjust in height based on what's contained in them. Well my design is one such that there is purposely no text included an

  • IMac G5: disturbing sound & image

    My 2005 iMac G5 did something today I've never seen before. I put it in sleep mode, stepped into another room, and came back in to look at it because the fan had suddenly kicked into high gear. It appeared to be asleep while making the noise, and I t

  • Upload Files with JDeveloper

    Hello everybody, I have a problem trying to upload multiple files to database with jdeveloper 9i (BC4J + JSP). I can upload just one file using the following code: ////upload.jsp <form ACTION="upload_file_sub.jsp" METHOD="POST" ENCTYPE="multipart/for

  • Sidecar.xml v32

    Hi! When i try to import articles with sidecar (v32 / indesign CC2014) i always get the error-message: Error in the content generation. The file could not be opened. Confirm that the file can be opened in the current version of InDesign . It doesn't