JavaBean not working with Oracle Forms (URGENT)

I have written a Javabean program which I invoke from Oracle Forms. The program is designed to pass a parameter from the form to the bean and get a parameter back to the form from the Javabean. The bean is called on the when-button-pressed event of a form button. The problem is, the form doesnt seem to invoke the bean at all. There seems to be no communcation between the form and the bean at runtime on-click of the form button other that all the messages in the form procedure being displayed.
The event code for the button is,
Declare
setNewMsg varchar2(2000) := 'Hello World';
getData varchar2(2000);
BeanHdl Item;
Begin
BeanHdl := find_item('Block3.MYBEAN');
If NOT ID_NULL(BeanHdl) Then
          Message('Before Set');
          SET_CUSTOM_PROPERTY(BeanHdl,1,'setMessage',setNewMsg);
          Message('Before Get');
          getData := GET_CUSTOM_PROPERTY(BeanHdl,1,'getMessage');
          SYNCHRONIZE;
          Message(getData);
          Message('After Get');
          Message(' ');
Else
          Message('The ID is null');
          Message(' ');
End If;
END;
The javabean code is,
package oracle.forms.beans;
import java.awt.*;
import java.io.*;
import java.beans.*;
import oracle.forms.ui.*;
import oracle.forms.properties.*;
import oracle.forms.handler.*;
import oracle.ewt.lwAWT.*;
public class SimpleTestBean extends VBean { 
public static final ID SETMESSAGE = ID.registerProperty("setMessage");
public static final ID GETMESSAGE = ID.registerProperty("getMessage");
private String msg = "";
public String newMessage() {
     return msg;
public Object getProperty(ID id) { 
     try { 
          if (id == GETMESSAGE) { 
               return newMessage();
return super.getProperty(id);
catch (Exception e) { 
     e.printStackTrace();
return null;
public boolean setProperty(ID id, Object value) { 
     try { 
          if (id == SETMESSAGE) { 
          msg = (String) value;
return super.setProperty(id, value);
catch (Exception e) { 
     e.printStackTrace();
return false;
Thanks

Hi,
     I have written a Javabean program which I invoke from Oracle Forms. The program is designed to pass a parameter from Oracle Form(Ver 6i) to the java bean and get a parameter back to the form. The Javabean is called on "When-Button-Pressed" event of a Form button. The problem is, Form doesn't seem to invoke the bean at all. There seems to be no communication between the Oracle Form and the Javabean at runtime.
     On-click of the Form button though all test messages in the Form trigger are being displayed (Even message before and after the Set_Custom_Property & Get_Custome_Property). The only issue is the Form variable doesn't show the returned value from the bean. So the big question is - Whether the bean is invoked at all or not.
     If YES then how to check it and if NO then how to communicate with the bean from Oracle Form. I am attaching the code of Javabean and trigger code.
Thanks & Regards
NOTE : All the ClassPath for the JavaBean has been set properly and the Form is also recognizing the Implementation Class for the Javabean.
     The Trigger Code is,
     --- This code is written on When-Button-Pressed trigger of Form button.
     --- The form also contains the bean area "MYBEAN", which i have referred in the code.
     Declare
          setNewMsg varchar2(2000) := 'Hello World';
          getData varchar2(2000);
          BeanHdl Item;
     Begin
     BeanHdl := find_item('Block3.MYBEAN');
     If NOT ID_NULL(BeanHdl) Then
          Message('Before Set');
          SET_CUSTOM_PROPERTY(BeanHdl,1,'setMessage',setNewMsg);
          Message('Before Get');
          getData := GET_CUSTOM_PROPERTY(BeanHdl,1,'getMessage');
          SYNCHRONIZE;
          Message(getData);
          Message('After Get');
          Message(' ');
     Else
          Message('The ID is null');
          Message(' ');
     End If;
     END;
The Bean Code is,
     package oracle.forms.beans;
     import java.awt.*;
     import java.io.*;
     import java.beans.*;
     import oracle.forms.ui.*;
     import oracle.forms.properties.*;
     import oracle.forms.handler.*;
     import oracle.ewt.lwAWT.*;
     public class SimpleTestBean extends VBean { 
     public static final ID SETMESSAGE = ID.registerProperty("setMessage");
     public static final ID GETMESSAGE = ID.registerProperty("getMessage");
     private String msg = "";
     public String newMessage() {
          return msg;
     public Object getProperty(ID id) { 
          try { 
               if (id == GETMESSAGE) { 
                    return newMessage();
return super.getProperty(id);
     catch (Exception e) { 
          e.printStackTrace();
          return null;
     public boolean setProperty(ID id, Object value) { 
          try { 
          if (id == SETMESSAGE) { 
          msg = (String) value;
return super.setProperty(id, value);
     catch (Exception e) { 
          e.printStackTrace();
          return false;
------------------------------------------------------------------------------------------

Similar Messages

  • JavaBean not working with Oracle 9i / Forms 6i

    I have written a Javabean program which I invoke from Oracle Forms. The program is designed to pass a parameter from the form to the bean and get a parameter back to the form from the Javabean. The bean is called on the when-button-pressed event of a form button. The problem is, the form doesnt seem to invoke the bean at all. There seems to be no communcation between the form and the bean at runtime on-click of the form button other that all the messages in the form procedure being displayed.
    The event code for the button is,
    Declare
    setNewMsg varchar2(2000) := 'Hello World';
    getData varchar2(2000);
    BeanHdl Item;
    Begin
    BeanHdl := find_item('Block3.MYBEAN');
    If NOT ID_NULL(BeanHdl) Then
    Message('Before Set');
    SET_CUSTOM_PROPERTY(BeanHdl,1,'setMessage',setNewMsg);
    Message('Before Get');
    getData := GET_CUSTOM_PROPERTY(BeanHdl,1,'getMessage');
    SYNCHRONIZE;
    Message(getData);
    Message('After Get');
    Message(' ');
    Else
    Message('The ID is null');
    Message(' ');
    End If;
    END;
    The javabean code is,
    package oracle.forms.beans;
    import java.awt.*;
    import java.io.*;
    import java.beans.*;
    import oracle.forms.ui.*;
    import oracle.forms.properties.*;
    import oracle.forms.handler.*;
    import oracle.ewt.lwAWT.*;
    public class SimpleTestBean extends VBean {
    public static final ID SETMESSAGE = ID.registerProperty("setMessage");
    public static final ID GETMESSAGE = ID.registerProperty("getMessage");
    private String msg = "";
    public String newMessage() {
    return msg;
    public Object getProperty(ID id) {
    try {
    if (id == GETMESSAGE) {
    return newMessage();
    return super.getProperty(id);
    catch (Exception e) {
    e.printStackTrace();
    return null;
    public boolean setProperty(ID id, Object value) {
    try {
    if (id == SETMESSAGE) {
    msg = (String) value;
    return super.setProperty(id, value);
    catch (Exception e) {
    e.printStackTrace();
    return false;
    -------------------------------------------

    Thanks Duncan,
    The Java Bean in finally getting invoked when the jar file was set in the FORMSWEB.CGF configuration file's archive_jini variable. The console is also up and running.
    I have modified the bean code with the one u sent and put a few console output statements.
    The problem is when this form is invoked from the browser, the console output shows the bean's setProperty method being invoked too many times on-load of the form itself, which goes to the ELSE part of the code. While when-button-pressed event calls the set and get property methods properly.
    This is the console output.
    Oracle JInitiator version 1.1.8.7
    Using JRE version 1.1.8.7
    User home directory = C:\Documents and Settings\Administrator
    Opening http://192.168.11.136:7778/forms60java/oracle/forms/registry/Registry.dat no proxy
    Opening http://192.168.11.136:7778/forms60java/oracle/forms/registry/default.dat no proxy
    connectMode=Socket
    serverHost=192.168.11.136
    serverPort=9001
    Forms Applet version is : 60813
    Inside getProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside getProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty ELSE
    Inside setProperty IF
    Inside getProperty IF
    The bean code is,
    package oracle.forms.beans;
    import java.awt.*;
    import java.io.*;
    import java.beans.*;
    import oracle.forms.ui.*;
    import oracle.forms.properties.*;
    import oracle.forms.handler.*;
    import oracle.ewt.lwAWT.*;
    public class SimpleTestBean extends VBean { 
    public static final ID SETMESSAGE = ID.registerProperty("setMessage");
    public static final ID GETMESSAGE = ID.registerProperty("getMessage");
    private String msg = "";
    public String newMessage() {
         return msg;
         public Object getProperty(ID id) {
                   if (id == GETMESSAGE) {
                        System.out.println("Inside getProperty IF");
                        return newMessage();
                   }else {
                        System.out.println("Inside getProperty ELSE");                
                        return super.getProperty(id);
              public boolean setProperty(ID id, Object value) {
                   if (id == SETMESSAGE) {
                        msg = value.toString();
                        System.out.println("Inside setProperty IF");                     
                        return true;
                   }else {
                        System.out.println("Inside setProperty ELSE");                                         return super.setProperty(id, value);
    Thanks in Advance.

  • Mouse Scroll Not Working in oracle forms

    Hi,
    I Created a master and detail block.. In Detail block following Properties i set
    No. of Records to be displayed : 10
    Scroll bar : no
    Without having the scroll bar i wannt to check all the records in the detail Block.
    for this i created key_scrolldown trigger in form levl called thye builtin
    SCROLL_DOWN;
    i'm using Oracle 10g.. JIniator for Running Oracle Forms
    applying this Coding this function is not working..
    Can anybody tell this How to oversome from this...???
    Cheers.

    What version of Oracle Forms are you using? You should always include this in your posts. :)
    Mouse scrolling is only enabled in Web runtime of Forms - so you must be using Forms 9i or higher.
    Does JRE Support mouse scrolling function?If memory serves, Mouse scroll was first introduced in Java 1.5.0. Therefore, if you want enble the mouse scroll wheel in Forms, you must be using JRE 1.5.0 or higher. I strongly recommend you use Java 1.6.0_33 or higher - but do not use Java 1.7.0 as it has not been certified with Oracle Forms yet.
    In order to use the JRE over the Jinitiator, you must modify your configuration to enable use of the JRE. Please take a look at Oracle 10gR2 Forms Services – Using Sun's Java Plug-in. This Oracle White Paper is for Forms 10g Release 2, but the instructions are basically the same for 9i and 11g as well.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • PreparedStatement not working with Oracle

    Hi All,
    I am using preparedStatement in my JDBC code to fetch/insert values from oracle9i database.
    I am checking condition like if a given record does not exist then insert it else update it.
    First time it works when there is no row in database, however for subsequent run it's not able to return me the result though that row exist in database and this resulting in DuplicateKeyException becuase it try to create the row in db again.
    The code is working fine for MySQL DB2 and SQLServer but doesn't work in case oracle 9i
    Here is mycode
    //problem is here 1st time it works next time it is not retunring true though record is there in DB.
    if(isItemExist("1","CORP"))
    updateItem("1","CORP","DESC1");
    else
    insertItem("1","CORP","DESC1");
    public boolean isItemExist(String itemid, String storeid)
    String FIND_SQL = "SELECT item_desc from item where item_id = ? and store_id = ? ";          
    c = utils.getConnection();
    ps = c.prepareStatement();
    int i = 1;
    ps.setString(i++, storeid);
    ps.setString(i++, itemid);
    rs = ps.executeQuery();
    if(rs.next()){
         return true;
    utils.close(c, ps, rs);
    else{
         return false;
    utils.close(c, ps, rs);
    public void createItem(String itemid, String storeid, String item_desc)
    String INSERT_SQL = "INSERT INTO item(item_id,store_id,item_desc)values(?, ?, ?)";
    c = utils.getConnection();
    ps = c.prepareStatement();
    int i = 1;
    ps.setString(i++, itemid);
    ps.setString(i++, storeid);
    ps.setString(i++, item_desc);
    ps.executeUpdate();
    utils.close(c, ps, null);
    public void updateItem(String itemid, String storeid, String item_desc)
    String INSERT_SQL = "UPDATE item SET item_desc = ?, store_id=? WHERE item_id = ?";
    c = utils.getConnection();
    ps = c.prepareStatement();
    int i = 1;
    ps.setString(i++, item_desc);
    ps.setString(i++, storeid);
    ps.setString(i++, itemid);
    ps.executeUpdate();
    utils.close(c, ps, null);
    Kindly suggest what's wrong with code. because same code works with other databse like SQL Server, MySQL but it is not working with oracle9i.

    if(isItemExist("1","CORP"))
    updateItem("1","CORP","DESC1");
    else
    insertItem("1","CORP","DESC1");
    String FIND_SQL = "SELECT item_desc from item where item_id = ? and store_id = ? ";
    ps.setString(i++, storeid);
    ps.setString(i++, itemid);
    String INSERT_SQL = "INSERT INTO item(item_id,store_id,item_desc)values(?, ?, ?)";
    ps.setString(i++, itemid);
    ps.setString(i++, storeid);
    ps.setString(i++, item_desc);
    String INSERT_SQL = "UPDATE item SET item_desc = ?, store_id=? WHERE item_id = ?";
    ps.setString(i++, item_desc);
    ps.setString(i++, storeid);
    ps.setString(i++, itemid);My first guess, looking at the above snippets, would be that the item_id field is a number and not a string and so you should be calling ps.setInt instead of ps.setString when setting that parameter.
    This is only a guess, however, since you have not posted what the actual error is, which will probably give a hint to what the actual error is.

  • Oracle 11g XE not working with oracle BI publisher 10g after enabling ACL

    Hello,
    I previously work with oracle 10gXE and Oracle BI publisher 10g and it work fine. now i install oracle 11g XE and try to configure it with oracle Bi Publlisher, it show this error
    "ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1324 ORA-12570: TNS:packet reader failure" after runing the ACL package to neable network service.
    on the database.
    Please can any body tell be why this is not working. Tanx.

    You'll need to add the apex engine owner to the ACL (Access Control List). Depending on your version of apex the user name varies. i.e. 4.0 is APEX_040000
    See Joel's blog for info about the ACL and APEX.
    [http://joelkallman.blogspot.com/2010/10/application-express-network-acls-and.html]

  • Web Report not working with parameter form

    Hi,
    I have a report which has got a parameter form. This report is
    running fine in client/server environment. But when I deploy the
    same report on web (CGI) using PARAMFORM=YES, I am getting the
    parameter form and after pressing the SUBMIT button I am getting
    a blank report under the following two cases even though I have
    data for that query:
    CASE1: <input type="hidden" name="desformat" value="html">
    then I am getting the report with no data retrieved.
    CASE2: <input type="hidden" name="desformat" value="pdf">
    then I am getting completely blank report (no logo, no column
    titles, etc.)
    See the HTML code below. Remember, the same thing is running
    fine in client/server environment. Moreover, if I make a HTML-
    coded form for the report then everything on the client's
    browser is running fine. But this is not what we want, 'coz we
    are running the "BEFORE PARAMETER FORM" trigger in the report.
    So, should I conclude that web-reports does not work with the
    parameter forms?? Is it a bug???
    Regards
    Moiz
    ----------HTML Code------------------
    <form action="http://pc-oracle1.ri.kfupm.edu.sa/cgi-
    bin/rwcgi60.exe">
    Select the Weekend Date for which you would like to see your
    Timesheet report
    <input type="hidden" name="server" value="repserver">
    <input type="hidden" name="report" value="timesheet.rdf">
    <input type="hidden" name="userid" value="696122/696122@ors">
    <input type="hidden" name="destype" value="cache">
    <input type="hidden" name="desformat" value="html">
    <input type="hidden" name="paramform" value = "yes">
    <input type="submit" value="Run Report">
    </p>
    </form>
    -------HTML Code END------------------
    null

    No pal, that's not the problem. The problem lies with the
    "BEFORE PARAMETER FORM" report trigger on the web. Check this
    out on ur report server and u will understand my problem.
    Moiz
    Ramonito Te (guest) wrote:
    : I think the cause is the missing question mark after
    rwcgi60.exe.
    : Anyway here is my html file that runs under cgi. Hope this
    helps.
    : <HTML>
    : <!--Form Action is RWCGI60 URL-->
    : <FORM METHOD=POST
    : ACTION="http://ntserver1/ows-bin/rwcgi60.exe?" METHOD="POST">
    : <!--Parameters not exposed to user are hidden-->
    : <INPUT name=server type=hidden value="ReportsServer">
    : <INPUT name=paramform type=hidden value="yes">
    : <CENTER><H1>Set Reports Multi-tier Server Parameters </H1>
    Report Name: <INPUT name=report type=text value="c:
    : \orant\webdemo\deptemp.rdf">
    : Database Connection: <INPUT name=userid type=text
    : value="scott/tiger@orcl81">
    : <INPUT name=destype type=hidden value="cache">
    : Output Format: <SELECT name=desformat> <OPTION value=HTMLCSS
    : selected> HTMLCSS <OPTION
    : alue=PDF> PDF </SELECT>
    : <HR><INPUT type=submit value="Run Report!">
    : </CENTER> </FORM> </HTML>
    : lue="Run Report!">
    : </CENTER> </FORM> </HTML>
    : M. Moizuddin (guest) wrote:
    : : Hi,
    : : I have a report which has got a parameter form. This report
    : is
    : : running fine in client/server environment. But when I deploy
    : the
    : : same report on web (CGI) using PARAMFORM=YES, I am getting
    the
    : : parameter form and after pressing the SUBMIT button I am
    : getting
    : : a blank report under the following two cases even though I
    : have
    : : data for that query:
    : : CASE1: <input type="hidden" name="desformat" value="html">
    : : then I am getting the report with no data retrieved.
    : : CASE2: <input type="hidden" name="desformat" value="pdf">
    : : then I am getting completely blank report (no logo, no
    column
    : : titles, etc.)
    : : See the HTML code below. Remember, the same thing is running
    : : fine in client/server environment. Moreover, if I make a
    HTML-
    : : coded form for the report then everything on the client's
    : : browser is running fine. But this is not what we want, 'coz
    we
    : : are running the "BEFORE PARAMETER FORM" trigger in the
    report.
    : : So, should I conclude that web-reports does not work with
    the
    : : parameter forms?? Is it a bug???
    : : Regards
    : : Moiz
    : : ----------HTML Code------------------
    : : <form action="http://pc-oracle1.ri.kfupm.edu.sa/cgi-
    : : bin/rwcgi60.exe">
    : : Select the Weekend Date for which you would like to see your
    : : Timesheet report
    : : <input type="hidden" name="server" value="repserver">
    : : <input type="hidden" name="report" value="timesheet.rdf">
    : : <input type="hidden" name="userid" value="696122/696122@ors">
    : : <input type="hidden" name="destype" value="cache">
    : : <input type="hidden" name="desformat" value="html">
    : : <input type="hidden" name="paramform" value = "yes">
    : : <input type="submit" value="Run Report">
    : : </p>
    : : </form>
    : : -------HTML Code END------------------
    null

  • IPlanet J2EE application not working with oracle 9i but working with 7.3

    We are in a process of upgrading database from oracle 7.3 to 9i.
    We have a working application running on iPlanet Application Server with oracle 7.3 as database. We are using iPlanet Application Server's connection pooling. Our JDBC driver is classes111.zip.
    After upgrading to 9i, our application doesnt work. When I try to run a test application that uses single select statement, this the error I get: java.sql.SQLException: Invalid URL: Driver type not specified
    SQL*PLUS works fine. I havent upgraded oracle client. Do I need to upgrade the JDBC driver or oracle client?
    Any suggestions? iAS version is 6.5.

    If you are new to JSF, then I'd try and simplify the environment in which you are working as the first step to achieving a successful outcome.
    JSF 1.2 is a certified and well tested component of WLS, so we know it works. I'm not sure of the effect of all those additional modules you are adding in there -- it appears as if you have gotten a Faces implementation instantiated, but there could be some form of version difference/conflict since it can't find a method its looking for.
    Using Oracle Enterprise Pack for Eclipse (http://www.oracle.com/technology/software/products/oepe/oepe_11115.html) you can build yourself out a pretty simple JSF application to get started from and deploy it to a WLS server. This would remove all the additional libraries you currently have, provide you with a bundled applicaton to deploy and give you a pretty good environment from which you can learn and experiment with JSF.
    -steve-

  • Copy/Paste functionlity is not working in oracle forms 11g

    Hi All,
    We are using custom built big application (oracle 11g/forms 11g).
    1. And few user are not able to copy/paste from oracle forms 11g to winword.And its random sometime they can ,sometime they can't .
    2. If they have problem means they have copy/paste issue and (When we close application and run it again it is working fine)
    3.it's random we are not able to re-produce in development environment.
    What i noticed both user have problem and both are using left hand mouse ,generally we use left/right they are using right/left.
    Here the Environment Detail:
    Java runtime :1.6.0_26
    Weblogic server
    oracle forms 11g
    So just wondering is there any changes required. Seniors/Guru please advise.
    Thanks!

    It is very important to make clear which direction you are going. If you are not able to copy from Forms and paste to an external application, this could be any one or more of the following:
    1. There is a problem with the JRE. Consider uninstalling ALL currentlly installed JREs and install the latest supported version 1.6.0_33
    2. There may have been an issue with the Forms version you are using. Be sure you are using 11.1.1.6 or 11.1.2.0. If not, install the latest patch.
    3. The JRE was unable to properly identify or store the digitial signature in the Forms jar file or one which you included (custom code). If you are using any customer jar files, ensure that they have been properly signed. Also be sure that JRE cache is being stored on the local client machine and not a remote location as this is not supported. If you have not altered the default, the cache is stored in the user's home directory under Application Data (AppData for Win7)
    4. Could be a mouse driver issue. Go to the mouse vendor's web site and get the latest driver for that mouse. Do not use the MS drivers.
    Example:
    C:\Users\<USER NAME>\AppData\LocalLow\Sun\Java\Deployment\cache
    So, recommendations:
    1. Uninstall all JRE versions currently installed. Install 1.6.0_33
    2. Ensure that you are using 11.1.1.6 or 11.1.2.0
    3. Clear the JRE cache. To do this close ALL open browsers and open the Java Control Panel. Look on the General tab for Temporary Internet Files > Settings > Delete Files > Ok
    4. Install the latest mouse driver.
    5. Retest
    Edited by: Michael Ferrante (Oracle) on Jul 25, 2012 2:58 PM

  • Client_ole not working on oracle forms 11g

    hello,,,
    I have configured webutil in forms 11g ( Doc ID : 1093985.1) step by step and finally
    i installed webutil demo from ( Doc ID : 1272222.1)
    When I test it works fine , everything works fine except OLE --> write to MS Word , when i enter some text and pressed on it ,nothing happening ulness if i check or unchecked "Silent?" .
    img :: -------------------------------> http://www.orafaq.com/forum/fa/10911/165137/
    My platform :
    Red Hat 4
    Weblogic 10.3.6
    Forms and reports 11g
    Any help

    It is very important to make clear which direction you are going. If you are not able to copy from Forms and paste to an external application, this could be any one or more of the following:
    1. There is a problem with the JRE. Consider uninstalling ALL currentlly installed JREs and install the latest supported version 1.6.0_33
    2. There may have been an issue with the Forms version you are using. Be sure you are using 11.1.1.6 or 11.1.2.0. If not, install the latest patch.
    3. The JRE was unable to properly identify or store the digitial signature in the Forms jar file or one which you included (custom code). If you are using any customer jar files, ensure that they have been properly signed. Also be sure that JRE cache is being stored on the local client machine and not a remote location as this is not supported. If you have not altered the default, the cache is stored in the user's home directory under Application Data (AppData for Win7)
    4. Could be a mouse driver issue. Go to the mouse vendor's web site and get the latest driver for that mouse. Do not use the MS drivers.
    Example:
    C:\Users\<USER NAME>\AppData\LocalLow\Sun\Java\Deployment\cache
    So, recommendations:
    1. Uninstall all JRE versions currently installed. Install 1.6.0_33
    2. Ensure that you are using 11.1.1.6 or 11.1.2.0
    3. Clear the JRE cache. To do this close ALL open browsers and open the Java Control Panel. Look on the General tab for Temporary Internet Files > Settings > Delete Files > Ok
    4. Install the latest mouse driver.
    5. Retest
    Edited by: Michael Ferrante (Oracle) on Jul 25, 2012 2:58 PM

  • GET_FILE_NAME NOT WORKING IN ORACLE FORMS 9I

    PLEASE HELP THIS COMAND WORKING IN FORMS 5 BUT NOT
    WORKING IN FORMS 9I TO OPEN THE DAILOG BOX AND GET IMAGE FILES
    TO SAVE ON FORMS 9I PLEASE HELP.
    declare
    salfile varchar2(255);
    begin
    salfile:=get_file_name('C:\emp\',NULL,'JPG FILES (*.JPG)|*.JPG|','IMAGE LIST');
    read_image_file(SALFILE,'ANY','ISLAM.EMP_IMAGE');
    END;
    THANKS & REGARDS.
    M.Z.ISLAM

    Forms 5 is a client/server application, so it looks for files on your local c: drive.
    Forms 9i is a web application, so in principle it will now look on the server's c: drive.
    However, get_file_name is not a standard Forms procedure. My guess it that it is one of your own procedures and it uses the d2kwutil library. This library won't work in a web environment.
    If you want to do something with files on your local PC in a web envirionment, you will have to use webutil.

  • GetObject(int, Map) not working with oracle JDBC

    I'm using Oracle and I'd like to get Date fields as Timestamps since an Oracle date column includes time. I'm trying to use getObject(int, Map) to map the types to Java objects, but it's not working. This is my code:
         public static final HashMap oracleMap = new HashMap();
         static{
              try{
                   oracleMap.put( "DATE", Class.forName("java.sql.Timestamp") );
                   oracleMap.put( "NUMBER", Class.forName("java.math.BigDecimal") );
                   oracleMap.put( "VARCHAR2", Class.forName("java.lang.String") );
                   oracleMap.put( "CLOB", Class.forName("java.sql.Clob") );
                   oracleMap.put( "LONG", Class.forName("java.lang.String") );
              }catch(Exception e){
                   IllegalStateException ise = new IllegalStateException("Oracle type mapping failed.");
                   ise.initCause(e);
                   throw ise;
         }And
                        BASE.println("rs.getClass().getName(): "+rs.getClass().getName());                                        
                        BASE.println("rs.getMetaData().getColumnTypeName(i): "+rs.getMetaData().getColumnTypeName(i));
                        if(rs.getClass().getName().startsWith("oracle")) valObj = rs.getObject(i, DOMTools.oracleMap);                    
                        else valObj = rs.getObject(i);                    
                        BASE.println("valObj.getClass().getName(): "+valObj.getClass().getName());Here's a snippet of my output that illustrates the code not working:
    rs.getClass().getName(): oracle.jdbc.driver.OracleResultSetImpl
    rs.getMetaData().getColumnTypeName(i): DATE
    valObj.getClass().getName(): java.sql.Date
    Anyone know if this is a driver issue? Anyone had luck doing this with Oracle?
    Thanks.

    Well, I'd like it to be java.sql.Timestamp instead of
    java.sql.Date. My actual type is an oracle "DATE".
    Are you saying the Map key for this would be
    "TIMESTAMP" and that by default it maps to
    java.sql.Date? Doesn't seem like that makes sense.I am saying that "TIMESTAMP" is not an oracle value but is instead a JDBC value. Thus it is up to to the driver, not you, to determine what oracle types map to the JDBC type.

  • H:inputtext not working with multiple forms in JSF2.2

    h:inputText is not working in the latest JSF2.2 with multiple forms. I have 2 forms
    form1 have: one command button and one input text
    form2 has: one input text and one output label
    on click of command button in form1, i am rendering the form2(both outputlabel and input text).
    but only output label is rendered properly with correct values (corresponding getter method gets called and value is displaying) but the input text is not calling the corresponding getter method hence showing null.
    Note: we noticed this issue only if we use multiple forms, within single form its working fine. also it worked fine in JSF2.0
    Version used: JSF api - 2.2 (com.sun.faces) JSF impl - 2.2 (com.sun.faces)
    let me know if anyone have solution to handle this.
    the forms are not nested and both the beans are in View scope.  
    <h:form id="form1" prependId="false">
    <a4j:commandLink id="actionEdit" title="Click" action="#{bean.action}" 
    render="paymentInstructionDetail" styleClass="iconLarge edit" />
    </h:form>
    <h:form id="form2" prependId="false">
      <a4j:outputPanel ajaxRendered="true" id="paymentInstructionDetail">
      <h:inputText value="#{bean1.amount}" id="sample"/>
      <h:outputLabel value="#{bean1.amount}" id="sampleLabel"/>
     </a4j:outputPanel>
    </h:form>

    Your link doesn't work. Do you mind reporting it?

  • cfselect not working with flash form

    I have searched the forum and google to find a solution -
    I've tried what's been suggested (ie - mappings of /CFIDE, adding
    /CFIDE to the site root, etc.) nothing has worked. This is only
    happening in my production boxes (two identical setups, running in
    parallel) -
    The form loads, but any options I define inside
    <cfselect> will not show.. here's the basic code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <cfform name="theForm" format="Flash" width="300"
    height="200" accessible="yes">
    <cfselect label="Type: " name="feedbackType" width="200"
    enabled="yes" required="yes">
    <option value="">Select</option>
    <option value="WEB">Our Website</option>
    <option value="ACCOUNT">Your Account</option>
    <option value="COMPLAINT">A Complaint</option>
    <option value="GENERAL">General Comment</option>
    <option value="OTHER">Other</option>
    </cfselect>
    </cfform>
    </body>
    </html>
    Same code works on my localhost (development box) - so I'm
    sure it's some setting I'm missing or messed up in the production
    servers. I have checked the IIS settings as well as the mappings in
    CF admin, both have /CFIDE defined. I've even added a mapping to
    the /CFIDE within the site root.
    I'm currently running CFMX 7.0.2 on Server 2003 with IIS 6
    Please help!!

    More info...
    When I call the page locally...
    http://flush/testFlash.cfm
    the form works perfectly.
    but when I call the page using the domain...
    http://www.mydomain.com/testFlash.cfm
    the <cfselect> will not work.

  • DDE.initiate is not working in oracle forms 10g

    Previously i have used DDE for uploading the data from excel to DB in oracle forms 10g.now it is throwing non-oracle exception at DDE.intiate.
    could you please help me to solve this issue.
    i use the below code
    APPLICATION := OLE2.CREATE_OBJ('EXCEL.APPLICATION');
         ole2.set_property(application,'Visible','false');
         WORKBOOKS := OLE2.GET_OBJ_PROPERTY(APPLICATION,'WORKBOOKS');
         ARGS := OLE2.CREATE_ARGLIST;
         OLE2.ADD_ARG(ARGS,:PARAMETER.P_SERVER_FILE_NAME);
         WORKBOOK := OLE2.GET_OBJ_PROPERTY(WORKBOOKS,'OPEN',ARGS);
         OLE2.DESTROY_ARGLIST(ARGS);
         WORKSHEETS := OLE2.GET_OBJ_PROPERTY(WORKBOOK,'WORKSHEETS');
         WORKSHEET := OLE2.GET_OBJ_PROPERTY(APPLICATION,'ACTIVESHEET');     
         M_CONVID := DDE.INITIATE('EXCEL',:PARAMETER.P_SERVER_FILE_NAME);

    Hello,
    Do not use DDE.intiate.Comment that line.As per your code the file is already open.
    Here is a good example in this metalink note:
    How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1)
    Regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • Host('sqlldr') is not working in oracle forms 10g

    oracle database version:10.1.2.0
    oracle forms version:10g
    client ans server are on the same machine.
    when i am trying to load the file in to oracle,i wrote the when-button-pressed trigger as
    host('sqlldr');
    when i run the form its not giving any result.
    i tried by using batch file also itn is giveing the error like
    message 2100 not found

    What happens when you run "SQLLDR" from a command window? It sounds like the directory where the SQLLDR executable is located is not in your PATH. You can either add it to your path or fully qualify the path to the executable as Christian suggests.
    Craig...

Maybe you are looking for

  • User Defaults - Not saved

    Hi All, We are working on SPM 2.1, SP5. Our end users are having a issue while saving the user defaults and the changes are not getting reflected post saving. This issue doesnt seem like webservice as I could do it using my ID, i feel it is more of a

  • ORacle 9i & form builder - XP sp2

    I installed Oracle9i in my xp sp2 machine, I could able to log into the database using system/manager The n I installed forms builder 6i, in the same machine, But now I cannot log into server either through SQL plus or Forms Builder-file-connet I am

  • Spry Accordion - Troubles

    Hello fellow developers! I am having some problems with my SPRY Accordion. I have ruined the default CSS file for the Spry Accordion (spryAccordion.css) I have changed the settings and now made a mess. The problem seems to be with Mozilla Firefox mos

  • Create partition to upgrade OS 10.6.8 to 10.8.5?

    ++++++++++++++++++++++++ Model Name: Mac Pro Model Identifier: MacPro3,1 Processor Name: Quad-Core Intel Xeon Processor Speed: 2.8 GHz Number Of Processors: 2 Total Number Of Cores: 8 L2 Cache (per processor): 12 MB RAM Memory: 18 GB Graphics card: A

  • Upgrading to Professional Subscription

    Hello Everyone, I am contemplating purchasing the proffessional subscription and wanted to clarify a few points first. If i purchase an annual proffessional Subscription can i :- 1) Publish as many folios to apple and android as i like in that period