Changing connection at runtime

How can I change the db connection at
runtime in a bc4j and jsp application:
I start from a standard db connection
read from the app property file and then
I read from the database connection information and I have to reconnect.
Thank's in advance
Mauro

If you want to change connections, you first have to logout. Besides the logon_screen builtin does not change the connection, but it only sets several application properties.
In the Forms Help there is an example how to use the logon_screen. It basically comes to the next pl/sql code:
declare
MyUsername VARCHAR2(40);
MyPassword VARCHAR2(40);
MyConnect VARCHAR2(40);
begin
logon_screen;
MyUsername := Get_Application_Property(USERNAME);
MyPassword := Get_Application_Property(PASSWORD);
MyConnect := Get_Application_Property(CONNECT_STRING);
logout;
if MyConnect is not null then
logon(MyUsername,MyPassword| |'@'| |MyConnect);
else
logon(MyUsername,MyPassword);
end if;
end;
null

Similar Messages

  • Problem when changing connection to SQL Anywhere during runtime

    I designed a report in the Crystal Reports 2008 designer using a JDBC connection
    to a SQL Anywhere 11.0.1 database.
    Everything works fine, I´m able to preview the report in the designer.
    But when loading and running the same report in a Eclipse-based java-application I receive
    an error.
    When I set the db connection parameters I receive an "unexpected database-connector-error".
    When starting the report without changing the connection parameters set in the CR2008-designer
    the same error appears.
    When using a report based on a MySQL-database everything works fine.
    I´m able to preview the report in the designer and I´m able to load the report
    and change the datasource to another MySQL-database at runtime.
    What do I have to do to change a SQL Anywhere connection at runtime?

    Your workflow and the specific method being invoked where you're getting the exception is unclear.
    Sincerely,
    Ted Ueda

  • Changing database connection at runtime

    Hi All,
    I have multiple screens based from different database instances. How can I make a single menu screen which will allow log in for another database connection? I tried using the LOGIN_SCREEN built in but it does not change the connection once you are already connected to one database.

    If you want to change connections, you first have to logout. Besides the logon_screen builtin does not change the connection, but it only sets several application properties.
    In the Forms Help there is an example how to use the logon_screen. It basically comes to the next pl/sql code:
    declare
    MyUsername VARCHAR2(40);
    MyPassword VARCHAR2(40);
    MyConnect VARCHAR2(40);
    begin
    logon_screen;
    MyUsername := Get_Application_Property(USERNAME);
    MyPassword := Get_Application_Property(PASSWORD);
    MyConnect := Get_Application_Property(CONNECT_STRING);
    logout;
    if MyConnect is not null then
    logon(MyUsername,MyPassword| |'@'| |MyConnect);
    else
    logon(MyUsername,MyPassword);
    end if;
    end;
    null

  • Dynamic database connections at Runtime dbAdapter

    Hi
    I need to connect to a database defined a runtime in a BPEL process using the dbadapter. All the configuration parameters for making the connection are provided at runtime (connectionURL, User, Password) and i need a way to configure them in the dbAdapter make the connection and execute some SQLStatements.
    Until now we were testing with some bpelx Properties changing dynamically the name of the jndi (jca.jndi) that works fine, but we cant define a datasource for every database. We also tried with another set of properties for setting the connection at runtime (jca.mcf.ConnectionString, jca.mcf.Password,jca.mcf.UserName) unsuccessfully.
    Do you know a way to define connections parameters at runtime in dbAdapter? Is that possible with SOA version 11.1.1.6 ?
    If this is not possible what alternative do you suggest for making dynamic connections to a database.?
    Regards
    Sergio

    You can try using the function query-database and formulate the 4th parameter which is JDBC connect string at runtime.
    oraext:query-database()
    Returns a node-set by executing the sql-query against the specified database. The second parameter rowset indicates if the rows should be enclosed in a element. The third parameter row indicates if each row should be enclosed in a element. The fourth parameter datasource is either a JDBC connect string (jdbc:oracle:thin:USER-NAME/PASSWORD@HOST:PORT:SID) or a JNDI name for the database. Only Oracle Thin Driver is supported if JDBC connect string is used. Usage: oraext:query-database(sqlquery as string, rowset as boolean, row as boolean, datasource as string). Example: oraext:query-database('select last_name from employee where id=1234',false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL'.
    This does not require a database adapter .

  • Set password for database connection at runtime

    Hi there,
    is it possible to set the password and/or the user for the database connection at runtime.
    The use case is to read the values from a file and decrypt them, and the to establish the conenction. So that i don't habe to redeploy everything if there is a change.
    Thanks in advance.

    How exactly do i set these values for the datasource?
    Edited by: Alex on 15.02.2012 09:50
    €: JDeveloper 11.1.1.5.0
    The use case is, that there is a file with an encrypted password. This should be decrypted and then be used for the connection. So when this encrypted passowrd changes, i don't want to edit and deploay the app once again. Instead the new encrypted password should be decrypted via code an then be used.
    Edited by: Alex on 15.02.2012 10:00

  • Unable to overwrite the ODBC connection in runtime

    Hi,
    I have a VS2008 application which is using CR2008. Problem is I am not able to change the ODBC connection in runtime to any server other than the one that was used to create the report
    We are using infoobject model to retrive the report form CMC.
    Couple of thing I tried.
    First One:
    ConnectionInfo objConnectionInfo = new ConnectionInfo();
                   objConnectionInfo.ServerName = "Server Name";
                   objConnectionInfo.DatabaseName = "Database Name";
                   objConnectionInfo.UserID = "UserID";
                   objConnectionInfo.Password = "Pwd
                   objConnectionInfo.IntegratedSecurity = true;
                   objConnectionInfo.AllowCustomConnection = true;
                   TableLogOnInfos objTableLogOnInfos = new TableLogOnInfos();
                   TableLogOnInfo objTableLogOnInfo = new TableLogOnInfo();
                   objTableLogOnInfo.ConnectionInfo = objConnectionInfo;
                   objTableLogOnInfos.Add(objTableLogOnInfo);
                    Crv.LogOnInfo = objTableLogOnInfos;
    Second One:
                        ReportLogons logns = ceReport.ReportLogons;
                        ReportLogon logn = logns[1];
                        logn.UseOriginalDataSource = false;
                        logn.CustomServerName = "ServerName";
                        logn.CustomDatabaseName = "Database Name";
                        logn.CustomUserName = "Userid";
                        logn.CustomPassword = "Pwd";
    Above methods I tries but I am unable to change my connection string,Some one please advise on this.

    Make sure you have SP 2:
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    Try one of our sample apps:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    recommend vbnet_win_dbengine
    Do this with a report that has no subreports 1st.
    In your code samples, you are trying to use integrated security in one, not in the other. Is the report designed with Integrated security or not? Re. integrated security, see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b021e47e-be1d-2b10-c6b2-efa9db3abd6b] article.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Different database connections at runtime

    How can I change different database connections at runtime on the same Application Module ?
    I use BC4J as business layer and uiXml as presentation layer.

    Does anyone know how to do this?
    I need the same, but i couldn't find any documentation about it.
    Looking forward to hearing good news.....

  • Change Connection TYPE in XI (NOT using CR Viewer)

    Post Author: bowlegtroy
    CA Forum: Data Connectivity and SQL
    Hi,
    I'm using CR XI in a VB6 application to run .rpt files (they are also developed in XI) programmatically.  All of these reports are currently created using the Native Oracle Connection (HOW: Open Crystal XI, New Report, Create new connection, Oracle Server, enter data in Service name as found in TNS Names, uID, PWD).
    At runtime, I'm changing the name of the server, UID and Pwd.  All of this works fine.
    However, in order to make my program more flexible, I need to change the connection to be OLEDB instead of the native Oracle connection. 
    So, my question is:
    "How do I change the connection TYPE at runtime to be OLEDB?"
    Or, if that cannot be done, then:
    "How do I READ the connection type, and take the appropriate action?"
    I have tried following the help files examples (for Crystal 9, clears throat loudly) that you find in the documentation online at BusinessObjects.com, but have not been successful to date.  Docs tried:
    http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_rdc9_connectionproperties.pdf
    http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_rdc_dbconnectivity.pdf
    http://resources.businessobjects.com/support/communitycs/TechnicalPapers/logon_ocx.pdf
    http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_connectivity_migration.pdf
    Here is my existing VB6 code to connect and change the connections for each table.  Can someone help me change this to an OLEDB connection at RUNTIME?
    Public DCMSapplication As CRAXDRT.Application 'Reference Required: "Crystal Reports ActiveX Designer Run Time Library [Version]"
    'Recursive function that will call for sub reports found.Public Function resetCrystalSubReportConn(DCMSreport As CRAXDRT.Report, _  strServer, _  strUserID, _  strPassword, _  strReportNameOnly, _  ByVal lngReportID As Long, _  strPath As String) As Boolean      'Dim DCMSreport As Object 'CRAXDRT.Report  'Dim crParamDef As Object 'CRAXDRT.ParameterFieldDefinition  Dim crSecs As CRAXDRT.Sections  Dim crSec As CRAXDRT.Section  Dim crObjs As CRAXDRT.ReportObjects  Dim crSubRep As CRAXDRT.Report  'Dim crConInfo As Object 'CRAXDRT.ConnectionProperties    Dim strMessage As String  Dim i As Integer  Dim j As Integer
      On Error GoTo Connection_EH
    '''''''''''''''''''''''''START: NEED TO REPLACE WITH DSN-LESS OR OLEDB CONNECTION'''''''''''''''''''''''''    ' Logon to the report tables  strMessage = "The connection to Oracle for "  RaiseEvent Status("Resetting the connection for each table in report " & strPath, 0, "", 0)  With DCMSreport.Database    For i = 1 To .Tables.Count      'CAUTION!  Designed for Oracle connections ONLY!      .Tables(i).ConnectionProperties.Item("Server") = strServer      .Tables(i).ConnectionProperties("User ID") = strUserID      .Tables(i).ConnectionProperties("Password") = strPassword    Next i  End With
    '''''''''''''''''''''''''END: NEED TO REPLACE WITH DSN-LESS OR OLEDB CONNECTION'''''''''''''''''''''''''    ' Logon to the sub-reports tables  Set crSecs = DCMSreport.Sections  For i = 1 To crSecs.Count                     ' Loop through each section of the report    Set crSec = crSecs.Item(i)    Set crObjs = crSec.ReportObjects            ' The objects within the section    For j = 1 To crObjs.Count                   ' Look for a subreport in the section      If crObjs.Item(j).Kind = 5 Then 'crSubreportObject Then        ' Subreport found!        strMessage = "Resetting the connection for each table in subreport " & strPath        RaiseEvent Status(strMessage, 0, "", 0)        Set crSubRep = DCMSreport.OpenSubreport(crObjs.Item(j).SubreportName)                'Call function recursively        If FailureHasOccurred = False Then          resetCrystalSubReportConn crSubRep, strServer, strUserID, strPassword, strReportNameOnly, lngReportID, strPath        End If      End If    Next j  Next i  ExitTheProcedure:  resetCrystalSubReportConn = FailureHasOccurred  Exit Function
    Connection_EH:  Call LogAnEvent(mADOConnJet.Connection, strMessage & strReportNameOnly & " failed.", "resetCrystalSubReportConn", Err.Number, Err.Description, lngReportID)  FailureHasOccurred = True  Resume ExitTheProcedure  End Function
    Thanks!

    The router is only able to show the 2.4Ghz and 5Ghz device statuses if they happen to be connected to the Greenwave or ActionTec router. Anything that is not directly associated with the Wi-Fi radio on the FiOS router will generally show up as a wired device, just because the router doesn't know if it sits behind a switch, behind a wireless bridge, or if it's actually a wireless device. All it knows is that the device ARPs and asked for an IP through DHCP.
    For monitoring what devices are on what radio for the Apple AirPort, try Apple's AirPort Utility for OS X and Windows. The Network Map should allow you to select devices and view informtion on each device.

  • Changing Images at Runtime...it's sending me nuts (I'm a newbie, go easy)

    Hi all,
    I am trying change images at runtime and quite frankly it's driving me nuts. I'm pretty new to Java and don't understand some of the principles but I'm trying. I have this code below, that loads up a few images. I want to be able to change some/all of these images either on a timed even or on a button press, but all the things I've tried don't work. Can someone offer me some help....thanks in advance
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class bc extends JFrame implements ActionListener {
         public static void main(String[] args) {new bc();}
         bc() {
              //setUndecorated(true); // - this removed the titlebar!
                    setTitle("BC...");
              setSize(350,125);
              setResizable(false);
              setLocation(50,50);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setBackground(new Color(0,0,0));
              getContentPane().setBackground(new Color(255,255,255));
              JPanel hours = new JPanel();
              hours.setLayout(new GridLayout(4,2));
              hours.add(hour14);
              hours.add(hour24);
              hours.add(hour13);
              hours.add(hour23);
              hours.add(hour12);
              hours.add(hour22);
              hours.add(hour11);
              hours.add(hour21);
              JPanel mins = new JPanel();
              mins.setLayout(new GridLayout(4,2));
              mins.add(min14);
              mins.add(min24);
              mins.add(min13);
              mins.add(min23);
              mins.add(min12);
              mins.add(min22);
              mins.add(min11);
              mins.add(min21);
              JPanel secs = new JPanel();
              secs.setLayout(new GridLayout(4,2));
              secs.add(sec14);
              secs.add(sec24);
              secs.add(sec13);
              secs.add(sec23);
              secs.add(sec12);
              secs.add(sec22);
              secs.add(sec11);
              secs.add(sec21);
              JPanel helptext = new JPanel();
              helptext.setLayout(new GridLayout(4,2));
              helptext.add(new JLabel("8"));
              helptext.add(new JLabel("4"));
              helptext.add(new JLabel("2"));
              helptext.add(new JLabel("1"));
    //add action listenters
              changeImg.addActionListener(this);
              JPanel cp = new JPanel();
              cp.setLayout(new GridLayout(1,6));
              cp.setBackground(new Color(255,255,255));
              cp.add(hours);
              cp.add(mins);
              cp.add(secs);
              cp.add(helptext);
              cp.add(changeImg);
              setContentPane(cp);
              setVisible(true);
         public void actionPerformed(ActionEvent ae) {
              hour11.PaintOff(1);
              //JOptionPane.showMessageDialog(this, "changed");
              repaint();
    JPanel hour11 = new PaintOff(0);
    JPanel hour12 = new PaintOff(0);
    JPanel hour13 = new PaintBlank();
    JPanel hour14 = new PaintBlank();
    JPanel hour21 = new PaintOff(0);
    JPanel hour22 = new PaintOff(0);
    JPanel hour23 = new PaintBlank();
    JPanel hour24 = new PaintBlank();
    JPanel min11 = new PaintOff(0);
    JPanel min12 = new PaintOff(0);
    JPanel min13 = new PaintOff(0);
    JPanel min14 = new PaintOff(0);
    JPanel min21 = new PaintOff(0);
    JPanel min22 = new PaintOff(0);
    JPanel min23 = new PaintOff(0);
    JPanel min24 = new PaintOff(0);
    JPanel sec11 = new PaintOff(0);
    JPanel sec12 = new PaintOff(0);
    JPanel sec13 = new PaintOff(0);
    JPanel sec14 = new PaintOff(0);
    JPanel sec21 = new PaintOff(0);
    JPanel sec22 = new PaintOff(0);
    JPanel sec23 = new PaintOff(0);
    JPanel sec24 = new PaintOff(0);
    JButton changeImg = new JButton("change");
    }///---------This is my PaintOff class ---------------\\\
    import javax.swing.*;
    import java.awt.*;
    import java.awt.Image.*;
    public class PaintOff extends JPanel {
    Toolkit tk = Toolkit.getDefaultToolkit();
    public Image imgOff = tk.getImage("off.jpg");
    public Image imgOn = tk.getImage("on.jpg");
    public Image paintMe = tk.getImage("off.jpg");
         PaintOff(int a) {
              if(a == 1) {
                   vOn();
              } else {
                   vOff();
         public void vOn() {
            paintMe = imgOn;
         //JOptionPane.showMessageDialog(new bc(), "shown");
         public void vOff() {
            paintMe = imgOff;
         public void paintComponent(Graphics g) {
              g.drawImage(paintMe,0,0,this);
    }PaintBlank class is not included here, it's basically just the same as PaintOff but only has one image inside.
    When I try and compile this code, I get
    C:\jdk1.4\bin\bclock>javac bc.java
    bc.java:79: cannot resolve symbol
    symbol : method PaintOff (int)
    location: class javax.swing.JPanel
    hour11.PaintOff(1);
    ^
    1 error
    I don't understand this either, I've tried replacing "PaintOff(1)" with "vOn()" but I get the same error. This is baffling to be, as I thought that the hour11 would have access to all the methods inside the PaintOff class?
    Anyway, thanks for any help you guys give me!
    Cheers
    //Chris.

    Hi!
    Your problem is that you've used a widening conversion to convert from PaintOff to a JPanel. JPanel has no such method, and so the compiler is complaining that it can't find it.
    e.g
    public class NoCompile{
         public static void main(String args[]){
              One one = new Two();
              one.methTwo();
    public class Two extends One{
         public Two(){}
         public void methTwo(){
            System.out.println("Executed 2");
    public class One{
         public One(){}
         public void meth1(){}
    } will give you the same sort of error message. To make the compiler happy, use a cast.
    Now this will compile and gives the right result.
    public class NoCompile{
         public static void main(String args[]){
              One one = new Two();
              ((Two)one).methTwo();
    }So in your case, you want to do
    ((PaintOff)hour11).vOn();
    Does that help?
    :) jen

  • 2.1EA2: Pinning Query Results and changing Connections [fixed in 2.1.0]

    I am on 2.1EA2 (JDK 1.6.0_16) and been playing with the new SQL Worksheet pin query results functionality. I have found that it is possible to run a query against one connection, pin the results and then change connection and run the same (or a different) query against another connection. I really like this, but found a few problems:
    #1 There doesn't seem to be any way to tell which connection a query result tab was actually run against
    #2 Even if all rows are fetched, if I then disconnect from the first connection it can get quite messy. Sometimes I get an empty connection dialog (I can't remember the exact title and it doesn't reproduce consistently) with only the close window X in the corner. Some times I get prompted to log in with a connection information dialog with no reference to the connection it is connecting to - cancelling only brings up the same dialog again until I successfully connect. Some times I get prompted to log in and while that is still on the screen, SQL Developer logs me back in to the connection (even though I don't save passwords) - I even get a new worksheet for the reconnected connection.
    theFurryOne

    Raghu,
    I am happy with both.
    #1 - I would be happy if the connection name was at the start of the tool-tip style pop-up when hovering over Query Results tab and the Query Result SQL dialog that opens on the SQL button. -K-'s suggestion makes it immediately obvious for the currently selected Query Results tab, without having to move the mouse or click on something.
    Ideally, I would like something similar for the other output tabs (ie Script Output), but they seem to show results for all connections that the worksheet has used, so the same concept may not work.
    #2 - I am used to the grid being cleared when disconnecting from earlier versions - I assumed that this was a bug where SQLD was not checking the connection of the results, just the current connection of the worksheet.
    theFurryOne

  • CR4E - New JDBC (JNDI) connection at runtime

    Is it possible to create a new JDBC (JNDI) connection at runtime using the propertyBag to set the attributes?  I tried this but received error message stating "error finding jndi name".

    Are you specifying a JDBC or JNDI connection?
    If JDBC, did you set the (Optional) JNDI Connection property?
    If you set the JNDI property for the JDBC connection, it'll try connecting to the JNDI.
    The JDBC has the optional JNDI property, so that you can design a report against JDBC, then use the JNDI when deployed to a J2EE.
    Sincerely,
    Ted Ueda

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

  • Error BISoapConnection – READ_ONLY_STORE while modifying Connection at runtime from EM-MBean Browser

    I’m trying to create a webapp having a page pulling the BI analytics content using the BI-ADF control. I then deploy this on another standalone weblogic server.
    While this deployment works and I’m able to acess my pages etc. The connections are created statically in Jdeveloper
    However, the requirement is to be able to create/modify the connections at runtime. I am trying the way to do this using System MBean Browser but seems like I missed any configuration while creating the deployment, since I get the error for the READ_ONLY_STORE for this connection.
    Much appreciated any advice from you.

    Here is my help:
    The entire line of output up until the actual error means absolutely nothing to me or anyone else except you; it is means anything at all, then you need to get into your debugger and start stepping thorugh your code until you hit the error and see what is actually happening, then if you are stuck, write a question stating what the problem is and where it occurs in your code. You chould give some of the variable states in the same scope during the iteration inwhich the error occures, but unless you are willing to do this, I doubt anyone is going to do your debugging for you--paticulary since this is not even your own code.

  • Single JCO Connection at Runtime.

    Hi
    I have 3 Function modules (3 Models) to be called in my webdynpro project. Each model is taking one JCO connection at runtime. How do i minize my connections at runtime?
    regards
    Radha Krishna

    Hi Radha
    Instead of using 3 Models use a single model. This will minimize the number of connections at runtime. To club all your function modules into a single model, during creation of model, choose all the function modules at the same time.
    Let me know if you require any other clarifications
    Kishore

  • Changing picture at runtime using delphi

    Post Author: iman_400
    CA Forum: Other
    Please help me, is there anyway we can change picture at runtime using delphi 7.0 and CRXIR2?

    Hi, Lee;
    For the version of Crystal Reports that comes with .NET, you can use something like one of our samples shows:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
    Look for the sample, vbnet_win_DynamicImage.zip. It uses an ADO.NET dataset to change the image.
    For Crystal Reports XI R2 and Crystal Reports 2008, you can more directly change the image location using built in functionality.
    In the Designer, choose Insert > Picture. Choose a default image to show and save it. Right-click on it and select Format Graphic. Go to the Picture tab and click the formula button for Graphic location. Save the report.
    Then, at runtime you can populate the Formula with the new location for your image, either a URL or disk file location.
    See the following note for more information:
    [Image|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333333373334%7D.do]
    Best Regards,
    Jonathan

Maybe you are looking for

  • Memory upgrades and battery scratches

    Good afternoon all! I couldn't find where to email Lenovo directly so unfortunately I'm going to have to post here. I'm probably going to catch some flak for this but hey ho, so heres the thing, I bought two brand new Lenovo 3000 N100's 5 years ago,

  • How can i protect J2EE applications from piracy?

    I m looking for solution to protect Web application from piracy. I want my application run on web server for which it is built, & it musn't run on any other web server. how can i protect my web application from piracy?. Our .Net applications we prote

  • Java.io.File.delete worked in 1.1, 1.2, 1.3 & 1.4, but not in 5.0

    I have a logging utility I wrote originally in Java 1.0. A nightly housekeeping task runs which creates a ZIP file for the previous days log, then deletes the .log file. If I run this software with Java 5.0, the File.delete fails and the .LOG file re

  • BAdI Implementation for Customer/Vendor Basic Data

    My requirement is, In vendor and Customer Invoices I need to include a Employee Data [z table] which is a item data and this employee data will be in a table control in the BAdI - BADI_FDCB_SUBBAS01. For doing this, I need a program specifications an

  • Firefox 10.0.2 how to save adobe tv tutorials

    I am able to view the videos online, I wish to save them so I can look at them again without going online.