Database Handling in JWS

Hi,
We have developed an application using Swing, Session Bean and DAO. Now, i'm implementing JWS to the existing application. After implementing JWS, the main screen is opening fine. In the JAR file I have added all the desired server side and client side classes plus other jar files required by the system.
But when i am launching the application using JWS , it is not able to retrieve data from the database in the main class. Moreover, it is not throwing any exception as well.
Please suggest me whether JWS requires extra setting for database connection handling or I have to add certain thing in my JNLP file. The current JNLP file is
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for RMI-IIOP sample -->
<jnlp spec="1.0+" codebase="http://localhost:8181"
                              href="AyaamClient/launch.jnlp">
<information>
<title>Ayaam Network</title>
<vendor>Sun Microsystems, Inc.</vendor>
<description>Ayaam Network</description>
<description kind="short">Ayaam Network Application </description>
<icon href="resources/splash.jpg"/>
<icon kind="splash" href="resources/splash.jpg"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="AyaamClient/Startup.jar" />
<extension href="AyaamClient/Activation.jnlp"/>
</resources>
<application-desc main-class="com.ayaam.applicationFramework.gui.view.uicontainer.concomponent.network.AymNetWorkDialog">
</application-desc>
</jnlp>

If I understand your problem and you are downloading the database, then try extracting your database file as a resource into the local file system (for instance put it under System.getProperty("user.home")), and then connect localy to it.

