Flush back utility

Hi experts,
can flushback utility revert database back to any point of time? or it is related with automatic undo management statistics like.. UNDO_RETENSION initialization parameter?
Regards,
SKP

can flushback utility revert database back to any point of time?<br>Yes. Flashback database is available since the 10g.<br>
<br>
Nicolas.

Similar Messages

  • Tons of errors

    My propose is:
    �     Log onto the server as the administrator named root.
    �     Create a new database named JunkDB.
    �     Register a new user named auser on the database named JunkDB with six different privileges and a password of drowssap.
    import java.sql.*;
    public class Jdbc11 {
      public static void main(String args[]){
        System.out.println(
                      "Copyright 2004, R.G.Baldwin");
        try {
          Statement stmt;
         Class.forName("com.mysql.jdbc.Driver");
         String url =
                "jdbc:mysql://localhost:3306/mysql";
            Connection con = DriverManager.getConnection(url,"root", "password");
            System.out.println("URL: " + url);
            System.out.println("Connection: " + con);
            stmt = con.createStatement();
            stmt.executeUpdate("CREATE DATABASE JunkDB");
            stmt.executeUpdate(
              "GRANT SELECT,INSERT,UPDATE,DELETE," +
              "CREATE,DROP " +
              "ON JunkDB.* TO 'auser'@'localhost' " +
              "IDENTIFIED BY 'drowssap';");
    con.close();
        }catch( Exception e ) {
          e.printStackTrace();
        }//end catch
      }//end main
    }//end class Jdbc11
    compile:
    Copyright 2004, R.G.Baldwin
    URL: jdbc:mysql://localhost:3306/mysql
    Connection: com.mysql.jdbc.Connection@888e6c
    java.sql.SQLException: Can't create database 'junkdb'; database exists
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
            at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
            at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
            at com.mysql.jdbc.Connection.execSQL(Connection.java:3243)
            at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1343)
            at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1260)
            at Jdbc11.main(Jdbc11.java:15)
    debug:
    BUILD SUCCESSFUL (total time: 5 seconds)

    Thanks, I have resloved it. It is a mistake.
    Please help me to look at the second class.
    import java.sql.*;
    public class Jdbc12 {
      public static void main(String args[]){
        System.out.println(
                      "Copyright 2004, R.G.Baldwin");
        try {
          Statement stmt;
          //Register the JDBC driver for MySQL.
          Class.forName("com.mysql.jdbc.Driver");
          //Define URL of database server for
          // database named mysql on the localhost
          // with the default port number 3306.
          String url =
                "jdbc:mysql://localhost:3306/mysql";
          //Get a connection to the database for a
          // user named root with a blank password.
          // This user is the default administrator
          // having full privileges to do anything.
          Connection con = DriverManager.getConnection(url,"root", "password");
          //Display URL and connection information
          System.out.println("URL: " + url);
          System.out.println("Connection: " + con);
          //Get a Statement object
          stmt = con.createStatement();
          stmt.executeUpdate(
              "REVOKE ALL PRIVILEGES ON *.* " +
              "FROM 'auser'@'localhost'");
          stmt.executeUpdate(
              "REVOKE GRANT OPTION ON *.* " +
              "FROM 'auser'@'localhost'");
          stmt.executeUpdate(
              "DELETE FROM mysql.user WHERE " +
              "User='auser' and Host='localhost'");
          stmt.executeUpdate("FLUSH PRIVILEGES");
          stmt.executeUpdate("DROP DATABASE JunkDB");
    con.close();
        }catch( Exception e ) {
          e.printStackTrace();
    compile:
    Copyright 2004, R.G.Baldwin
    URL: jdbc:mysql://localhost:3306/mysql
    Connection: com.mysql.jdbc.Connection@888e6c
    com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: There is no such grant defined for user 'auser' on host 'localhost'
    ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
    JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):  [../../../src/share/back/util.c:820]

  • Relationship between objects and information stored in a database

    I've got a question that's pretty broad... but maybe someone can help with it.
    I'm writing a couple of classes, one called "Customer" and the other "Store". Store can contain any number of customers, which it keeps in an array. A customer object has name and address fields, as well as an array of the current movies the customer has checked out. A third "Driver" class has the main method which calls the other two classes. When a new customer is created, it is put into the array in an object of store, and written to disk in a file named with the customer's ID number.
    My question is, I'm not really sure how objects tie in with the actual database on the hard disk. For example, if I run the program once and add 3 customers, all three get written to disk, and exist in memory as objects. However, when I exit the program, I lose all 3 of those objects from the array of customers in the store object.
    So, when I run the program a second time, the array is gone, though the customer information remains on disk. I have methods to delete/add customer objects to an object of store, but those don't do me any good without the array in memory. I thought that I could just load all data from disk, and put them back into the array, but isn't that inefficient if the database is very large? Is there a better way to deal with this?
    I hope that was reasonably clear. I'd appreciate any help. Thanks.

    i would make the store a manager of the customer objects whose
    responsibilities include read and writing the objects as well as caching
    them.
    here is some sample code for this.
    public class Customer(){
      int id;
      /* the id field is the unique identifier for each Customer.
         this field should probably be our primary key in our database
         table. you don't have to use a number but whatever it is it
         needs to be unique */      
      boolean updated;
      public Customer(int customerId){
        id = customerId;
        updated = false;
      public int getCustomerId(){
        return id;
      /* if the customer object has been changed and needs to flushed back
         to the database this returns true. */
      public boolean needsFlushing(){
        return updated;
      /* and your other methods go here... */
    }and now for the Store...
    public class Store{
      private Customer[] cache;
      public Store(){
        cache = new Customer[10];
        /* here i have hard coded as 10, you could change this or for more
           flexibility use a Vector or such. */
      /* spin through the cache and return the matching customer. if the
         customer is not in the cache load it in the database. */
      public Customer getCustomer(int customerId)throws SQLException{
        for(int j=0;j<cache.length;j++){
          if((cache[j]!=null)&&(cache[j].getCustomerId()==customerId)){
            return cache[j];
        Customer c = loadCustomer(customerId);
        addToCache(c);
        return c;
      public void addCustomer(Customer c)throws SQLException{
        /* adds a new (non-existing customer) */
        saveCustomer(c);
        addToCache(c);
      public void close()throws SQLException{
        /* flushes back any updated customers */
        for(int j=0;j<cache.length;j++){
          if((cache[j]!=null)&&(cache[j].needsFlushing())){
            saveCustomer(cache[j]);
        cache = null;   
      private Customer loadCustomer(int customerId)throws SQLException{
        /* here would be code for loading a customer object from the
           database that matches the customerId. */
        return new Customer(customerId);//temporary 
      private void saveCustomer(Customer c)throws SQLException{
        /* here would be the code for saving the customer c into the
           database */
      private void addToCache(Customer c){
        /* this method adds the customer c to the cache. it may have to
           to remove an older customer from the cache to do this. i leave
           the algorithm for deciding this up to you */

  • MySQL and Java - getting program to work

    I am setting up mysql to run sql from a Java program on my pc at home and probably biting off more than I can chew. I get these messages when executing the java program ExecuteSQL.java:
    Exception in thread "main" java.lang.NoClassDefFoundError: Test2 <wrong name: MyProjects/test2/Test2>
    at java.lang.ClassLoader.defineClass0<Native Method>
    at java.lang.ClassLoader.defineClass<Unknown Source>
    at java.security.SecurityClassLoader.defineClass<Unknown Source>
    at java.net.URLClassLoader.defineClass<Unknown Source>
    at java.net.URLClassLoader.access$100<Unknown Source>
    at java.net.URLClassLoader$1.run<Unknown Source>
    at java.security.AccessController.ddPrivileged<Native Method>
    at java.lang.ClassLoader.findClass<Unknown Source>
    at java.lang.ClassLoader.loadClass<Unknown Source>
    at sun.misc.Launcher$AppClassLoader.loadClass<Unknown Source>
    at java.lang.ClassLoader.loadClass<Unknown Source>
    at java.lang.ClassLoader.loadClassInternal<Unknown Source>
    This is what I did.
    I created a folder on my C: drive named MySQL.
    I downloaded these two zip files form the MySQL website
         * mysql-connector-java-3.0.11-stable
         * mysql-4.0.18-win.zip
    Installed both of these in folder MySQL.
    I modified this line in the program ("ExecuteSQL" 1st pgm in chapter 17) I got from "Java Examples In a Nutshell" and compiled it into directory jwork.
    String driver = "com.mysql.jdbc.driver", url = "jdbc:mysql://", user = "", password = "";
    The readme file talks about putting a jar file in $JAVA_HOME/jre/lib/ext.
    the word "Java_Home" (I now know) is not literally the name but represents the
    name of the folder where the JDK to be used exists. So I put a copy of
    mysql-connector-java-3.0.11-stable-bin.jar in folder C:\JDK14/jre/lib/ext.
    Then I get a ClassNotFoundException error com.mysql.jdbc.driver.
    After finding
    http://forum.java.sun.com/thread.jsp?forum=31&thread=439796
    and
    http://forum.java.sun.com/thread.jsp?forum=31&thread=499888
    and others, I copied (a second copy) the jar file to the directory where I am create my java objects.
    Then I unzipped it to that directory, creating three folders that hold the unzipped objects.
    I tried executing the program again. I get the messages at the top of this post.
    The Manifest file is in one of the three folders unzipped to my java work directory.
    In the second of the two above threads, jsalonen says:
    the problem can be solved by mentioning mysql.jar in the Class-Path attribute
    in the manifest of the jar file:
    In this "manifest" file, there are only three lines and I added a fourth and it looks like this
    (there are two, one in directory MySQL\META-INF and one in directory jwork\META-INF:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.1
    Created-By: 1.4.0_01-b03 (Sun Microsystems Inc.)
    Main-Class:jwork\ExecuteSQL
    How do I "mention" mysql.jar in the class path attribute?
    In the index.list file (in the directory with the manifest file, do I need to add anything to refer that "com.mysql.jdbc.driver" is the driver?
    Do I need index.list in MySQL\META-INF ?
    Thank you for your help. The program ExecuteSQL follows.
    * Copyright (c) 2000 David Flanagan. All rights reserved.
    * This code is from the book Java Examples in a Nutshell, 2nd Edition.
    * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied.
    * You may study, use, and modify it for any non-commercial purpose.
    * You may distribute it non-commercially as long as you retain this notice.
    * For a commercial use license, or to purchase the book (recommended),
    * visit http://www.davidflanagan.com/javaexamples2.
    /** package com.davidflanagan.examples.sql; */
    import java.sql.*;
    import java.io.*;
    * A general-purpose SQL interpreter program.
    public class ExecuteSQL {
    public static void main(String[] args) {
    Connection conn = null; // Our JDBC connection to the database server
    try {
    String driver = "com.mysql.jdbc.driver", url = "jdbc:mysql://",
    user = "", password = "";
    // Parse all the command-line arguments
    for(int n = 0; n < args.length; n++) {
    if (args[n].equals("-d")) driver = args[++n];
    else if (args[n].equals("-u")) user = args[++n];
    else if (args[n].equals("-p")) password = args[++n];
    else if (url == null) url = args[n];
    else throw new IllegalArgumentException("Unknown argument.");
    // The only required argument is the database URL.
    if (url == null)
    throw new IllegalArgumentException("No database specified");
    // If the user specified the classname for the DB driver, load
    // that class dynamically. This gives the driver the opportunity
    // to register itself with the DriverManager.
    if (driver != null) Class.forName(driver);
    // Now open a connection the specified database, using the
    // user-specified username and password, if any. The driver
    // manager will try all of the DB drivers it knows about to try to
    // parse the URL and connect to the DB server.
    conn = DriverManager.getConnection(url, user, password);
    // Now create the statement object we'll use to talk to the DB
    Statement s = conn.createStatement();
    // Get a stream to read from the console
    BufferedReader in =
              new BufferedReader(new InputStreamReader(System.in));
    // Loop forever, reading the user's queries and executing them
    while(true) {
    System.out.print("sql> "); // prompt the user
    System.out.flush(); // make the prompt appear now.
    String sql = in.readLine(); // get a line of input from user
    // Quit when the user types "quit".
    if ((sql == null) || sql.equals("quit")) break;
    // Ignore blank lines
    if (sql.length() == 0) continue;
    // Now, execute the user's line of SQL and display results.
    try {
    // We don't know if this is a query or some kind of
    // update, so we use execute() instead of executeQuery()
    // or executeUpdate() If the return value is true, it was
    // a query, else an update.
    boolean status = s.execute(sql);
              // Some complex SQL queries can return more than one set
              // of results, so loop until there are no more results
    do {
    if (status) { // it was a query and returns a ResultSet
    ResultSet rs = s.getResultSet(); // Get results
    printResultsTable(rs, System.out); // Display them
    else {
    // If the SQL command that was executed was some
    // kind of update rather than a query, then it
    // doesn't return a ResultSet. Instead, we just
    // print the number of rows that were affected.
    int numUpdates = s.getUpdateCount();
    System.out.println("Ok. " + numUpdates +
                             " rows affected.");
    // Now go see if there are even more results, and
    // continue the results display loop if there are.
    status = s.getMoreResults();
    } while(status || s.getUpdateCount() != -1);
    // If a SQLException is thrown, display an error message.
    // Note that SQLExceptions can have a general message and a
    // DB-specific message returned by getSQLState()
    catch (SQLException e) {
    System.err.println("SQLException: " + e.getMessage()+ ":" +
                        e.getSQLState());
    // Each time through this loop, check to see if there were any
    // warnings. Note that there can be a whole chain of warnings.
    finally { // print out any warnings that occurred
              SQLWarning w;
    for(w=conn.getWarnings(); w != null; w=w.getNextWarning())
    System.err.println("WARNING: " + w.getMessage() +
                             ":" + w.getSQLState());
    // Handle exceptions that occur during argument parsing, database
    // connection setup, etc. For SQLExceptions, print the details.
    catch (Exception e) {
    System.err.println(e);
    if (e instanceof SQLException)
    System.err.println("SQL State: " +
                        ((SQLException)e).getSQLState());
    System.err.println("Usage: java ExecuteSQL [-d <driver>] " +
                   "[-u <user>] [-p <password>] <database URL>");
    // Be sure to always close the database connection when we exit,
    // whether we exit because the user types 'quit' or because of an
    // exception thrown while setting things up. Closing this connection
    // also implicitly closes any open statements and result sets
    // associated with it.
    finally {
    try { conn.close(); } catch (Exception e) {}
    * This method attempts to output the contents of a ResultSet in a
    * textual table. It relies on the ResultSetMetaData class, but a fair
    * bit of the code is simple string manipulation.
    static void printResultsTable(ResultSet rs, OutputStream output)
         throws SQLException
    // Set up the output stream
    PrintWriter out = new PrintWriter(output);
    // Get some "meta data" (column names, etc.) about the results
    ResultSetMetaData metadata = rs.getMetaData();
    // Variables to hold important data about the table to be displayed
    int numcols = metadata.getColumnCount(); // how many columns
    String[] labels = new String[numcols]; // the column labels
    int[] colwidths = new int[numcols]; // the width of each
    int[] colpos = new int[numcols]; // start position of each
    int linewidth; // total width of table
    // Figure out how wide the columns are, where each one begins,
    // how wide each row of the table will be, etc.
    linewidth = 1; // for the initial '|'.
    for(int i = 0; i < numcols; i++) {             // for each column
    colpos[i] = linewidth; // save its position
    labels[i] = metadata.getColumnLabel(i+1); // get its label
    // Get the column width. If the db doesn't report one, guess
    // 30 characters. Then check the length of the label, and use
    // it if it is larger than the column width
    int size = metadata.getColumnDisplaySize(i+1);
    if (size == -1) size = 30; // Some drivers return -1...
         if (size > 500) size = 30; // Don't allow unreasonable sizes
    int labelsize = labels.length();
    if (labelsize > size) size = labelsize;
    colwidths[i] = size + 1; // save the column the size
    linewidth += colwidths[i] + 2; // increment total size
    // Create a horizontal divider line we use in the table.
    // Also create a blank line that is the initial value of each
    // line of the table
    StringBuffer divider = new StringBuffer(linewidth);
    StringBuffer blankline = new StringBuffer(linewidth);
    for(int i = 0; i < linewidth; i++) {
    divider.insert(i, '-');
    blankline.insert(i, " ");
    // Put special marks in the divider line at the column positions
    for(int i=0; i<numcols; i++) divider.setCharAt(colpos[i]-1,'+');
    divider.setCharAt(linewidth-1, '+');
    // Begin the table output with a divider line
    out.println(divider);
    // The next line of the table contains the column labels.
    // Begin with a blank line, and put the column names and column
    // divider characters "|" into it. overwrite() is defined below.
    StringBuffer line = new StringBuffer(blankline.toString());
    line.setCharAt(0, '|');
    for(int i = 0; i < numcols; i++) {
    int pos = colpos[i] + 1 + (colwidths[i]-labels[i].length())/2;
    overwrite(line, pos, labels[i]);
    overwrite(line, colpos[i] + colwidths[i], " |");
    // Then output the line of column labels and another divider
    out.println(line);
    out.println(divider);
    // Now, output the table data. Loop through the ResultSet, using
    // the next() method to get the rows one at a time. Obtain the
    // value of each column with getObject(), and output it, much as
    // we did for the column labels above.
    while(rs.next()) {
    line = new StringBuffer(blankline.toString());
    line.setCharAt(0, '|');
    for(int i = 0; i < numcols; i++) {
    Object value = rs.getObject(i+1);
              if (value != null)
              overwrite(line, colpos[i] + 1, value.toString().trim());
    overwrite(line, colpos[i] + colwidths[i], " |");
    out.println(line);
    // Finally, end the table with one last divider line.
    out.println(divider);
    out.flush();
    /** This utility method is used when printing the table of results */
    static void overwrite(StringBuffer b, int pos, String s) {
    int slen = s.length(); // string length
    int blen = b.length(); // buffer length
    if (pos+slen > blen) slen = blen-pos; // does it fit?
    for(int i = 0; i < slen; i++) // copy string into buffer
    b.setCharAt(pos+i, s.charAt(i));

    Don't put those JARs in the lib/ext directory. Only language extensions (e.g., packages that start with "javax") belong in there.
    Learn how to set the CLASSPATH properly for starters:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    You might want to look at the JDBC tutorial, too:
    http://java.sun.com/docs/books/tutorial/jdbc/
    Do one thing at a time. Get the program to work, then worry about packaging it into an executable JAR.

  • System.out not working on eclipse

    Greetings...
    I am no longer a newbie on Java, but I have been facing an issue lately that I have been unable to resolve myself, even though it seems to be something so silly.
    I have been using eclipse for development, and by developing a simple "Just to practice" code I have found myself unable to use System class or any of its methods at a certain point. See the code below:
    package one;
    import java.util.Scanner;
    public ClassOne {
    public static void main (String args[]){
    Scanner reader = new Scanner(System.in); /*Works just fine here*/
    int x = 0;
    System.out.println("Type in the number of objects expected"); /*Does not work at all, like if System was something I could not use at all. Not an identifier */
    Scanner readertwo = new Scanner(System.in); /*System does not work here either*/
    }Even if I rewrite the code after that, by erasing the import statement and all other System references in the code, System does not work again.
    If anybody has ever faced the same issue and knows what I am doing wrong and what I can do to fix it, I'd really be grateful.
    Thanks to all, and happy 2009.
    Santana T

    Santana_Thiago wrote:
    It works on NetBeans.
    On eclipse I get the following error:
    ERROR: JDWP Unable to get JNI 1.2 Environment, jvm->GetEnv() return code = -2+
    *JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]*+
    The funniest thing is that if copy and paste the code from somewhere else into eclipse it works. What a drag!!!!
    Thank you.
    Santana TNever seen that error but it sounds to me that your Eclipse installation is screwed up!

  • Problem while executing simple java program

    Hi
    while trying to execute a simple java program,i am getting the following exception...
    please help me in this
    java program :import java.util.*;
    import java.util.logging.*;
    public class Jump implements Runnable{
        Hashtable activeQueues = new Hashtable();
        String dbURL, dbuser, dbpasswd, loggerDir;   
        int idleSleep;
        static Logger logger = Logger.getAnonymousLogger();      
        Thread myThread = null;
        JumpQueueManager manager = null;
        private final static String VERSION = "2.92";
          public Jump(String jdbcURL, String user, String pwd, int idleSleep, String logDir) {
            dbURL = jdbcURL;
            dbuser = user;
            dbpasswd = pwd;
            this.idleSleep = idleSleep;
            manager = new JumpQueueManager(dbURL, dbuser, dbpasswd);
            loggerDir = logDir;
            //preparing logger
            prepareLogger();
          private void prepareLogger(){      
            Handler hndl = new pl.com.sony.utils.SimpleLoggerHandler();
            try{
                String logFilePattern = loggerDir + java.io.File.separator + "jumplog%g.log";
                Handler filehndl = new java.util.logging.FileHandler(logFilePattern, JumpConstants.MAX_LOG_SIZE, JumpConstants.MAX_LOG_FILE_NUM);
                filehndl.setEncoding("UTF-8");
                filehndl.setLevel(Level.INFO);
                logger.addHandler(filehndl);
            catch(Exception e){
            logger.setLevel(Level.ALL);
            logger.setUseParentHandlers(false);
            logger.addHandler(hndl);
            logger.setLevel(Level.FINE);
            logger.info("LOGGING FACILITY IS READY !");
          private void processTask(QueueTask task){
            JumpProcessor proc = JumpProcessorGenerator.getProcessor(task);       
            if(proc==null){
                logger.severe("Unknown task type: " + task.getType());           
                return;
            proc.setJumpThread(myThread);
            proc.setLogger(logger);       
            proc.setJumpRef(this);
            task.setProcStart(new java.util.Date());
            setExecution(task, true);       
            new Thread(proc).start();       
         private void processQueue(){       
            //Endles loop for processing tasks from queue       
            QueueTask task = null;
            while(true){
                    try{
                        //null argument means: take first free, no matters which queue
                        do{
                            task = manager.getTask(activeQueues);
                            if(task!=null)
                                processTask(task);               
                        while(task!=null);
                    catch(Exception e){
                        logger.severe(e.getMessage());
                logger.fine("-------->Sleeping for " + idleSleep + " minutes...hzzzzzz (Active queues:"+ activeQueues.size()+")");
                try{
                    if(!myThread.interrupted())
                        myThread.sleep(60*1000*idleSleep);
                catch(InterruptedException e){
                    logger.fine("-------->Wakeing up !!!");
            }//while       
        public void setMyThread(Thread t){
            myThread = t;
        /** This method is only used to start Jump as a separate thread this is
         *usefull to allow jump to access its own thread to sleep wait and synchronize
         *If you just start ProcessQueue from main method it is not possible to
         *use methods like Thread.sleep becouse object is not owner of current thread.
        public void run() {
            processQueue();
        /** This is just another facade to hide database access from another classes*/
        public void updateOraTaskStatus(QueueTask task, boolean success){
            try{         
                manager.updateOraTaskStatus(task, success);
            catch(Exception e){
                logger.severe("Cannot update status of task table for task:" + task.getID() +  "\nReason: " + e.getMessage());       
        /** This is facade to JumpQueueManager method with same name to hide
         *existance of database and SQLExceptions from processor classes
         *Processor class calls this method to execute stored proc and it doesn't
         *take care about any SQL related issues including exceptions
        public void executeStoredProc(String proc) throws Exception{
            try{
                manager.executeStoredProc(proc);
            catch(Exception e){
                //logger.severe("Cannot execute stored procedure:"+ proc + "\nReason: " + e.getMessage());       
                throw e;
         *This method is only to hide QueueManager object from access from JumpProcessors
         *It handles exceptions and datbase connecting/disconnecting and is called from
         *JumpProceesor thread.
        public  void updateTaskStatus(int taskID, int status){       
            try{
                manager.updateTaskStatus(taskID, status);
            catch(Exception e){
                logger.severe("Cannot update status of task: " + taskID + " to " + status + "\nReason: " + e.getMessage());
        public java.sql.Connection getDBConnection(){
            try{
                return manager.getNewConnection();
            catch(Exception e){
                logger.severe("Cannot acquire new database connection: " + e.getMessage());
                return null;
        protected synchronized void setExecution(QueueTask task, boolean active){
            if(active){
                activeQueues.put(new Integer(task.getQueueNum()), JumpConstants.TH_STAT_BUSY);
            else{
                activeQueues.remove(new Integer(task.getQueueNum()));
        public static void main(String[] args){
                 try{
             System.out.println("The length-->"+args.length);
            System.out.println("It's " + new java.util.Date() + " now, have a good time.");
            if(args.length<5){
                System.out.println("More parameters needed:");
                System.out.println("1 - JDBC strign, 2 - DB User, 3 - DB Password, 4 - sleeping time (minutes), 5 - log file dir");
                return;
            Jump jump = new Jump(args[0], args[1], args[2], Integer.parseInt(args[3]), args[4]);
            Thread t1= new Thread(jump);
            jump.setMyThread(t1);      
            t1.start();}
                 catch(Exception e){
                      e.printStackTrace();
    } The exception i am getting is
    java.lang.NoClassDefFoundError: jdbc:oracle:thin:@localhost:1521:xe
    Exception in thread "main" ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
    JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):  [../../../src/share/back/util.c:820] Please help me.....
    Thanks in advance.....sathya

    I am not willing to wade through the code, but this portion makes me conjecture your using an Oracle connect string instead of a class name.
    java.lang.NoClassDefFoundError: jdbc:oracle:thin:@localhost:1521:xe

  • VM experts, please resolve dispute re

    Over in "Advanced Topics",
    http://forum.java.sun.com/thread.jsp?forum=4&thread=167222
    dnoyeB and I are having a spirited discussion about the mechanics of thread working copies vs. main mem's master copy. It's a very long discussion that spawned off from somebody else's simple question "When do you use volatile vs. synchronized." Our disagreement doesn't start until about message 30 or 40, but here are the main points of contention:
    * dnoyeB says that a thread's working copy of a variable is by necessity on the stack, and that therefore, every time a method exits, that thread's working copies (or at least those used by the method) are flushed back to the master copy.
    * I claim that this is not the case, and that one legal model is for a thread's working copy to be in a CPU's cache. I think that dnoyeB's model is unwieldy at best, and not doable at worst.
    * I claim that a thread can directly access variables on the heap.
    * dnoyeB claims that a thread cannot access the heap directly and must alway access variables via the stack.
    Chapter 3 of the VM spec and Chapter 17 of the JLS are involved heavily in this discussion.
    Please set us straight. :-)
    Thanks,
    Jeff

    I am beginning to think we were both right and wrong.I disagree. See below for why.
    1. the only thread local copies of variables are in
    the operand stack, not in a frame. This is still the
    stack so method ending does flush the stack var.I am using the terminology from the JVM spec and Venners' book. When I said operand stack and thread stack I meant essentially the same thing.
    void func()
    obj.x +=2;
    obj.x +=2;
    }according to the spec
    if x is not volatile, after the first add, x is still
    on the operand stack, and can be used directly from
    the operand stack. If x were volatile, it would have
    to be written back to main mem after the first write,
    and reloaded for the second.You are completely wrong. You are equating memory used for holding the stack frames (which holds: local vars, operand stack, and frame data) with thread-local memory view. obj.x can live in this thread's local memory (which holds: class and instance fields, array elements that are used by methods in this thread; they live there in-between method calls, if you want).
    What you seem to be saying is that if you have a method implemented as
    int getX ()
        return obj.x;
    }then [in your opinion] this method will automatically return the most-up-to-date, out-of-main memory value of obj.x even if x is not volatile?
    If x were volatile, it would have
    to be written back to main mem after the first write,
    and reloaded for the second.In other words, you are saying that in the scenario
    thread 1                                     thread 2
    getX();                                      ...
    ...                                             obj.x = new_value
    getX();                                      ...         the second getX() by thread 1 is guaranteed to see the new_value for obj.x even if it is not volatile, just because the operand value had to be popped off the operand stack in between the calls to getX()?
    This is clearly incorrect. As has been stated several times already, you are incorrectly assuming that method boundaries act as memory barriers in the JMM sense. They do not.
    You trying to imply that the acts of pushing and popping values to/from the operand stack are the actual events of reconciling thread-local memory with main memory. This is incorrect. If Java bytecode was designed around the usual register-only abstract architecture then where would you be? There would be no stack frames but there would still be a need for a memory reconciliation model across threads/CPUs.
    Why can't you acknowledge than a thread-local memory can actually map onto the CPU's local memory and Java is the first common programming language that attempted to define a memory coherency model for a concurrent runtime? All other langugages silently assume that you inherit the memory model from the underlying hardware.
    Vlad.

  • Need help restoring original track data in Match

    Truly hope someone can offer advice! I know there are several threads about changes made to track data while Match is syncing don't stick, but I have a slightly different problem:
    I upgraded TuneUp and without knowing it, TuneUp startet "fixing" my entire library by deleting many composers and ruining other carefully edited information
    By the time I realized what was happening and shut it down, some 2.000 tracks has been wreaked havoc upon
    I restored the library from Time Machine, but apparently Match had had time to sync so that the wrong edits were flushed back to my library
    I have now tried several ways of fixing this:
    Restoring the library and using one of Doug's scripts to add a space at the end of all track names to make "my version" the latest, but this process takes so long that it times out and by then Match has again ruined my track info
    Turn off Match, restore the library, make changes to some track info for all tracks, and turn Match on again. Under this approach, Match seems to treat the cloud copy as the "original" even if I made changes to my local copy later
    Restoring the library, allow Match to start syncing so that my local library is viewed as part of the Match set, then disconnect the internet connection and make track changes, turn on again and sync Match again. Still, the Match changes are flushed back to my local library
    Unless there are other suggestions, I see no way out by let Match stay turned off... Anyone with better insight than me into how Match treats changes and which take priority that could help?
    Bjorn

    Hi,
    I'm not sure this will work. I use an app, no bearing on this issue, called Ivolume which adjust  the volume of the tracks. To get match to recognise volume change and that the file has been update, Ivolume adds information into comments box. My understanding is that this change allows latest file to replace the one in the cloud.
    My thoughts are that you have matched turned off, restore library pre problems then add a comment for those tracks affected. Once done turn back on match. A long shot but worth considering.
    Jim

  • OnetoOne Mapping Problem in EJB 3.0 CMP's

    Hi,
    Im new EJB3.0, and trying to implement onetoone mapping between two tables.
    The beans are deployed successfully, but when I find an object using the EntityManager, it is throwing
    java.sql.SQLException: ORA-00904: "COLUMN_NAME": invalid identifier.
    When I am using the following tables and Classes,
    The searching statement is as follows:
    SELECT COMPANYID, COMPANYNAME, COMPANYADDR, ENAME, EMPNO FROM COMPANY WHERE ((COMPANYID = 'MUM') AND (COMPANYNAME = 'MUMBAI'))
    But I want to retieve the Company Details, and Employee details individually,
    Please help me to sort this out.
    The script for tables is:
    create table emp (empno VARCHAR2(4),ENAME VARCHAR2(10),SAL NUMBER(10,2),companyid varchar2(10) ,companyname varchar2(20),primary key(empno,ename,companyid,companyname));
    create table company(companyid varchar2(10),companyname varchar2(20),companyaddr varchar2(20) not null,primary key(companyid,companyname));
    ALTER TABLE EMP ADD CONSTRAINT PROJ_EMP_EMPLOYEE FOREIGN KEY (companyid,companyname) REFERENCES company(companyid,companyname);
    desc company;
    desc emp;
    insert into company values('MUM','MUMBAI','MUMBAI BASTI');
    insert into company values('CHE','CHENNAI','CHENNAI NAGAR');
    insert into company values('HYD','HYDERABAD','HYDERABAD HITECH');
    insert into emp values('12','GANGADHAR','2500','MUM','MUMBAI');
    insert into emp values('16','SESHU','6500','CHE','CHENNAI');
    insert into emp values('18','RUSTUM','8500','HYD','HYDERABAD');
    COMMIT;
    And the two Entitys and its primary keys are :
    Company.java ( Entity Class , CMP)
    package com.foursoft.hr;
    import java.util.*;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.OneToOne;
    import javax.persistence.Id;
    import javax.persistence.IdClass;
    import javax.persistence.Column;
    import javax.persistence.Table;
    import static javax.persistence.CascadeType.*;
    import static javax.persistence.FetchType.*;
    import static javax.persistence.EntityType.*;
    @IdClass("com.foursoft.hr.CompanyPK")
    @Entity()
    @Table(name="COMPANY")
    public class Company implements Serializable
         public String companyid;
         public String companyname;
         public String companyaddr;
         private Employee employee;
         public Company(){}
         @Id
         @Column(name="COMPANYID",primaryKey=true)
         public String getCompanyid(){ return companyid; }
         public void setCompanyid(String compid){ companyid = compid; }
         @Id
         @Column(name="COMPANYNAME",primaryKey=true)
         public String getCompanyname(){ return companyname; }
         public void setCompanyname(String compname){ companyname = compname; }
         public String getCompanyaddr(){ return companyaddr; }
         public void setCompanyaddr(String compaddr){ companyaddr = compaddr; }
         @OneToOne(targetEntity="com.foursoft.hr.Employee", cascade=ALL )
         public Employee getEmployee()
    return employee;
         public void setEmployee(Employee employee)
              this.employee = employee;
    public String toString()
    StringBuffer buf = new StringBuffer();
    buf.append("Class:")
    .append(this.getClass().getName())
    .append(" :: ")
    .append(" COMPANYID:")
    .append(getCompanyid())
    .append(" COMPANYNAME:")
    .append(getCompanyname());
    return buf.toString();
    CompanyPK.java (Primary Key Class for Company Table)
    package com.foursoft.hr;
    public class CompanyPK implements java.io.Serializable
         public java.lang.String companyid;
         public java.lang.String companyname;
         public boolean equals(Object obj){
              CompanyPK pkObj = (CompanyPK)obj;
              return (companyid.equals(pkObj.companyid) && companyname.equals(pkObj.companyname));          
         public int hashCode(){
              try {
                   long     crcKey = -1;
                   java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream();
                   java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(bos);
                   oos.writeObject(this);
                   oos.flush();
                   java.util.zip.Adler32 adl32 = new java.util.zip.Adler32();
                   adl32.update(bos.toByteArray());
                   crcKey = adl32.getValue();
                   return (int)(crcKey ^ (crcKey >> 32));
              } catch (java.io.IOException ioEx) {
                   return -1;
    Employee.java (Entity Class, CMP)
    package com.foursoft.hr;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.Column;
    import javax.persistence.IdClass;
    import javax.persistence.OneToOne;
    import javax.persistence.Table;
    import static javax.persistence.CascadeType.*;
    import static javax.persistence.FetchType.*;
    @IdClass("com.foursoft.hr.EmployeePK")
    @Entity
    @Table(name = "EMP")
    public class Employee implements java.io.Serializable
    private String empNo;
    private String eName;
    private double sal;
    private Company company;
    private String companyid;
    private String companyname;
    @Id
    @Column(name="EMPNO",primaryKey=true)
    public String getEmpNo() {      return empNo;   }
    public void setEmpNo(String empNo) {      this.empNo = empNo;   }
    @Id
    @Column(name="ENAME" , primaryKey=true)
    public String getEName() {      return eName;   }
    public void setEName(String eName) {      this.eName = eName;   }
    public double getSal() {      return sal;   }
    public void setSal(double sal) {      this.sal = sal;   }
    @OneToOne(fetch=LAZY,optional=false)
    public Company getCompany() {        return company;   }
    public void setCompany(Company company) {        this.company=company;    }
    public String toString()
    StringBuffer buf = new StringBuffer();
    buf.append("Class:")
    .append(this.getClass().getName())
    .append(" :: ")
    .append(" empNo:")
    .append(getEmpNo())
    .append(" ename:")
    .append(getEName())
    .append(" sal:")
    .append(getSal());
    return buf.toString();
    EmployeePK.java (Primary Key Class for Employee Table)
    package com.foursoft.hr;
    public class EmployeePK implements java.io.Serializable
         public java.lang.String empNo;
         public java.lang.String eName;
         public boolean equals(Object obj){
              EmployeePK pkObj = (EmployeePK)obj;
              return (empNo.equals(pkObj.empNo)&& eName.equals(pkObj.eName));
         public int hashCode(){
              try {
                   long     crcKey = -1;
                   java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream();
                   java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(bos);
                   oos.writeObject(this);
                   oos.flush();
                   java.util.zip.Adler32 adl32 = new java.util.zip.Adler32();
                   adl32.update(bos.toByteArray());
                   crcKey = adl32.getValue();
                   return (int)(crcKey ^ (crcKey >> 32));
              } catch (java.io.IOException ioEx) {
                   return -1;
    Thanks very much!
    Gangadhar.

    The beans are deployed successfully, but when I find an object using the EntityManager, it is throwing
    java.sql.SQLException: ORA-00904: "COLUMN_NAME": invalid identifier.
    Is the EntityManager find method
    find(java.lang.String entityName,
    java.lang.Object primaryKey)?
    @Id annotation is used for a single field primary key.
    For a composite primary key use the @EmbeddedId annotation
    and specify a primary key class with the @Embeddable annotation.
    example:
    @EmbeddedId
    PKClass pkClass
    @Embeddable
    public PKClass {}
    In the find method specify the @EmbeddedId instead of the @id.
    find(entity, pkClass)

  • Unsupported Content-Type: text/html;charset=utf-8 Supported ones are: [text

    Hi I am in trouble with JAX-WS 2.1.2M1
    I try to call my Webservice like this:
    Service service = Service.create(serviceName);
            service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, "http://spblue.liberty:8084/SPBlue/GlobalLogoutService");
    Dispatch<SOAPMessage> disp = service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE);
            SOAPMessage message = XmlUtil.getSOAPMessageFromString(request);
            SOAPMessage response = disp.invoke(message);when my disp invokes I get following Exception which seems to as a little Problem, anyway I don�t know how to get rid of this Exception.
    com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html;charset=utf-8 Supported ones are: [text/xml]
    at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:116)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:280)
    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:158)
    at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:74)
    at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
    at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
    at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
    at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
    at com.sun.xml.ws.client.Stub.process(Stub.java:234)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:166)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:192)
    at test.service.Logout.requestLogout(Logout.java:115)
    at test.service.Logout.main(Logout.java:149)
    ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
    JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
    my ServiceClass is:
    @ServiceMode(value=Service.Mode.MESSAGE)
    @WebServiceProvider( targetNamespace="http://spblue.liberty:8084/wsdl/globalLogout")
    public class GlobalLogoutServiceImpl implements Provider<SOAPMessage> {
         * Web service operation
        public SOAPMessage invoke( SOAPMessage logoutRequest ){
            return logoutRequest;
    }So how can I set the Charachter set before invokikng the service.
    Or how can I change the Service to accept UTF-8.
    Well, I don�t know.
    Any help is welcome.

    Hi,
    I don't know if this can help you, but I had a similar problem while invoking a web service. Eventually, I found out that the server was returning an html error page, and not the expected xml answer.
    That's why the client code raises such an error... It means that the MIME type of the anser is text/html (for the html page) and not the text/xml type of the 'nominal' web service answer.
    You can verify this by using a proxy to intercept the http request and answer involved in this web service invocation (use Fiddler for instance). Then, you will see that the server responds by sending an html page saying that something is wrong.
    Hope this helps...
    Sam

  • Xpybutil - A python library that makes X programming easier

    This library is built on top of xpyb which uses XCB. It basically makes quite a few nasty things a bit less nasty. One big example is easy access to ICCCM and EWMH properties on the root and client windows.
    As a trivial example, say you want to get the current desktop name:
    from xpybutil import conn, root
    import xpybutil.ewmh as ewmh
    names = ewmh.get_desktop_names(conn, root).reply()
    desk = ewmh.get_current_desktop(conn, root).reply()
    print names[desk] if desk < len(names) else desk
    I've had this library sitting around for a while, and to the best of my knowledge, everything in the EWMH spec is available in the ewmh module.
    I think most of the stuff in ewmh/icccm is going to be pretty accessible to anyone with some experience in Python. They are also the most complete parts of xpybutil. The rest of xpybutil focuses on making other things easier, but still may require some X knowledge. (For example, keysym.py makes grabbing keys much much easier.)
    As a more useful example, here's a short script that will run in the background and make all unfocused windows slightly transparent while making the active window completely opaque (if you have a compositing manager running):
    # Makes all inactive windows transparent and keeps the active window opaque.
    # Range of values: 0 <= opacity <= 1
    # where 1 is fully opaque and 0 is completely invisible
    opacity = 0.8
    import xcb
    from xpybutil import conn, root
    import xpybutil.event as event
    import xpybutil.ewmh as ewmh
    import xpybutil.util as util
    conn.core.ChangeWindowAttributes(root, xcb.xproto.CW.EventMask,
    [xcb.xproto.EventMask.PropertyChange])
    conn.flush()
    get_atom = util.get_atom
    get_parent = util.get_parent_window
    get_active = ewmh.get_active_window
    set_opacity = ewmh.set_wm_window_opacity
    def update_window_opacity():
    activewin = get_active(conn, root).reply()
    if not activewin:
    return
    for client in clients:
    set_opacity(conn, get_parent(conn, client),
    1 if client == activewin else opacity)
    conn.flush()
    def client_is_normal(client):
    wtype = ewmh.get_wm_window_type(conn, client).reply()
    if not wtype or wtype[0] == get_atom(conn, '_NET_WM_WINDOW_TYPE_NORMAL'):
    return True
    return False
    clients = filter(client_is_normal, ewmh.get_client_list(conn, root).reply())
    update_window_opacity()
    while True:
    event.read(conn, block=True)
    for e in event.queue():
    if not isinstance(e, xcb.xproto.PropertyNotifyEvent):
    continue
    aname = util.get_atom_name(conn, e.atom)
    if aname == '_NET_ACTIVE_WINDOW':
    update_window_opacity()
    elif aname == '_NET_CLIENT_LIST':
    clients = filter(client_is_normal,
    ewmh.get_client_list(conn, root).reply())
    I've tested this on Openbox/xcompmgr, but it should work on any window manager that decorates their windows and complies with EWMH. It would work on an EWMH compliant tiling manager with some slight modification. (i.e., removing calls to get_parent and setting the opacity directly on the client.)
    The API can be found here. And both examples are in the git respository.
    TODO: More examples/explanations :-) I'll do my best to answer any questions here too.
    xpybutil-git in the AUR.
    Last edited by BurntSushi (2011-08-11 20:38:17)

    Aha! seems so simple but yes, the transform panel seems to be just what I needed, I don't much understand the symbols panel, but will look into it, i presume I can save a selection as a symbol and then find it there? Thanks for the help Kurt

  • Get error when change connection.

    Hi experts,
    I create the webpage using Jdeveloper 11g and it running ok. After that I only change the connection database from other server, and I get error:
    "ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2"
    This is the original code before I change connection:
    package hr;
    import java.sql.Connection;
    import java.sql.SQLException;
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Statement;
    import java.sql.ResultSet;
    public class DataHandler {
    public DataHandler() {
    String jdbcUrl = "jdbc:oracle:thin:@localhost:1521:ORCL";
    String userid = "srdemo";
    String password = "oracle";
    Connection conn;
    Statement stmt;
    ResultSet rset;
    String query;
    String sqlString;
    public void getDBConnection() throws SQLException{
    OracleDataSource ds;
    ds = new OracleDataSource();
    ds.setURL(jdbcUrl);
    conn=ds.getConnection(userid,password);
    public ResultSet getAllEmployees() throws SQLException{
    getDBConnection();
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    query = "SELECT * FROM products";
    System.out.println("\nExecuting query: " + query);
    rset = stmt.executeQuery(query);
    return rset;
    public ResultSet getEmployeesByName(String name) throws SQLException {
    name = name.toUpperCase();
    getDBConnection();
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    query =
    "SELECT * FROM products WHERE UPPER(name) LIKE '%" + name + "%' order by prod_id";
    System.out.println("\nExecuting query: " + query);
    rset = stmt.executeQuery(query);
    return rset;
    public static void main(String[] args) throws Exception{
    DataHandler datahandler = new DataHandler();
    ResultSet rset = datahandler.getAllEmployees();
    while (rset.next()) {
    System.out.println(rset.getInt(1) + " " +
    rset.getString(2) + " " +
    rset.getString(3) + " " +
    rset.getString(4));
    rset = datahandler.getEmployeesByName("Free");
    System.out.println("\nResults from query: ");
    while (rset.next()) {
    System.out.println(rset.getInt(1) + " " +
    rset.getString(2) + " " +
    rset.getString(3) + " " +
    rset.getString(4));
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"
    import="java.sql.ResultSet"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>product</title>
    <link href="css/jdeveloper.css" rel="stylesheet" media="screen"/>
    </head>
    <body><p>
    AnyCo Corporation: HR Application
    </p><p>
    Products Data 
    </p><jsp:useBean id="empsbean" class="hr.DataHandler" scope="session"/><form action="product.jsp">
    Filter by Product name:
    <input type="text" name="query"/>
    <input type="submit" value="Filter"/>
    </form><%ResultSet rset;
    String query = request.getParameter("query");
    if (query != null && query != null)
    rset = empsbean.getEmployeesByName(query);
    else
    rset = empsbean.getAllEmployees();%><table cellspacing="3" cellpadding="2"
    border="1" width="100%">
    <tr>
    <td width="12%">ProductID</td>
    <td width="32%">Name</td>
    <td width="24%">Image</td>
    <td width="32%">Description</td>
    </tr>
    <%while (rset.next ())
    out.println("<tr>");
    out.println("<td>" +
    //rset.getString("prod_id") + "</td><td> " +
    //rset.getString("name") + "</td><td> " +
    //rset.getString("image") + "</td><td> " +
    //rset.getDouble("description") + "</td>");
    rset.getInt("prod_id") + "</td><td> " +
    rset.getString("name") + "</td><td> " +
    rset.getString("image") + "</td><td> " +
    rset.getString("description") + "</td>");
    out.println("</tr>");
    }%>
    </table></body>
    </html>
    This is code after i change the connection:
    package hr;
    import java.sql.Connection;
    import java.sql.SQLException;
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Statement;
    import java.sql.ResultSet;
    public class DataHandler {
    public DataHandler() {
    String jdbcUrl = "jdbc:oracle:thin:@hris-dev.cimb.com:1521:DEV20";
    String userid = "apps";
    String password = "apps";
    Connection conn;
    Statement stmt;
    ResultSet rset;
    String query;
    String sqlString;
    public void getDBConnection() throws SQLException{
    OracleDataSource ds;
    ds = new OracleDataSource();
    ds.setURL(jdbcUrl);
    conn=ds.getConnection(userid,password);
    public ResultSet getAllEmployees() throws SQLException{
    getDBConnection();
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    query = "SELECT * FROM XX_OAF_PRODUCTS";
    System.out.println("\nExecuting query: " + query);
    rset = stmt.executeQuery(query);
    return rset;
    public ResultSet getEmployeesByName(String name) throws SQLException {
    name = name.toUpperCase();
    getDBConnection();
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    query =
    "SELECT * FROM XX_OAF_PRODUCTS WHERE UPPER(name) LIKE '%" + name + "%' order by prod_id";
    System.out.println("\nExecuting query: " + query);
    rset = stmt.executeQuery(query);
    return rset;
    public static void main(String[] args) throws Exception{
    DataHandler datahandler = new DataHandler();
    ResultSet rset = datahandler.getAllEmployees();
    while (rset.next()) {
    System.out.println(rset.getInt(1) + " " +
    rset.getString(2) + " " +
    rset.getString(3) + " " +
    rset.getString(4));
    rset = datahandler.getEmployeesByName("Free");
    System.out.println("\nResults from query: ");
    while (rset.next()) {
    System.out.println(rset.getInt(1) + " " +
    rset.getString(2) + " " +
    rset.getString(3) + " " +
    rset.getString(4));
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"
    import="java.sql.ResultSet"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>product</title>
    <link href="css/jdeveloper.css" rel="stylesheet" media="screen"/>
    </head>
    <body><p>
    AnyCo Corporation: HR Application
    </p><p>
    Products Data 
    </p><jsp:useBean id="empsbean" class="hr.DataHandler" scope="session"/><form action="product.jsp">
    Filter by Product name:
    <input type="text" name="query"/>
    <input type="submit" value="Filter"/>
    </form><%ResultSet rset;
    String query = request.getParameter("query");
    if (query != null && query != null)
    rset = empsbean.getEmployeesByName(query);
    else
    rset = empsbean.getAllEmployees();%><table cellspacing="3" cellpadding="2"
    border="1" width="100%">
    <tr>
    <td width="12%">ProductID</td>
    <td width="32%">Name</td>
    <td width="24%">Image</td>
    <td width="32%">Description</td>
    </tr>
    <%while (rset.next ())
    out.println("<tr>");
    out.println("<td>" +
    //rset.getString("prod_id") + "</td><td> " +
    //rset.getString("name") + "</td><td> " +
    //rset.getString("image") + "</td><td> " +
    //rset.getDouble("description") + "</td>");
    rset.getInt("prod_id") + "</td><td> " +
    rset.getString("name") + "</td><td> " +
    rset.getString("image") + "</td><td> " +
    rset.getString("description") + "</td>");
    out.println("</tr>");
    }%>
    </table></body>
    </html>
    This is debug script after I change connection
    C:\Oracle\Middleware\jdk160_05\bin\javaw.exe -client -agentlib:jdwp=transport=dt_socket,server=y,address=2724 -classpath D:\temp\HRapp_EBS\view\classes;C:\Oracle\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar;C:\Oracle\Middleware\modules\javax.jsp_1.1.0.0_2-1.jar;C:\Oracle\Middleware\modules\glassfish.el_2.1.0.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\adf-share-support.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.idm_11.1.1\identitystore.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.javacache_11.1.1\cache.jar;C:\Oracle\Middleware\jdeveloper\lib\java\api\jaxb-api.jar;C:\Oracle\Middleware\jdeveloper\lib\java\api\jsr173_api.jar;C:\Oracle\Middleware\modules\javax.activation_1.1.0.0_1-1.jar;C:\Oracle\Middleware\jdeveloper\lib\java\shared\sun.jaxb\2.0\jaxb-xjc.jar;C:\Oracle\Middleware\jdeveloper\lib\java\shared\sun.jaxb\2.0\jaxb-impl.jar;C:\Oracle\Middleware\jdeveloper\lib\java\shared\sun.jaxb\2.0\jaxb1-impl.jar;C:\Oracle\Middleware\jdeveloper\adfc\lib\adf-controller.jar;C:\Oracle\Middleware\jdeveloper\adfc\lib\adf-controller-api.jar;C:\Oracle\Middleware\jdeveloper\adfc\lib\adf-controller-rt-common.jar;C:\Oracle\Middleware\jdeveloper\jdev\extensions\oracle.BC4J.jar;C:\Oracle\Middleware\jdeveloper\BC4J\jlib\adfmejb.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xmlparserv2.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\adfm.jar;C:\Oracle\Middleware\jdeveloper\BC4J\jlib\adfui.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\groovy-all-1.5.4.jar;C:\Oracle\Middleware\jdeveloper\jlib\ojmisc.jar;C:\Oracle\Middleware\jdeveloper\jlib\commons-el.jar;C:\Oracle\Middleware\jdeveloper\jlib\jsp-el-api.jar;C:\Oracle\Middleware\jdeveloper\jlib\oracle-el.jar;C:\Oracle\Middleware\jdeveloper\adfdt\lib\adf-dt-at-rt.jar;C:\Oracle\Middleware\jdeveloper\adfdt\lib\adf-transactions-dt.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\adfdt_common.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\db-ca.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\jdev-cm.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\adf-share-base.jar;C:\Oracle\Middleware\jdeveloper\dvt\lib\dvt-jclient.jar;C:\Oracle\Middleware\jdeveloper\dvt\lib\dvt-utils.jar;C:\Oracle\Middleware\jdeveloper\BC4J\jlib\adfmtl.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\adfmweb.jar;C:\Oracle\Middleware\modules\javax.jms_1.1.1.jar;C:\Oracle\Middleware\jdeveloper\rdbms\jlib\aqapi.jar;C:\Oracle\Middleware\modules\javax.transaction_1.0.0.0_1-1.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-antlr.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-apache-bcel.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-apache-bsf.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-apache-log4j.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-apache-oro.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-apache-regexp.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-apache-resolver.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-commons-logging.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-commons-net.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-icontract.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-jai.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-javamail.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-jdepend.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-jmf.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-jsch.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-junit.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-launcher.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-netrexx.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-nodeps.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-starteam.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-stylebook.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-swing.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-trax.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-vaj.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-weblogic.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-xalan1.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant-xslp.jar;C:\Oracle\Middleware\jdeveloper\ant\lib\ant.jar;C:\Oracle\Middleware\modules\javax.ejb_3.0.1.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model.generic_11.1.1\bc4jdomgnrc.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\bc4jhtml.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\datatags.jar;C:\Oracle\Middleware\jdeveloper\BC4J\jlib\graphtags.jar;C:\Oracle\Middleware\jdeveloper\j2ee\home\oc4jclient.jar;C:\Oracle\Middleware\modules\javax.resource_1.5.1.jar;C:\Oracle\Middleware\jdeveloper\BC4J\jlib\bc4jwizard.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.javatools_11.1.1\resourcebundle.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jps-api.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jps-common.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jps-internal.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jps-unsupported-api.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jacc-spi.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.pki_11.1.1\oraclepki.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\osdt_core.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\osdt_cert.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\osdt_xmlsec.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.iau_11.1.1\fmw_audit.jar;C:\Oracle\Middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\Oracle\Middleware\jdeveloper\BC4J\jlib\bc4jtester.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\bc4jsyscat.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\bc4jwizard.jar;C:\Oracle\Middleware\jdeveloper\jlib\ohj.jar;C:\Oracle\Middleware\jdeveloper\jlib\help-share.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.bali.share_11.1.1\share.jar;C:\Oracle\Middleware\jdeveloper\jlib\jewt4.jar;C:\Oracle\Middleware\jdeveloper\jlib\oracle_ice.jar;C:\Oracle\Middleware\jdeveloper\ide\lib\idert.jar;C:\Oracle\Middleware\jdeveloper\ide\lib\javatools.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\wlclient.jar;C:\Oracle\Middleware\jdeveloper\jlib\jdev-cm.jar;C:\Oracle\Middleware\jdeveloper\jdev\lib\dmsstub.jar;C:\Oracle\Middleware\modules\javax.jsf_1.2.0.0.jar;C:\Oracle\Middleware\modules\javax.enterprise.deploy_1.2.jar;C:\Oracle\Middleware\modules\javax.interceptor_1.0.jar;C:\Oracle\Middleware\modules\javax.jws_2.0.jar;C:\Oracle\Middleware\modules\javax.mail_1.1.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.soap_1.3.1.0.jar;C:\Oracle\Middleware\modules\javax.xml.rpc_1.2.1.jar;C:\Oracle\Middleware\modules\javax.xml.ws_2.1.1.jar;C:\Oracle\Middleware\modules\javax.management.j2ee_1.0.jar;C:\Oracle\Middleware\modules\javax.xml.stream_1.1.1.0.jar;C:\Oracle\Middleware\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_1-0.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\wsclient.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\wsserver.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\wssecurity.jar;C:\Oracle\Middleware\jdeveloper\webservices\lib\wsdl.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\orasaaj.jar;C:\Oracle\Middleware\modules\com.bea.core.weblogic.saaj_1.3.0.0.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\orawsdl.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\orawsrm.jar;C:\Oracle\Middleware\jdeveloper\webservices\lib\orawsrel.jar;C:\Oracle\Middleware\jdeveloper\webservices\lib\orajaxr.jar;C:\Oracle\Middleware\jdeveloper\webservices\lib\xsdlib.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\mdds.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\wsif.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\Oracle\Middleware\jdeveloper\modules\org.jaxen_2.2.1D.jar;C:\Oracle\Middleware\jdeveloper\webservices\lib\ojpse.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\jsr106.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\jsr105.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\osdt_wss.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\osdt_saml.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\osdt_saml2.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.ldap_0.0\ojmisc.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.http_client_11.1.1.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xdb_11.1.0.6.0.jar;C:\Oracle\Middleware\modules\javax.management.j2ee_1.2.1.jar;C:\Oracle\Middleware\modules\javax.xml.stream_1.0.0.0.jar;C:\Oracle\Middleware\modules\glassfish.jaxb_2.1.6.jar;C:\Oracle\Middleware\modules\glassfish.jaxb.xjc_2.1.6.jar;C:\Oracle\Middleware\jdeveloper\webservices\lib\oc4j-schemas.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.odl_11.1.1\ojdl.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.odl_11.1.1\ojdl2.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jmx_11.1.1\jmxframework.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jmx_11.1.1\jmxspi.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.dms_11.1.1\dms.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.nlsrtl_11.1.0.6.0\orai18n.jar;C:\Oracle\Middleware\jdeveloper\modules\org.apache.commons.digester_1.7.jar;C:\Oracle\Middleware\jdeveloper\modules\org.springframework_2.0.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.wsm.common_11.1.1\wsm-policy-core.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.wsm.common_11.1.1\wsm-pmlib.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.wsm.agent.common_11.1.1\wsm-pap.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.wsm.agent.common_11.1.1\wsm-agent.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.wsm.common_11.1.1\wsm-secpol.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.javatools_11.1.1\javamodel-rt.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.javatools_11.1.1\javatools-nodeps.jar;C:\Oracle\Middleware\modules\javax.mail_1.4.jar;C:\Oracle\Middleware\jdeveloper\jdev\lib\jdev-rt.jar;C:\Oracle\Middleware\jdeveloper\jdev\extensions\oracle.jdeveloper.jgoodies\forms-1.0.6.jar;C:\Oracle\Middleware\jdeveloper\webservices\lib\jws-api-10.1.3.jar;C:\Oracle\Middleware\jdeveloper\webservices\lib\orawsmetadata.jar;C:\Oracle\Middleware\jdeveloper\javacache\lib\cache.jar;C:\Oracle\Middleware\jdeveloper\ord\jlib\jmf.jar;C:\Oracle\Middleware\jdeveloper\jlib\help4.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\bc4jimdomains.jar;C:\Oracle\Middleware\jdeveloper\ord\jlib\ordim.jar;C:\Oracle\Middleware\jdeveloper\ord\jlib\ordhttp.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\ordim.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\ordhttp.jar;C:\Oracle\Middleware\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc5.jar;C:\Oracle\Middleware\jdeveloper\jlib\inspect4.jar;C:\Oracle\Middleware\jdeveloper\jdev\lib\ojc.jar;C:\Oracle\Middleware\jdeveloper\webservices\lib\soap.jar;C:\Oracle\Middleware\jdeveloper\jlib\javax-ssl-1_1.jar;C:\Oracle\Middleware\jdeveloper\jlib\jssl-1_1.jar;C:\Oracle\Middleware\modules\javax.activation_1.1.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\uddiclient.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\core_services_client.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\uddiclient_core.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\uddiclient_api_v2.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\uddiclient_api_v3.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\category_client_v3.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\wsdl2uddi_client_v3.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\wasp.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\activation.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\jaxrpc.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\saaj.jar;C:\Oracle\Middleware\jdeveloper\uddi\lib\jaxm.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xml.jar;C:\Oracle\Middleware\jdeveloper\lib\xsu12.jar;C:\Oracle\Middleware\jdeveloper\lib\xquery.jar;C:\Oracle\Middleware\jdeveloper\orant\lite\classes\olite40.jar;C:\Oracle\Middleware\jdeveloper\sqlj\lib\runtime12.jar;C:\Oracle\Middleware\jdeveloper\jakarta-struts\lib\antlr.jar;C:\Oracle\Middleware\jdeveloper\jakarta-struts\lib\commons-beanutils.jar;C:\Oracle\Middleware\jdeveloper\jakarta-struts\lib\commons-collections.jar;C:\Oracle\Middleware\jdeveloper\jakarta-struts\lib\commons-digester.jar;C:\Oracle\Middleware\jdeveloper\jakarta-struts\lib\commons-fileupload.jar;C:\Oracle\Middleware\jdeveloper\jakarta-struts\lib\commons-logging.jar;C:\Oracle\Middleware\jdeveloper\jakarta-struts\lib\commons-validator.jar;C:\Oracle\Middleware\jdeveloper\jakarta-struts\lib\jakarta-oro.jar;C:\Oracle\Middleware\jdeveloper\jakarta-struts\lib\struts.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\toplink.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\antlr.jar;C:\Oracle\Middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar;C:\Oracle\Middleware\jdeveloper\BC4J\jlib\adf-connections.jar;C:\Oracle\Middleware\jdeveloper\BC4J\lib\adfcm.jar;C:\Oracle\Middleware\jdeveloper\modules\features\adf.model_11.1.1.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.mds_11.1.1\mdsrt.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.dms_11.1.1\ojdl2.jar;C:\Oracle\Middleware\jdeveloper\lib\xsqlserializers.jar;C:\Oracle\Middleware\modules\glassfish.jstl_1.2.0.1.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jsf_1.2.7.1\jsf-api.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jsf_1.2.7.1\jsf-ri.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jsf_1.2.7.1\sun-commons-beanutils.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jsf_1.2.7.1\sun-commons-collections.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jsf_1.2.7.1\sun-commons-digester.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jsf_1.2.7.1\sun-commons-logging.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.jsf_1.2.7.1\weblogic-injection-provider.jar;C:\Oracle\Middleware\jdeveloper\adfc\lib\adf-controller-schema.jar;C:\Oracle\Middleware\jdeveloper\jlib\trinidad-api.jar;C:\Oracle\Middleware\jdeveloper\jlib\trinidad-impl.jar;C:\Oracle\Middleware\jdeveloper\jlib\adf-richclient-api-11.jar;C:\Oracle\Middleware\jdeveloper\jlib\adf-faces-databinding-rt.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\commons-cli-1.0.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\commons-el.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\jsp-el-api.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\oracle-el.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xmlef_11.1.1\xmlef.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.oc4j-obsolete_11.1.1\oc4j-unsupported-api.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.ucp_11.1.0.7.0.jar hr.DataHandler
    Listening for transport dt_socket at address: 2724
    Debugger connected to local process.
    Jun 15, 2009 9:39:03 AM oracle.as.jmx.framework.PortableMBeanFactory setJMXFrameworkProviderClass
    INFO: JMX Portable Framework initialized with platform SPI "class oracle.as.jmx.framework.standardmbeans.spi.JMXFrameworkProviderImpl"
    Jun 15, 2009 9:39:03 AM oracle.as.jmx.framework.PortableMBeanFactory setJMXFrameworkProviderClass
    INFO: JMX Portable Framework initialized with platform SPI "class oracle.as.jmx.framework.standardmbeans.spi.JMXFrameworkProviderImpl"
    Executing query: SELECT * FROM XX_OAF_PRODUCTS
    100 Washing Machine W001 null 1000 spin, A Energy at 40 Deg., 11lb/5kg capacity
    101 Washing Machine W003a null 1200 spin, A+ Energy at 40 Deg., 15lb/6kg capacity
    102 Washing Machine W017 null 1400 spin, A Energy at 40 Deg., 11lb/5kg capacity
    103 Washing Machine T006 null Twin Tub, 800 spin, C Energy at 40 Deg., 10lb/4.5kg capacity
    104 Washer Dryer W001d null 1000 spin, A Energy at 40 Deg., 11lb/5kg capacity, 9lb/4kg drying capacity
    105 Washer Dryer W003d null 1200 spin, A+ Energy at 40 Deg., 15lb/6kg capacity, 11lb/5kg drying capacity
    106 Washer Dryer W017d null 1400 spin, A Energy at 40 Deg., 11lb/5kg capacity, 11lb/5kg drying capacity
    107 Dryer D003 null Vented, B+ Energy, 15lb/6kg capacity
    108 Dryer D011 null Condensing, A Energy, 11lb/5kg capacity
    109 Fridge F011s null 7.5 CUFT, A+ Energy, FF, Auto-Defrost, Silver
    110 Fridge F011w null 7.5 CUFT, A+ Energy, FF, Auto-Defrost, White
    111 Fridge F011b null 7.5 CUFT, A+ Energy, FF, Auto-Defrost, Black
    112 Fridge F004w null 4.5 CUFT, Under Counter, A++ Energy, FF, Auto-Defrost, White
    113 Fridge Freezer FZ007s null 4.5 / 1.5 CUFT, A+ Energy, FF, Auto-Defrost, Silver
    114 Fridge Freezer FZ007w null 4.5 / 1.5 CUFT, A+ Energy, FF, Auto-Defrost, White
    115 Freezer Z002s null 7.5 CUFT, A Energy, FF, Silver
    116 Freezer Z002w null 7.5 CUFT, A Energy, FF, White
    117 Freezer Z002b null 7.5 CUFT, A Energy, FF, Black
    118 Chest Freezer Z001w null 12.5 CUFT, B+ Energy, White
    119 Ice Maker I012 null 30lb capacity storage bin, FF
    Executing query: SELECT * FROM XX_OAF_PRODUCTS WHERE UPPER(name) LIKE '%FREE%' order by prod_id
    Results from query:
    113 Fridge Freezer FZ007s null 4.5 / 1.5 CUFT, A+ Energy, FF, Auto-Defrost, Silver
    114 Fridge Freezer FZ007w null 4.5 / 1.5 CUFT, A+ Energy, FF, Auto-Defrost, White
    115 Freezer Z002s null 7.5 CUFT, A Energy, FF, Silver
    116 Freezer Z002w null 7.5 CUFT, A Energy, FF, White
    117 Freezer Z002b null 7.5 CUFT, A Energy, FF, Black
    118 Chest Freezer Z001w null 12.5 CUFT, B+ Energy, White
    ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
    JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
    Process exited.
    Debugger disconnected from local process.
    Thanks in advance!!!
    Regards,
    Hieu

    What did you do to resolve this issue? It could be helpful to others. Thanks.

  • Urgent Applet Modifications

    Extremely urgent !!! I like someone to takeover this project or guide me through it - I can compensate if you take it over. I have the source codes but I can't seem to compile them - what IDE can I use to get started.
    View this java applet that lets users create and save an image.
    I would like users to be able to save a graphic from the current java applet. Then I would like them to be able to put this graphic in one of a few templates and charge them for printing permissions.
    So the program must not let the user use "view source" to get the picture or to right click and "save as."(Not very important)
    What I am looking for is a new applet that will combine the images with stationary templates and to be able to charge for printing. The background images in the applet also need to be exchanged with new ones.
    __________________

    Here are my Netbeans run / debug messages for my clients source - it says build successful but I never see a running applet or anything. Any advise please - ??? I've changed the sources file path around etc but no luck. I might have to quit this soon.
    init:
    deps-jar:
    compile:
    java.lang.NullPointerException
    at com.dolls.ImageStore.loadImage(ImageStore.java:81)
    at com.dolls.Image.load(Image.java:52)
    at com.dolls.Image.<init>(Image.java:39)
    at com.dolls.DollImage.<init>(DollImage.java:20)
    at com.dolls.editor.Editor.<clinit>(Editor.java:44)
    Error when loading image:style1/bodies/body-medium.gif
    java.lang.ExceptionInInitializerError
    Caused by: java.lang.NullPointerException
    at com.dolls.Image.load(Image.java:55)
    at com.dolls.Image.<init>(Image.java:39)
    at com.dolls.DollImage.<init>(DollImage.java:20)
    at com.dolls.editor.Editor.<clinit>(Editor.java:44)
    Exception in thread "main" ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
    JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
    Java Result: 1
    debug:
    BUILD SUCCESSFUL (total time: 2 seconds)

  • Regarding 10.2.0.3 on AIX 5.3

    Hi Gurus,
    I am in one of our clients site and visited here to see Oracle problems which they are facing.
    They have recently upgraded their oracle database release to 10.2.0.3 on AIX-5.3(64bit production)
    Actually speaking they have a application server residing on Linux and database resides on AIX5.3.Through tnsnames.ora they are communicating their Application server.
    They are unable to authorise the records in their Live system.Resulting all the trans boundry records unable to rollback and they are even loosing the old records as well.This is a very critical situation for us now :-(
    The error log showing as below
    ~ -->CT FCRD.ACCT.ACTIVITY 13011040000004-200708
    Error 5 during READ_ERROR to file ../bnk.data/ac/FCRD.ACCT001
    Enter I to Ignore, R to Retry , Q to Quit :
    * Oracle Error **: ORA-03113: end-of-file on communication channel
    TRANSROLLBACK: Rollback failed
    ** Oracle Error **: ORA-03114: not connected to ORACLE
    ** Error ** WRITE: Unable to write key 200708290037156335.00 record <row
    id='200708290037156335.00'><c1>20070829</c1><c2>1</c2><c3>153855</c3><c4>371 33</c4><c6>BD0010126</c6><c7>MUHAMMAD</c7><c8>AZ
    .ACCOUNT,PR.FD.OPEN</c8><c9>1 I</c9><c10>12641010008042</c10><c11>Cannot write 12641010008042 to FFEX.AZ.SCHEDULES.NAU</c11><
    /row>
    3857 - 2.0.9 - Wed Aug 29 15:38:55 - ** Oracle Error **: ORA-03114: not connected to ORACLE
    5919 - 2.0.9 - Wed Aug 29 15:39:15 - ACFCRD_ACCT001 - ** Error ** READ: Key = 13011040000004-200708. Unable to convert XML re
    cord into jBASE record
    The above is one of our locally generated error log file where we can see all the the actions sending to Oracle database.
    we can concentrate on the below error order.
    Oracle Error **: ORA-03113: end-of-file on communication channel
    TRANSROLLBACK: Rollback failed
    ** Oracle Error **: ORA-03114: not connected to ORACLE
    Just yesterday we have confirmed from them that they are missing one patch which is
    Errors in file
    /orafs/app/oracle/admin/pblprod/udump/pblprod_ora_303562.trc:
    ORA-07445: exception encountered: core dump [] [] [] [] [] []
    Thu Jul 19 08:25:41 2007
    Technical details:
    This problem is arised due to "hash table key was exceeding
    "ub1maxval" on 64 bit platforms because of the increas
    e in size of struct memebers.
    ORA-07445 and ORA-03113 are inter linked ?
    and also please advice us how should we tune the rollback segments in oracle if huge rollback is concern.
    Thanks
    Kiran Kumar.S

    Do you have any Oracle error related to rollback segment or undo tablespace ?Actually speaking we use transaction boundry in our code is as concern.When user inputting transactions if
    at any point of failure, any tables,files at the application level updated within the transaction boundry should be rolled back.This is failing only at some point of time and the records which meant to be flushed back from the shared memory was not happenning.
    I just wanted to convey my problem scenario to you before giving the update.
    I havent got any error messages regarding roll back in my alertlogfile except below.
    (FOB) flags=2 fib=70000025cb621e8 incno=0 pending i/o cnt=0
    fname=/oradata/pblprod/undotbs01.dbf
    fno=2 lblksz=8192 fsiz=206400
    Are you using automatic undo ?Yes we are using undo_management as AUTO
    What is the value of undo_retention parameter ?
    Undo rentention parameter value is 900 which is too high i think. :-(
    SQL> show parameter undo_retention;
    NAME TYPE
    VALUE
    undo_retention integer
    900
    Do you have long running queries ? How long ?
    Do you large write queries (UPDATE/INSERT/DELETE)Yes we do have.We have long running queries from application level during batch updates.The batch update we call it as
    Close of Business (COB).So in COB we do have larger appends/writes/delete/truncate is as concern.
    But in this case i think we have a problem with write.A longer running query may run at the maximum of 5min without any indexes created.
    As a conclusion i think the problem which is ORA-03113 happenning because we have a very big undo_retention value which is 900.The UNDO_RETENTION parameter works best if the current undo tablespace has enough space fir the active transactions. If an active transaction needs undo space and the undo tablespace does not have any free space, then the system will start reusing undo space that would have been retained. This may cause long queries to fail.
    My thinking makes sense ?
    If i am speaking sense then shall we clear the undo tablespace please ?

  • N97 restarts itself when connecting to PC via Mass...

    Hi guys, 
    My friend has a N97 and she changed the font using E:\Resource\Fonts\ folder method. The font was successfully changed; however, she didn't like it. 
    So she decided to change back the font, but whenever she connects the N97 to PC via "Mass Storage" mode, the phone restarts itself, and by that I mean EVERY SINGLE TIME it'll restart. 
    Therefore we tried "PC Suite" mode, but we're unable to make any changes to the Fonts folder (ie delete / rename / cut-paste). 
    I've also tried using X-plore, but whenever I try to delete the [s60snr.ttf/etc...] files, xplore will give me an error: "Can't Delete File: E:\Resource\Fonts". I'm sure that the file isn't in "read-only" if that helps anyone.
    The fonts are stored in the 30gb internal memory inside the N97, so it's impossible to swap out the memory and delete on another phone/computer.
    I appreciate any answers

    Hi Guys,
    I had same problem with my N97 mini. I do not have external memory card. I installed 'FONTS' in my mass memory. Font changed but if I connect my phone in mass storage mode, phone resets.
    Here is what I did,
    1. Copy all my data in PC using PC suit mode ( I suspect back utility will not work here because it will restore the back up including fonts folder in mass memory. I am not sure though). Also copy RESOURCE folder in your PC ( you can delete fonts folder in this copied folder in PC. I made a mistake of copying only RESOURCE folder you can copy all the folders from mass memory and restore it later.
    2. disconnect the phone from PC
    3. Open , Office --> File mgr. --> Mass Memory --> got to options --> Scroll down --> format mass memory.
    That's it.
    Your phone will be 'shut down' after formatting is completed.
    Restart the phone connect it to PC suit. You might not be able to see mass memory. In that case connect it in ' mass memory' mode. You can find your phone is not resetting. Copy RESOURCE folder from PC with out fonts folder.
    You may reinstall firmware and reinstall all the application you need.
    It worked form me. Hope it works for you. Do it on your own risk. Do not forget to copy the data from mass memory.
    You may find HARD RESET options (*#7370#) but it only resets your C drive and not F OR G Drive.
    If you have installed Fonts in G (External memory). I guess you can just remove it from phone and remove the fonts folder easily. Just remove external memory use card reader to connect it to PC and remove.
    CHEERS

Maybe you are looking for

  • InDesign 5.5 Sluggish Redraw

    We just started using ID 5.5 and the copy-paste function, redraw, moving items, etc. have all been very sluggish compared to ID4. In 4 I used to have the PreFlight on, Typical Display Performance on, Live Screen Drawing set at Immediate and my Displa

  • PO tax issue?

    Dear Experts: In China , the tax are involved in the price when buying somethings. If it is possible to let the LIV distinguish the material cost and tax amount . EX: if the quotation is 10 RMB ,and I use  10 RMB as PO price.      I hope when I do LI

  • ICloud content question

    Sorry if this is a silly question, but here I go-. Does the iCloud actually store my files on it?  If yes, how do I delete them from the cloud?

  • Appleworks format problem 10.6.2 Leopard to Snow

    I am having a problem with Appleworks document format. I just Upgraded from Leopard to Snow.. 10.6.2 yesterday. So far the only problem I have had is whenever I go to Document to change page margins the boxes come up blank and if you type in a margin

  • Compressor and qmaster taking 100% CPU after quit

    I have compressor set up with qmaster on my 8-core 2008 Mac Pro.  When my cluster decides to show up (it doesn't always, but that's a seperate issue) it works great.  The encodeing processes take up almost 100% of the CPU and it really cuts down on t