Java Connector via MySQL [ Cannot Connect ]

I downloaded the MySql connector and extracted the connector and placed it at this directory,
C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext
I also set the classpath as such by adding
ClassPath = .;C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext\mysql-connector-java-3.1.12-bin.jar.Actually , I followed the tutorial at
http://www.stardeveloper.com/articles/display.html?article=2003090201&page=4.
I then executed this program below.
import java.sql.*;
public class Connect {
  public static void main(String args[]) {
    Connection con = null;
    try {
     Class.forName("com.mysql.jdbc.Driver").newInstance();
     con = DriverManager.getConnection("jdbc:mysql:///enron", "root", "horizon");
      if(!con.isClosed())
        System.out.println("Successfully connected to MySQL server...");
    } catch(Exception e) {
      System.err.println("Captured Exception: " + e.getMessage());
    } finally {
      try {
        if(con != null)
          con.close();
      } catch(SQLException e) {}
However i was unable to connect..This is wat happened as below..
C:\>java Connect
Captured Exception: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.UnknownHostException
MESSAGE: localhost: localhost
STACKTRACE:
java.net.UnknownHostException: localhost: localhost
        at java.net.InetAddress.getAllByName0(Unknown Source)
        at java.net.InetAddress.getAllByName0(Unknown Source)
        at java.net.InetAddress.getAllByName(Unknown Source)
        at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:137)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at Connect.main(Connect.java:7)
** END NESTED EXCEPTION **
Last packet sent to the server was 31 ms ago.
Any Help watsoever is greatly appreciated.
Thanks in advance.
Cheers.

Hi thanks for the reply.
Although , I am though a bit baffled by your reply.
Where is it that you want me to add the URL.Not add the URL - change the one you have. Read the docs for the connector and follow that.
And where else should i place that jar file.I put it in my CLASSPATH, close to where the source for my project is. (That means not in one place, but several places. I duplicate the JAR file for every app that needs it.)
Cos I follow the tutorial at...
http://www.stardeveloper.com/articles/display.html?art
icle=2003090201&page=4.
Unless You are saying that the above site is wrong..
If thats the case, can you point out another
alternative site which can guide me along .No time to read that site, nor do I have the interest.
The Sun Java tutorial is sufficient for using JDBC. As far as how you package and deploy apps, that's another matter. You should be using the class name and URL that your JDBC driver docs suggest.
%

Similar Messages

  • Sess_sh (via IIOP) cannot connect fr a remote machine!

    hi,
    when i tried
    sess_sh -u scott -p tiger -s sess_iiop://servername:2481:demo
    where servername is the name of the server machine, 2481 the
    listener port for IIOP, & demo is the SID.
    the error "cannot connect to service..." appears.
    the same command executed on the server machine worked
    perfectly. the network has been properly set up, as i could use
    SQL PLUS to interact with the database @ port 1521.
    what can be the prob ?
    thanks to anyone who can help...
    mokkie
    null

    Mokkie,
    Try this connect string:
    sess_sh -u scott -p tiger -s sess_iiop://servername:2481
    I am not sure why this happens but leaving out the service id has
    been suggested as a workaround.
    Hope this helps.
    Regards,
    mokkie (guest) wrote:
    : hi,
    : when i tried
    : sess_sh -u scott -p tiger -s sess_iiop://servername:2481:demo
    : where servername is the name of the server machine, 2481 the
    : listener port for IIOP, & demo is the SID.
    : the error "cannot connect to service..." appears.
    : the same command executed on the server machine worked
    : perfectly. the network has been properly set up, as i could use
    : SQL PLUS to interact with the database @ port 1521.
    : what can be the prob ?
    : thanks to anyone who can help...
    : mokkie
    null

  • SAP Java Connector: Is it possible to cut field values of extracted table?

    I am extracting some SAP tables using the SAP Java Connector (via RFC_READ_TABLE or similar). Is it possible to pass some kind of maxlength for some fields of a table, e.g. if we have a field with size 3750 (like PROFS in table USH04) but I only want the first 100 chars - something like LEFT(PROFS, 100) in SQL?
    Thank you for your helpful response!

    Hi.
    The point is that PROFS has a size of 3750 - but RFC_READ_TABLE will only extract data up to 512 chars per row.
    Kind regards

  • Java Application as jar File cannot connect to SAP via JCO

    Hey guys,
    I wrote a test class to play a little with the java connector. Everything worked fine.
    Now I want to pack my java class and the JCO classes in one jar file. I have written a manifest file with the Main-Class statement and after I start the jar file I got following exception:
    Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classIniti
    alize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjco
    rfc in java.library.path]. java.library.path [C:\WINDOWS\system32;.;C:\WINDOWS\S
    ystem32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Ja
    vaConnector\sapjco.jar;C:\j2sdk1.4.2_12\bin;]
            at com.sap.mw.jco.JCO.<clinit>(JCO.java:776)
            at de.lymez.sti.SAPAufruf.getDocnr(SAPAufruf.java:26)
            at de.lymez.sti.Aufruf.main(Aufruf.java:12)
    Can anyone help me? I don't think that I forget something during the JCO installation, because my class file worked fine and give me the correct values out of the SAP System.
    Best regards,
    Timo