Similar Messages

  • How can I convert a Database Handle from TestStand to LabVIEW?

    I want to use a Database Handle (already created in TestStand by an Open Database step) in a LabVIEW-VI (called from TestStand) to connect it with the "Connection Reference" input of the "Easy SQL.vi"? If I use a directly connection via the "TestStand - Get Property Value (Number).vi" I get back the error message 4101 in LabVIEW. How can I convert the Database Handle?
    Test Engineering
    digades GmbH
    www.digades.com

    The TestStand database step types use the CVI SQL Toolkit to talk to databases. The handle that you are referencing is an internal memory location and not a actual handle that you can directly use. Currently as implemented the handle that is stored in a numeric TestStand property for the connection and the SQL statement are the handle values returned from the CVI SQL Toolkit. So for the connection handle, you could call the CVI SQL Toolkit function
    DBGetConnectionAttribute (
    int Connection_Handle,
    tDBConnectionAttr Attribute,
    void *Value);
    and get the CVI CAObjHandle reference. With this you could then call the CVI ActiveX function
    CA_GetInterfaceFromObjHandle(
    CAObjHandle Object_Handle,
    const IID *Interface_Id,
    int Force_AddRef,
    void *Inte
    rface_Ptr,
    int *Did_AddRef);
    to get the actual ActiveX interface reference. This would have to be converted into a LabVIEW reference.
    You may want to consider just using LabVIEW to open a new parallel reference only using the toolkit.
    Scott Richardson
    National Instruments

  • Error: 'Database handles still open at environment close'

    Hello,
    I have read information about this error, but I cannot solve it.
    I think I have closed all objects that I use, but the error appears.
    When I remove next code, the error doesn't appear:
    while (xmlValue != null) {
    XmlDocument theDoc = xmlValue.asDocument();
    String docName = theDoc.getName();
    String docString = xmlValue.asString();
    String message = "Document ";
    message += theDoc.getName() + ":\n";
    message += xmlValue.asString();
    message += "===============================\n";
    System.out.println(message);
    xmlValue = results.next();
    theDoc.delete();
    The error:
    Database handles still open at environment close
    Open database handle: myContainer.dbxml/secondary_document_statistics_string
    Open database handle: myContainer.dbxml/secondary_document_index_string
    Open database handle: myContainer.dbxml/node_nodestorage
    Open database handle: myContainer.dbxml/secondary_document
    Open database handle: myContainer.dbxml/secondary_dictionary
    Open database handle: myContainer.dbxml/primary_dictionary
    Open database handle: myContainer.dbxml/secondary_sequence
    Open database handle: myContainer.dbxml/secondary_configuration
    Exception in thread "main" java.lang.IllegalArgumentException: Invalid argument
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_close0(Native Method)
    at com.sleepycat.db.internal.DbEnv.close0(DbEnv.java:217)
    at com.sleepycat.db.internal.DbEnv.close(DbEnv.java:77)
    at com.sleepycat.db.Environment.close(Environment.java:39)
    at berkeleydbxml.Test1.main(Test1.java:137)
    Java Result: 1
    The code:
    public static void main(String[] args) {
    Environment myEnv = null;
    File envHome = new File("C:/extranet/tecnologias/BerkeleyDBXML/Java/BerkeleyDBXML/dbxml");
    XmlManager myManager = null;
    XmlContainer myContainer = null;
    XmlQueryContext context = null;
    try {
    EnvironmentConfig envConf = new EnvironmentConfig();
    envConf.setAllowCreate(true); // If the environment does not
    // exits, create it.
    envConf.setInitializeCache(true); // Turn on the shared memory
    // region.
    envConf.setInitializeLocking(true); // Turn on the locking subsystem.
    envConf.setInitializeLogging(true); // Turn on the logging subsystem.
    envConf.setTransactional(true); // Turn on the transactional
    // subsystem.
    myEnv = new Environment(envHome, envConf);
    XmlManagerConfig managerConfig = new XmlManagerConfig();
    myManager = new XmlManager(myEnv, managerConfig);
    XmlContainerConfig containerConf = new XmlContainerConfig();
    containerConf.setTransactional(true);
    containerConf.setAllowCreate(true);
    String containerName = "myContainer.dbxml";
    myContainer = myManager.openContainer(containerName, containerConf);
    // Get a query context
    context = myManager.createQueryContext();
    // Declares namespaces
    // Default namespace
    context.setNamespace("", "urn:oasis:names:specification:ubl:schema:xsd:Invoice-2");
    context.setNamespace("cac", "urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2");
    context.setNamespace("cbc", "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2");
    context.setNamespace("ccts", "urn:un:unece:uncefact:documentation:2");
    context.setNamespace("ext", "urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2");
    context.setNamespace("qdt", "urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2");
    context.setNamespace("udt", "urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2");
    // Declare the query string
    String myQuery =
    "collection('myContainer.dbxml')/Invoice";
    // Prepare (compile) the query
    XmlQueryExpression qe = myManager.prepare(myQuery, context);
    // Run the query. Note that you can perform this query many times
    // without suffering the overhead of re-creating the query expression.
    // Notice that the only thing we are changing is the variable value,
    // which allows us to control exactly what gets returned for the
    // query.
    XmlResults results = qe.execute(context);
    // Display the result set
    XmlValue xmlValue = results.next();
    while (xmlValue != null) {
    XmlDocument theDoc = xmlValue.asDocument();
    String docName = theDoc.getName();
    String docString = xmlValue.asString();
    String message = "Document ";
    message += theDoc.getName() + ":\n";
    message += xmlValue.asString();
    message += "===============================\n";
    System.out.println(message);
    xmlValue = results.next();
    theDoc.delete();
    xmlValue.delete(); <-- the error happens here
    qe.delete();
    results.delete();
    } catch (DatabaseException de) {
    // Exception handling goes here
    int i = 1;
    } catch (FileNotFoundException fnfe) {
    // Exception handling goes here
    int i=1;
    } catch (Exception e) {
    // Exception handling goes here
    int i = 2;
    } finally {
    try {
    if (myContainer != null) {
    myContainer.close();
    if (myManager != null) {
    myManager.close();
    if (myEnv != null) {
    myEnv.close();
    } catch (DatabaseException de) {
    // Exception handling goes here
    If I remove the xmlValue.delete() sentence, the error appears in myEnv.close().
    I use berkeley 2.3.10 version, Windows XP.
    Thanks.

    I am having a similar problem. My method:
    protected void searchQuestions(String keyword) throws LibraryException {
    XmlQueryContext xqc = null;
    XmlResults xr = null;
    XmlQueryExpression xqe = null;
    String[] qids = null;
    String query = "collection()/*[contains(question, '" + keyword + "')]";
    try {
    conQuestions = man.openContainer(QUESTION_CONTAINER);
    xqc = man.createQueryContext();
    xqc.setDefaultCollection(QUESTION_CONTAINER);
    xqe = man.prepare(query, xqc);
    xr = xqe.execute(xqc);
    conQuestions.delete();
    xqc.delete();
    xqe.delete();
    XmlValue val = xr.next();
    while (val != null) {
    String name = val.asDocument().getName();
    System.out.println(name);
    val = xr.next();
    val.delete(); <-- PROBLEM HERE
    xr.delete();
    } catch (XmlException xe) {
    throw new LibraryException("Unable to search for questions. " + xe.getMessage());
    If I leave the val.delete() line then I get a java.lang.NullPointerException but if I remove it then I get an error stating 'Database handles still open at environment close'. I run a clean up method after the previous method as follows:
    protected void close() {
    if(conQuizes != null)
    conQuizes.delete();
    if(conQuestions != null)
    conQuestions.delete();
    if(conUsers != null)
    conUsers.delete();
    if(man != null)
    man.delete();
    I have many other methods that interact with containers perfectly but this is the only one where I use the XmlValue class. I tried the solution that worked for brais.mendez with no luck. Any advise or ideas would be much appreciated.
    Thanks,
    Matt

  • Invalid database handle

    hi,
    i am trying to set up coldfusion on localhost since the
    development server went bonkers. i wasn't the one who set up the
    dev server though i'm not sure what this error means. i get this
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Oracle][ODBC][Rdb]%RDB-F-BAD_DB_HANDLE, invalid database
    handle
    i tested all the connections in the Administrator Panel and
    they work just fine.
    I'm not sure what I'm doing wrong

    Can you please provide some more details stepwise about what
    you have done from the start?
    Also the DB version and other details.
    If you can paste your code here that would be great !
    Thanks

  • Database handle

    Hello everybody.
    Ist it possible to assign a database handle in subprocesses?
    I want to have more then one database adapters in one transaction but do a commit only at the end.
    Important is that it hast to work only in one DB-TRANSACTION (everything before commit).
    Does sb know if it works or has somebody an example?
    Thank you very much

    Hi Ben,
    whether the same sql connection (handle) is used everytime is a data-sources implementation detail, but I believe that if all invokes are part of the same XA transaction, then yes that would make sense.
    I was told by the data-sources team also that that is the case.
    Note however that even if multiple connections to the same database are used, the XA logic will still happen. Exploiting the fact that all writes are to the same database by using the same handle is just an optimization.
    Also you can force the DBAdapter to use the same 'UnitOfWork', which is its wrapper around the database handle. That way if you for instance 'merge' a new object in two different invokes as part of the same XA transaction, it will know to only do one insert. Might not be neccessary for you. To enable it add the wsdl property 'GetActiveUnitOfWork=true' to all participating dbadapter invokes.
    Thanks
    Steve

  • Callback function may be NULL only when database handles are read-only

    Hi,
    I am getting some errors when trying to run my java code that will try to open a few cursors and join them to fetch the data.
    ath .:/usr/src/db-4.7.25.NC/java/src:/usr/local/BerkeleyDB.4.7/lib/db.jar bdbtest
    MyDbs: Callback function may be NULL only when database handles are read-only
    Error on inventory secondary cursor:
    java.lang.IllegalArgumentException: Invalid argument: Callback function may be NULL only when database handles are read-only
    What does that error mean? How can I resolve it? I am following the sample program and I can't find anything related.
    Here is my code.
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.Database;
    import com.sleepycat.db.SecondaryDatabase;
    import com.sleepycat.db.DatabaseConfig;
    import com.sleepycat.db.DatabaseType;
    import java.io.FileNotFoundException;
    import com.sleepycat.db.DatabaseEntry;
    import com.sleepycat.db.SecondaryCursor;
    import com.sleepycat.db.Cursor;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.LockMode;
    import com.sleepycat.db.OperationStatus;
    import com.sleepycat.db.SecondaryCursor;
    import com.sleepycat.db.SecondaryConfig;
    import com.sleepycat.bind.EntryBinding;
    import com.sleepycat.bind.serial.SerialBinding;
    import com.sleepycat.bind.tuple.TupleBinding;
    import com.sleepycat.db.Cursor;
    import com.sleepycat.db.DatabaseEntry;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.LockMode;
    import com.sleepycat.db.OperationStatus;
    import com.sleepycat.db.SecondaryCursor;
    public class bdbtest {
    public static void main(String args[]) {
    SecondaryDatabase myDatabase = null;
         Database primDB = null;
         Cursor cursor = null;
    try {
    // Open the database. Create it if it does not already exist.
    DatabaseConfig dbConfig = new DatabaseConfig();
         dbConfig.setErrorStream(System.err);
    dbConfig.setErrorPrefix("MyDbs");
         dbConfig.setType(DatabaseType.BTREE);
    dbConfig.setAllowCreate(true);
         SecondaryConfig mySecConfig = new SecondaryConfig();
         mySecConfig.setErrorStream(System.err);
    mySecConfig.setErrorPrefix("MyDbs");
         mySecConfig.setType(DatabaseType.BTREE);
    mySecConfig.setAllowCreate(true);
         primDB = new Database("/tmp/bdb_ca_db.db",
    "bdb_ca_db",
    dbConfig);
    dbConfig.setAllowCreate(true);
    myDatabase = new SecondaryDatabase("/tmp/bdb_ca_sdb.db",
    "ca_sdb_res_alias",
    primDB,
    mySecConfig);
         String res ="in-1";
         SecondaryCursor secCursor = null;
         DatabaseEntry searchKey =
    new DatabaseEntry(res.getBytes("UTF-8"));
         DatabaseEntry foundKey = new DatabaseEntry();
    DatabaseEntry foundData = new DatabaseEntry();
         secCursor =
    myDatabase.openSecondaryCursor(null, config);
    // Search for the secondary database entry.
    OperationStatus retVal =
    secCursor.getSearchKey(searchKey, foundKey,
    foundData, LockMode.DEFAULT);
         if (retVal == OperationStatus.SUCCESS){
              System.out.println("succ");
         }else {
              System.out.println("fail");
    while (retVal == OperationStatus.SUCCESS) {
    String keyString = new String(foundKey.getData(), "UTF-8");
    String dataString = new String(foundData.getData(), "UTF-8");
    System.out.println("Key | Data : " + keyString + " | " +
    dataString + "");
    secCursor.getNextDup(searchKey, foundKey,foundData, LockMode.DEFAULT);
         } catch (Exception e) {
    System.err.println("Error on inventory secondary cursor:");
    System.err.println(e.toString());
    e.printStackTrace();
         finally {
    // Make sure to close the cursor
              try {
              cursor.close();
              }catch (com.sleepycat.db.DatabaseException e) {
    System.out.println("All done.");
    }

    Hi,
    The error is because either the primary database or the secondary database is configured as read only and the callback to create the secondary keys is null. A quick glance of the code, it appears as if you did not set up the secondary database correctly. In the Getting Started Guide for JAVA API chap 10, we have detailed information on what needs to be done as well as a code example. Please refer to http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/JAVA/index.html and look for Chap 10.
    regards,
    Mike Brey, Oracle Berkeley DB

  • Database handling in j2me

    Hello,
    I am student of final year Engineering. I am doing a project on J2ME in which I am supposed to get some data from database of SQL server. As I want my application to run on low-configuration device, I cant use servlets. Best way I can do is by using serialization. Can you please tell me how should I handle this. Also suggest any alternative for getting record from database?
    Thank you!

    The best thing to use would be a data source. This page details how to setup a data source on Orion.
    http://www.orionsupport.com/articles/jdbc.html
    If your not using an enterprise web server like Orion or Websphere, for example Tomcat, you'll need to use third party implementation, like Poolman (it's free).
    You can get Poolman from here:
    http://www.codestudio.com/
    Hope this helps you out.

  • Multiple database handling through Forms4.5 D2K

    Hi,
    Is it possible to connect to multiple ORACLE servers from one form (application is on D2k forms 4.5 )at the same time without having a DB-LINK. If so then how ?

    Hi Gerry,
    Create a view by joining the three tables and have the base table
    of the block as the view. This will allow you to show only the
    necessary items.
    Regards,
    Anandh
    CV (guest) wrote:
    : Hi Gerry,
    : Try moving the items of the link table to a different
    : canvas and make all the items not navigable. You can then
    : navigate to the address block straight from the customer block.
    : Hope this helps.
    : CV.
    : Gerry Cameron (guest) wrote:
    : : I am using Forms4.5, to develop a customer search screen,
    which
    : : brings back the address of the customer. However the database
    : : itself returns this information, from three seperate tables.
    : : i.e. customer_name table, link_table (this links cust_id to
    : : address), address_table.
    : : The problem I have, is that I do not want the link table to
    be
    : : visable on the form, however, if I leave it off, the form
    will
    : : not bring back the address, saying it doesn't recognise the
    : join
    : : condition. I have tried to hide the link_table information,
    by
    : : drawing a rectangle over the top of it, however this does not
    : : hide the information.
    : : Can anyone tell me how to solve this problem, either by using
    : : multiple forms, or by, being able to put all the info on a
    : : single form (preferable).
    : : Thanks
    null

  • Mulitple databases handling in Session EJB

    Can u get connections to two different database in one method of Session EJB.
    I want to update two different databases probably one in Oracle and other in SQL server.
    Any suggestions ??
    Thanks.

    Writing two entity beans might not work.
    here is the reason why.
    If you start a transaction in your session bean and try to call 2 entity beans in the same transaction, then your entity beans cannot make a connection to different datasources.
    Once a connection is opened to a datasource inside a transaction, you cannot open another connection to a different DataSource.
    If you try to have different transactions in the two entity beans that you write then there is no way to maintain consistancy between the two DBs as update to one can fail while other succeeds.
    The only way you can achieve what you are looking for is by using 2PC. (2 phased commit)
    Beware, not all app servers support 2PC. (I know wls 6.1 does) not all drivers support 2PC, and not all resource managers support 2PC. So you'll have to read the documentation of your app server, driver, and databases before you can proceed.
    regards,
    Abhishek.

  • ProC - sqlcheck=semantics without connection to a database - handling views

    Hello!
    I have a question about ProC and embedded SQL. I'm not sure if this falls under
    the OCCI umbrella but when I originally posted my question to the SQL forum I
    was directed to the OCCI forum. My apologies if my question is off-topic here as well.
    We would like to run ProC with sqlcheck=semantics without connecting to a database..
    To do this we insert an
    EXEC SQL INCLUDE definitions.pc;
    in each of our source files containing embedded sql. The file definitions.pc contains
    a set of statements of the form "EXEC SQL DECLARE xxx TABLE ( .... );".
    This file is generated from another file containing "CREATE TABLE" statements.
    This seems to work, if our embedded SQL does not agree with the table definitions
    in definitions.pc then ProC complains.
    We would now like to get semantic checking for embedded SQL that refers to views
    but are unsure how to achieve this. There does not seem to be a statement
    "EXEC SQL DECLARE xxxx VIEW".
    One way to do this would be to add a fake "EXEC SQL DECLARE xxx TABLE"
    statement to definitions.pc for each view in the database. Writing a tool that translates
    a set of "CREATE TABLE" into a set of "EXEC SQL DECLARE TABLE" is easy, but
    translating "CREATE VIEW" into a corresponding faked "EXEX SQL DECLARE xxx TABLE"
    seems much harder.
    Is there a way to achieve semantic checking of embedded SQL that refers to views
    without connecting to a database or without writing a tool that parses full "create view"
    statements?
    Thanks,
    Lars

    I'm not sure if this falls under the OCCI umbrellaOnly in the same way that questions about chalk fall under the cheese umbrella.
    Pro*C and OCCI are different subjects.
    We would like to run ProC with sqlcheck=semantics without connecting to a database.Sorry, that's impossible; it's a direct contradiction. sqlcheck=semantics REQUIRES a connection to the database, otherwise the SQLCHECK cannot check the SEMANTICS; to do that it needs to connect to the database.
    If you cannot connect to a database then you can't use sqlcheck=semantics, which in turn means you can't use embedded PL/SQL.
    However you can use Dynamic PL/SQL, which means you have the PL/SQL in a character string and explicitly code what Pro*C does for you automatically. There are very few changes needed to accomplish this, and no change in performance as what you would be doing explicitly in code is exactly the same as what Pro*C does for you in the background; the only difference is syntactic sugar.
    If code changes are impossible and you must have a database, then you will have to install one on the development machine and load into it the objects that Pro*C needs to check in order to complete the semantic check. What isn't checked is that the database at precompile time is the same as the database at runtime, so this is a valid solution.

  • Language Handling in Oracle 10g Database

    I want to know that how language works in oracle 10g database at micro level.Actually what happen when we insert any record into database and how database handle it.
    from insertion to storage and displaying any stored record...what exaclty happens?
    how oracle 10g handle it?

    That would be big long session.
    You can start from following link,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/toc.htm

  • 0o we require a seperate server for each JWS app

    We have an app that runs on JWS and uses a fairly large MS SQL database. We currently host this on our server. We use ServletExec and Win2k and IIS. Most customers do not have MS SQL on their laptops. Each customer wants to login and use their own version of our application together with their own version of the database.
    Q: could we host several versions (one for each customer) of our app on a single server with one IP address, or do we need a different server with different IP for each?

    I've used many UNIX databases, not SQL
    database, and I don't know how SQL database
    handles authentication, but with Oracle, for
    instance, it would be easy to run any number
    of apps and databases from a single directory
    on any web server.
    One way to differentiate DB instances would
    be by specifying a -D property in the JNLP
    launch commands.
    Any half-descent web server will permit you
    to control access to individual files by
    source address and/or passwords.

  • Berkeley DB Java Edition - multiple threads accessing database

    Hi,
    I would like to access (read & write) a Berkeley DB from multiple threads (all same process/jvm).
    Should I use a single com.sleepycat.je.Database object for all threads, or should I create an instance for each?
    Or is there any other way of doing it?
    Thanks

    The Database object may be used by multiple threads, so you can use a single instance or multiple ones, as best suits you. From http://docs.oracle.com/cd/E17277_02/html/java/com/sleepycat/je/Database.html,
    Database handles are free-threaded and may be used concurrently by multiple threads. 'If you read through the javadoc, you'll find other notes on using classes from multiple threads.
    Regards,
    Linda

  • How to read a Database in Teststand 4.0

    Hi,
    My question is how to read a Access Database in Teststand 4.0....
    Writing is not the problem.... but now i want to read a Number into a FileGlobal....
    I've already tested some SQL Statements but they all result in an Error....
    Can somebody give me an example for this Problem?
    Thanks
    Givin´ um something to Rock´n´Roll about

    Chevydevil -
    The first half of the sequence writes the values to the database, the second half reads the values from the database. After the "Close SQL Statement" step in the middle of the sequence, the "Open SQL Statement" step reopens the table using a SELECT statement against the database handle that was used to write the values. The "Start Loop 2" and following "Goto" step setup a loop, and the "SQL Action - Fetch Next" step selects the next record in the query. The "SQL Action - Get Values" step gets values from the current record by mapping the column name to a local variable. The "SQL Action - Get String Value" step shows that you can also request the value of a record separately, in this case a string value.
    The cleanup step group ensures that you properly close the statement and database handles.
    Scott Richardson
    National Instruments

  • Database.close not closing database?

    I've a singleton holding onto open (read-only) database handles, the environment and catalog DB handles. I'm using a StoredMap.get() to pull specific data items by their keys. Everything works fine, except in my JVM shutdown hook.
    The shutdown hook iterates over each of my open database handles and calls db.close() on them. Same goes for catalog DB and the environment.
    However, when the shutdown hook code gets to environment.close, it throws a DatabaseException saying - 1 database still open in environment.
    I've tried explicitly deallocating the reference to the database handle before calling db.close(). That doesn't help.
    Any ideas on what might cause a db.close to execute (no exceptions thrown), but the corresponding environment.close still thinks the database is not yet closed?
    I'm wondering if there is a timing aspect here, since the db.close and env.close are called in very rapid succession inside the shutdown hook code.
    Thanks

    Hi,
    Any ideas on what might cause a db.close to execute
    (no exceptions thrown), but the corresponding
    environment.close still thinks the database is not
    yet closed?
    I'm wondering if there is a timing aspect here, since
    the db.close and env.close are called in very rapid
    succession inside the shutdown hook code.Calling them in succession should not be a problem. Is it possible that you've opened a database more than once? You have to close each "handle' you've opened if you open a database multiple times.
    Mark

Maybe you are looking for

  • Cant get Adobe Photoshop 11 serial code

    i already entered the redemption code but it doesnt give me a serial number, would appreciate the help.

  • Satellite C650 - Connecting to TV

    Hi I bought an s video cable a few days ago as my TV has an s video slot but my laptop doesnt so I got a converter thing that you plug one end into TV then one end into this converter then its got a VGA conecter on it and when I connect it to my lapt

  • Lr5 fails to export my images to facebook

    Hi all, Setting up, authentication and exporting my first album went without a problem. That is ... just once and thereafter something is not working anymore. The facebooklr5 log states : "This plug-in's post-processing task did not finish successful

  • How can I use jad decompiler with Jdeveloper ?

    I want to use jad decompiler with JDeveloper . What should I do ? I also want jdeveloper can set break point in source code that decompiled for debugging . If Jdeveloper dose n't have Jad Extension . Do you have any other decompiler that can be integ

  • Customizing Forms - 2 problems

    Hey guys, So I am working on a list and I went to view the forms for the page. The automatic form seems to be deleted. Is there a way to reinsert the automatic new item form?  Also, on a new form, I created a link to another items new item form that