Webutil Exception

I am using webutil function WEBUTIL_FILE.FILE_EXISTS function to check the existence of the file. The problem is if there is no file in the specified path the application throws an exception defined as WHEN OTHERS . As the WHEN OTHERS is so generic, I need to capture the exact webutil exception if no file exist.
Please suggest.
Thanks in advance.

I have a WHEN OTHERS EXCEPTION clause in the block in which the webutil fucntion is called. If the file is not present then the WHEN OTHERS EXCEPTION is raised
DECLARE
a boolean :=NULL;
BEGIN
a:=webutil_file.file_exists('FILE PATH');
EXCEPTION
WHEN OTHERS THEN
show_alert('ALWAYS THIS ERROR SHOWN')
END;
I am always getting 'ALWAYS THIS ERROR SHOWN' message and the application terminates. I want to trap the exact exception and the application should proceed further.
Any ideas are welcome. Thanks in advance.

Similar Messages

  • How does one catch WebUtil exceptions?

    We are automating Microsoft Word using the CLIENT_OLE2 built-in. In some cases, our requirements demand that Word be running in a visible window. One of our processes automates the same Word session repeatedly -- when a user unwittingly closes Word, and our process attempts to further automate the now-closed Word session, exception WUO-714 is raised, and an alert is displayed.
    The WebUtil documentation indicates that logging can be configured silently log exceptions without an alert being displayed, but I cannot find a way to actually catch them. Our process could recover gracefully from the scenario described above by simply relaunching Word -- if only we could catch the exception!
    Has anyone else already figured out to accomplish this?
    Thanks,
    Eric Adamson
    State of Michigan

    Herzliche Begrüßen Gerd,
    Thanks for your reply -- the error occurs in a PL/SQL block. Since my initial post, I have discovered that my test code contained a WHEN OTHERS THEN NULL statement. (When coding blocks, I often complete them with NULL statements, as I compile very often, to simplify tracking down errors. This strategy works wonderfully, when I remain focused, but the distractions of researching WebUtil errors evidently led me to overlook my mistake. Perhaps others may learn from my embarrassing lesson.)
    In any case, I am now able to catch the exception, and to handle it appropriately. Most importantly, readers should note that it was necessary to change the WebUtilErrorMode entry in FORMSWEB.CFG. By default WebUtilErrorMode=Alert -- this causes the error alerts to pop up, regardless of whether/not the exception ultimately gets handled. I have set WebUtilErrorMode=Console.
    Thanks for reading, and congratulations on winning the match with Costa Rica!
    Regards,
    Eric Adamson
    Lansing, Michigan

  • Catching webutil exception

    Hi all,
    I am using Webutil library within form10g, the problem that i got is that when the user clicks cancel to save a file, the non-oracle 302000.
    the code where the error apears is this:
    fic_name := WEBUTIL_FILE.FILE_SAVE_DIALOG('',fic_name,'csv files(*.csv)|*.csv|',Save File');
    If the user clicks to save the file, everything goes perfect, but if he clicks 'Cancel', then the error appears.
    thx in advance!

    Hi,
    I am using Webutil library within form10g, the problem that i got is that when the user clicks cancel to save a file, the non-oracle 302000.the code where the error apears is this:
    fic_name := WEBUTIL_FILE.FILE_SAVE_DIALOG('',fic_name,'csv files(*.csv)|*.csv|',Save File');If the user clicks to save the file, everything goes perfect, but if he clicks 'Cancel', then the error appears.
    >
    It is not that line but how you handle the cancel event after this line that counts.
    Do you have a line similar to the one below to deal with cancel button clicked event?
    if fic_name is null then .... -- this condition catches No file was selected or Cancel was clicked event.If not, time you added it and handled the Cancel button processing on that condition.
    Cheers,

  • Exception while running webutil demo

    Hi,
    I am facing problem with a webutil unit. when I use client_tool_env.getvar function
    client_tool_env.getvar('NLS_LANG',:builtins.tool_env)
    +(under BUILTIT->NLSLANG (button) of webutil DEMO)+
    I get this exception in the Java console and the webutil package stops working. Can you tell me from the console readings what could possibly have gone wrong.
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Dd
    Proxy Configuration: no proxy
    JAR cache enabled
         Location: C:\Documents and Settings\Dd\Oracle Jar Cache
         Maximum size: 50 MB
         Compression level: 0
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    q:   hide console
    s:   dump system properties
    t:   dump thread list
    x:   clear classloader cache
    0-5: set trace level to <n>
    Loading http://dd-fd704ff99925:8889/forms/java/frmall_jinit.jar from JAR cache
    Loading http://dd-fd704ff99925:8889/forms/java/frmwebutil.jar from JAR cache
    Loading http://dd-fd704ff99925:8889/forms/java/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0
    2008-Sep-11  13:12:17.859 ERROR>WUC-18 [URLDownload.pullFile()] Invalid URL e:\oracle_developer_suite\forms/jacob.dll
    2008-Sep-11  13:12:17.906 ERROR>WUC-18 [URLDownload.pullFile()] Invalid URL e:\oracle_developer_suite\forms/JNIsharedstubs.dll
    2008-Sep-11  13:12:17.937 ERROR>WUC-18 [URLDownload.pullFile()] Invalid URL e:\oracle_developer_suite\forms/d2kwut60.dll
    2008-Sep-11  13:30:49.468 ERROR>WUL-928 [CApiFunctions.register_function()] Library d2kwut60.dll not accessible, or does not contain function d2kwutil_GetRegKey
    2008-Sep-11  13:30:49.593 ERROR>WUL-925 [CApiFunctions.parse_funcHnd()] Object returned from object cache is not of type CFunc
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: oracle.forms.webutil.cApi.CPtr
         at oracle.forms.webutil.cApi.CParamList.toArray(Unknown Source)
         at oracle.forms.webutil.cApi.CApiFunctions.invokeCApi(Unknown Source)
         at oracle.forms.webutil.cApi.CApiFunctions.getProperty(Unknown Source)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    this is an issue with the virtual directory. Check this document.
    [Webutil Debugging  Document|http://www.google.com/search?hl=en&q=webutil+debugging+alexyscorp&aq=f&oq=]

  • Webutil - client_get_file_name - java-exception

    Hello
    i'm using Forms 9.0.4 with webutil 1.0.5.
    when i open a file-dialog with
    client_get_file_name ( 'c:\temp', null, '(JPEG-Files)|*.jpg|(All Files)|*.*', 'my headline', open_file, true );The java-Console have the following output:
    java.lang.StringIndexOutOfBoundsException: String index out of range: 40
    at org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterator.java:90)
    at org.apache.regexp.RE.matchNodes(RE.java:1161)
    at org.apache.regexp.RE.matchNodes(RE.java:1376) 20 times or more
    at org.apache.regexp.RE.matchAt(RE.java:1448)
    at org.apache.regexp.RE.match(RE.java:1498)
    at org.apache.regexp.RE.match(RE.java:1468)
    at org.apache.regexp.RE.match(RE.java:1561)
    at oracle.forms.webutil.file.WebUtilFileFilter.accept(WebUtilFileFilter.java:131)
    at javax.swing.JFileChooser.accept(Unknown Source)
    at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(Unknown Source)any ideas?
    thanks in advance!

    thanks Andreas!
    first i thought your right, but still i get this exception, even with the trailing |.
    it does not happen if the opened directory is empty or there are just a few files.
    and: i find out, that it does not happen, when i put (All Files)|*.*| in front, so the file-filter is not activ.
    like this:
    client_get_file_name ( 'c:\temp', null, '(All Files)|*.*|(JPEG-Files)|*.jpg|', 'my headline', open_file, true );if i activate the file-filter manually with opened dialog box the exception is not shown.

  • Webutil in Forms: Access Control Exception

    Hi
    I have a forms application (Developed using DS10g 9.0.4 on Windows) deployed on a Linux Application Server (10g 9.0.4).
    I am trying to incorporate webutil into my application.
    I believe I have configured webutil (release 1.0.5) correctly and have signed the jacob.jar and webutil.jar files and placed them on the AS box as per the release notes.
    On opening the form which uses webutil I get the following error:
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.0
    Exception occurred during event dispatching:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission java.home read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         at oracle.forms.webutil.common.VBeanCommon.<clinit>(VBeanCommon.java:130)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    This to me is indicative of something not being right with the signing process. I have confirmed that both files were signed (using 'jarsigner -verify').
    I have also tried re-signing the f90all.jar file (is this still required, or has the feature present in earlier versions of forms relating to multiple signing identities now been fixed)?
    Any ideas would be appreciated.
    Thanks
    Steve

    Just tried this again (after a gap of about a week), and it works fine.
    The only thing I can think of is that somewhere old versions of the jar files (unsigned) were being cached, probably on the application server (I had tried clearing out the cache on the client previously).

  • Java Exception Error while trying to run Webutil demo

    I am trying to run a webutil demo but failing due to the following error... the error is as
    Oracle JInitiator: Version 1.3.1.9
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Aruns
    Proxy Configuration: Manual Configuration
    Proxy: proxy1.emirates.net.ae:8080
    Proxy Overrides: <local>
    JAR cache enabled
    Location: C:\Documents and Settings\Aruns\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://hpc266:8888/forms90/java/f90all_jinit.jar from JAR cache
    Loading http://hpc266:8888/forms90/java/webutil.jar from JAR cache
    Loading http://hpc266:8888/forms90/java/jacob.jar from JAR cache
    connectMode=HTTP, native.
    Forms Applet version is : 90270
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission java.home read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         at oracle.forms.webutil.common.VBeanCommon.<clinit>(VBeanCommon.java:130)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Please help me to go forward

    What is the error message, this looks like normal informational messages
    I have signed it sucessfully..Now i am getting the
    following in the java console
    Oracle JInitiator: Version 1.3.1.9
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and
    Settings\Aruns
    Proxy Configuration: Manual Configuration
    Proxy: proxy1.emirates.net.ae:8080
    Proxy Overrides: 172.16.*,<local>
    JAR cache enabled
    Location: C:\Documents and Settings\Aruns\Oracle
    racle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading
    http://hpc266:8888/forms90/java/f90all_jinit.jar from
    JAR cache
    Cached copy of
    http://hpc266:8888/forms90/java/webutil.jar is out of
    date
    Cached copy: Jul 4, 2005 8:50:04 AM
    Server copy: Jul 4, 2005 8:52:15 AM
    Downloading
    http://hpc266:8888/forms90/java/webutil.jar to JAR
    cache
    Cached copy of
    http://hpc266:8888/forms90/java/jacob.jar is out of
    date
    Cached copy: Jul 4, 2005 8:50:16 AM
    Server copy: Jul 4, 2005 8:51:59 AM
    Downloading http://hpc266:8888/forms90/java/jacob.jar
    to JAR cache
    connectMode=HTTP, native.
    Forms Applet version is : 90270
    Can anybody pls help me in this issue

  • WUC-015 (WEBUTIL inits in simple form, not busy form, except from button)

    A busy form always gets a WUC-015 when first touching a WEBUTIL function via a timer. It does not matter how long the timer is set for. A simple form with the WEBUTIL setup works when initialized from a timer. The busy form has no problems if the first time I touch the WEBUTIL functions is behind a button. I have tried shuffling the WEBUTIL block around but without effect. I even tried trapping the error and retrying with no joy.
    Is there a sure-fire way to initalize at startup without getting this error?
    Message was edited by:
    ow000412

    SOLVED!
    I had Form A doing a OPEN_FORM with NO_ACTIVATE on Form B. Form B had a WEBUTIL (first) reference in a timer (to allow (I read) Webutil beans to initialize). Although Form B's W-N-F-I fired, and the timers were lauched, WEBUTIL would not initialize completey unless it had focus! So changing the OPEN_FORM to be ACTIVATE seems to do the trick. [Duncan is this a bug?]

  • WUO-709: Unable to get Property: Open == Forms application using Webutil

    Hi everyone,
    I have configured Webutil and tested a demo application for loading excel data into a forms application. The application works just fine. Here is the code:
    DECLARE
    application Client_OLE2.Obj_Type;
    workbooks Client_OLE2.Obj_Type;
    workbook Client_OLE2.Obj_Type;
    worksheets Client_OLE2.Obj_Type;
    worksheet Client_OLE2.Obj_Type;
    filename                varchar2(2000);
    cell Client_OLE2.OBJ_TYPE;
    args Client_OLE2.OBJ_TYPE;
    cell_value varchar2(100);
    eod boolean:=false;
    j integer:=1;
    BEGIN
         -- The following set up communication with the excel spreadsheet
    application := Client_OLE2.create_obj('Excel.Application');
    Client_OLE2.set_property(application,'Visible','false');
    workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
    args := Client_OLE2.CREATE_ARGLIST;
    Client_OLE2.add_arg(args, 'c:\test\test.xls');
    workbook := Client_OLE2.GET_OBJ_PROPERTY(workbooks,'Open',args);
    Client_OLE2.destroy_arglist(args);
    worksheets := Client_OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    worksheet := Client_OLE2.GET_OBJ_PROPERTY(application,'activesheet');
    --Go to the first record
    go_block('planets');
    first_record;
    loop
              If :system.record_status <> 'NEW' then
    create_record;
              end if;
    exit when eod;
         for k in 1..3 loop --3 fields per record
         args:= Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:= Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    cell_value :=Client_OLE2.get_char_property(cell, 'Value');
    if upper(cell_value) = 'EOD' then
         eod:=true;
         Message('End of Data');
         exit;
    end if;
    --Could be done this way also ->
    /*if k =1 then
         :dept.deptno:=cell_value;
    end if;
    if k =2 then
         :dept.dname:=cell_value;
    end if;
    if k =3 then
         :dept.loc:=cell_value;
    end if;
    --Less code this way ->
    copy(cell_value,name_in('system.cursor_item'));
    next_item;
         end loop; --for
         j:=j+1;
    end loop;--main loop
    -- Release the Client_OLE2 object handles
    Client_OLE2.release_obj(cell);
    Client_OLE2.release_obj(worksheet);
    Client_OLE2.release_obj(worksheets);
    Client_OLE2.release_obj(workbook);
    Client_OLE2.release_obj(workbooks);
    Client_OLE2.invoke(application,'Quit');
    Client_OLE2.release_obj(application);
    END;
    -- cell_value :=Client_OLE2.get_num_property(cell, 'Value');
    The issue comes when I try to supply filename and path (here, c:\test\test.xls) through a file open dialog. I tried each of these:
    1.
    filename := client_get_file_name
    (directory_name => 'C:\'
    ,file_name => 'test'|| '.xls'
    ,file_filter => 'Excel (*.xls)|*.xls|'
    ,message => 'Select client side filename where App Server file will be saved'
    ,dialog_type => OPEN_FILE
    ,select_file => TRUE
    2.
    filename := Client_Get_File_Name(directory_name => 'C:\'
    ,file_name => null
    ,file_filter => null
    ,message => null
    ,dialog_type => null
    ,select_file => null
    3.
    filename := client_get_file_name ('','','','Select a file to Upload ',null,TRUE);
    On using the above, I DO get a file open box. However, after browsing and selecting a file, I am getting the error message:
    WUO-709 [OleFunctions.get_obj_property_args()] Unable to get Property: Open; Exception com.jacob.com.ComFailException: Can't map name to dispid: Open
    I have checked the documentation on 'WUO-709' but cannot seem to figure out why it's not working.
    Sorry for the lengthy description. Would greatly appreciate help on this.
    - Amit

    I forgot to mention that in the modified code, I am supplying 'filename' as:
    filename := client_get_file_name ('','','','Select a file to Upload ',null,TRUE);
    args := Client_OLE2.CREATE_ARGLIST;
    Client_OLE2.add_arg(args, filename);
    Thanks,
    Amit

  • Trying to use webutil  - Works in development, will not work on app server.

    I am having a similar problem. I have followed all the instructions from above.
    I run my code in the developer and it runs fine. If I run my code from the application server I get locked up.
    Here is the output from my java console.
    Oracle JInitiator: Version 1.3.1.28
    Using JRE version 1.3.1.28-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\BrianG.PSSI
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: C:\Documents and Settings\BrianG.PSSI\Oracle Jar Cache28
    Maximum size: 1,024 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://smprdap2.pssi.local/forms/java/frmall_jinit.jar from JAR cache
    Loading http://smprdap2.pssi.local/forms/java/frmwebutil.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 1.0.6
    Loading http://smprdap2.pssi.local/forms/java/esteelman.jar from JAR cache
    Loading http://smprdap2.pssi.local/forms/java/sticons.jar from JAR cache
    Loading http://smprdap2.pssi.local/forms/java/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Exception occurred during event dispatching:
    java.lang.NoSuchMethodError
         at oracle.forms.webutil.common.VBeanCommon.init(VBeanCommon.java:281)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    This is the configuration I an trying to use is:
    [SMT1]
    form=st_menu.fmx
    imageBase=CodeBase
    width=1020
    height=740
    separateFrame=true
    splashScreen=/forms/steelman/images/logo.gif
    background=no
    lookAndFeel=Oracle
    colorScheme=purple
    logo=/forms/steelman/images/small_logo.gif
    formsMessageListener=
    recordFileName=
    pjcRegisterApplet=oracle.forms.demos.util.RegisterCertificate
    pjcArchive=esteelman.jar
    baseHTMLjinitiator=signedjini.htm
    baseHTMLJinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    baseHTML=webutilbase.htm.
    WebUtilArchive= esteelman.jar,sticons.jar, frmall_jinit.jar, frmwebutil.jar,jacob.jar
    archive_jini=frmall_jinit.jar,esteelman.jar,sticons.jar,frmwebutil.jar,jacob.jar,
    em_mode=1
    serverApp=/steelman/conf/steelman
    envFile=C:\steelman\conf\smt1.env
    If i do not use baseHTMLjinitiator=signedjini.htm
    our application will not launch at all.

    The first problem I see is that you are using an old version of WebUtil, which is not supported for use with Forms 10.1.2.3 and is probably the cause of the problem.
    RegisterWebUtil - Loading WebUtil Version 1.0.6
    The correct versions of frmwebutil.jar and webutil.pll are applied to Developer Suite installations and can be copied to Application Server. If you do not have an iDS installation, you can install the latest Forms Bundle patch which includes the correct WebUtil files. Refer to Patch ID 9593176 and Note 1188127.1. Be sure to review the ReadMe included with the patch.
    The second problem is that you are using Jinitiator. Jinitiator has been obsolete for a long time. However, if you have some reason why you must use it, I would recommend that you at least get the last version released (1.3.1.30). This can be downloaded from within MyOracleSupport (account required) using Patch ID 7410076. If you do not have access to MyOracleSupport and you are using Forms 10.1.2.3, then you can use JRE6 (1.6.0_37). Do not attempt to use JRE7
    http://www.oracle.com/technetwork/java/javase/downloads/jre6u37-downloads-1859589.html
    You would need to install the 32bit version: jre-6u37-windows-i586.exe
    References:
    <li>Note: 566628.1
    <li>Note: 561273.1

  • How to open Dialog Box by using webutil

    Hi all,
    I am using webutil in 9i(9.0.2)
    as in the user manual i did the changes..
    except one..when i set
    baseHTMLjinitiator=d:\webutil\server\webutiljini.htm
    it gives the
    Duplicate Parameter on Command Line..
    when i commented the above baseHTMLjinitiator=d:\webutil\server\webutiljini.htm
    and run the form ..that time formd gives the following error
    oracle.forms.webutil.file.FileFunctions...
    How to solve ..this issue ?
    any help ..
    with anticipating the reply
    Regards
    A meet

    Thanks Phuong. I try it, but still does not work. I have tried the followings:
    CLIENT_HOST('CMD/C START "editor" C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt' );
    CLIENT_HOST('CMD/C START "editor" wordpad.exe D:\temp\out.txt' );
    WEBUTIL_HOST.NONBLOCKING('CMD /C C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt');
    --trang                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem in downloading a file from AS to client through form using webutil

    I am running oracle 10g sever & devloper 10g in the same machine. Almost every thing is working properly from a client PC in the network except the following aspect :-
    From client pc, through form, I have created one export(dmp file) which is being saved in the AS. Now I want this file to be downloaded from AS to this client PC.
    I have tried webutil_file.copy_file(server_filename,client_copy_name) which is not working. the error trace file says "Unable to open source file in server" & "Unable to read WebUtil configuration file".
    I have also tried webutil_file_transfer.AS_to_Client_with_progress
    which results in unsuccessful from server to client.
    I modified the webutil.cfg file as :=
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.accessControl=FALSE
    transfer.appsrv.workAreaRoot=D:\temp
    transfer.appsrv.read.1=D:\temp
    transfer.appsrv.write.1=D:\temp
    Please help me out from this situation

    hi
    Welcome to OTN.
    try to use.
    Client_host()sarah

  • Not able to write to Excel using Client_OLE2 and webutil

    Hi
    I am working on Windows 2000 Pro SP4 Oracle Forms Builder 10.1.2.0.2
    I am using webutil to invoke Excel Application .
    The following code invokes Excel application and saves in the path specified as Test_Excel and writes the "Test Data to be written" to R1C1 when I use OLE2.
    But when I replace OLE2 with Client_OLE2 the Excel file is getting created but the data is not written to the cell.
    PL/SQL :could not find program unit being called is the error.
    Can anybody help me solve this issue ?
    Thanks in advance.
    FUNCTION WRITE_TO_EXCEL(
    excel_file_name in varchar2, ---for eg.. C:\Test_Excel.xls
    buf in varchar2 ) ----Test Data to be written
    return boolean is
    application CLIENT_OLE2.OBJ_TYPE;
    workbooks CLIENT_OLE2.OBJ_TYPE;
    workbook CLIENT_OLE2.OBJ_TYPE;
    worksheets CLIENT_OLE2.OBJ_TYPE;
    worksheet CLIENT_OLE2.OBJ_TYPE;
    cell CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    begin
    application := CLIENT_OLE2.CREATE_OBJ ('Excel.Application');
    CLIENT_OLE2.SET_PROPERTY(application, 'Visible', 'True');
    workbooks := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
    workbook := CLIENT_OLE2.Invoke_Obj(workbooks, 'Add');
    worksheets := CLIENT_OLE2.Get_Obj_Property(workbook, 'Worksheets');
    worksheet := CLIENT_OLE2.Invoke_Obj(worksheets,'Add');
    args:=CLIENT_OLE2.create_arglist;
    CLIENT_OLE2.add_arg(args,1);
    CLIENT_OLE2.add_arg(args,1);
    cell:=CLIENT_OLE2.get_obj_property(worksheet, 'Cells', args);
    CLIENT_OLE2.destroy_arglist(args);
    CLIENT_OLE2.set_property(cell,'Value', buf);
    CLIENT_OLE2.release_obj(cell);
    CLIENT_OLE2.Release_Obj(worksheet);
    CLIENT_OLE2.Release_Obj(worksheets);
    args := CLIENT_OLE2.Create_Arglist;
    CLIENT_OLE2.Add_Arg(args,excel_file_name);
    CLIENT_OLE2.Invoke(workbook, 'SaveAs', args);
    CLIENT_OLE2.Destroy_Arglist(args);
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args,'Caption');
    CLIENT_OLE2.INVOKE(application,'Run',args);
    CLIENT_OLE2.destroy_arglist(args);
    CLIENT_OLE2.Release_Obj(workbook);
    CLIENT_OLE2.Release_Obj(workbooks);
    CLIENT_OLE2.Invoke(application, 'Quit');
    CLIENT_OLE2.Release_Obj(application);
    return(TRUE);
    exception
    when others then
    message (error_type||'-'||error_code||':'||error_text);
    message (' ');
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'default');
    CLIENT_OLE2.RELEASE_OBJ(application);
    CLIENT_OLE2.RELEASE_OBJ(workbooks);
    CLIENT_OLE2.RELEASE_OBJ(workbook);
    CLIENT_OLE2.release_obj(worksheet);
    CLIENT_OLE2.release_obj(worksheets);
    return(FALSE);
    END;

    What line is actually causing the error? Also, I assume you tested the exact same code which works when using straight OLE2 (and not the webutil client_ version)?
    Regards
    Grant Ronald
    Oracle Product Management

  • Forms 11g with Webutil don´t show in browser IE 9

    Hi people,
    I have a problem with Webutil. I installed th Oracle Forms/Reports 11g in Red Hat 5.5 x86_64, and when is necessary run a pure Forms, it´s works.
    Now, when I will try run a Forms with Webutil, don´t show in browser IE 9 - Win 7 64bits - Java Plug-in 1.6.0_25 Using JRE version 1.6.0_25-b04 Java HotSpot(TM) Client.
    What can be to show only a gray screen and dont show my Forms ? In java console don´t showed any error, neither in WLS_FORMS.log and forms-diagnost.log.
    My files (cfg and env) configuration is below (sorry by excess of information, but I believe the more information better):
    =========================================
    File                    Located
    =========================================
    webutil.pll               in $FORMS_PATH
    webutil.plx               in $FORMS_PATH
    webutil.olb               in $FORMS_PATH
    frmwebutil.jar          $ORACLE_HOME/forms/java
    frmall.jar               $ORACLE_HOME/forms/java
    jacob.jar               $ORACLE_HOME/forms/java
    forms_base_ie.js     $ORACLE_HOME/forms/java
    forms_ie.js               $ORACLE_HOME/forms/java
    jacob.dll               $ORACLE_HOME/forms/webutil/
    ffisamp.dll           $ORACLE_HOME/forms/webutil/
    d2kwut60.dll          $ORACLE_HOME/forms/webutil/
    JNIsharedstubs.dll     $ORACLE_HOME/forms/webutil/
    webutil.cfg               $ORACLE_INSTANCE/config/FormsComponent/forms/server/
    webutilbase.htm          $ORACLE_INSTANCE/config/FormsComponent/forms/server
    webutiljini.htm          $ORACLE_INSTANCE/config/FormsComponent/forms/server
    webutiljpi.htm          $ORACLE_INSTANCE/config/FormsComponent/forms/server
    =========================================
    Java Console Information
    =========================================
    basic: Starting applet teardown
    basic: Finished applet teardown
    basic: Starting applet teardown
    basic: Finished applet teardown
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@88d319
    basic: Plugin2ClassLoader.addURL parent called for http://machine01.br.job.com:8002/forms/java/frmall.jar
    basic: Plugin2ClassLoader.addURL parent called for http://machine01.br.job.com:8002/forms/java/frmwebutil.jar
    basic: Plugin2ClassLoader.addURL parent called for http://machine01.br.job.com:8002/forms/java/jacob.jar
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer TrustedPublisher certificate store
    security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA hasnt been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 270461 us, pluginInit dt 1187686126 us, TotalTime: 1187956587 us
    RegisterWebUtil - Loading WebUtil Version 11.1.1.4
    basic: Applet initialized
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@88d319
    basic: Applet made visible
    basic: Starting applet
    basic: completed perf rollup
    basic: Applet started
    basic: Told clients applet is started
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1b06a21
    basic: Plugin2ClassLoader.addURL parent called for http://machine01.br.job.com:8002/forms/java/frmall.jar
    basic: Plugin2ClassLoader.addURL parent called for http://machine01.br.job.com:8002/forms/java/frmall.jar
    basic: Plugin2ClassLoader.addURL parent called for http://machine01.br.job.com:8002/forms/java/frmwebutil.jar
    basic: Plugin2ClassLoader.addURL parent called for http://machine01.br.job.com:8002/forms/java/jacob.jar
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer TrustedPublisher certificate store
    security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA hasnt been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: No need to checking trusted extension for this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 270461 us, pluginInit dt 1187728773 us, TotalTime: 1187999234 us
    basic: Applet initialized
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1b06a21
    basic: Applet made visible
    basic: Starting applet
    basic: completed perf rollup
    basic: Loaded image: jar:http://machine01.br.job.com:8002/forms/java/frmall.jar!/oracle/forms/icons/splash.gif
    basic: Loaded image: jar:http://machine01.br.job.com:8002/forms/java/frmall.jar!/oracle/forms/icons/oracle_logo.gif
    basic: Loaded image: jar:http://machine01.br.job.com:8002/forms/java/frmall.jar!/oracle/forms/icons/bgnd.gif
    Forms Session ID is formsapp.14
    network: Cache entry not found [url: http://machine01.br.job.com:8002/forms/registry/oracle/forms/registry/default.dat, version: null]
    network: Connecting http://machine01.br.job.com:8002/forms/registry/oracle/forms/registry/default.dat with proxy=DIRECT
    network: Connecting http://machine01.br.job.com:8002/ with proxy=DIRECT
    The proxy host is null, and the proxy port is 0.
    Native HTTP implementation is being used for the connection.
    The connection mode is HTTP.
    network: Connecting http://machine01.br.job.com:8002/forms/frmservlet?config=flash&ifsessid=formsapp.14&acceptLanguage=en-US&ifcmd=startsession&iflocale=en-US with proxy=DIRECT
    network: Connecting http://machine01.br.job.com:8002/forms/lservlet;jsessionid=1scsTYJcjSTg2LR7JTqXv9gq9bWvRJbLzWt1FTFrk2rcp2qrGNHL!1640610756?ifcmd=getinfo&ifhost=Mxxxx&ifip=10.xx.xx.xxx with proxy=DIRECT
    network: Connecting http://machine01.br.job.com:8002/forms/lservlet;jsessionid=1scsTYJcjSTg2LR7JTqXv9gq9bWvRJbLzWt1FTFrk2rcp2qrGNHL!1640610756 with proxy=DIRECT
    Forms Applet version is 11.1.1.4
    network: Connecting http://machine01.br.job.com:8002/forms/lservlet;jsessionid=1scsTYJcjSTg2LR7JTqXv9gq9bWvRJbLzWt1FTFrk2rcp2qrGNHL!1640610756 with proxy=DIRECT
    2011-Aug-26 18:00:31.823 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2011-Aug-26 18:00:31.832 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2011-Aug-26 18:00:31.837 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2011-Aug-26 18:00:31.841 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2011-Aug-26 18:00:31.849 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2011-Aug-26 18:00:31.854 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2011-Aug-26 18:00:31.858 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2011-Aug-26 18:00:31.864 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2011-Aug-26 18:00:31.869 WUI[VBeanCommon.destroy()] WebUtil GetClientInfo Utility being removed..
    2011-Aug-26 18:00:31.870 WUF[VBeanCommon.destroy()] WebUtil Client Side File Functions being removed..
    2011-Aug-26 18:00:31.870 WUH[VBeanCommon.destroy()] WebUtil Client Side Host Commands being removed..
    2011-Aug-26 18:00:31.871 WUS[VBeanCommon.destroy()] WebUtil Session Monitoring Facilities being removed..
    2011-Aug-26 18:00:31.872 WUT[VBeanCommon.destroy()] WebUtil File Transfer Bean being removed..
    2011-Aug-26 18:00:31.872 WUO[VBeanCommon.destroy()] WebUtil Client Side Ole Functions being removed..
    2011-Aug-26 18:00:31.872 WUL[VBeanCommon.destroy()] WebUtil C API Functions being removed..
    2011-Aug-26 18:00:32.16 WUB[VBeanCommon.destroy()] WebUtil Browser Functions being removed..
    network: Connecting http://machine01.br.job.com:8002/forms/lservlet;jsessionid=1scsTYJcjSTg2LR7JTqXv9gq9bWvRJbLzWt1FTFrk2rcp2qrGNHL!1640610756 with proxy=DIRECT
    basic: Applet started
    basic: Told clients applet is started
    Dumping class loader cache...
    Live entry: key=http://machine01.br.job.com:8002/forms/java/,frmall.jar,frmwebutil.jar,jacob.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://machine01.br.job.com:8002/forms/java/-threadGroup,maxpri=4]
    Live entry: key=http://machine01.br.job.com:8002/forms/java/,frmall.jar,frmall.jar,frmwebutil.jar,jacob.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://machine01.br.job.com:8002/forms/java/-threadGroup,maxpri=4]
    Done.
    ! ======== This information above is show when I execute the forms in IE 9 ======== !
    ! ========Below information about the JRE Plugin ======== !
    Dump system properties ...
    ======== ======== ======== ========
    __jvm_launched = 109763333269
    acl.read = +
    acl.read.default =
    acl.write = +
    acl.write.default =
    awt.toolkit = sun.awt.windows.WToolkit
    browser = sun.plugin
    browser.vendor = Sun Microsystems, Inc.
    browser.version = 1.1
    file.encoding = Cp1252
    file.encoding.pkg = sun.io
    file.separator = \
    file.separator.applet = true
    http.agent = Mozilla/4.0 (Windows 7 6.1)
    http.auth.serializeRequests = true
    https.protocols = TLSv1,SSLv3
    java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob = sun.awt.windows.WPrinterJob
    java.class.path = C:\\PROGRA~2\\Java\\jre6\\classes
    java.class.version = 50.0
    java.class.version.applet = true
    java.endorsed.dirs = C:\Program Files (x86)\Java\jre6\lib\endorsed
    java.ext.dirs = C:\Program Files (x86)\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home = C:\Program Files (x86)\Java\jre6
    java.io.tmpdir = C:\Users\users-dir\AppData\Local\Temp\
    java.library.path = C:\Program Files (x86)\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Internet Explorer;;C:\Program Files (x86)\PC Connectivity Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_27\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;
    java.protocol.handler.pkgs = sun.plugin.net.protocol|com.sun.deploy.net.protocol
    java.rmi.server.RMIClassLoaderSpi = sun.plugin2.applet.JNLP2RMIClassLoaderSpi
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.6.0_25-b04
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Sun Microsystems Inc.
    java.specification.version = 1.6
    java.vendor = Sun Microsystems Inc.
    java.vendor.applet = true
    java.vendor.url = http://java.sun.com/
    java.vendor.url.applet = true
    java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.6.0_25
    java.version.applet = true
    java.vm.info = mixed mode, sharing
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Sun Microsystems Inc.
    java.vm.specification.version = 1.0
    java.vm.vendor = Sun Microsystems Inc.
    java.vm.version = 20.0-b11
    javaplugin.nodotversion = 160_25
    javaplugin.version = 1.6.0_25
    javaplugin.vm.options =
    javawebstart.version = javaws-1.6.0_25
    line.separator = \r\n
    line.separator.applet = true
    os.arch = x86
    os.arch.applet = true
    os.name = Windows 7
    os.name.applet = true
    os.version = 6.1
    os.version.applet = true
    package.restrict.access.com.sun.deploy = true
    package.restrict.access.netscape = false
    package.restrict.access.org.mozilla.jss = true
    package.restrict.access.sun = true
    package.restrict.definition.com.sun.deploy = true
    package.restrict.definition.java = true
    package.restrict.definition.netscape = true
    package.restrict.definition.org.mozilla.jss = true
    package.restrict.definition.sun = true
    path.separator = ;
    path.separator.applet = true
    sun.arch.data.model = 32
    sun.awt.warmup = true
    sun.boot.class.path = C:\Program Files (x86)\Java\jre6\lib\resources.jar;C:\Program Files (x86)\Java\jre6\lib\rt.jar;C:\Program Files (x86)\Java\jre6\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jre6\lib\jsse.jar;C:\Program Files (x86)\Java\jre6\lib\jce.jar;C:\Program Files (x86)\Java\jre6\lib\charsets.jar;C:\Program Files (x86)\Java\jre6\lib\modules\jdk.boot.jar;C:\Program Files (x86)\Java\jre6\classes;C:\\PROGRA~2\\Java\\jre6\\lib\\deploy.jar;C:\\PROGRA~2\\Java\\jre6\\lib\\javaws.jar;C:\\PROGRA~2\\Java\\jre6\\lib\\plugin.jar
    sun.boot.library.path = C:\Program Files (x86)\Java\jre6\bin
    sun.cpu.endian = little
    sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop = windows
    sun.io.unicode.encoding = UnicodeLittle
    sun.java.command = sun.plugin2.main.client.PluginMain write_pipe_name=jpi2_pid2480_pipe4,read_pipe_name=jpi2_pid2480_pipe3
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = Cp1252
    sun.management.compiler = HotSpot Client Compiler
    sun.net.client.defaultConnectTimeout = 120000
    sun.net.http.errorstream.enableBuffering = true
    sun.os.patch.level = Service Pack 1
    sun.plugin2.jvm.args = -D__jvm_launched=109763333269 "-Xbootclasspath/a:C:\\\\PROGRA~2\\\\Java\\\\jre6\\\\lib\\\\deploy.jar;C:\\\\PROGRA~2\\\\Java\\\\jre6\\\\lib\\\\javaws.jar;C:\\\\PROGRA~2\\\\Java\\\\jre6\\\\lib\\\\plugin.jar" "-Djava.class.path=C:\\\\PROGRA~2\\\\Java\\\\jre6\\\\classes" -Dsun.awt.warmup=true --- --
    trustProxy = true
    user.country = US
    user.dir = \\machine-desktop\USERS$\users-dir\Desktop
    user.home = C:\Users\users-dir
    user.language = en
    user.name = users-dir
    user.timezone = America/Sao_Paulo
    user.variant =
    ================================
    Dump deployment properties ...
    ================================
    deployment.browser.path = C:\Program Files (x86)\Internet Explorer\iexplore.exe
    deployment.browser.vm.iexplorer = true
    deployment.browser.vm.mozilla = true
    deployment.cache.enabled = true
    deployment.cache.jarcompression = 0
    deployment.cache.max.size = -1
    deployment.capture.mime.types = true
    deployment.console.startup.mode = SHOW
    deployment.control.panel.log = false
    deployment.javapi.cache.update = false
    deployment.javapi.lifecycle.exception = true
    deployment.javapi.log.filename =
    deployment.javapi.runtime.type = 0
    deployment.javapi.stop.timeout = 200
    deployment.javapi.trace.filename =
    deployment.javaws.associations = ASK_USER
    deployment.javaws.autodownload = PROMPT
    deployment.javaws.cache.update = false
    deployment.javaws.concurrentDownloads = 4
    deployment.javaws.home.jnlp.url = http://java.sun.com/products/javawebstart
    deployment.javaws.installURL = http://java.sun.com/products/autodl/j2se
    deployment.javaws.logFileName =
    deployment.javaws.muffin.max = 256
    deployment.javaws.shortcut = ASK_IF_HINTED
    deployment.javaws.ssv.enabled = true
    deployment.javaws.traceFileName =
    deployment.javaws.uninstall.shortcut = false
    deployment.javaws.update.timeout = 1500
    deployment.javaws.viewer.bounds = 280,272,720,360
    deployment.jpi.mode.new = true
    deployment.log = true
    deployment.max.output.file.size = 10
    deployment.max.output.files = 5
    deployment.mime.types.use.default = true
    deployment.proxy.bypass.local = false
    deployment.proxy.override.hosts =
    deployment.proxy.same = false
    deployment.proxy.type = 3
    deployment.repository.askdownloaddialog.show = true
    deployment.repository.enabled = true
    deployment.security.SSLv2Hello = false
    deployment.security.SSLv3 = true
    deployment.security.TLSv1 = true
    deployment.security.askgrantdialog.notinca = true
    deployment.security.askgrantdialog.show = true
    deployment.security.authenticator = true
    deployment.security.blacklist.check = true
    deployment.security.browser.keystore.use = true
    deployment.security.clientauth.keystore.auto = true
    deployment.security.expired.warning = true
    deployment.security.https.warning.show = true
    deployment.security.jsse.hostmismatch.warning = true
    deployment.security.mixcode = ENABLE
    deployment.security.notinca.warning = true
    deployment.security.password.cache = true
    deployment.security.pretrust.list = true
    deployment.security.sandbox.awtwarningwindow = true
    deployment.security.sandbox.jnlp.enhanced = true
    deployment.security.trusted.policy =
    deployment.security.validation.crl = false
    deployment.security.validation.ocsp = false
    deployment.security.validation.ocsp.publisher = false
    deployment.system.cachedir = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\SystemCache
    deployment.system.security.blacklist = C:\Program Files (x86)\Java\jre6\lib\security\blacklist
    deployment.system.security.cacerts = C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    deployment.system.security.jssecacerts = C:\Program Files (x86)\Java\jre6\lib\security\jssecacerts
    deployment.system.security.oldcacerts = C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    deployment.system.security.oldjssecacerts = C:\Program Files (x86)\Java\jre6\lib\security\jssecacerts
    deployment.system.security.trusted.certs = C:\Program Files (x86)\Java\jre6\lib\security\trusted.certs
    deployment.system.security.trusted.clientauthcerts = C:\Program Files (x86)\Java\jre6\lib\security\trusted.clientcerts
    deployment.system.security.trusted.jssecerts = C:\Program Files (x86)\Java\jre6\lib\security\trusted.jssecerts
    deployment.system.security.trusted.libraries = C:\Program Files (x86)\Java\jre6\lib\security\trusted.libraries
    deployment.system.security.trusted.publishers = C:\Program Files (x86)\Java\jre6\lib\security\trusted.publishers
    deployment.system.tray.icon = true
    deployment.trace = true
    deployment.update.mime.types = true
    deployment.user.cachedir = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\cache
    deployment.user.extdir = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\ext
    deployment.user.logdir = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\log
    deployment.user.security.blacklist = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\security\blacklist
    deployment.user.security.policy = file://C:/Users/users-dir/AppData/LocalLow/Sun/Java/Deployment/security/java.policy
    deployment.user.security.saved.credentials = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\security\auth.dat
    deployment.user.security.trusted.cacerts = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\security\trusted.cacerts
    deployment.user.security.trusted.certs = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    deployment.user.security.trusted.clientauthcerts = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\security\trusted.clientcerts
    deployment.user.security.trusted.jssecacerts = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecacerts
    deployment.user.security.trusted.jssecerts = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecerts
    deployment.user.security.trusted.libraries = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\security\trusted.libraries
    deployment.user.security.trusted.publishers = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\security\trusted.publishers
    deployment.user.tmp = C:\Users\users-dir\AppData\LocalLow\Sun\Java\Deployment\tmp
    deployment.version = 6.0
    java.quick.starter = false
    ================================
    # ================================
    # formsweb.cfg -
    # ================================
    [default]
    baseHTML=base.htm
    baseHTMLjpi=basejpi.htm
    HTMLdelimiter=%
    envFile=default.env
    escapeparams=true
    form=test.fmx
    userid=
    debug=no
    host=
    port=
    digitSubstitution=context
    otherparams=obr=%obr% record=%record% tracegroup=%tracegroup% log=%log% term=%term% ssoProxyConnect=%ssoProxyConnect%
    obr=no
    record=
    tracegroup=
    log=
    term=
    pageTitle=Oracle Fusion Middleware Forms Services
    HTMLbodyAttrs=
    HTMLbeforeForm=
    HTMLafterForm=
    serverURL=/forms/lservlet
    codebase=/forms/java
    imageBase=codebase
    width=750
    height=600
    separateFrame=false
    splashScreen=
    allowAlertClipboard=true
    disableValidateClipboard=false
    highContrast=false
    background=
    lookAndFeel=Oracle
    colorScheme=teal
    logo=
    restrictedURLparams=pageTitle,HTMLbodyAttrs,HTMLbeforeForm,HTMLafterForm,log
    formsMessageListener=
    recordFileName=
    serverApp=default
    archive=frmall.jar
    networkRetries=0
    jpi_download_page=http://java.sun.com/products/archive/j2se/6u12/index.html
    jpi_classid=clsid:CAFEEFAC-0016-0000-0012-ABCDEFFEDCBA
    jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,12
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_12
    legacy_lifecycle=false
    ssoDynamicResourceCreate=false
    ssoErrorUrl=
    ssoCancelUrl=
    ssoMode=false
    ssoProxyConnect=no
    allow_debug=false
    allowNewConnections=true
    EndUserMonitoringEnabled=false
    EndUserMonitoringURL=
    applet_name=
    enableJavascriptEvent=true
    JavaScriptBlocksHeartBeat=false
    [webutil]
    allow_debug=false
    debug=false
    form=WU_TEST_106.fmx
    allowNewConnections=false
    userid=webutil/webutil@des_tcp.world
    WebUtilArchive=frmwebutil.jar,jacob.jar,frmall.jar
    WebUtilLogging=on
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTML=webutilbase.htm
    baseHTMLjpi=webutiljpi.htm
    archive=
    lookAndFeel=oracle
    [flash]
    HTMLdelimiter=%
    envFile=flashwebn.env
    escapeparams=true
    form=flash/FLASHWEB.fmx
    userid=user/password/tns_names
    debug=no
    host=
    port=
    digitSubstitution=context
    otherparams=obr=%obr% record=%record% tracegroup=%tracegroup% log=%log% term=%term% ssoProxyConnect=%ssoProxyConnect%
    obr=no
    record=
    tracegroup=
    log=/tmp/flashweb.log
    term=
    pageTitle=Oracle Fusion Middleware Forms Services
    HTMLbodyAttrs=
    HTMLbeforeForm=
    HTMLafterForm=
    serverURL=/forms/lservlet
    codebase=/forms/java
    imageBase=codebase
    width=750
    height=600
    separateFrame=false
    splashScreen=
    allowAlertClipboard=true
    disableValidateClipboard=false
    highContrast=false
    background=
    colorScheme=teal
    logo=
    restrictedURLparams=pageTitle,HTMLbodyAttrs,HTMLbeforeForm,HTMLafterForm,log
    formsMessageListener=
    recordFileName=
    serverApp=default
    archive=frmall.jar
    networkRetries=0
    jpi_download_page=http://java.sun.com/products/archive/j2se/6u12/index.html
    jpi_classid=clsid:CAFEEFAC-0016-0000-0012-ABCDEFFEDCBA
    jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,12
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_12
    legacy_lifecycle=false
    ssoDynamicResourceCreate=false
    ssoErrorUrl=
    ssoCancelUrl=
    ssoMode=false
    ssoProxyConnect=no
    allow_debug=false
    allowNewConnections=true
    EndUserMonitoringEnabled=false
    EndUserMonitoringURL=
    applet_name=
    enableJavascriptEvent=true
    JavaScriptBlocksHeartBeat=false
    WebUtilArchive=frmall.jar,frmwebutil.jar,jacob.jar
    WebUtilLogging=all
    WebUtilLoggingDetail=CONSOLE
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTML=webutilbase.htm
    baseHTMLjpi=webutiljpi.htm
    lookAndFeel=oracle
    # ================================
    # webutil.cfg - WebUtil default configuration file
    # ================================
    logging.file=/tmp/webutil.log
    logging.enabled=TRUE
    logging.errorsonly=TRUE
    logging.connections=TRUE
    install.syslib.location=/webutil
    install.syslib.0.7.1=jacob.dll|106496|1.10.1|true
    install.syslib.0.9.1=JNIsharedstubs.dll|65582|1.0|true
    install.syslib.0.9.2=d2kwut60.dll|192512|1.0|true
    install.syslib.0.user.1=ffisamp.dll|40960|1.0|true
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.workAreaRoot=/tmp
    transfer.appsrv.accessControl=TRUE
    transfer.appsrv.read.1=/tmp
    transfer.appsrv.write.1=/tmp
    BlockAllowHeartBeat=False
    # ================================
    # default.env - default Forms environment file, Linux version
    # ================================
    ORACLE_HOME=/usr/lic/oracle/home/Oracle/Middleware/as
    ORACLE_INSTANCE=/usr/lic/oracle/home/Oracle/Middleware/asinst
    TNS_ADMIN=/usr/lic/oracle/home/Oracle/Middleware/asinst/config
    FORMS_PATH=/usr/lic/oracle/home/Oracle/Middleware/as/forms/flash:/usr/lic/oracle/home/Oracle/Middleware/as/forms:/usr/lic/oracle/home/Oracle/Middleware/asinst/FormsComponent/forms:/usr/lic/oracle/home/Oracle/Middleware/as/forms/flash/tool
    WEBUTIL_CONFIG=/usr/lic/oracle/home/Oracle/Middleware/asinst/config/FormsComponent/forms/server/webutil.cfg
    FORMS_RESTRICT_ENTER_QUERY=TRUE
    CLASSPATH=/usr/lic/oracle/home/Oracle/Middleware/as/forms/java/frmall.jar:/usr/lic/oracle/home/Oracle/Middleware/as/forms/java/frmwebutil.jar:/usr/lic/oracle/home/Oracle/Middleware/as/forms/java/jacob.jar:/usr/lic/oracle/home/Oracle/Middleware/as/forms/j2ee/frmsrv.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/ldapjclnt11.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/debugger.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/ewt3.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/share.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/utj.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/zrclient.jar:/usr/lic/oracle/home/Oracle/Middleware/as/reports/jlib/rwrun.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/start_dejvm.jar:/usr/lic/oracle/home/Oracle/Middleware/as/opmn/lib/optic.jar
    PATH=/usr/lic/oracle/home/Oracle/Middleware/as/bin:/usr/lic/oracle/home/Oracle/Middleware/as/jdk/bin
    LD_LIBRARY_PATH=/usr/lic/oracle/home/Oracle/Middleware/as/lib:/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64:/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64/server:/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64/native_threads
    LD_PRELOAD=/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64/libjsig.so
    # ================================
    # flashwebn.env - default Forms environment file, Linux version
    # ================================
    ORACLE_HOME=/usr/lic/oracle/home/Oracle/Middleware/as
    ORACLE_INSTANCE=/usr/lic/oracle/home/Oracle/Middleware/asinst
    TNS_ADMIN=/usr/lic/oracle/home/Oracle/Middleware/asinst/config
    FORMS_RESTRICT_ENTER_QUERY=TRUE
    FORMS_TIMEOUT=120
    FORMS_PATH=/usr/lic/oracle/home/Oracle/Middleware/as/forms/flash:/usr/lic/oracle/home/Oracle/Middleware/as/forms:/usr/lic/oracle/home/Oracle/Middleware/as/forms/flash/tool
    REPORTS_PATH=/usr/lic/oracle/home/Oracle/Middleware/as/reports
    REPORTS_SERVER=rep_wls_reports_machine01_asinst
    PATH_REPORTS_CACHE=/tmp/
    PATH_REPORTS_LOCAL=/tmp/
    WEBUTIL_CONFIG=/usr/lic/oracle/home/Oracle/Middleware/asinst/config/FormsComponent/forms/server/webutil.cfg
    FORMS_RESTRICT_ENTER_QUERY=FALSE
    FORMS_USERNAME_CASESENSITIVE=1
    CLASSPATH=/usr/lic/oracle/home/Oracle/Middleware/as/forms/java/frmall.jar:/usr/lic/oracle/home/Oracle/Middleware/as/forms/java/frmwebutil.jar:/usr/lic/oracle/home/Oracle/Middleware/as/forms/j2ee/frmsrv.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/ldapjclnt11.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/debugger.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/ewt3.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/share.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/utj.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/zrclient.jar:/usr/lic/oracle/home/Oracle/Middleware/as/reports/jlib/rwrun.jar:/usr/lic/oracle/home/Oracle/Middleware/as/jlib/start_dejvm.jar:/usr/lic/oracle/home/Oracle/Middleware/as/opmn/lib/optic.jar:/usr/lic/oracle/home/Oracle/Middleware/as/forms/java/jacob.jar
    #PATH=/usr/lic/oracle/home/Oracle/Middleware/as/forms/flash:/usr/lic/oracle/home/Oracle/Middleware/as/forms:/usr/lic/oracle/home/Oracle/Middleware/asinst/FormsComponent/forms:/usr/lic/oracle/home/Oracle/Middleware/as/forms/flash/tool
    LD_PRELOAD=/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64/libjsig.so:/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64/server/libjvm.so:/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64/native_threads/libhpi.so
    LD_LIBRARY_PATH=/usr/lic/oracle/home/Oracle/Middleware/as/lib:/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64:/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64/server:/usr/lic/oracle/home/Oracle/Middleware/as/jdk/jre/lib/amd64/native_threads

    If you managed to get to the point where the applet container is created (the "gray square"), but the form never appears then you can assume one or more of the following has occurred:
    1. The JRE crashed after startup. Many times, but not always, if such a crash occurs it will leave a JRE dump file on the desktop. Its content may help to identify the cause.
    2. The Forms runtime crashed at startup. Many times, but not always, a Forms dump file will be created on the server. Its content may help to identify the cause.
    3. The Forms runtime was unable to start at all. This can occur on unix systems when/if there is a resource or permissions issue. One of the more common causes is if the file descriptor (nofiles) value is set too low.
    4. The applet is actually running, but has attempted to display a dialog box and is awaiting your acknowledgement, but the box was wrongfully sent to the background behind the browser. A similar issue was reported in one of the JRE 1.6.0_xx series, however I don't recall which one. Uninstall your current version and install the latest which is 1.6.0_27
    There are other possibilities, but these are most common.
    I would recommend the following:
    1. Uninstall any JRE older than 1.6.0_27. Reboot. Install 1.6.0_27
    2. Set networkRetries=5 in formsweb.cfg
    3. Set FORMS_TIMEOUT to 15 (default). Setting to a high value as you have is not recommended and is rarely necessary.
    4. Verify that the test form works. For example:
    http://machine:port/forms/frmservlet?form=test
    5. It appears that you are trying to use WU_TEST_106.fmx. Instead, download an updated version of this file (the name has also changed)
    http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/196249.zip
    6. Ensure that you have compiled webutil.pll into .plx. Do not use an old version of this file. The installation will include one. If not, check for it in an installation that also includes the Builders.

  • How do I call a SAP RFC from an Oracle Form using webutils CLIENT_OLE2?

    Hi guys,
    Your help on this problem would be greatly appreciated.
    We have an older forms 6i application which we are currently updating to 10g (which is a pain itself... but that's a different story.) which currently uses unssupported c++ routines to connect to the SAP system, we want to do away with this c++.
    What I have so far is the following test code:
    PROCEDURE cmd_summary
    IS
    o_sap_log client_ole2.obj_type;
    o_sap_conn client_ole2.obj_type;
    o_sap_rfcc client_ole2.obj_type;
    -- o_sap_rfcx client_ole2.obj_type;
    -- o_sap_rfc client_ole2.obj_type;
    v_args ole2.list_type;
    v_logon BOOLEAN := FALSE;
    BEGIN
    :block3.txt_result := 'TEST Started!';
    --create logon control object
    o_sap_log := client_ole2.create_obj ('SAP.logoncontrol.1');
    --create the function object
    o_sap_rfcc := client_ole2.create_obj ('SAP.Functions');
    --create a new connection object
    o_sap_conn := client_ole2.invoke_obj (o_sap_log, 'NewConnection');
    --set the connection properties
    client_ole2.set_property (o_sap_conn, 'System', caps$get_sys_param ('SAP_DST'));
    client_ole2.set_property (o_sap_conn, 'MessageServer', caps$get_sys_param ('SAP_HST'));
    client_ole2.set_property (o_sap_conn, 'GroupName', 'DEVELOP');
    client_ole2.set_property (o_sap_conn, 'client', caps$get_sys_param ('SAP_CLT'));
    client_ole2.set_property (o_sap_conn, 'SystemNumber', caps$get_sys_param ('SAP_SYN'));
    client_ole2.set_property (o_sap_conn, 'User', caps$get_sys_param ('SAP_USR'));
    client_ole2.set_property (o_sap_conn, 'Password', caps$get_sys_param ('SAP_PWD'));
    client_ole2.set_property (o_sap_conn, 'language', caps$get_sys_param ('SAP_LNG'));
    --set up the logon arguements
    v_args := client_ole2.create_arglist;
    client_ole2.add_arg (v_args, 1);
    client_ole2.add_arg (v_args, TRUE);
    --run the logon function
    v_logon := client_ole2.get_bool_property (o_sap_conn, 'logon', v_args);
    client_ole2.destroy_arglist (v_args);
    IF v_logon
    THEN
    :block3.txt_result := :block3.txt_result || CHR (10) || 'LOGON Worked!!';
    ELSE
    :block3.txt_result := :block3.txt_result || CHR (10) || 'LOGON Failed!!';
    END IF;
    :block3.txt_result := :block3.txt_result || CHR (10) || 'TEST Ended!';
    EXCEPTION
    WHEN OTHERS
    THEN
    :block3.txt_result := :block3.txt_result || CHR (10) || SQLERRM (SQLCODE);
    END cmd_summary;
    NOTE: the get_sys_param functionis returning text from a table.
    This seems to work okay, the logon command returning a TRUE. All good so far.
    However, when I try to then use this connection for anything then I stumble and fall!
    I've seen an example in VB where the SAP RFC object is "assigned" the connection object by simply stating:
    Set oSAPrfc.Connection = oSAPconn
    Where oSAPconn is setup in a similar way to my o_Sap_conn in the above example.
    I have tried using the CLIENT_OLE2.SET_PROPERTY procedures but I don't think that's quite right.
    I've tried using invoke, to try and "run" the method like:
    v_args := CLIENT_OLE2.CREATE_ARGLIST;
    client_ole2.add_arg_obj(v_args,o_sap_conn);
    client_ole2.invoke(o_sap_rfcc,'Connection',v_args);
    client_ole2.destroy_arglist(v_args);
    but it fails.
    I have also tried using the actual Connection function directly:
    SAP_ISAPFUNCTIONS.connection(o_sap_rfcc, o_sap_conn);
    But that just causes the Forms Server to crash... :?
    Has anyone connected to SAP via Forms? I noticed one post on this forum which an example of some code using a SAPBAPI control but not WEBUTIL (Which I think I'd need to use because we are running 10g)
    As a side note we are also looking into SAP Adapter as a possible "other" route but this too is getting very complicated... And I can't see a way of connecting a form to the Adpater anyway :(
    Any advice would be very much appreciated.

    Can anyone help?
    Mike

Maybe you are looking for

  • How can I publish my iweb site using Jumpline as a host?  Anyone done it?

    My dad has a hosting account with Jumpline and can have an infinite amount of websites with unlimited storage (type of account is no long available fyi), so we have it set up on his end (thanks to help from a true IT guy, but he is a PC IT guy) but n

  • HELP- SET DEVICE PASSWORD

    I've been trying to set a password for my account for hours now but no email is sent to my inbox?? Also my spotify is linked to my Facebook account but I don't want to use my facebook to log in to my sporify anymore. Instead I would like to use my us

  • How I COULD CHECK files are storing in DMS server or DNS server.

    Hi, all, I am storing DMS files ie originals in DMS_C1_ST through Kpro, Because we have DNS server and DMS server. Now I m working in Production server, How I can check the DMS files is storing in DMS server or in DNS server. The DMS configuration is

  • Connections refused after editing master.cf file

    Hi: I just got done editing (successfully, I thought) the master.cf file using TextEdit in order to add Port 587 to the list of smtp ports available for users to send. I tried both ways suggested by various posters, including uncommenting the submiss

  • Need to sync iBooks on different computer than where everything else syncs

    I been syncing my iPad at a home computer and using mobile me to keep calendar, contacts etc. in sync. Everything is working perfectly. Now in my job, I am starting to create ePubs for iBooks, and would like to sync these files with my iPad from a wo