Which application is making "DriverManager.getConnection(URL,p)" call?

Hi All,
I have 15 domains each having 100 or more applications[.ear,.jar,.war] on a single Solaris box[Dev Env].
One of these applications[out of 100*15] of one domain[out 15] is making direct JDBC connection.[DriverManager.getConnection(URL,p)]. Now the issue is that I have to find which application is making this call.
I tried with enabling JDBC logging and than grep for "DriverManager.getConnection" in each domain but this way I can only detrmine that an application of a particular domain is making direct JDBC connection. But I am still not able to find which application is making this call?
Did any body try this?
any suggestion?
Thanks,
Qumar

Qumar Hussain wrote:
Hi All,
I have 15 domains each having 100 or more applications[.ear,.jar,.war] on a single Solaris box[Dev Env].
One of these applications[out of 100*15] of one domain[out 15] is making direct JDBC connection.[DriverManager.getConnection(URL,p)]. Now the issue is that I have to find which application is making this call.
I tried with enabling JDBC logging and than grep for "DriverManager.getConnection" in each domain but this way I can only detrmine that an application of a particular domain is making direct JDBC connection. But I am still not able to find which application is making this call?
Did any body try this?
any suggestion?
Thanks,
QumarOne very direct way to do this is to get the source for DriverManager,
and edit it to throw an exception from getConnection(), and compile the
source, and put the class file in the bootclasspath (not the regular
classpath) of the JVM via a commandline option when you boot WebLogic.
Eg: if the hacked DriverManager class is in /mytempdir/java/sql/DriverManager.class
cd /mytempdir
jar cvf hack.jar java/sql/*.class
edit the start-weblogic script to start weblogic with a commandline
argument:
java -Xbootclasspath/p:/mytempdir/hack.jar ....

Similar Messages

  • Need to find out which application is making an frequent account lockout in AD

    Hi ,
    In my environment two of the user accounts are having an frequent account lockout.
    We have found that the account lockout was happening in their own machines with the help of the event logs in the domain controllers.
    Please tell us how do we find that which application on their machines are making an frequent account lock with the help of event logs else do we have some other options.
    All of your suggestions are much appreciated.
    Thanks & Regards S.Nithyanandham

    Usage of Microsoft ALtools( https://www.microsoft.com/en-us/download/details.aspx?id=18465 ):
    LockoutStatus application
     Run LockoutStatus.exe and choose File > Set target > Define “Target User Name”
    and “Target Domain Name”
    Tool will show you user with its “User State” (Locked/Not Locked), time when
    account was locked (Lockout Time) and will allow you to Unlock Account if you
    right click output string.
    EventCombMT application
     This tool gathers specific events from Windows event logs of single or several
    different servers to one central location.
     Run EventCombMT.exe > Right Click on “Select to search” field >Choose “Get DCs
    in Domain” > Mark your Domain Controllers for search> Select “Security” log file >
    Type “4740” in the “Event IDs” field > Choose “Success Audit” Event type > Click
    “Search” > Wait for “Matching Events Found” counter to show some values and
    click “Quit”
     In the opened window investigate file or files named by your domain controllers
    names. You should be able to determine the originating system where lockout
    happened by searching for “Caller Computer Name”
    Aloinfo application
     This tool has 2 purposes:
     To display all user account names and the age of their passwords run cmd >
    change directory to the one where ALtools were extracted > type @powershell >
    Enter > type “./aloinfo.exe /expires /server:DC | out-file C:\temp\expires.txt” >
    Enter
     To display credentials used for running services or for mapping network drives
    run cmd > change directory to the one where ALtools were extracted > type
    @powershell > Enter > type “./aloinfo.exe /stored | out-file C:\temp\stored.txt” >
    Enter
    You may also enable Netlogon logging on DC through command shell:
    nltest /dbflag:2080ffff
    Netlogon.txt file is created in %systemroot%/debug directory
    Just don't forget to turn it off after investigation :) nltest /dbflag:0
    Or you can use
    Netwrix Account Lockout Examiner to troubleshoot account lockouts, it's free.
    --- Jeff (Netwrix)

  • Java.lang.ClassCastException at DriverManager.getConnection

    Hi all,
    i need to connect to SQL server DB which exist on a server
    and java.lang.ClassCastException appear when executing the line
    Connection conn = (Connection)DriverManager.getConnection(url,username,password);
    the following is the code which i use:
    String serverName = "64.15.155.101";
    String portNumber = "1433";
    String mydatabase = "MMSMS";
    String username = "u";
    String password = "p";
    // Step 1: Load the JDBC driver.
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    // Step 2: Establish the connection to the database.
    String url = "jdbc:sqlserver://"+serverName
    +";databaseName="+mydatabase;
    System.out.println(url);
    DriverManager.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver());
    Connection conn = (Connection)DriverManager.getConnection(url,username,password);
    System.out.println("connection succesful");

    Why are you casting there? Do you have a class named Connection in your own code?
    It would seem so.
    Do this
    java.sql.Connection conn = DriverManager.getConnection(url,username,password);You shouldn't need a cast there. So the fact you are using one suggests that you had an earlier problem with a conflict with a Connection class of your own.

  • Teradata connection error in jdbc -- DriverManager.getConnection()

    I have issue while connecting to teradata DB from a sampel jave jdbc code.
    the code is as below.
    String url="jdbc:teradata://10.33.22.27/AMRROCD";
    Class.forName("com.teradata.jdbc.TeraDriver");
    Properties x = new Properties();
    x.put("user","user123");
    x.put("password","pwd123");
    Connection con = DriverManager.getConnection (url, x);--> i am getting error at this line as
    GSSException: Failure unspecified at GSS-API level (Mechanism level: UserFile parameter null)
    at com.teradata.tdgss.jtdgss.TdgssParseXml.<init>(DashoA1*..)
    at com.teradata.tdgss.jtdgss.TdgssConfigApi.<init>(DashoA1*..)
    at com.teradata.tdgss.jtdgss.TdgssManager.<init>(DashoA1*..)
    at com.teradata.tdgss.jtdgss.TdgssManager.getInstance(DashoA1*..)
    at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getGSSM(GenericTeraEncrypt.java:583)
    at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getConfig(GenericTeraEncrypt.java:601)
    at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getUserNameForOid(GenericTeraEncrypt.java:694)
    at com.teradata.jdbc.AuthMechanism.<init>(AuthMechanism.java:50)
    at com.teradata.jdbc.jdbc.GenericInitDBConfigState.action(GenericInitDBConfigState.java:105)
    at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:49)
    at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:195)
    at com.teradata.jdbc.jdbc_3.ifjdbc_4.TeraLocalConnection.<init>(TeraLocalConnection.java:94)
    at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:55)
    at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver.java:216)
    at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:149)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at dbValidation.main(dbValidation.java:25)
    Error java.lang.NullPointerException
    could anybody have an idea on this , its urgent for me to solve this.
    I am able to execute the code in windows OS . this error is occourring in UNIX system

    You'd have to pursue Teradata for support/help with their JDBC driver. This has nothing
    to do with Oracle though...

  • Unable to connect to Coudscape using DriverManager.getConnection(...)

    Hi All,
    I am trying to connect to a Cloudscape database.
    While the driver class - "com.ibm.db2j.jdbc.DB2jXADataSource" is getting loaded, DriverManager.getConnection(url) gives the follwoing exception:
    java.sql.SQLException: No suitable driver
    java.sql.DriverManager.getConnection(DriverManager.java:559)
    java.sql.DriverManager.getConnection(DriverManager.java:211)
    Can someone please tell me what could be the reason of my getting this error inspite of the driver class being loaded?
    Thank you.
    Regards,
    Sunil.

    Either the driver has not been loaded, or the connect string is wrong. Put debugging output immediately before and after the Class.forName() call to make sure it is executed succesfully. Then check the connect string.

  • I have a pop up which I can't get rid of which states: "There is no application set to open the URL ximadpzl://save_ximad_token----/"

    I can't get rid of a message which keeps popping up which says:
    There is no application set to open the URL ximadpzl://save_ximad_token/(etc)
    I have no idea to what they are referring and I can find no application which satisfy this requirement. How do I get rid of this message? It won't go away. I have tried turning off the computer, closing Safari, etc.

    All of these suggestions (delete caches, restart, terminal commands, etc) do nothing to actually LOCATE the problem. They are just standard purging processes, and they have all failed to achieve resolution.  And it is NOT Little Snitch either (tried turning that off and nothing changed).  All these forums on this matter have been speculative and useless.
    Ladies and Gents... I have found and isolated the ACTUAL PROBLEM.  It is a Safari Extension that is doing it... specifically "VideoCatcher 5.3.8" which for me was installed with MovieSherlock.  The extension adds the ability to download YouTube movies directly from Safari (by showing a small download button next to any embedded movie). When I remove that extension, all the annoying pop-ups go away.
    MovieSherlock is not the only utility that does this however. There are several YouTube downloaders out there that ALL install an extension that detects YouTube videos on the page. I bet my hat that many (if not all) of you who are experiencing this pop-up issue... have installed one of those downloader utilities.
    So, the solution is simple: disable that extension. If you need to download a YouTube video from a page, either temporarily enable that extension again as needed, or leave the Safari integration disabled and launch the actual utility itself and enter the URL into it for your download.
    I would expect that MovieSherlock and the other YouTube downloading utilities will need to update their extensions (soon?) to deal with Yosemite's new browser script management.
    PROBLEM SOLVED.

  • Problems with setting DriverManager.getConnection as a variable

    HI,
    I was wondering if someone could help me out with a problem i have. I am trying to read in the url, user name and password from an external file, and then add it to con = DriverManager.getConnection(IN HERE);
    I know that i can connect to the database and retrieve information by entering the connection in the following format: ("jdbc:mysql://url:3306/database","userName","password"). But i want to be able to read this line from an external file. When trying to do so i keep getting back the following error in the console window:
    Exception in thread "main" java.sql.SQLException: No suitable driver found for "jdbc:mysql://url:3306/database","userName","password"
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:207)
    at fast.JDBC.openDB(JDBC.java:68)
    at fast.JDBC.main(JDBC.java:40)
    Any help with this would be appreciated!
    I am using the following code:
    public class JDBC { private Connection con; public static String filePath = "C:\\Users\\Documents\\Connector.txt"; public static String sql = ("SELECT * FROM users"); public String readFileAsString(String filePath) throws IOException { //Read connector from a file byte[] connectionDB = new byte[(int) new File(filePath).length()]; BufferedInputStream f = new BufferedInputStream(new FileInputStream(filePath)); f.read(connectionDB); return new String (connectionDB); }//Close readFileAsString public static void main (String[] Args) throws Exception { JDBC j = new JDBC(); j.openDB(); j.readDB(sql); //System.out.println(j.readFileAsString(filePath)); } /** * Process for creating a connection to a database * @return * @throws Exception */ public boolean openDB() throws Exception { boolean connected = false; JDBC j = new JDBC(); String connectionDB = j.readFileAsString(filePath); System.out.println(connectionDB); //Load Drive Class.forName("com.mysql.jdbc.Driver"); //Establish connection to database try { con = DriverManager.getConnection(connectionDB); } finally { connected = true; } return connected; }//close openDB

    This is what I did for my OracleDb which required that I download a driver from the Oracle Site. You install the driver and then link the driver through the DriverManager object. It looks like your using a local JDB database - which I have never had to make use of. Here is my code for the OraceXE database. Hope this helps.
    Public Class GenericCnn Object
    private String _urlDbCnn       = "";   // the JDBC url to the database
    private String _username       = "";   // a valid username to access the database
    private String _password       = "";   // a valid password to access the database
    private String _dbDriver       = "";   // a valid JDBC driver
    private Connection _cnn            = null; // this will be the active connection
    private String _sqlStatement   = null; // this will be the statement to execute against the database
    public DbConnection(){
    this("oracle.jdbc.OracleDriver",
    "jdbc:oracle:thin:@//192.168.15.200:1521/xe",
    "usernamehere,
    "passwordhere");
    } // constructor - nothing
    public DbConnection(String nwDbDriver, String nwDbURL,
    String nwDbUsername, String nwDbPassword){
    this.setDbDriver(nwDbDriver);
    this.setUrlDbCnn(nwDbURL);
    this.setUsername(nwDbUsername);
    this.setPassword(nwDbPassword);
    } // constructor - DbDriver, DbUrl, DbUser, DbPassword
    private void initializeConnection(){
    // try - get database driver
    try{
    DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
    // try - initialize the database connection
    try{
    this._cnn = DriverManager.getConnection(this._urlDbCnn,
    this._username,
    this._password);
    }catch(SQLException e){
    ErrorTrap trap = new ErrorTrap(ErrorTrapMessage.DataConnectionNotIntitialized, e);
    } // catch - try and initialize the database connection
    }catch(SQLException e){
    ErrorTrap trap = new ErrorTrap(ErrorTrapMessage.DataConnectionDriverFailedToLoad, e);
    } // catch - try and get database driver
    } // method - OpenConnection
    .. executeTransaction -> calls initializeConnection
    .. executeQuery - > calls initialzieConnection
    .. properties
    Edited by: Monkey247 on Jan 26, 2010 10:27 AM

  • DriverManager.getConnection() : very strange behavior

    I am currently developping a SWING application generated with NetBeans 6.1 which connects to either a MySQL DB or a PostgresSQL DB, both hosted by a Linux server.
    The application runs just FINE on Solaris/SPARC, Solaris/x86 and Linux/x86.
    The problems come with Windows/x86 : the call to DriverManager.getConnection() just stalls, no error, no timeout, no exception.
    After investigating a little bit more I found some "funny" behaviors that I submit here for comments:
    The drivers loaded since the main() function using:
    Class.forName("com.mysql.jdbc.Driver");
    Class.forName("org.postgresql.Driver");
    The application gets connected to the DB with the following connection code :
    try {  
    DriverManager.getConnection( "jdbc:mysql://192.168.2.3:3306/ZEDB", "user", "pwd" );
    DriverManager.getConnection( "jdbc:postgresql://192.168.2.3:5432/ZEDB", "user", "pwd" );
    catch (Exception x) {  [...] }
    And the results are (tried with JDK 5u16 and JDK 6u7)
    - On Windows :
    -> OK in a console Application
    -> OK in a Swing/AWT Application if the connection code is in the main function
    -> NOK in a Swing/AWT Application if the connection code is placed anywhere within a SWING Form AND server is remote,
    -> Last case if OK if server is "localhost" (tested only with MySQL -for Windows- however ).
    - On Linux or Solaris : OK on any case
    Any idea ?
    - Dom

    Dom- wrote:
    I made at first the same assumption as you did.
    But when I put the "connecting code" into the static main() function - without changing anything else - then it worked. So I can't believe that it is due to any Windows firewalling rules as the rest doesn't change when the code changes place.When it is impossible then it means your assumptions are wrong.
    Hard to say what your assumptions are in this case. But some possibilities. There can be countless others.
    1. You are not running the code that you think you are.
    2. It is not blocking where you think it is.
    And I obviously need to run that connecting code within Swing forms as it is the user who decides which DB to use and what the credentials are...
    I can understand that I have a fundamental design issue. But going again through the whole wizard of Netbeans with a very basic Swing application, I step already on this misbehavior: OK from "static main()", NOK from "App.startup()".Note that myself I didn't say you had a design issue. I don't do GUIs so I certainly don't know how to do them correctly. But I do know that if you have blocking code and you are not careful then it will block the GUI and make it non-responsive to the user.

  • How do I find out which application is stealing focus?

    I'm having problems with my Macbook Pro in which my active window keeps deselecting every 5-10 seconds or so, which is making even typing this question extremely difficult.
    I have figured out from searching the web that it is because of an application stealing focus. However, in all the boards that say how to fix this problem, none of them actually tell you how to identify which application is the one stealing focus.
    The most information I could find was to go to Applications > Utilities > Activity Monitor
    and to look for which application is stealing the focus, but it doesn't say WHERE to look.
    Do I look at CPU? Number of threads? Real memory? What?
    Here are my specs:
    - Mac OS X version 10.6.8
    - Processor: 2.3 GHz Intel Core i5
    - Memory: 4 GB 1333 MHz DDR3
    (Let me know if you need any additional info about the system.)
    How do I figure out which application is the one stealing focus? (If you could write it in painfully simple instructions, that would be fantastic).
    Thank-you in advance to any helpful answers!
    -Carly

    First, quit all applications, close all windows and reboot the Mac. Hold down the Shift key prior to the startup chime until it finishes starting. This is called a Safe Boot and causes the system to load only its components, no third party stuff and do other housekeeping tasks. Will take AWHILE, be patient. Run ONE Apple app at a time and see if the issue persists. If it does not, then you will have determined the system is OK and the issue is caused by a third party app. Now reboot normally and see if the issue reasserts itself.  Try this and holler back.
    Note: running Safe Boot in day-to-day use is unadvisable cause many apps require the use of their extensions and won't work correctly, if at all.

  • Core Dump when calling DriverManager.getConnection

    I'm very confused and hope someone can help me out with this.
    I'm trying to make a connection to a MS SQL Server 7 and am getting a core dump when getConnection is called. No exception is thrown, just a core dump and locked session. If I run the class from it's main there is absolutly no problem, but when I do a new on the class and call it's member to establish the connection: core dump. The environment is the same in both cases. The calling class did does use a mySql connection, but I tried closing it and setting it to null with the same problem. I'm not sure if the getConnection is stepping on a socket or what it's trying to violate in memory causing the dump. This is running on a SCO Openserver 5.0.5 box (green threads). Why it runs stand-alone and not when called from another class has got me tangled... Thread problem? I've tried several SQL drivers, they all do the same thing.
    Anyway, here's a snippet from the java class:
    try
    {Class.forName(myForName);
    // core dump, next line
    Connection myConn = DriverManager.getConnection(myUrl, myUser, myPass);
    // never get's here
    Statement myStmt = myConn.createStatement();
    catch (Exception e) // modified for this post
    {system.out.println(e.toString());
    Here's the dump printed to the monitor (2>&1)
    SIGSEGV 11* segmentation violation
    si_signo [11]: SIGSEGV 11* segmentation violation
    si_errno [0]: Error 0
    si_code [1]: SEGV_MAPERR [addr: 0x8]
         stackpointer=81adc820
    Full thread dump Classic VM (SCO-JDK-1.2.2-001:2000-Feb-17-03:54, green threads):
    "Thread-0" (TID:0x8074f3c8, sys_thread_t:0x83ae258, state:R) prio=5
         at com.inet.tds.TdsDriver.run(Unknown Source)
         at java.lang.Thread.run(Thread.java, Compiled Code)
    "process reaper" (TID:0x807431d0, sys_thread_t:0x82cd980, state:CW) prio=5
         at java.lang.Object.wait(Native Method)
         at java.lang.UNIXProcess.run(Native Method)
         at java.lang.Thread.run(Thread.java, Compiled Code)
    "Finalizer" (TID:0x8071f320, sys_thread_t:0x808e478, state:CW) prio=8
         at java.lang.Object.wait(Native Method)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
         at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
    "Reference Handler" (TID:0x8071f3b0, sys_thread_t:0x808a2d8, state:CW) prio=10
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java, Compiled Code)
         at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
    "Signal dispatcher" (TID:0x8071f3e0, sys_thread_t:0x80845a8, state:CW) prio=5
    "main" (TID:0x8071f1e0, sys_thread_t:0x804c2d8, state:R) prio=5
         at java.lang.Thread.sleep(Native Method)
         at com.inet.tds.TdsDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
         at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
         at SLSCorpRpt.printSchedule(SLSCorpRpt.java, Compiled Code)
         at SLSSchedule.runSchedule(SLSSchedule.java, Compiled Code)
         at SLSTextMain.<init>(SLSTextMain.java, Compiled Code)
         at SLSTextMain.main(SLSTextMain.java, Compiled Code)
    Monitor Cache Dump:
    java.lang.Object@807431A8/807C6140: <unowned>
         Waiting to be notified:
         "process reaper" (0x82cd980)
    java.lang.Class@80736EF8/807970A8: owner "main" (0x804c2d8) 2 entries
    <unknown key> (0x80737c21): owner "Thread-0" (0x83ae258) 1 entry
    java.lang.ref.ReferenceQueue$Lock@8071F338/80754D60: <unowned>
         Waiting to be notified:
         "Finalizer" (0x808e478)
    java.lang.ref.Reference$Lock@8071F3C0/80754890: <unowned>
         Waiting to be notified:
         "Reference Handler" (0x808a2d8)
    Registered Monitor Dump:
    PCMap lock: <unowned>
    utf8 hash table: <unowned>
    JNI pinning lock: <unowned>
    JNI global reference lock: <unowned>
    BinClass lock: owner "Thread-0" (0x83ae258) 1 entry
    Class linking lock: <unowned>
    System class loader lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: <unowned>
    Monitor cache lock: owner "Thread-0" (0x83ae258) 1 entry
    Monitor IO lock: <unowned>
    User signal monitor: <unowned>
         Waiting to be notified:
         "Signal dispatcher" (0x80845a8)
    Child death monitor: <unowned>
    I/O monitor: <unowned>
    Alarm monitor: <unowned>
         Waiting to be notified:
         <unknown thread> (0x804be18)
    Thread queue lock: owner "Thread-0" (0x83ae258) 1 entry
    Monitor registry: owner "Thread-0" (0x83ae258) 1 entry
    SIGABRT 6* abort (generated by abort(3) routine)
         stackpointer=81adc820
    Full thread dump Classic VM (SCO-JDK-1.2.2-001:2000-Feb-17-03:54, green threads):
    "Thread-0" (TID:0x8074f3c8, sys_thread_t:0x83ae258, state:R) prio=5
         at com.inet.tds.TdsDriver.run(Unknown Source)
         at java.lang.Thread.run(Thread.java, Compiled Code)
    "process reaper" (TID:0x807431d0, sys_thread_t:0x82cd980, state:CW) prio=5
         at java.lang.Object.wait(Native Method)
         at java.lang.UNIXProcess.run(Native Method)
         at java.lang.Thread.run(Thread.java, Compiled Code)
    "Finalizer" (TID:0x8071f320, sys_thread_t:0x808e478, state:CW) prio=8
         at java.lang.Object.wait(Native Method)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
         at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
    "Reference Handler" (TID:0x8071f3b0, sys_thread_t:0x808a2d8, state:CW) prio=10
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java, Compiled Code)
         at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
    "Signal dispatcher" (TID:0x8071f3e0, sys_thread_t:0x80845a8, state:CW) prio=5
    "main" (TID:0x8071f1e0, sys_thread_t:0x804c2d8, state:R) prio=5
         at java.lang.Thread.sleep(Native Method)
         at com.inet.tds.TdsDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
         at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
         at SLSCorpRpt.printSchedule(SLSCorpRpt.java, Compiled Code)
         at SLSSchedule.runSchedule(SLSSchedule.java, Compiled Code)
         at SLSTextMain.<init>(SLSTextMain.java, Compiled Code)
         at SLSTextMain.main(SLSTextMain.java, Compiled Code)
    Monitor Cache Dump:
    java.lang.Object@807431A8/807C6140: <unowned>
         Waiting to be notified:
         "process reaper" (0x82cd980)
    java.lang.Class@80736EF8/807970A8: owner "main" (0x804c2d8) 2 entries
    <unknown key> (0x80737c21): owner "Thread-0" (0x83ae258) 1 entry
    java.lang.ref.ReferenceQueue$Lock@8071F338/80754D60: <unowned>
         Waiting to be notified:
         "Finalizer" (0x808e478)
    java.lang.ref.Reference$Lock@8071F3C0/80754890: <unowned>
         Waiting to be notified:
         "Reference Handler" (0x808a2d8)
    Registered Monitor Dump:
    PCMap lock: <unowned>
    utf8 hash table: <unowned>
    JNI pinning lock: <unowned>
    JNI global reference lock: <unowned>
    BinClass lock: owner "Thread-0" (0x83ae258) 1 entry
    Class linking lock: <unowned>
    System class loader lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: <unowned>
    Monitor cache lock: owner "Thread-0" (0x83ae258) 1 entry
    Monitor IO lock: <unowned>
    User signal monitor: <unowned>
         Waiting to be notified:
         "Signal dispatcher" (0x80845a8)
    Child death monitor: <unowned>
    I/O monitor: <unowned>
    Alarm monitor: <unowned>
         Waiting to be notified:
         <unknown thread> (0x804be18)
    Thread queue lock: owner "Thread-0" (0x83ae258) 1 entry
    Monitor registry: owner "Thread-0" (0x83ae258) 1 entry

    I have a similar problem with establishing a connection through JNI. Have you resolved your problem?
    Here's mine.
    In java, I have a class that provides an interface to a mysql database. The java programs that call this interface work fine.
    When I try to call the java interface from C++ through JNI, I get the following output -- some debug statements sprinkled through also. I am assuming that the JVM is missing something at runtime that is there in my JRE. The classpaths match , etc. Exception handling in java and in JNI code are not providing any more detail.. Thanks for comments!!
    Created jvm
    Got KBModel and String classes
    KBModel.java:stest()
    KBModel.java:init(String)
    KBModel.java:init(String) - got Properties file
    Got DBDRIVER class: org.gjt.mm.mysql.Driver
    Object = class org.gjt.mm.mysql.Driver
    init(): DBURLSTRING = jdbc:mysql://sturgeon.xxx.com:3306/<valid db name>
    init(): DBUSER = <valid user>
    init(): DBPASSWORD =<valid password>
    KBModel.java:init(Properties) - Attempting connection
    init(): Drivers available:
    com.mysql.jdbc.Driver
    Driver accepts this URL
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x4053ea09
    Function name=(N/A)
    Library=/lib/i686/libc.so.6
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Dynamic libraries:
    08048000-0804a000 r-xp 00000000 03:02 279279 /home/kathy/cm/src/Onto/Tools/Annotator/src/test/invokeKB
    0804a000-0804b000 rw-p 00001000 03:02 279279 /home/kathy/cm/src/Onto/Tools/Annotator/src/test/invokeKB
    40000000-40016000 r-xp 00000000 03:02 2093075 /lib/ld-2.2.4.so
    40016000-40017000 rw-p 00015000 03:02 2093075 /lib/ld-2.2.4.so
    40017000-40020000 r-xp 00000000 03:02 1309343 /usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/libhpi.so
    40020000-40021000 rw-p 00008000 03:02 1309343 /usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/libhpi.so
    40031000-40032000 r--p 00000000 03:02 768548 /usr/lib/locale/en_US/LC_IDENTIFICATION
    40033000-40085000 r-xp 00000000 03:02 328384 /usr/lib/libodbc.so.1.0.0
    40085000-40088000 rw-p 00051000 03:02 328384 /usr/lib/libodbc.so.1.0.0
    40088000-400c1000 r-xp 00000000 03:02 327275 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
    400c1000-400c8000 rw-p 00038000 03:02 327275 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
    400ca000-400eb000 r-xp 00000000 03:02 246620 /usr/java/jdk1.3.1_03/jre/lib/i386/libjava.so
    400eb000-400ed000 rw-p 00020000 03:02 246620 /usr/java/jdk1.3.1_03/jre/lib/i386/libjava.so
    400ee000-400ff000 r-xp 00000000 03:02 246629 /usr/java/jdk1.3.1_03/jre/lib/i386/libverify.so
    400ff000-40101000 rw-p 00010000 03:02 246629 /usr/java/jdk1.3.1_03/jre/lib/i386/libverify.so
    40101000-402f1000 r-xp 00000000 03:02 1701922 /usr/java/jdk1.3.1_03/jre/lib/i386/client/libjvm.so
    402f1000-403f1000 rw-p 001ef000 03:02 1701922 /usr/java/jdk1.3.1_03/jre/lib/i386/client/libjvm.so
    40408000-4053c000 r-xp 00000000 03:02 2093084 /lib/libc-2.2.4.so
    4053c000-40542000 rw-p 00133000 03:02 2093084 /lib/libc-2.2.4.so
    40547000-4054a000 r-xp 00000000 03:02 2093088 /lib/libdl-2.2.4.so
    4054a000-4054b000 rw-p 00002000 03:02 2093088 /lib/libdl-2.2.4.so
    4054b000-40558000 r-xp 00000000 03:02 343415 /lib/i686/libpthread-0.9.so
    40558000-40560000 rw-p 0000c000 03:02 343415 /lib/i686/libpthread-0.9.so
    40560000-40582000 r-xp 00000000 03:02 343413 /lib/i686/libm-2.2.4.so
    40582000-40583000 rw-p 00021000 03:02 343413 /lib/i686/libm-2.2.4.so
    40583000-40596000 r-xp 00000000 03:02 2093093 /lib/libnsl-2.2.4.so
    40596000-40597000 rw-p 00012000 03:02 2093093 /lib/libnsl-2.2.4.so
    40599000-405cd000 r-xp 00000000 03:02 328243 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    405cd000-405d9000 rw-p 00033000 03:02 328243 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    405dc000-405f0000 r-xp 00000000 03:02 246630 /usr/java/jdk1.3.1_03/jre/lib/i386/libzip.so
    405f0000-405f3000 rw-p 00013000 03:02 246630 /usr/java/jdk1.3.1_03/jre/lib/i386/libzip.so
    405f3000-41327000 r--s 00000000 03:02 1717328 /usr/java/jdk1.3.1_03/jre/lib/rt.jar
    41354000-4164b000 r--s 00000000 03:02 1717321 /usr/java/jdk1.3.1_03/jre/lib/i18n.jar
    4164b000-41661000 r--s 00000000 03:02 1717329 /usr/java/jdk1.3.1_03/jre/lib/sunrsasign.jar
    43709000-4370a000 r--p 00000000 03:02 408823 /usr/lib/locale/en_US/LC_MEASUREMENT
    4370a000-4370b000 r--p 00000000 03:02 2158478 /usr/lib/locale/en_US/LC_TELEPHONE
    4370b000-4370c000 r--p 00000000 03:02 2158480 /usr/lib/locale/en_US/LC_ADDRESS
    4370c000-4370d000 r--p 00000000 03:02 2158479 /usr/lib/locale/en_US/LC_NAME
    4370d000-4370e000 r--p 00000000 03:02 1864168 /usr/lib/locale/en_US/LC_PAPER
    4370e000-4370f000 r--p 00000000 03:02 2174846 /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
    4370f000-43710000 r--p 00000000 03:02 408822 /usr/lib/locale/en_US/LC_MONETARY
    49d5f000-49d8a000 r--p 00000000 03:02 572342 /usr/lib/locale/en_US/LC_CTYPE
    49d8a000-49d90000 r--p 00000000 03:02 866674 /usr/lib/locale/en_US/LC_COLLATE
    49d90000-49d91000 r--p 00000000 03:02 768549 /usr/lib/locale/en_US/LC_TIME
    49d91000-49d92000 r--p 00000000 03:02 572338 /usr/lib/locale/en_US/LC_NUMERIC
    49d93000-49d9c000 r-xp 00000000 03:02 246627 /usr/java/jdk1.3.1_03/jre/lib/i386/libnet.so
    49d9c000-49d9d000 rw-p 00008000 03:02 246627 /usr/java/jdk1.3.1_03/jre/lib/i386/libnet.so
    49d9d000-49da7000 r-xp 00000000 03:02 2093117 /lib/libnss_nisplus-2.2.4.so
    49da7000-49da8000 rw-p 00009000 03:02 2093117 /lib/libnss_nisplus-2.2.4.so
    49da8000-49dab000 r-xp 00000000 03:02 2093106 /lib/libnss_dns-2.2.4.so
    49dab000-49dac000 rw-p 00002000 03:02 2093106 /lib/libnss_dns-2.2.4.so
    49dad000-49db7000 r-xp 00000000 03:02 2093109 /lib/libnss_files-2.2.4.so
    49db7000-49db8000 rw-p 00009000 03:02 2093109 /lib/libnss_files-2.2.4.so
    4a624000-4a67a000 r--s 00000000 03:02 540401 /usr/java/jdk1.3.1_03/jre/lib/ext/log4j-1.2.6.jar
    4a695000-4a6a3000 r-xp 00000000 03:02 2093122 /lib/libresolv-2.2.4.so
    4a6a3000-4a6a5000 rw-p 0000d000 03:02 2093122 /lib/libresolv-2.2.4.so
    Local Time = Thu Feb 13 13:35:05 2003
    Elapsed Time = 1
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.3.1_03-b03 mixed mode)
    # An error report file has been saved as hs_err_pid9210.log.
    # Please refer to the file for further information.
    #

  • There is no application set to open the URL sims3://download/?ofbId=OFB-SIM3:38987

    There is no application set to open the URL sims3://download/?ofbId=OFB-SIM3:38987&encryptedAuthToken=INbCdD6FAe0ND8AcYXJcX FPun4EYsDLeKldH2eNztR1XM90460ejXtN1cD4EpASBNtF4hAJPW6JqlFo0RufA74fgIyqlL5_8Pq-22 vEdrXimqDC5-8U0Uxq1jhl-1b_-w-IkGUio9nplWF_9sUUzTQ...

    I try to download the game from EA sports, which I payed for, but that URL comes up. After that it just wont work so I cant download the game or anything.

  • How can I uninstall a long-ago expired Adobe XI (11.0.06) trial?  During the trial, Ver XI installed itself as my "default", which is still making it difficult for me to access the Adobe X (10.1.10) that I previously purchased.

    How can I uninstall a long-ago expired Adobe XI (11.0.06) trial?  During the trial, Ver XI installed itself as my "default", which is still making it difficult for me to access the Adobe X (10.1.10) that I previously purchased.

    Thanks for your help.  I cannot open the application (Acrobat XI) because I did not buy it.  Every time I want to open a .pdf, I have to remember to take the extra step of going to "open with" and then select "Acrobat X".  When I forget to do that, the XI "default" opens a window that gives me another chance to buy XI -- that's what I want to get rid of.  Another approach (perhaps?) would be to change to default setting from "Adobe XI" to Adobe X"  (the way it was before I tried the XI trial).  But I don't know how to do that.

  • Which application area does the SHOP VISIT NOTIFICATION cover under..

    which application area does the SHOP VISIT NOTIFICATION cover under..
    if possible pass me some useful information reg this SVN.
    i require this information very urgent...

    Ok, I think I'm on the right track now. I was finally able to inspect the HTTP requests coming in to my destination page, and I do see the notification post coming in, with the expected form data. Here's a sample of the HTTP request that came in after submitting a new quote on my site, in case anyone's interested.
    JSON:
    {"connection":"keep-alive", "content-length":"32", "content-type":"application/x-www-form-urlencoded", "host":"notification.azurewebsites.net", "max-forwards":"10", "x-liveupgrade":"1", "x-original-url":"/", "x-forwarded-for":"192.150.2.7:17242", "x-arr-log-id":"ae52537a-df3b-4bc5-a386-f652c9a03ef2"}
    { ObjectID: '4448953', ObjectType: '2008' }

  • Stopped threads waiting on DriverManager.getConnection()?

    Solaris 5.8, Sun JDK 1.3.1-b24
    RMI based application with the server piece running as a Java app on Solaris. After a few hours of use, with 100-150 users, the server app appears to hang from the client. If I do a kill -3 on the server process, I see a whole buttload of threads (over 100) stuck on DriverManager.getConnection() method (see below). The trace doesn't show anything deeper than that, but it is Oracle thin client being used. Our DBAs don't see any connections being attempted in the listeners log, and in fact, the number of the connections I see to the DB box via netstat jives exactly with the number of sessions I see on the Oracle side (in V$SESSION). While this is going on, I can connect to the DB box from the app server box all day long using a small class I wrote that just does a connection open and close.
    This app was working fairly flawlessly until about a week ago. Nothing in terms of drivers or JVM version has changed, but there has been slightly more user load lately. It seems that every new user request that comes in after a certain point ends up with a thread blocked like this. What is the thread stopped in getConnection() indicative of? Has anyone seen anything like this?
    Much appreciated,
    Mike
    Tons of these show in the thread dump (kill -3):
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:"RMI TCP Connection(11307)-10.160.96.220" daemon prio=5 tid=0x4946d0 nid=0x2e7b waiting for monitor entry [0xd4480000..0xd44819e0]
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:     at java.sql.DriverManager.getConnection(DriverManager.java:193)
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:     at sched_MT.rmiSched_MTImpl.getLocation(rmiSched_MTImpl.java:556)
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:     at java.lang.reflect.Method.invoke(Native Method)
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:     at sun.rmi.transport.Transport$1.run(Transport.java:152)
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:     at java.security.AccessController.doPrivileged(Native Method)
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:     at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
    Wed May 19 11:40:04 EDT 2004:ExecGroup-0:out:     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)

    Yes - it is roughly 1 user : 1 DB connection. No pooling. Rogue app that we inherited. Ack. While it's blocking users, I can connect to the DBs fine (there are 2) from another app on the same box using the same DB logins and the same DBs, so my impression is that it's not DB related, but at this point, I am not completely sure about that. Our DBA says TNS is not getting any connect attempts during this time, so it seems like the driver is not even attempting.

  • JDBC: java.lang.ExceptionInInitializerError on DriverManager.getConnection

    I've been developing an app on Linux and had the JDBC connector working fine, connecting to mySQL.
    Now when I try to run it on Solaris 2.8 with Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05), I get the following error trying a connect...
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.mysql.jdbc.Connection.<init>(Connection.java:1175)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at ps.DataCollector.getData(DataCollector.java:46)
    at ps.PacketSchedular.main(PacketSchedular.java:30)
    Caused by: java.lang.RuntimeException: Unable to initialize character set mapping tables
    at com.mysql.jdbc.CharsetMapping.<clinit>(CharsetMapping.java:73)
    ... 6 more
    my java file is ....
    public class DataCollector {
    private String database = "oui";
    private String user = "user";
    private String passwd = "password";
    private int portNum = 3306;
    public DataCollector () {
    public void getData() {
    Statement stmt = null;
    Connection conn = null;
    ResultSet rs = null;
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/" + database + "?port=" + portNum + "&user=" + user + "&password=" + passwd + "&autoReconnect=false");
    etc
    etc
    I'm using the mysql connector 'mysql-connector-java-3.1.8-bin.jar' and i've also downgraded to an earlier release which had no positive effect.
    Google (unusually) has given me no hints!
    Any suggestions as to what may be causing this?
    Thanks

    I can connect to the server locally and also telnet to port 3306 and get a response!
    telnet localhost 3306Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    4
    5.0.18LIVU'`/hA,I*7tf~jx>iu2
    I use this same server with Perl every day (although Perl is using a socket to connect).
    I've searched pretty much everywhere for a fix - but to no avail.
    Thanks

Maybe you are looking for

  • No boot, continuous beeping

    Hi All, My wife's macbook air (13 inch late 2010 model) no longer boots. The screen does not come on (no grey boot screen) and when powered on there is continuous beeps. ~1 second beep, 2 seconds silent, 1 second beep. It will continue to beep as lon

  • User equivalence check failed for user "oracle".

    Hi, I am trying to install the Oracle Clusterware 10g as part of my RAC setup. I have configured RHEL 4 in 2 nodes (rac and rac2). But when I run the runcluvfy utility, I get the below error: [oracle@rac cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n

  • Inbox icon number gone

    Since I installed 10.4.7 the number of msgs in the inbox has disappeared on the mail icon in the dock. I checked and the Helvetica font appears to be enabled. Any ideas?

  • How can I Display a Image with tiff format in Jpanel?

    How can I Display a CMYK Image with tiff format in Jpanel ? Not in ScrollingImagePanel? Thank you in advance.

  • Photoshop CS 5.5, select an object and hit delete to delete and it pops up the Fill window?

    So, new to CS 5.5 but I'm in Photoshop right now and I opened up a PDF in Photoshop and I'm deleting the background. So I grab the Polygonal Lasso tool and select my area to delete. Then I hit the Delete key on the keyboard and it pops up the Fill wi