Webutil invoke

10G WITH VISUAL C++
AM USING WEBUTIL TO CALL A DLL
WHAT IS THE TYPE IN THE COMAND (WEBUTIL_C_API.Invoke??? ) IF I WANT TO RETURN A STRING FROM C++
AND WHAT IS THE TYPE STRING TO PUT IN C++
extern "C" __declspec(dllexport) ??? __cdecl teststring(char* com_reader);
NB:
I TRIED string in 10g Which is logic---------->      rc := WEBUTIL_C_API.Invoke_string('str.dll','teststring',args);
and in c++ i put LPCTSR extern "C" __declspec(dllexport) LPCSTR __cdecl teststring(char* com_reader);
SO THE RETURNED TYPE LPCSTR IS NOT understandable by oracle
oracle go into the exception but without an error and the value is not returned into the varchar2(100) rc
IT WORKS WITH INTEGER BUT NOT WITH STRING
CAN ANYONE HELP ME PLZ.10X U

10G WITH VISUAL C++
AM USING WEBUTIL TO CALL A DLL
WHAT IS THE TYPE IN THE COMAND (WEBUTIL_C_API.Invoke??? ) IF I WANT TO RETURN A STRING FROM C++
AND WHAT IS THE TYPE STRING TO PUT IN C++
extern "C" __declspec(dllexport) ??? __cdecl teststring(char* com_reader);
NB:
I TRIED string in 10g Which is logic---------->      rc := WEBUTIL_C_API.Invoke_string('str.dll','teststring',args);
and in c++ i put LPCTSR extern "C" __declspec(dllexport) LPCSTR __cdecl teststring(char* com_reader);
SO THE RETURNED TYPE LPCSTR IS NOT understandable by oracle
oracle go into the exception but without an error and the value is not returned into the varchar2(100) rc
IT WORKS WITH INTEGER BUT NOT WITH STRING
CAN ANYONE HELP ME PLZ.10X U