    Thanks Vladimir,
    but I followed the Tutorial and copied every dll in the wright folder and set the pathes. In one of the threads someone told about a tool named dependency walker. I used this with the sapjcorfc.dll and the tool answered that the DRVADODB.DLL is not found. Can anyone send me this dll? And why worked everything fine, when I use the class? I only have problems when I use one jar file!
    Thanks for any help!!
    Regards,
    Timo

  • Cannot connect to database via JApplet

    Hi,
    I created a Java application which allows me to send information to my mysql database using the jdbc connector via a JFrame. However when i modified the file to be a JApplet the info will not sent and i cannot connect to the database? Any particular reason for this?
    I need it to be a JApplet so i can add it to a browser window.
    Code: ( java )
    private void save ()
    Connection conn = null;
    try
    Statement stmt;
    String userName = "root";
    String password = "PASSWORD";
    String url = "jdbc:mysql://localhost:3306/DATABASE";
    Class.forName ("com.mysql.jdbc.Driver").newInstance ();
    conn = DriverManager.getConnection (url, userName, password);
    System.out.println ("Database connection established");
    //Get a statement object
    stmt = conn.createStatement();
    stmt.executeUpdate( "INSERT INTO TABLE(Info i know to put in) VALUES('Values i know to put in')");
    catch (Exception e)
    System.err.println ("Cannot connect to database server");
    finally
    {if (conn != null)
              {try
                   {conn.close ();       
    System.out.println ("Database connection terminated");
    catch (Exception e) { /* ignore close errors*/  }
    As i said above it works fine as a JFrame but not as a JApplet. Any help would be great.
    Thanks G

    Your error reporting is not good. You print a meanningless message or ignore the error.
    Print the stacktrace in the catch blocks.
    Change the code, rerun it and then check the Java Console for output.
    I'm guessing you'll see a security error. Unsigned applets can't access the client file system. If so, sign the applet.

  • Connection to db rejected.Cannot connect to MySQL server

    here is the excaption
    connectToDb:02 - connection to db rejected.Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.BindException)
    and her is the class
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class DBconnect
    {  final static private String _url        = "jdbc:mysql://localhost:3306/diamonds";     //final static private String _driver     = "sun.jdbc.odbc.JdbcOdbcDriver";
        //final static private String _url        = "jdbc:odbc:diamonds";     //final static private String _driver     = "sun.jdbc.odbc.JdbcOdbcDriver";
        public Connection     _con                     = null;
         //private static Driver          driver          = null;
         private static Properties     properties     = null;
         Statement stmt                                 = null;
         public PrintStream     out;
            **connectToDb **
            public void connectToDb()        throws IOException
            //connect to the server and open the database
             try{
                   Class.forName("org.gjt.mm.mysql.Driver");
                   //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   //driver = (Driver)Class.forName (_driver).newInstance();
                   properties = new Properties();
                properties.put("user","sa");
                   properties.put("password","");
            catch (ClassNotFoundException e)
                   System.out.println("class not found:");
                   e.printStackTrace();
              catch (Exception e) {
                        e.printStackTrace();
                 throw new IOException("connectToDb:01- JDBC driver not found."+e.getMessage());
         synchronized void open()throws Exception
              try
                   if(_con == null)
                        try
                             _con = DriverManager.getConnection(_url,properties);
                             //_con = driver.connect(_url,properties);
                        catch (SQLException e)
                             e.printStackTrace();
                             System.out.println("connectToDb:02 - connection to db rejected."+e.getMessage());
                        stmt = _con.createStatement();
              catch (Exception e)
                   e.printStackTrace();
                   System.out.println("connectToDb:02 - connection to db rejected."+e.getMessage());
         synchronized void close()
              try
                   if(_con != null)
                        if(!_con.isClosed())
                             stmt.close();
                             _con.close();
                             _con = null;
              catch (Exception e)
                   System.out.println("es:fail to close connection!!");
    }the problem occars when there are a lot of queries that the project is sending to the DB (about 10000) the last half queries fails and send an excaption .
    after 2 minutes the system seems like working fine.
    I am stack with this problem about a year and cann't resolve it.
    any idea????
    regards
    amnon m

    well...new it seems to work fine, but is it ok to
    keep connection open for good ???
    isn't there any other alternative ???I am bit confused are you pooling the connections?
    If so, actually the connections will not always stay open.. they will time out after a while when they are not in use but to specifically answer your question.. how could it possible be a bad thing. If the server/your app was getting bogged down with opening and closing connections then pooling solves this..
    Finally as to your question of the alternatives... if the problem was opening and closing connections and reusing them through a pool solved this then I think the answer is no. If you don't like a specific part of the way the pool works it is probably configurable in some way and you could always implement your own pool.. although I wouldn't overly recommend that. The bottom line is that you need to keep your connections open for reuse.. pooling is the simplest way to achieve this.. but no there is no alternative to keeping your connections open if you are having the load problems you described.

  • My macbook pro cannot connect to internet via wifi

    I have a Macbook Pro 2010 OS X 10.8.3.  I cannot connect to internet via wifi (Air por).  My Macbook Pro does not recognize my network and when I select it from the list of network it asks for my network password.  when I type in my password a dialog box gives me timeout error.  Please could anyone help me.  I am using ethernet for my connection at the moment.  Do I need to reset my macbookpro?  if yes, what will happen to my applications and operating system (mountain lion)?
    Monireh

    When you use the Airport utility what happens?
    What is in the System Preferences control panel for Network settings?
    http://www.apple.com/support/airport - there is a forum just for Airport Community
    Airport Express FAQ
    http://support.apple.com/kb/HT1515
    Wi-Fi Setup Considerations
    Things to consider before you begin
    Start with a plan for the physical layout. Depending on whether you have an existing Wi-Fi network, or if you are using your AirPort Express as a standalone Wi-Fi device, there are several options available for you to choose from.
    When using Ethernet, Cat6 cable is recommended.
    The layout you choose should take into account environmental factors such as physical access, location, range, radio frequency interference, etc.
    You will need to consider what AirPort Utility settings to adopt.
    You will need to know whether you are using an AirPort Express (802.11b/g) or an AirPort Express (802.11a/b/g/n).
    If you will be using more than one Wi-Fi base station, it may be helpful to read the article Extending the range of your wireless network by adding additional Wi-Fi base stations.
    AirPort Discussions
    Discuss your AirPort Base Station, Time Capsule and Wi-Fi questions with fellow community members.
    More
    Direct you to the proper forum for MacBook :
    MacBook Series Forumshttps://discussions.apple.com/community/notebooks?view=discussions
    Mac OS X Forums
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro

  • Cannot connect via cable on Windows XP home SP2

    Good Afternoon,
    Maybe you can assist me here.
    I cannot connect via cable my N91 (4 gb hdd) to Windows XP Home SP2. I can however connect via cable to my work computer which has the OS Windows XP Pro sp2.
    In both cases both OS's are up to date, I have updated the phone OS to v2.10.013 RM-43. I am using the most up to date drivers that is available on nokia.com as well as the current ed of PC Suite (6.82.22.0)
    The following is the steps I followed in both cases starting with XP Pro
    1. Installed Drivers
    2. Installed PC Suite
    3. When prompted by PC Suite connected Phone via cable to Computer, further install steps were required. No reboot required. PC Suite then picked up phone
    XP Home
    Followed steps 1 + 2 in the same order
    3. Connected N91 to XP Home computer, after driver install activity rebooted computer as requested. Disconnected N91 On reboot to desktop, in PC Suite I clicked on Get connected. Select Cable connection when prompted attached cable to computer and then to phone, on the phone select PC Suite. .
    At this point I get the hour glass and nothing happens, Next is ghosted. It has been like this for 20 mins.
    I have uninstalled both the drivers and the software. For some reason the updater can connect to the phone.
    Can you advise on what I can do.

    Hi
    Sounds lik ethe PC is having issues seeing it. Try this
    /discussions/board/message?board.id=pcsuite&message.id=11480
    Try this first:
    1. Go to Windows' Control Panel and open "Add or Remove Programs" application.
    3. Select "PC Connectivity Solution", click "Change" and then "Repair".
    4. After Repair, restart PC
    music

  • I have an hp 100 WBT and my ipad cannot connect to it. Is there any way I can print via blue tooth when remote and NOT on a network?

    When at a remote location ( not on a network) my ipad cannot connect and print to my bluetooth printer ( hp 100 wbt)
    How can I connect to a blue tooth printer when NOT on a network?
    Please help

    iOS: How to troubleshoot Bluetooth connections
    http://support.apple.com/kb/TS4562
    Can the printer also print via wifi?
    If your location does’t have wifi  use a portable router.
    Portable routers http://compnetworking.about.com/od/routers/tp/travel_routers.htm
     Cheers, Tom

  • I have Windows XP / bootcamp and can connect to the internet via Wi Fi (Apple Express) but when I try to open Int. Explorer I get a message "cannot connect".  I checked to make sure IE is not off line.  Any suggestions please?

    I have Windows XP / bootcamp and can connect to the internet via Wi Fi (Apple Express) but when I try to open Int. Explorer I get a message "cannot connect" yet my computer is connected with a strong signal.  I checked to make sure IE is not off line.  Any suggestions please?

    Try using a different browser as a test.

  • Error message received submitting form via email - "Acrobat cannot connect to the server"

    Some of my users are unable to submit form data.  The forms are set up to be submitted via email and only a few of the users are effected.  They have installed the latest versions of both Acrobat and Adobe Reader.
    "Acrobat cannot connect to the server, but will automatically submit your form once the server is online.  You can check tracker for the status of this submission."
    "You have already submitted the data on this form and it is waiting to be sent.  Further changes are not allowed until the prior data is sent."
    I know that this question has been asked before, but there has not been a response.  This is very frustrating.
    Thanks for any help or sugesstions.

    I have this exact same error, but also have not yet found a workaround.
    Only sporatic users get the error, and I've been unable to duplicate it from my machine.  I am on Adobe Reader v 10.1.2.
    Actually I can get around the error if I were to downgrade to Adobe v9, but that is a bandaid fix - not really a secure answer.

  • Cannot connect from dreamweaver cs5.5 to mysql using the mysql connection wizard

    Cannot connect from dreamweaver cs5.5 to mysql using the mysql connection wizard error Http error 403 or 500 internal server error. I am using ubuntu mysql.
    a manual php script work fine
    <?php
    // open connection to mysql server
    $dbc = mysql_connect('localhost','root','password');
    if (!$dbc) {
                die('Not Connected' . mysql_error ());
    //select database
    $db_selected = mysql_select_db ("msinventory",$dbc);
    if (!$db_selected)
            die('Cannot Connect' . mysql_error());
    echo "TEST DONE1";
    ?>
    but the database connection wizard fails with http error 403 or 500
    i also use the HeidiSQL client and it works, the only problem is in dreamweaver.

    OK.  Did you really mean to ask this question on a ColdFusion forum, if it's DreamWeaver you're having problems with?  You're probably better off raising this on a DreamWeaver forum.  "Using the correct tool for the job" 'n'all.
    Adam

  • Domain users cannot connect to the network folders when logged in via rds remote apps

    Hi,
    recently I setup an RDS farm for remote apps on server 2012 r2.
    all users can connect to the apps published. no problems there.
    but when users connect via rds they cannot connect to the networkfolders and cannot store the resultance of there work (docx and xlsx files)
    all users are normally connected to the networkfolders using a small login batch file handing down the unc path needed. when I log in as domain admin, also using a login batch, connections are setup correctly. It seems to me to be an security issue on the
    rds session host.
    how to alter this?
    greetz, Fons
    Fons system and network engineer Balie Amsterdam

    Hi,
    Thank you for posting in Windows Server Forum.
    We use WMI to communicate with the RDSH server. Various issues can cause WMI to deny access or return error codes. Here's a few things you can try:
    1.  Check if the "TS Web Access Computers" security group on the RDSH server has incorrect permissions in DCOM and/or WMI:
       For checking DCOM security settings:
       1. Start the Component Services MMC snapin
       2. Navigate to Component Services -> Computers -> My Computer
       3. Right-click on My Computer and select properties
       4. Go to the COM Security tab
       5. Under Access Permissions, click the Edit Limits button
       6. Ensure that TS Web Access Computers is in the list, with all of the permissions set to “allow”.
       7. Under Launch and Activation Permissions, click the Edit Limits button
       8. Ensure that TS Web Access Computers is in the list, with all of the permissions set to “allow”.
       For checking WMI security settings:
       1. Start the WMI Control MMC snapin
       2. Right-click the WMI Control node and select properties
       3. Go to the Security tab
       4. Navigate to Root->CIMV2->TerminalServices
       5. With TerminalServices selected, click the Security button
       6. Ensure that TS Web Access Computers is in the list with Execute Methods, Enable Account, and Remote Enable set to "allow"
    2.  Verify the RD Session Host server's firewall allows WMI calls.
    3. Verify that the RD Connection Broker hasn't lost its trust relationship with the domain.
    4. See if non-RDS related WMI calls can be successfully made to the RDSH server. This can help differentiate between a general WMI issue and an issue calling the RDS WMI provider.
    (Quoted from following thread.)
    RemoteApp Source not working from RDWeb
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/173d4546-e12f-47c1-ac66-8b4f69826892/remoteapp-source-not-working-from-rdweb?forum=winserverTS
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Cannot connect to database via TNS

    Hello!
    I installed XE with default settings and have some trouble. I cannot connect to database via TNS. Two symptoms:
    1. I can connect with SQLPLUS system/pwd (locally, without tns name input), but CANNOT connect with SQLPLUS system/pwd@EX (WITH TNS NAME input).
    2. I cannot start Database Home Page.
    How to avoid this problem? Any ideas?
    DETAILS:
    PC configuration: Win2k+SP4, 512Mb, Outpost Firewall (disabled!), No another Oracle products being installed.
    TNSNAMES.ORA file:
    ************* BEGIN TNSNAMES *****************************************
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pz)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    ************* END OF TNSNAMES *****************************************
    Listener status:
    ************* BEGIN STATUS *****************************************
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Prod
    ction
    Start Date 22-MAR-2006 17:27:15
    Uptime 0 days 1 hr. 8 min. 53 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\admin\listener.ora
    Listener Log File D:\oracle\ora10xe\app\oracle\product\10.2.0\server\ne
    work\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pz)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation
    HTTP)(Session=RAW))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, 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...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ************* END OF STATUS *****************************************
    NETSTAT -an results:
    ************* BEGIN NETSTAT *****************************************
    Proto Local Address Foreign Address State
    TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2298 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:2455 127.0.0.1:8080 ESTABLISHED
    TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:8080 127.0.0.1:2382 CLOSE_WAIT
    TCP 127.0.0.1:8080 127.0.0.1:2455 ESTABLISHED
    TCP 192.168.200.49:1521 192.168.200.49:2298 ESTABLISHED
    TCP 192.168.200.49:2298 192.168.200.49:1521 ESTABLISHED
    <truncated>
    ************* END OF NETSTAT *****************************************
    I found following error in SQLNET.LOG:
    *************** START LOG *********************************************
    Fatal NI connect error 12570, connecting to:
    (LOCAL=NO)
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 22-MAR-2006 17:28:59
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12570
    TNS-12570: TNS:packet reader failure
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    *************** END OF LOG *******************************************

    I successfully connect with XE client to another Oracle databases from LAN, including 8i and 9i databases.
    But cannot connect from another machines to my XE.

  • Cannot connect to apexlistener via SQL developer.

    I cannot connect via SQL developer to my installed apexlistener (2.0.1) installed on Glassfish (3.1.2) webserver.
    In the server.log from this domain i always see following error messages;
    [#|2013-04-24T10:49:25.199+0200|SEVERE|glassfish3.1.2|null|_ThreadID=453;_ThreadName=Thread-2;|No pool found for: http://servername:8080/apex/oauth2/token|#]
    [#|2013-04-24T10:49:25.199+0200|INFO|glassfish3.1.2|null|_ThreadID=453;_ThreadName=Thread-2;|No DB connection found for: /apex/oauth2/token|#]
    [#|2013-04-24T10:49:25.206+0200|SEVERE|glassfish3.1.2|null|_ThreadID=453;_ThreadName=Thread-2;|The pool named: apex_al does not exist|#]
    Help appreciated...
    Regards,
    Ton

    Turned debug on in defaults.xml;
    [#|2013-04-24T12:19:47.840+0200|SEVERE|glassfish3.1.2|null|_ThreadID=453;_ThreadName=Thread-2;|No pool found for: http://.......:8080/apex/oauth2/token|#]
    [#|2013-04-24T12:19:47.840+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Could not find any database pool to use for this request|#]
    [#|2013-04-24T12:19:47.841+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Applied database connection info|#]
    [#|2013-04-24T12:19:47.841+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Attempting to process with PL/SQL Gateway|#]
    [#|2013-04-24T12:19:47.842+0200|INFO|glassfish3.1.2|null|_ThreadID=453;_ThreadName=Thread-2;|No DB connection found for: /apex/oauth2/token|#]
    [#|2013-04-24T12:19:47.844+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Not processed as PL/SQL Gateway request|#]
    [#|2013-04-24T12:19:47.844+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Attempting to process as a RESTful Service|#]
    [#|2013-04-24T12:19:47.863+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Default Database connection does not exist|#]
    [#|2013-04-24T12:19:47.952+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Choosing: oracle.dbtools.rt.oauth.TokenHandler as current candidate with score: Score [handle=null, score=0, scope=SecurityConfig [constraint=secure, realm=OAUTH_CLIENT, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true]|#]
    [#|2013-04-24T12:19:47.954+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Determining if request can be dispatched as a Tenanted RESTful Service|#]
    [#|2013-04-24T12:19:47.954+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Request path has one path segment, continuing processing|#]
    [#|2013-04-24T12:19:47.955+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|No JDBC Principal established, cannot dispatch|#]
    [#|2013-04-24T12:19:47.956+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|Chose oracle.dbtools.rt.oauth.TokenHandler as the final candidate with score: Score [handle=null, score=0, scope=SecurityConfig [constraint=secure, realm=OAUTH_CLIENT, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] for: POST oauth2/token|#]
    [#|2013-04-24T12:19:47.960+0200|SEVERE|glassfish3.1.2|null|_ThreadID=453;_ThreadName=Thread-2;|The pool named: apex_al does not exist|#]
    [#|2013-04-24T12:19:47.965+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|oauth2/token authorized as: IsZv_-R511-vq79m880SQA..|#]
    [#|2013-04-24T12:19:47.965+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=453;_ThreadName=Thread-2;|must be accessed over https only|#]

Maybe you are looking for