Webutil CLIENT_HOST problem

Hi,
I am trying to use Webutil_host.NonBlocking_With_Callback.
When I invoke a txt document via notepad, it works fine but not for doc file
This is for Notepad:
V_PROCESS_ID := WebUtil_Host.NonBlocking_With_Callback('NOTEPAD '||C:\Test.txt, 'CALL_BACK');
This works absolutely fine,it opens the txt file and my code in Call_Back trigger gets fired when I close the 'Notepad Application'
But when I want to open word doc I cannot use above code. so I have to use
v_cmd := 'cmd /c C:\Test.doc';
V_PROCESS_ID := WebUtil_Host.NonBlocking_With_Callback(v_cmd , 'CALL_BACK');
This works fine upto opening the document, but also immediately fires the code in Call_Back trigger not waiting for the 'Word Application' to be closed.
Is there a way to get around this???

Hi Manohar.
Could you please post the text of the metalink note 290130.1 for someone that has not access to metalink???
Thanks,
Fabrizio

Similar Messages

  • Webutil client_host problem executing pkzip pkunzip commands

    Hi,
    I configured webutil with Developer 10g (9.0.4).
    I used webutil_106.zip and jacob_18.zip.
    The execution of this statements (example) are successfully:
    CLIENT_HOST('notepad');
    CLIENT_HOST('tnsping db');
    However, when I issue this ones (in order to zip/unzip files):
    CLIENT_HOST('pkunzip d:\arch.zip d:\tmp');
    or
    CLIENT_HOST('pkzip....');
    I got this error:
    100501 non-OracleException
    What do I have to configure in order to execute this commands????
    Regards, Santiago

    I find the solution in metalink.
    Execute the commands like this:
    client_host('cmd /c start c:\pkzip .....');

  • How to run multiple DOS commands from a single Webutil Client_Host session?

    Hello all,
    I have a requirement where I need to create an interface with SVN from Forms for basic checkin-checkout of files.
    So, I've been trying to use webutil client_host to open a command line session and issue svn commands.
    For svn, sometimes I need to give multiple commands like change to a particular directory and then run an svn command.
    But client_host takes in only one command at a time and I'm unable to issue a series of DOS commands to perform
    a particular task.
    Is there a way to do this?
    Pls suggest.
    Regards,
    Sam

    First your original question... You can put more than one DOS command on a single line, simply separate each command with an ampersand (&). For example:
    mkdir c:\abc & cd abc & dir*
    Regarding your concerns about performance, well that would depend on exactly what you mean. Using CLIENT_HOST (or HOST on the server) simply opens a shell (DOS in this case) then passes your command to it. The performance of performing this action really isn't measurable. Basically you are just pressing a button and you should get a near immediate action. As for the performance of executing each command, that has nothing to do with Forms. Once the command is passed to the shell, the rest is a function of the shell and whatever command you passed.
    Having said that, if you were to write something sloppy like a loop (in pl/sql) which called CLIENT_HOST lots of times repeatedly, then yes there would be a performance problem because the pushing of the button will cause an exchange to and from the server and each cycle in the loop will do the same.
    So the answer to how performance is impacted will depend on what exactly you need to accomplish. If it is a single call to CLIENT_HOST, this should be fine.

  • Webutil client_host

    I'm using webutil(client_host).
    e.g.
    CLIENT_HOST( 'CMD.EXE /C START '||NAME_IN( 'block_name.item_name' ) );
    The value acquired using CLIENT_GET_FILE_NAME goes into 'block_name.item_name'.
    In 'C:\Documents and Settings' e.g. becomes an error when a folder with a blank is specified.
    If there is the solution method, please let me know.

    Hi Duncan.
    If so, you just need to alter your command
    a little to enclose the path in quotes. e.g)Unfortunately It may not work. START will think that the parameter is a title of a window, not a command.
    C:>START /?
    Starts a separate window to run a specified program or command.
    START ["title"] [Dpath]  [MIN] [MAX] [SEPARATE | /SHARED]
    [LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
    [WAIT]  [command/program]
    [parameters]
    "title" Title to display in window title bar.
    path Starting directory
    etc...

  • WEBUTILS CLIENT_HOST

    I am using the webutil client_host functionality.
    The following command calls the program correctly but the tabs have been ignored or replaced by spaces.
    CLIENT_HOST('creditcarddonations.exe '||:global.connum||CHR(9)||v_name||CHR(9)||RTRIM(v_address, CHR(9)));
    Any Ideas?
    Works fine using host in Forms 6i
    Nigel

    On further investigation the tabs exist in the command string up to the SET_CUSTOM_PROPERTY in the webutil_core.set_item_property procedure

  • Problems with Webutil Client_Host

    Hi,
    We are working on Forms10g on Win XP Environment. I have installed Webutil on m/c. On When Button Pressed trigger I am trying to use Client_Host command to execute a batch file. Upon hitting the button it displays message saying " Please Acknowledge " and then it displays Error Message " 40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06503". Any help in this regard is highly appreciated.
    Regards

    ORA-06503: PL/SQL: Function returned without value
    Cause: A call to a PL/SQL function completed, but no RETURN statement
    was executed.
    Just a wild guess, but maybe this will help:
    DECLARE
    pid WEBUTIL_HOST.PROCESS_ID;
    BEGIN
    pid := WEBUTIL_HOST.NONBLOCKING_WITH_CALLBACK('CMD /C NOTEPAD '||fname,'HOST_CALLBACK');
    END;

  • Client_Host Problem in forms 10g

    Hi friends,
    could you plz help in solving my problem :
    I have to implement webutil package for client_host procedure.
    I have followed all the steps to setup webutil in my production environment which are given in document ( in downloaded file Webutil_106)
    while executing the form , i am getting the following error message
    oracle.forms.webutil.host.Host Bean not found
    i am not getting where i went wrong. my guess is while subclassing the bean item, while trying to subclass to webuti_host_functions, it is saying
    FRM-13008 cannot find javabean with name oracle.forms.webutil.host.Host
    Thanks in advance.
    -- DJ

    Hi kumar,
    Thanks for u response and solution.
    as you said, i did re compilation of the whole module, but i am getting this
    problem. could you plz correct me the way i am doing is wrong
    * configured for webutil.
    * created a block with pushbutton to call 'Client_Host' Procedure
    * attached webutil.pll
    * subclassed webutil.olb, in result i got webutil block with bean items
    * compiled the module
    * execute the module
    ----- getting the said problem
    Thanks in advance for making a time for me
    --DJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • 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 - Client_host not working

    Hi all,
    I have installed/configured Webutil along with Jacob.jar and signed them. Also compiled the webutil.pll. Attached this to a form and when I used the client_host command to call any exe file, I get a please acknowledge message and the thereafter no processing.
    I am using Oracle Forms 9.0.4.
    sample command
    client_host('CMD /C cp c:\abc.txt c:\a.txt');
    Is this could be configuration issue of webutil?
    An exe on Application server should be opened in the client system.
    Is there any other way to access this?
    Please suggest.
    Regards,
    Gopal.

    Hello,
    I tested with Webutil 1.0.5 and Forms 9.0.4 on Windows 2000:
    It worked for me with:
    client_host('CMD /C cp c:\abc.txt c:\a.txt');
    What OS do you have?
    You should check to see if it does work in CMD promt in order to see if this is an OS issue or an WebUtil issue.
    Best Regards,
    Eugen

  • WebUtil: CLIENT_HOST arg #2

    According to the PROCEDURE BODY of CLIENT_HOST WebUtil's attached library, there is a second argument (KWD in number).
    Does anyone know what this does? The Oracle documentation I have seen does not address this argument.
    Also: Is there a way to launch a client-side application asynchronously so that the user does not have to exit the client app in order to free-up the oracle screen which launched it?
    Thanks for any insight.

    Hello,
    The Webutil HOST package contains all you need:
      FUNCTION  Host(cmd in VARCHAR2) return PLS_INTEGER;
      PROCEDURE Host(cmd in VARCHAR2);    
      FUNCTION  Blocking(cmd in VARCHAR2) return PROCESS_ID; 
      PROCEDURE Blocking(cmd in VARCHAR2);  
      FUNCTION  NonBlocking(cmd in VARCHAR2)return PROCESS_ID;
      PROCEDURE NonBlocking(cmd in VARCHAR2);
      FUNCTION  NonBlocking_With_Callback(cmd in VARCHAR2, callbackTrigger in VARCHAR2)return PROCESS_ID;As you can see, it contains a NonBlocking function ;o)
    Francois

  • WebUtil Config problem

    Hello Forms, WebUtil and Java Gurus,
    I have installed and configured WebUtil on the Windows 2003 server on the 10gDS following instructions in WebUtil document and release notes including jacob, makecert and signing of the jar files. Everything went smoothly.
    But when I compile my (menu)form I get the following error
    FRM-92050: Failed to connect to the Server:/forms90/|90servlet;
    (Note: The "|" in |90servlet above is either lower case L or upper case I but both look the same on the screen)
    jesssionid=c0a9.......... :-1
    Details...
    Java Exception:
    java.io.IOException: Connection failure withh 500
    at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
    at oracle.forms.netHTTPNStream.doGet(Unknown Source)
    at oracle.forms.netHTTPNStream.getInfoFromServlet(Unknown Source)
    at oracle.forms.netHTTPNStream.<init>(Unknown Source)
    at oracle.forms.netHTTPNConnection.connect(Unknown Source)
    at oracle.forms.engine.FormsDispatcher.initConnection(Unknown Source)
    at oracle.forms.engine.FormsDispatcher.init(Unknown Source)
    at oracle.forms.engine.RunForm.initConnection(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)
    I am very anxious to use WebUtil because it has some neat features that I can use in my probject.
    I need help.
    Thanks.
    Suresh

    Hi Duncan,
    Yes, Menuform and all the forms that are being called by Menuform have been working for last 6 months. Even now the old version of menuform where I do not use webutil.pll or webutil.olb works fine and Users are using it.
    I got intrigued by WebUtil because of many features it has and I am trying to configure and test it.
    Also, in the menuform where I use webutil.pll and webutil.olb, if I go in the layout editor and look at webutil_canvas, I get the following message:
    FRM-13008: Cannot find JavaBean with name
    oracle.forms.webutil.ole.oleFunctions.
    and the 6th line on the canvas is blank.
    Further, when I go to the Java Console for the menuform with WebUtil, I see the following messages which looks like it is OK:
    Oracle JInitiator: Version 1.3.1.17
    Using JRE version 1.3.1.17-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Administrator.BIGDADDY
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: C:\Documents and Settings\Administrator.BIGDADDY\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://bigdaddy:8889/forms90/java/f90all_jinit.jar from JAR cache Loading http://bigdaddy:8889/forms90/webutil/webutil.jar from JAR cache RegisterWebUtil - Loading WebUtil Version 1.0.5 Production Loading http://bigdaddy:8889/forms90/webutil/jacob.jar from JAR cache proxyHost=null proxyPort=0 connectMode=HTTP, native.
    I hope I have given here enough information to pinpoint the problem and solve this issue, so that I can start using WebUtil.
    Thanks.
    Suresh

  • Pb de lenteur avec WEBUTIL / Slow problem with WEBUTIL

    Bonjour,
    J'ai implémenté l'objet WEBUTIL afin de charger les données d'un fichier Excel dans un Forms (10G). Cela fonctionne correctement mais je rencontre de gros problèmes de lenteur pour extraire ces données.
    Avez-vous rencontré le même cas ? Comment l'avez-vous résolu ?
    Merci pour votre aide.
    Hi,
    I use the Webutil object to import data, stored in Excel file, to a Forms in version 10G. It works but I have huge slow problems to extract the data.
    Do you have this kind of problems ? How do you solve them ?
    Thanks for helping.
    Séverine

    Yes, of course.
    This is an extract of the code :
    app     CLIENT_OLE2.OBJ_TYPE;
    wbooks     CLIENT_OLE2.OBJ_TYPE;
    wbook     CLIENT_OLE2.OBJ_TYPE;
    wsheet     CLIENT_OLE2.OBJ_TYPE;
    wsheets     CLIENT_OLE2.OBJ_TYPE;
    args     CLIENT_OLE2.LIST_TYPE;          
    app := CLIENT_OLE2.create_obj('Excel.Application');
    CLIENT_OLE2.SET_PROPERTY(app,'Visible',0);
    wbooks := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Workbooks');     
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.add_arg(args, filename);
    wbook := CLIENT_OLE2.INVOKE_obj(wbooks, 'Open', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    wsheets := CLIENT_OLE2.GET_OBJ_PROPERTY(wbook, 'Worksheets');     
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.add_arg(args, 'Instructions');
    wsheet := CLIENT_OLE2.GET_OBJ_PROPERTY(wsheets, 'Item', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.add_arg(args, 1);
    CLIENT_OLE2.add_arg(args, 1);
    cell := CLIENT_OLE2.INVOKE_obj(wsheet, 'Cells', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    Tampon1 := TRIM(CLIENT_OLE2.get_char_property(cell, 'Value'));
    CLIENT_OLE2.release_obj(cell);
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.add_arg(args, 1);
    CLIENT_OLE2.add_arg(args, 3);
    cell := CLIENT_OLE2.INVOKE_obj(wsheet, 'Cells', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    Tampon2 := TRIM(CLIENT_OLE2.get_char_property(cell, 'Value'));
    CLIENT_OLE2.release_obj(cell);
    I get about a hundred cells in my Excel File and it takes more than 1 minute.
    Thanks.
    Séverine

  • Webutil.olb Problem

    Hi,
    When I want to load forms. It gives me error like
    FRM-18108: Failed to load following object.
    Source Module: webutil.olb
    Source Object: webutilconfig
    I have some other forms. those are work fine. when I try to find subclass information. it shows not found. Please aslo check attachment file.
    Please help me to sove this issue. Is there any way to see reference object link either webutil.olb/ any forms ?
    Thanks
    Biswajit

    Apologies for mentioning your name as I used one of your example to do it myself.
    Just thought that you will be right person to understand my problem.
    Apologies again from you and everyone on forum

  • Webutil demo problems - WHEN-TIMER-EXPIRED error

    Hi there,
    I have just installed the 10.1.2 forms no problems. I then downloaded the demo of webutil from OTN and cannot get it to run properly. Can anyone help.
    I initially had to rename the webutil.pll (i renamed to webutil_lib.pll as recommended in an earlier forum) file to overcome an initial error and now I can at least see the runtime canvas. I dropped and re-attached the attached libraray for this pll file (Is this all I have to do?)
    The problem is I immediately get the error FRM-40735:WHEN-TIMER-EXPIRED trigger raised unhandled exception ORA-06508 in the console. This error continues for every event I do that has a trigger associated, ie changing tabs or pressing buttons, the only difference in the error message is the trigger name.
    I can see the canvas and various items on the tab sheet but none of the triggers that refernce webutil appear to work.
    I presume I have missed something simple, possibly when I renamed the .pll file.
    Any ideas.
    Doug

    Dougo,
    I checked our bug database for this topic and couldn't find anything reported. Can you file a TAR with support to have them analyzing your problem. (metalink.oracle.com)
    Frank

  • Webutil.client_host relative path

    Hi, I'm upgrading an old 6i client application. There are some calls to host commands that contain relative paths.
    ..\import\start.batFrom 10G using client_host these files are not found. Probably the paths are not relative to the location of the fmx file?
    Edited by: Rene W. on Jan 29, 2009 1:07 AM
    Solved, should have left "host' instead of client_host in this particular instance.

    Hi, yes I realized that after posting my question. We start a couple of conversion tools before loading data into the database. Advantage of the webforms is that files can be uploaded to the AS and conversion can run from there. No need to have the conversion tools on all the clients anymore.

Maybe you are looking for