Similar Messages

  • Webutil invoke.string problem with c++

    hi ,
    am using forms 10g and trying to call a dll in c++
    it works when i call the dll using webutil to return an integer from the dll by sending 2 parameters of type varchar2
    to invoke the function returning integer
    rc1 := WEBUTIL_C_API.Invoke_int('cards_dll.dll','Retrieving',args);     
    but when i try to return string an error occurs from the exception because oracle cant understand the type returned from c++ dll
    this is my code in c++ wish is correct
    am sending one parameter in my parameter list of type varcahar2 and i want to return a string from c
    f_handle      := WEBUTIL_C_API.register_function('cards_dll.dll','Retrieving');
    args      := WEBUTIL_C_API.create_parameter_list;
    param1      := WEBUTIL_C_API.add_parameter(args,WEBUTIL_C_API.C_CHAR_PTR,WEBUTIL_C_API.PARAM_IN ,x,6);
    rc1 := WEBUTIL_C_API.Invoke_string('cards_dll.dll','Retrieving',args);     -----here is the problem
    WEBUTIL_C_API.Destroy_Parameter_List(args);
    WEBUTIL_C_API.Deregister_Function(f_handle);                                                                                
    return rc1;
    EXCEPTION
         WHEN OTHERS THEN
         MESSAGE('ERROR:' || ERROR_TEXT);
         FOR I IN 1..Tool_Err.Nerrors
         LOOP
              message (Tool_Err.Message);PAUSE;
              Tool_Err.Pop;
         END LOOP;
    END ;
    in c++dll
    am using
    extern "C" __declspec(dllexport) LPCSTR __cdecl Retrieving(LPCSTR com_reader);
    //it means return longpointer and receive long pointer in com_reader
    LPCSTR result ;
    RESULT = "JIHAD abou ghannam 10081977 august10" as example
    return RESULT;
    what should i do to receive jihad in forms 10g.
    note i can get back an integer using extern "C" __declspec(dllexport) int __cdecl Retrieving(LPCSTR com_reader);
    but not a string so its not a hardware or web problem its a type problem i think, no?
    there is another way to use other than invoke.string in oracle or i have to change the type LPCSTR IN C++?

    hi ,
    am using forms 10g and trying to call a dll in c++
    it works when i call the dll using webutil to return an integer from the dll by sending 2 parameters of type varchar2
    to invoke the function returning integer
    rc1 := WEBUTIL_C_API.Invoke_int('cards_dll.dll','Retrieving',args);     
    but when i try to return string an error occurs from the exception because oracle cant understand the type returned from c++ dll
    this is my code in c++ wish is correct
    am sending one parameter in my parameter list of type varcahar2 and i want to return a string from c
    f_handle      := WEBUTIL_C_API.register_function('cards_dll.dll','Retrieving');
    args      := WEBUTIL_C_API.create_parameter_list;
    param1      := WEBUTIL_C_API.add_parameter(args,WEBUTIL_C_API.C_CHAR_PTR,WEBUTIL_C_API.PARAM_IN ,x,6);
    rc1 := WEBUTIL_C_API.Invoke_string('cards_dll.dll','Retrieving',args);     -----here is the problem
    WEBUTIL_C_API.Destroy_Parameter_List(args);
    WEBUTIL_C_API.Deregister_Function(f_handle);                                                                                
    return rc1;
    EXCEPTION
         WHEN OTHERS THEN
         MESSAGE('ERROR:' || ERROR_TEXT);
         FOR I IN 1..Tool_Err.Nerrors
         LOOP
              message (Tool_Err.Message);PAUSE;
              Tool_Err.Pop;
         END LOOP;
    END ;
    in c++dll
    am using
    extern "C" __declspec(dllexport) LPCSTR __cdecl Retrieving(LPCSTR com_reader);
    //it means return longpointer and receive long pointer in com_reader
    LPCSTR result ;
    RESULT = "JIHAD abou ghannam 10081977 august10" as example
    return RESULT;
    what should i do to receive jihad in forms 10g.
    note i can get back an integer using extern "C" __declspec(dllexport) int __cdecl Retrieving(LPCSTR com_reader);
    but not a string so its not a hardware or web problem its a type problem i think, no?
    there is another way to use other than invoke.string in oracle or i have to change the type LPCSTR IN C++?

  • Invoke check spelling word from Webutil Package

    Hi,
    I would like to check spell a long item from my form with MS Word.
    I found an example on OTN to open word from my form with webutil.
    Now I would like to Spell check the active document in Word with the method
    ActiveDocument.CheckSpelling();
    Select the complete text:
    Selection.WholeStory();
    Copy it in the buffer:
    Selection.Copy();
    Close document:
    ActiveDocument.Close(0);
    Close Word:
    Quit();
    I search the correct syntax from the the package CLIENT_OLE2 ?

    Eric,
    I hope the following code sample helps you.
    Regards
    Kavitha Prakash
    Oracle Support
    DECLARE
    MyApplication client_ole2.OBJ_TYPE;
    MyDocuments client_ole2.OBJ_TYPE;
    MyDocument client_ole2.OBJ_TYPE;
    MySelection client_ole2.OBJ_TYPE;
    args client_ole2.LIST_TYPE;
    BEGIN
    MyApplication:=client_ole2.CREATE_OBJ('Word.Application');
    client_ole2.SET_PROPERTY(MyApplication, 'Visible', 1);
    MyDocuments:=client_ole2.GET_OBJ_PROPERTY(MyApplication, 'Documents');
    args:=client_ole2.CREATE_ARGLIST;
    client_ole2.ADD_ARG(args, 'c:\ABSTRACT.DOC');
    Mydocument :=client_ole2.INVOKE_OBJ(MyDocuments,'Open',args);
    client_ole2.DESTROY_ARGLIST(args);
    client_ole2.INVOKE(MyDocument,'CheckSpelling');
    MySelection:=client_ole2.GET_OBJ_PROPERTY(MyApplication, 'Selection');
    client_ole2.INVOKE(mYSelection,'WholeStory');
    client_ole2.INVOKE(MYSelection,'Copy');
    client_ole2.INVOKE(MyDocument,'Close');
    client_ole2.INVOKE(MyApplication,'Quit');
    client_ole2.RELEASE_OBJ(MySelection);
    client_ole2.RELEASE_OBJ(MyDocument);
    client_ole2.RELEASE_OBJ(MyDocuments);
    client_ole2.RELEASE_OBJ(MyApplication);
    end;

  • 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

  • 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

  • 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

  • WebUtil & Client_OLE2 - Urgent!

    Hi!
    I use Oracle9iASR2, Forms9i (Patch 9.2.0.3) and JInitiator 1.3.1.13!
    I was following all webutil_manual.pdf and readme.html steps!
    I have no problem with client_get_file_name or client_host calls, but I have a tedious problem when I'm trying to call Client_OLE2.create_obj('Excel.Application'), for instance.
    Java Console shows:
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError
         at oracle.forms.webutil.ole.OleFunctions.create_obj(OleFunctions.java:513)
         at oracle.forms.webutil.ole.OleFunctions.getProperty(OleFunctions.java:218)
         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.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 my classpath parameter in default.env file:
    CLASSPATH=d:\Oracle9iAS2\jlib\importer.jar;d:\Oracle9iAS2\forms90\java;D:\Oracle9iAS2\jlib\debugger.jar;D:\Oracle9iAS2\jlib\ewt3.jar;D:\Oracle9iAS2\jlib\share.jar;D:\Oracle9iAS2\jlib\utj90.jar;d:\webutil\lib\webutil.jar;D:\Oracle9iAS2\jdk\jre\lib\rt.jar
    Could someone help me, please?
    Dejan

    A machine of Oracle9iAS must be powerful, I guess! I have 512MB RAM, only, and a recommendation is 1GB at least. It works slowly, but that's only a test environment. I have strong servers in my company, so the most significant thing at the moment is that webutil concept works. That is the basic reason for migration from 6i, but not the only one. Now I need a library of properties for the word and excel invoking, for a complete settings of any document or worksheet. If someone has something similar, please send me! My address is [email protected] . Thank you in advance!

  • Webutil Invoke_String problem

    I've the following c function:
    extern "C" __declspec( dllexport ) char cGreeting(char* value1, char* value2);
    And follow PL/SQL code:
    PACKAGE BODY SAMPLE IS
         FUNCTION greeting(value1 IN OUT VARCHAR2, value2 IN OUT VARCHAR2) RETURN VARCHAR2 IS
              greeting_func webutil_c_api.FunctionHandle;
              greeting_params webutil_c_api.ParameterList;
              greeting_param1 webutil_c_api.ParameterHandle;
              greeting_param2 webutil_c_api.ParameterHandle;
              greeting_return VARCHAR2(1000);          
              BEGIN               
                   greeting_func := webutil_c_api.register_function('cClient.dll', 'cGreeting');
                   greeting_params := webutil_c_api.create_parameter_list;
                   greeting_param1 := webutil_c_api.add_parameter(greeting_params, webutil_c_api.C_CHAR_PTR, webutil_c_api.PARAM_INOUT, value1, 1000);
                   greeting_param2 := webutil_c_api.add_parameter(greeting_params, webutil_c_api.C_CHAR_PTR, webutil_c_api.PARAM_INOUT, value2, 1000);
                   greeting_return := webutil_c_api.Invoke_char('cClient.dll', 'cGreeting', greeting_params);
                   webutil_c_api.destroy_parameter_list(greeting_params);
                   webutil_c_api.deregister_function(greeting_func);
                   return greeting_return;
         END greeting;
    END SAMPLE;
    When I invoke this function appears this error:
    ERROR>WUL-911 [CApiFunctions.invokeCApi()] Unsupported return type for C DLL function
    Does anyone know where is the problem?
    Thank you.

    I've tried your sample. I´ve a forms and, when I push a button, throw the following code:
    declare
              myValue1 varchar2(20);
              myValue2 varchar2(20);
         greeting_func webutil_c_api.FunctionHandle;
         greeting_params webutil_c_api.ParameterList;
         greeting_param1 webutil_c_api.ParameterHandle;
         greeting_param2 webutil_c_api.ParameterHandle;
         greeting_return varchar2(1000);
         file_type text_io.file_type;
         BEGIN
         greeting_func := webutil_c_api.register_function('cClient.dll', 'myGreeting');
         greeting_params := webutil_c_api.create_parameter_list;
         greeting_param1 := webutil_c_api.add_parameter(greeting_params, webutil_c_api.C_CHAR_PTR, webutil_c_api.PARAM_INOUT, myValue1, 20);
         greeting_param2 := webutil_c_api.add_parameter(greeting_params, webutil_c_api.C_CHAR_PTR, webutil_c_api.PARAM_INOUT, myValue2, 20);
         greeting_return := webutil_c_api.Invoke_String(greeting_func, greeting_params);
         message(greeting_return);
         webutil_c_api.destroy_parameter_list(greeting_params);
         webutil_c_api.deregister_function(greeting_func);     
    EXCEPTION
              WHEN OTHERS THEN
                   file_type := text_IO.Fopen('c:\Sign\DAP\samples\logs\log.txt', 'w');
                   text_io.put( file_type, tool_err.message);
                   text_io.fclose(file_type);
    But the browser crash and print a file with the follow message:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x102c233f
    Function name=(N/A)
    Library=C:\Program Files\Oracle\JInitiator 1.3.1.9\bin\JNIsharedstubs.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at oracle.forms.webutil.cApi.CPtr.getString(Native Method)
         at oracle.forms.webutil.cApi.CApiFunctions.invokeCApi(CApiFunctions.java:827)
         at oracle.forms.webutil.cApi.CApiFunctions.getProperty(CApiFunctions.java:131)
         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)
    ..... [a list of libraries]
    I've a windows XP and IE6. Do you know what can be wrong?
    Thank you.

  • Webutil error "unable to communicate with runtime process."

    Hi,
    Yesterday I configured webutil with Developer 10g (9.0.4).
    I used webutil_106.zip and jacob_18.zip.
    I succesfully deploy a form that display the selection file dialog with the function:
    CLIENT_GET_FILE_NAME
    Today I tried to test again the form, and I got an error when the form is opening, I review the log and I find "unable to communicate with runtime process.".....
    I didn't change any configuration... what I'm doing wrong..... It just work great yesterday!!!!
    I tried signing again the jacob.jar and frmwebutil.jar files..... However I still have the error.......
    Any help is welcome....
    The error in the log:
    09/03/25 10:57:45 Started
    09/03/25 10:57:55 forms90web: jsp: init
    09/03/25 10:57:55 forms90web: f90servlet: init
    09/03/25 10:57:55 forms90web: FormsServlet init():
    configFileName: c:\dev10g/forms90/server/formsweb.cfg
    testMode: false
    09/03/25 10:57:55 forms90web: 9.0.4.0.0 Started
    09/03/25 10:57:56 forms90web: l90servlet: init
    09/03/25 10:57:56 forms90web: ListenerServlet init()
    09/03/25 10:58:02 forms90web: Forms session <1> aborted: unable to communicate with runtime process.
    09/03/25 10:58:02 forms90web: Forms session <1> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Details : No HTTP headers received from runform
         at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    09/03/25 11:00:58 forms90web: l90servlet: destroy
    09/03/25 11:00:58 forms90web: 9.0.4.0.0 Stopped
    09/03/25 11:00:58 Stopped (Shutdown executed by jazn.com/admin from 127.0.0.1 (localhost))
    Edited by: Santiago on 25/03/2009 11:23 AM

    I Find the way, It's OK now.
    When I use the webutil.olb in a form. I chose "Subclass", It's necessary to choose "Copy".

  • Problem with sqldir invoked by host method in Forms10g on Unix

    Hi,
    I have a problem with invoking sqlldr from Forms10 using host command in
    Unix environment(Solaris). I have two ORACLE_HOME's , one for IDS10g and second where is Oracle Client with sqlldr, which I have to invoke.
    I have a script:
    #!/bin/sh
    NLS_NUMERIC_CHARACTERS=., ;export NLS_NUMERIC_CHARACTERS
    ORACLE_HOME=/export/home/oracle/oracle/product/10.2.0/client_3
    export ORACLE_HOME
    echo $ORACLE_HOME > env1.txt
    LD_LIBRARY_PATH=/export/home/oracle/oracle/product/10.2.0/lib32
    export LD_LIBRARY_PATH
    sqlldr TEST/TEST@orcl control='UOFE050.ctl' log='UOFE050.log' errors=1000000 skip=1
    ORACLE_HOME=/u01/app/oaspers/frs; export ORACLE_HOME
    echo $ORACLE_HOME > env2.txt
    I have all neccesary paths in my default.env file (/usr/bin:/export/home/oracle/oracle/product/10.2.0/client_3/bin:
    /usr/bin:/export/home/oracle/oracle/product/10.2.0/client_3) for FormsServer. I have tried invoke sqlldr with full path
    and I have tried to change LD_LIBRARY for current ORACLE_HOME (in shell script). Of course from command line the script is working.
    I know that only the line with sqlldr is not executed, so I have found a couple of threads on this forums but i have not found solution
    for my issue - with two ORACLE_HOME's - the invocation of script in Forms is - host('scr.sh').
    I am using webutil for uploading file to AS, and I do not want to use sqlldr on client.
    ps. the experiment for Windows was OK - with Host('cmd /k scr.bat',no_screen);
    thanks for help,
    gregory

    So my question to a Forms guru is that Do I have to really upload with webutil files to database and then put it down with utl_file and invoke sqlldr from database by f.e. java stored procedure ? A customer rejected solution with invoking sqlldr from client (reasonable - instalation Oracle client on every PC).

  • FRM-92101 in wu_test (the webutil demo form)

    Error:
    FRM-92101 in wu_test (the webutil demo form)
    Problem:
    I am attempting to run the wu_test form, downloaded with demos for webutil 1.02.
    Running wu_test or another form containing webutil functions results in
    FRM-92101 in the form's window and the following error in the OC4J console.
    "Forms session <1> aborted: unable to communicate with runtime process."
    Environment:
    Java Client: Tried with both Sun Java Plug-In 1.4.2.04/5 and Jinitiator 1.3.1.17
    Application Server: Oracle 9.0.4 iDS (Orion Development OC4J)
    Database: Enterprise Edition 10.1.0.2.0
    Forms Listener Servlet
    Attempted Solutions:
    I have scoured OTN & MetaLink & tried everything I could find with no luck. I
    apologize for the length of this post, but I want to provide as much information
    as possible re: what I've tried and my environment.
    For instance, the remedy in Note 252600.1, which can cause these symptoms, did
    not help.
    This note states:
    In webutil.cfg modify
    install.syslib.location to an absolute URL, replacing the line:
    install.syslib.location=/webutil
    To an absolute URL like:
    install.syslib.location=http://[host]:[port]/forms90/webutil
    (replacing [host] and [port] with your own values) or
    install.syslib.location=//../webutil
    Other Information:
    Other forms (ones that don't contain webutil functions/beans) run fine with the same
    env and config used for webutil.
    The wu_test form is already set up so first navigation item is not on the
    webutil canvas, but on the "demo" canvas.
    OC4J Console:
    C:\Program Files\Common Files\System\MAPI\1033\nt>C:\Ora10giDS\jdk\bin\java -Xbo
    otclasspath/p:C:\Ora10giDS\vbroker4\lib\vbjboot.jar -Doracle.security.jazn.confi
    g=C:\Ora10giDS\j2ee\DevSuite\config\jazn.xml -Doracle.home=C:\Ora10giDS -DORACLE
    _HOME=C:\Ora10giDS -jar C:\Ora10giDS\j2ee\home\oc4j.jar -userThreads -config C:\
    Ora10giDS\j2ee\DevSuite\config\server.xml
    04/07/29 15:46:09 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    04/07/29 15:46:19 FormsServlet init():
    configFileName: C:\Ora10giDS/forms90/server/formsweb.cfg
    testMode: false
    04/07/29 15:46:35 ListenerServlet init()
    04/07/29 15:46:51 Forms session <1> aborted: unable to communicate with runtime
    process.
    Orion webserver application.log:
    04/07/29 15:46:07 Started
    04/07/29 15:46:19 forms90web: jsp: init
    04/07/29 15:46:19 forms90web: f90servlet: init
    04/07/29 15:46:19 forms90web: FormsServlet init():
    configFileName: C:\Ora10giDS/forms90/server/formsweb.cfg
    testMode: false
    04/07/29 15:46:19 forms90web: 9.0.4.0.0 Started
    04/07/29 15:46:35 forms90web: l90servlet: init
    04/07/29 15:46:35 forms90web: ListenerServlet init()
    04/07/29 15:46:51 forms90web: Forms session <1> aborted: unable to communicate with runtime process.
    04/07/29 15:46:51 forms90web: Forms session <1> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Details : No HTTP headers received from runform
         at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Java Console:
    Java(TM) Plug-in: Version 1.4.2_05
    Using JRE version 1.4.2_05 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\isellers
    Proxy Configuration: No proxy
    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
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.0
    oracle.forms.net.ConnectionException: Forms session <1> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    Or JInitiator Console:
    Oracle JInitiator: Version 1.3.1.17
    Using JRE version 1.3.1.17-internal Java HotSpot(TM) Client VM
    User home directory = N:
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: N:\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://localhost:8890/forms90/webutil/webutil.jar from JAR cache
    Loading http://localhost:8890/forms90/java/f90all_jinit.jar from JAR cache
    Loading http://localhost:8890/forms90/webutil/jacob.jar from JAR cache
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.0
    oracle.forms.net.ConnectionException: Forms session <2> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    Named Config sections from formsweb.cfg
    #A named (sample) named configuration section for use with WebUtil & Sun JPI
    [webutil]
    pageTitle=Oracle Forms Services - WebUtil
    webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    baseHTMLjinitiator=html/bocowebutiljpi.htm
    baseHTMLjpi=html/bocowebutiljpi.htm
    userid=<replacedforsecurity>/<replacedforsecurity>@<replacedforsecurity>
    legacy_lifecycle=false
    heartBeat=5
    envFile=env/webutil.env
    #A named (sample) named configuration section for use with WebUtil & JInitiator
    [webutiljinit]
    pageTitle=Oracle Forms Services - WebUtil JInit
    webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    baseHTMLjinitiator=html/bocowebutiljini.htm
    baseHTMLjpi=html/bocowebutiljini.htm
    userid=<replacedforsecurity>/<replacedforsecurity>@<replacedforsecurity>
    envFile=env/webutil.env
    Webutil.env (with comments removed)
    ORACLE_HOME=C:\Ora10giDS
    FORMS90_PATH=C:\Ora10giDS\forms90\webutil\forms;C:\Ora10giDS\forms90\webutil\demo;C:\Ora10giDS\apps;
    WEBUTIL_CONFIG=C:\Ora10giDS\forms90\webutil\webutil.cfg
    CLASSPATH=C:\Ora10giDS\j2ee\OC4J_BI_Forms\applications\forms90app\forms90web\WEB-INF\lib\f90srv.jar;C:\Ora10giDS\jlib\repository.jar;C:\Ora10giDS\jlib\ldapjclnt9.jar;C:\Ora10giDS\jlib\debugger.jar;C:\Ora10giDS\jlib\ewt3.jar;C:\Ora10giDS\jlib\share.jar;C:\Ora10giDS\jlib\utj90.jar;C:\Ora10giDS\jlib\zrclient.jar;C:\Ora10giDS\reports\jlib\rwrun.jar;C:\Ora10giDS\jdk\jre\lib\rt.jar;C:\Ora10giDS\forms90\webutil\lib\webutil.jar;C:\Ora10giDS\forms90\webutil\lib\jacob.jar;
    PATH=C:\Ora10giDS\bin;C:\Ora10giDS\jdk\jre\bin\client
    FORMS90=C:\Ora10giDS\forms90
    Section from Webutil.cfg
    #install.syslib.location=/webutil
    # Try absolute URL per note 252600.1 - no help
    #install.syslib.location=http://it110981.boco.co.boulder.co.us:8890/forms90/webutil
    # Or try relative URL like this per note 252600.1 - also no help
    install.syslib.location=//../webutil
    Line from orion-web.xml
    <virtual-directory virtual-path="/webutil" real-path="C:\Ora10giDS/forms90/webutil/lib" />
    Any suggestions on how I can get this to work will be appreciated. Thanks. -Ian

    most of the time this means that your webutil.pll isn't good attached but it is very dependant on the versions you working on.
    Post your versions of forms ias and webutil.
    In older version it is sometimes necessary to first subclass the webutil group and then attach the webutil.pll. Other way around didn't work (was in beta version 1.02 I believe)

  • Webutil and Outlook - I get a WUO-714 and WUO-705 error

    Hi,
    I have installed webutil and it loads fine an all. However, I have a problem with a Microsoft Outlook integration. I am simply trying open an Outlook mail item, which is then filled out with some data. Pressing the Send button is up to the user.
    Everything works until the line "mailitem2 := CLIENT_OLE2.INVOKE_obj(MailItem,'Display');" is called. Here Forms reports back: "100501: non-Oracle exception" and the java console gives a WUO-714 and WUO-705. The problems seems to be the Display method. At that point, despite errors, I do have an open, visible mail item with the proper data filled in. (In this process I noticed that the final invoke_obj should happen after you write stuff into the To, Subject and Body of the mail, but that's besides the point.)
    Any advice you can offer is welcome.
    Sincerely,
    Jesper Vad Kristensen
    Aarhus, Denmark
    --- Java console error codes --
    Loading http://oiatst01.tdk.dk:7778/forms90/webutil/webutil.jar from JAR cache
    Loading http://oiatst01.tdk.dk:7778/forms90/webutil/jacob.jar from JAR cache
    Loading http://oiatst01.tdk.dk:7778/forms90/java/f90all_jinit.jar from JAR cache
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    2003-nov-17 09:42:50.624 ERROR>WUO-714 [OleFunctions.setExceptionValues()] Unable to get the last OLE Error details; Exception
    null
    2003-nov-17 09:42:50.634 ERROR>WUO-705 [OleFunctions.invoke_ret_obj()] Unable to invoke Method: Display; Exception
    com.jacob.com.ComFailException: VariantChangeType failed
    --- end ---
    --- Form code ---
    Declare
         OutlookApp      CLIENT_OLE2.OBJ_TYPE;
         Folders      CLIENT_OLE2.OBJ_TYPE;
         MailItem      CLIENT_OLE2.OBJ_TYPE;
         MailItem2      CLIENT_OLE2.OBJ_TYPE;
         OLEPARAM      CLIENT_OLE2.list_type;
         v_kundenummer     varchar2(12) := :v_engagement.konto;
         v_firstname      varchar2(50) := :legal_person.firstname;
         v_surname           varchar2(50) := :legal_person.surname;
         v_company_name      varchar2(50) := :legal_person.company_name;
         v_to                varchar2(50) := '[email protected]';
         v_cc                varchar2(50);
         v_body                varchar2(250) := 'Kundenummer'||' ' ||v_kundenummer||chr(10)||v_firstname||' '||v_surname||' '||v_company_name;
         v_bcc                varchar2(50);
         v_subject           varchar2(50) := 'Fakturakopi';
         v_duedate           varchar2(50);
         v_invoicetext      varchar2(400);
         v_user                varchar2(50):= user;
         v_faktura           varchar2(400);
    BEGIN
         /* snip some string work to create Body contents */
         OutlookApp := CLIENT_OLE2.CREATE_OBJ('Outlook.Application');
         --Create a newMail Object
         OLEPARAM := CLIENT_OLE2.CREATE_ARGLIST;
         CLIENT_OLE2.ADD_ARG(OLEPARAM,0);
         MailItem := CLIENT_OLE2.INVOKE_OBJ(OutlookApp,'CreateItem',OLEPARAM);
         CLIENT_OLE2.DESTROY_ARGLIST(OLEPARAM);
         -- Show the new message box. - Dont do when mailing straight Through
         CLIENT_OLE2.set_property(MailItem,'To',v_to);
         CLIENT_OLE2.set_property(MailItem,'Subject',v_subject);
         CLIENT_OLE2.set_property(MailItem,'Body',v_body);
         mailitem2 := CLIENT_OLE2.INVOKE_obj(MailItem,'Display');
         CLIENT_OLE2.RELEASE_OBJ(MailItem);
         CLIENT_OLE2.RELEASE_OBJ(MailItem2);
         CLIENT_OLE2.RELEASE_OBJ(NameSpace);
         CLIENT_OLE2.RELEASE_OBJ(OutlookApp);
         /* snip some more */
         exception
         when others then
         message('other error: '||sqlerrm);
    --- end ---

    Both the Outlook type library and the M/S online documentation show that the display method on MailItem does not have a return type. try a simple INVOKE rather than INVOKE_OBJ

  • Problem of 'Detail' button on WebUtil file upload dialog box...

    I've downloaded WebUtil and used it to upload files to server, there is a popup dialog box (I think it got invoked by webutil_file_transfer.Client_To_AS_with_progress) to select file, on the top of the dialog, it shows some buttons like 'Up One Level', 'Home', 'Create New Folder', 'List' and 'Details'. My problem is that the button 'Detail' is disabled and I need to use it to show the dates and sizes of those listed files, any idea how to make it work?
    Thanks,
    Jess

    Does the File dialog box also have a cancelled?  output?  If so, you may want to make sure the case structure only executes false, by OR' ing together both cancelled booleans.  If you cancel the first dialog box that is fine, but the file open function doesn't send out a cancelled.  I think the first dialog catches the cancel button, the error gets passed to open.  You have an error 43 on the dialog box causing the open not to execute, but since you didn't actually cancel on the file open, it sends out a false and thus the case structure executes.
    You may want to rethink out you handle the dialog boxes.  You may need to handle an error 43 coming out of your open VI based on the dialog being cancelled. 

  • WebUtil WUC-20

    I am receiving the following error messages when I attempt to access a form that invokes the Client_host and Client_text_io commands:
    Downloading http:/uranus:7778/forms90/webutil/webutil.jar to JAR cache
    Downloading http:/uranus:7778/forms90/webutil/jacob.jar to JAR cache
    Downloading http:/uranus:7778/forms90/java/f90all_jinit.jar to JAR cache
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    connectMode=HTTP, native.
    Forms Applet version is : 90270
    Error>WUC-20 [URLDownload.pullFile()] The stated size of the source file http://uranus:7778/forms90/webutil/jacob.dll does not match that of the downloaded file C:\PROGRA~1\oracle\JINITI~1.9\bin\jacob.dll
    Error>WUC-20 [URLDownload.pullFile()] The stated size of the source file http://uranus:7778/forms90/webutil/JNIsharedstubs.dll does not match that of the downloaded file C:\PROGRA~1\oracle\JINITI~1.9\bin\JNIsharedstubs.dll
    Error>WUC-20 [URLDownload.pullFile()] The stated size of the source file http://uranus:7778/forms90/webutil/d2kwut60.dll does not match that of the downloaded file C:\PROGRA~1\oracle\JINITI~1.9\bin\d2kwut60.dll
    Any suggestions would be greatly appreciated!

    My server: Window 2003
    Oracle Form 10G
    I get the follow exception in java console when using webutil:
    Loading http://myhost:8889/forms90/java/f90all_jinit.jar from JAR cache
    Loading http://myhost:8889/forms90/webutil/webutil.jar from JAR cache
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    Loading http://myhost:8889/forms90/webutil/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.0
    2005-Mar-09 16:48:01.140 ERROR>WUC-20 [URLDownload.pullFile()] The stated size of the source file http://myhost:8889/forms90/f90servletwebutil/jacob.dll does not match that of the downloaded file D:\PROGRA~1\Oracle\JINITI~1.17\bin\jacob.dll
    2005-Mar-09 16:48:01.171 ERROR>WUC-20 [URLDownload.pullFile()] The stated size of the source file http://myhost:8889/forms90/f90servletwebutil/JNIsharedstubs.dll does not match that of the downloaded file D:\PROGRA~1\Oracle\JINITI~1.17\bin\JNIsharedstubs.dll
    2005-Mar-09 16:48:01.203 ERROR>WUC-20 [URLDownload.pullFile()] The stated size of the source file http://myhost:8889/forms90/f90servletwebutil/d2kwut60.dll does not match that of the downloaded file D:\PROGRA~1\Oracle\JINITI~1.17\bin\d2kwut60.dll
    Exception occurred during event dispatching:
    java.lang.UnsatisfiedLinkError: D:\Program Files\Oracle\JInitiator 1.3.1.17\bin\jacob.dll: %1 is not a valid Win32 application
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at com.jacob.com.Dispatch.<clinit>(Dispatch.java)
         at oracle.forms.webutil.ole.OleFunctions.create_obj(OleFunctions.java:513)
         at oracle.forms.webutil.ole.OleFunctions.getProperty(OleFunctions.java:218)
         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.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)
    When I open jacob.dll and other dll file downloaded in D:\Program Files\Oracle\JInitiator 1.3.1.17\bin
    I see same size and same content when i open it by text editor:
    <HTML>
    <H1>
    500 Internal Server Error
    </H1>
    <BODY>
    <pre>
    Forms Servlet Error.
    Missing or invalid value for baseHTML parameter.
    Please check the servlet configuration to make sure this value specifies a valid file.
    </pre>
    </BODY>
    </HTML>
    Could you help me, plz

  • ADF Faces & BC 10.1.3.4: Barcode Printing & ADF version of WebUtil?

    Hi all,
    Our existing application is built with Oracle Forms/Reports 9i which also uses Oracle WebUtil 10g because we need to print bar code labels. Our oracle forms appilcation invokes "Host" commands which allows it to print directly to the server's printer ports, this is accomplished by invoking WebUtil functionality which somehow bypasses(probably not the correct term to use) the jvm security sandbox. We need to have a similar barcode printing functionality on our ADF Faces/BC application however I'm not aware of the existence of "ADF WebUtil" which can be configured to allow access to printer ports.
    Here is some code snipets for the 9i Forms application for printing (which is done through Internet Explore Browser)
    CLIENT_TEXT_IO.PUT_LINE(myPrinter, output_str);
    If lineType = 'B' Then vertStartTemp := vertStartTemp + vertBStep;
    Else vertStartTemp := vertStartTemp + vertAStep;
    End If;
    End Loop;
    /* last line */
    output_str := 'P1'||chr(13)||chr(10);
    CLIENT_TEXT_IO.PUT_LINE(myPrinter, output_str);
    CLIENT_TEXT_IO.FCLOSE(myPrinter);
    EXCEPTION
    WHEN OTHERS THEN
    CLIENT_TEXT_IO.FCLOSE(myPrinter);
    message(sqlerrm );
    Raise Form_Trigger_Failure;
    END;
    Here is some java code which uses the awt library (only works locally due to jvm secuirty sandbox)
    public void testZebraBarCode(ActionEvent actionEvent) {
    //called from a commandButton action listner. will fail upon deployment to server because its trying to access native resouces.
    try {
    PrintService psZebra = null;
    PrinterJob printJob = PrinterJob.getPrinterJob();
    if (printJob.printDialog()) {
    psZebra = printJob.getPrintService();
    DocPrintJob job = psZebra.createPrintJob();
    String s =
    // Set Reference Point
    // Clear Image Buffer
    // Print direction (from Bottom of buffer)
    // Set label Length and gap
    "R0,0\n" + "N\n" + "ZB\n" + "Q122,16\n" +
    "A160,2,0,3,1,1,N,\"DATA: CARUGATE\"\n" +
    "B160,30,0,1A,2,7,50,N,\"612041600021580109\"\n" +
    "A160,92,0,1,1,1,N,\"AIA AGRICOLA IT.ALIMENT.S - 594679/VR\"\n" +
    "P1\n";
    byte[] by = s.getBytes();
    DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;
    // MIME type = "application/octet-stream",
    // print data representation class name = "[B" (byte array).
                Doc doc = new SimpleDoc(by, flavor, null);
                job.print(doc, null);
            } catch (PrintException e) {
    e.printStackTrace();
    Can anyone point me to the proper direction on how to accomplish this task?
    Thanks,
    Wes

    Hi,
    if you build a web application then you have to integrate a Swing based Applet to the web age to access the local client. You can't with native web means
    Frank

Maybe you are looking for

  • I would like to know which model has been discontinued? is it EOS 600D or 650D?

    i would like to know which model has been discontinued? is it EOS 600D or 650D?  And is 650d at 1650 a good deal? 

  • Retreiving files saved with Time Machine on a different computer

    I am trying to view files on my external hard drive that I saved from my Macbook Pro on an older Macbook that does not have Time Machine on it. Any folder I try to open is locked and I get a message saying it is empty. When I checked the backups on t

  • Mac mini server 10.7.4 crashes

    after upgrading to 10.7.4 the mac mini (2011) server crashes. the fan at some point gets very noisy followed by server crash. there is a solid state drive mounted with server software running and a second hard drive with backup how can I proceed?

  • Is anyone having playback issues with PPro CC 7.0.1?

    Using the same computer and working on the same project, we're experiencing playback that often hangs at cut points. We had no problem playing back on the previous version of CC. Happening on multiple machines in our production studio.

  • TextPane Color Problem, Plz Help me !!!!

    hi This is regarding the color of selected Text. I have written some text and added some style in the document with different colors. When selected this text becomes of same color. I want to make known that the selected text is of different color.The