URL_TO_CLIENT in webutil

hi, world
I am facing a problem with webutil_file_transfer.url_to_client in forms. am getting "WUC-18 Invalid server side file specification" error when i try the following code
DECLARE
FLAG BOOLEAN;
BEGIN
FLAG:=WEBUTIL_FILE_TRANSFER.URL_TO_CLIENT('http://sis60.suntecsis.com/public/test.txt', 'C:\public\');
END;
i would like to know
1. how to specify the URL in the url_to_client function?
2. whar are the configurations needed for this function to work?
3. any same code availabe for webutil commands?
waiting for your valuable directions
with regards
Aby Scaria
Program Manager
SunTec

two options:
from the documentation:
"One of the key features of WebUtil is its ability to auto-install any client side libraries that it requires. This feature is used by WebUtil internally for it’s own requirements, but can also be used by the WebUtil administrator to install application specific libraries as well.
The key setting in this section is install.syslib.location this should point at the virtual directory that contains the various WebUtil libraries which you should have defined as /webutil This path needs to either be an absolute URL of the machine and virtual directory mapped to the webutil\lib directory e.g.
http://apps-1/forms90/webutil
Or a virtual directory relative to the documentbase (<server>/forms90/) e.g. /webutil.
Libraries to be downloaded are then listed in the entries with the Format syslib.<os>.<package>.<n> where:
• <os> is a number representing the client operating system family that this library is destined for. These are the applicable codes Code O/S Family
0 Windows 32 bit (XP, Win2000 etc)
1 Linux
2 Solaris
3 HP
4 AIX
5 Mac
• <package> is an identifier representing the WebUtil component that uses this library. To add your own library to the download list you should use “user” for this value.
• <n> a sequence number starting at 1 and incrementing by 1 – there must be no gaps in this sequence for a particular platform and package combination. The library definition string itself consists of four segments delimited by a vertical bar.
The format is name|size|version|showDownloadDialog:
• Name – the name of the library file including its extension e.g. jacob.dll, cfunc.so
etc.
• Size – the size in bytes of the library. This is used to checksum the download andmust be correct
So make sure install.syslib.0.7.1 represents your platform correctly.
A second option to try is to provide an absolute URL for the syslib location in teh webutil.cfg file
install.syslib.location=http://host:port/forms90/webutil
Frank

Similar Messages

  • Webutil_file_transfer.url_to_client: How to open in a browser?

    Hi,
    I have succeeded in running webutil from the server, but the page is downloaded as a file on my client machine.
         lb_url := webutil_file_transfer.url_to_client('http://www.oracle.com', 'c:\cf', null);
    I would like to have the second argument to run a browser to see the page dynamically.
    How could I do that?
    Many thanks for your help.
    Edited by: JeanParis on May 25, 2011 12:01 PM

    I did
    declare
    stnd WEBUTIL_HOST.OUTPUT_ARRAY ;
    error WEBUTIL_HOST.OUTPUT_ARRAY ;
    process WEBUTIL_HOST.PROCESS_ID ;     
    id_session_telephone varchar2(4000);
    commande_tel varchar2(2000);
    lv_guill varchar2(10) := chr( 34 );
    begin
    commande_tel := 'iexplore ' || lv_guill || 'http://www.oracle.com' || lv_guill;
    process := WEBUTIL_HOST.Blocking(commande_tel);
    exception
         when others then
         lib_alert( 'Exc en W B P Telephone: ' || sqlerrm );
    end;
    And it worked!
    The calls to webutil were initially meant to dial a client number, but it did not work so I use simply ' host ' instead.
    Many thanks

  • Webutil_file_transfer url_to_client places objects in the Java Cache

    Hi,
    I'm using webutil_file_transfer url_to_client to download a PDF file.
    Once I downloaded the PDF file, it is visible in the Client Java Cache Viewer. When I try to run the download again webutil takes the PDF from the Cache instead taking the newer PDF from the Server where the URL is pointing to.
    So the URL I passing is each time the same, but the PDF file on the Server is getting updated very often.
    I don't usethe WEBCACHE port!
    My question now is. Can I avoid webutil to put does PDF file in the Java Cache on the Client. Or is there any utility to remove selected objects from the Java Cache.
    Does anybody have a Idea how to avoid such a behaviour?
    Fatih

    Hi Craig,
    with the help of Oracle Support, we found the reason and also a workaround for this issue.
    The real cause:
    By default the java applet parameter DefaultUseCaches is true an all files downloaded within an applet is going throug the Java Client Cache.
    WEBUTIL does not touch this parameter, so it keeps staying default (true).
    Solution/workaround:
    With the methode setDefaultUseCaches it possible to disable/enable the default Cache setting.
    So it's possible to disable the cache with a small Java Bean running in Forms, which disable the Cache before WEBUTIL_FILE_TRANSFER and enable it after the successfull download.
    here is an extract of the bean code:
    URL u = new URL( "http:" );
    URLConnection uc = u.openConnection();
    uc.setDefaultUseCaches(false);
    thank you for your time!
    regards,
    Fatih

  • URL_TO_CLIENT must be declared

    Hello,
    I am working on a customer form that uses the webutil library. I am trying to implement a URL_TO_CLIENT call with:
    WEBUTIL_FILE_TRANSFER.URL_To_Client(:crash_images.filename, '\\voyager\oh1_images\' ||:CRASH_IMAGES.folder || '\' || :crash_images.docno ||'.tif');
    But when I try to compile I get an error that says URL_TO_CLIENT needs to be declared. I have attached the .pll library and the object group to the form, but still get the error. Am I missing a trigger or something that declares this function so the form can use it?
    Please Advise
    Jordan

    Well yea, I guess I didn't even think about that... I am trying to pass a url on the server (file:///T:\images\imagefile.tif), and the procedure is declared as a varchar. Since the files aren't in the db as a blob, and they are on the server in a directory, is there a datatype that would best suite it?

  • Using WebUtil Function giving an error

    I installed the WebUtil, i executed the demo(example which would have been in installation file which is running on my system) but now i want to open html file in my form using webutils function present in some remote system WEBUTIL_FILE_TRANSFER.URL_To_Client I have been created the form with one button & wrote an trigger when-button-pressed wrote the below means calling the below function which is giving an error
    WebUtil_file_transfer.URL_To_Client('www.somesite_filename.com','C:\CR');
    or
    WebUtil_file_transfer.URL_To_Client('C:\CR','www.somesite_filename.com');
    ERROR::'URL_TO_CLIENT' is not a procedure or is undefined
    Could u please help me & if u have any documents related to webutil please send those to me.My mail id is: [email protected]

    You need 3 arguments...
    FUNCTION URL_To_Client(    sourceURL         in VARCHAR2,
                                 clientDestination in VARCHAR2,
                                 fileSize          in PLS_INTEGER default 0) return BOOLEAN;
    webutil_file_transfer.url_to_client('some_url', 'c:\cf', null);------- snip from comments of webutil.pll --------------
       * URL_To_Client - pulls a file from the specified URL on any server and
       * sends it via http to the specified destination on the client
       * If you specify file size we can do a comparison after download to ensure
       * that the sizes match
       * Additionally if you specify withProgress and size you will get a progress
       * bar.
       * If you don't specify any size or if you specify default size, then webutil
       * will try to get the size of the url on its own for the purpose of showing
       * the progress bar.
       * Note that the Title, subtitle and message strings cannot contain the '|'
       * character
      FUNCTION URL_To_Client(    sourceURL         in VARCHAR2,
                                 clientDestination in VARCHAR2,
                                 fileSize          in PLS_INTEGER default 0) return BOOLEAN;
      FUNCTION URL_To_Client_With_Progress(
                                 sourceURL         in VARCHAR2,
                                 clientDestination in VARCHAR2,
                                 fileSize          in PLS_INTEGER default 0,
                                 progressTitle     in VARCHAR2,
                                 progressSubTitle  in VARCHAR2,
                                 progressMessage   in VARCHAR2) return BOOLEAN; 
    ----------------- End Snip ----------Message was edited by:
    Mark Reichman

  • Webutil tuning?

    Is it possible to tune the Webutil_File_Transfer.Client_To_AS_with_progress in some way? Like setting chunk size or something else? We are experiencing bad perforance for uploading files to AS.
    Downloading a 5 Mb file takes apx 5 minutes using webutil. Uploading using Webutil takes apx 3 minutes. Downloading with standard http takes less than 10 sec. (No cache involved)
    /Cheers

    The default (and maximum) chunk size is 16k and can be configured through a formsweb.cfg parameter WebUtilMaxTransferSize (this is documented in the manual)
    For download you should use URL_To_Client if the thing you want to download is available at a URI - this uses the same mechanism as the browser and streams the data rather than chunking it, so is much faster.
    The upload speed is somewhat restricted yes - but that is because I wanted a solution that:
    1) Would tunnel through all the same proxies and firewalls that forms can
    2) Did not require you to set up a separate servlet.
    If you really need a faster upload or if you're handling such large files then set up a CGI or perl program to do it - you can find plenty of file upload examples on the web

  • Which document root from webutil functions?

    I have a form where I want to get reports output to the client using the URL_To_Client function from webutil (the report is run with run_report_object). The URL to the reports servlet should best be given as a relative URL, e.g. /reports/rwservlet/etc. But this does not work. The URL seems to be relative to the Forms document root (http://server:port/forms) and not against the HTTP document root! The problem can be solved by prepending '..' before the relative path, but when calling a URL from web.show_document the URL is relative to the HTTP document root.
    Can anybody explain the difference?

    Actually I mean the document root in webserver. I have put servlet in doc-root/servlet so I would like to find doc-root in an applet when I can get URL from getCodeBase(). So that I can make open a connection to servlet.
    Thanks

  • Error while compiling forms10g in Unix with webutil features.

    Hi,
    I developed a form called test.fmb and attached webutil.pll. change all text_io to client_text_io.
    Copied the file to unix and tried to compile, it says
    CLIENT_TEXT_IO.FILE_TYPE must be declared.
    (Please note that webutil.pll has been compiled and .plx file is generated).
    Please help.
    Thanks.

    Our Forms_90 Path is
    FORMS90_PATH=/AppsTop/FRMTOP/app/9.0.4/forms90:/AppsTop/FRMTOP/app/9.0.4/pi:/AppsTop/FRMTOP/app/9.0.4/webutil:/AppsTop/FRMTOP/app/9.0.4/webutil/forms
    I just copied webutil.pll from
    :/AppsTop/FRMTOP/app/9.0.4/webutil/forms/webutil.pll to
    my local directory C:\webutil.pll
    I attached the C:\webutil.pll under Attached Libraries in test.fmb in my own PC.
    Please advice.
    Thanks,
    Mano.

  • Error in loading WebUtil package

    Dear all,
    i have the following problem,
    we have install the application server on one machine
    Windows server 2003 Enterprise edition
    (both the infra and middle tier on the same machine), and we wanted to configure the webutil package with this installation for runtime usage, we met all the configuration steps, and we met all the platform security privilages(windows privilages),but..
    when we try to open the form that uses this package, we found two problems, the form didn't open at all and the following log written to the java console which indicates that there is a problem while loading the webutil beans(last few lines)
    Waiting for help, and following is the log
    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\Administrator.PWAGAZA Proxy Configuration: Manual Configuration Proxy: 192.168.0.5:8080 Proxy Overrides: pwa-application.pwagaza,<local> JAR cache enabled
    Location: C:\Documents and Settings\Administrator.PWAGAZA\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/forms/java/frmall_jinit.jar from JAR cache Loading http://localhost/forms/java/frmwebutil.jar from JAR cache RegisterWebUtil - Loading WebUtil Version 10.1.2.0 java.io.FileNotFoundException: File not found: http://localhost/forms/java/myAppIcons.jar      at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)      at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)      at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)      at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)      at oracle.jre.protocol.jar.JarCache.get(Unknown Source)      at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)      at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)      at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)      at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)      at sun.misc.URLClassPath$2.run(Unknown Source)      at java.security.AccessController.doPrivileged(Native Method)      at sun.misc.URLClassPath.getLoader(Unknown Source)      at sun.misc.URLClassPath.getLoader(Unknown Source)      at sun.misc.URLClassPath.getResource(Unknown Source)      at java.net.URLClassLoader$1.run(Unknown Source)      at java.security.AccessController.doPrivileged(Native Method)      at java.net.URLClassLoader.findClass(Unknown Source)      at sun.applet.AppletClassLoader.findClass(Unknown Source)      at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)      at java.lang.ClassLoader.loadClass(Unknown Source)      at sun.applet.AppletClassLoader.loadClass(Unknown Source)      at java.lang.ClassLoader.loadClass(Unknown Source)      at java.lang.ClassLoader.loadClassInternal(Unknown Source)      at java.lang.Class.forName0(Native Method)      at java.lang.Class.forName(Unknown Source)      at oracle.ewt.util.FocusUtils.<clinit>(Unknown Source)      at oracle.ewt.lwAWT.LWComponent.<clinit>(Unknown Source)      at oracle.ewt.laf.oracle.OracleLookAndFeel._initCommonFixedDefaults(Unknown Source)      at oracle.ewt.laf.oracle.OracleLookAndFeel._getCommonDefaults(Unknown Source)      at oracle.ewt.laf.oracle.OracleLookAndFeel._getIndexedDefaults(Unknown Source)      at oracle.ewt.laf.oracle.OracleLookAndFeel.getDefaults(Unknown Source)      at oracle.ewt.lwAWT.BufferedApplet.getUIDefaults(Unknown Source)      at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source)      at oracle.ewt.swing.JBufferedApplet.<init>(Unknown Source)      at oracle.forms.engine.Main.<init>(Unknown Source)      at java.lang.Class.newInstance0(Native Method)      at java.lang.Class.newInstance(Unknown Source)      at sun.applet.AppletPanel.createApplet(Unknown Source)      at sun.plugin.AppletViewer.createApplet(Unknown Source)      at sun.applet.AppletPanel.runLoader(Unknown Source)      at sun.applet.AppletPanel.run(Unknown Source)      at java.lang.Thread.run(Unknown Source) WARNING: Unable to cache http://localhost/forms/java/myAppIcons.jar Loading http://localhost/forms/java/jacob.jar from JAR cache Loading http://localhost/forms/java/FormsGraph.jar from JAR cache proxyHost=null proxyPort=0 connectMode=HTTP, native. Forms Applet version is : 10.1.2.0 2006-Jul-10 12:07:37.481 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.481 WUI[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.496 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.496 WUF[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.496 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.512 WUH[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.512 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.512 WUS[SessionFunctions.init()] Dispatcher Monitoring interval set to 5 2006-Jul-10 12:07:37.512 WUS[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.527 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.527 WUT[SessionFunctions.init()] Max Transfer chunk size set to 16384 2006-Jul-10 12:07:37.527 WUT[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.699 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.699 WUO[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.715 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.715 WUL[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.715 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.715 WUB[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.730 WUI[VBeanCommon.destroy()] WebUtil GetClientInfo Utility being removed.. 2006-Jul-10 12:07:37.730 WUF[VBeanCommon.destroy()] WebUtil Client Side File Functions being removed.. 2006-Jul-10 12:07:37.730 WUH[VBeanCommon.destroy()] WebUtil Client Side Host Commands being removed.. 2006-Jul-10 12:07:37.730 WUS[VBeanCommon.destroy()] WebUtil Session Monitoring Facilities being removed.. 2006-Jul-10 12:07:37.730 WUT[VBeanCommon.destroy()] WebUtil File Transfer Bean being removed.. 2006-Jul-10 12:07:37.730 WUO[VBeanCommon.destroy()] WebUtil Client Side Ole Functions being removed.. 2006-Jul-10 12:07:37.730 WUL[VBeanCommon.destroy()] WebUtil C API Functions being removed.. 2006-Jul-10 12:07:37.902 WUB[VBeanCommon.destroy()] WebUtil Browser Functions being removed..

    Hi Geetha
    check if that job is still running,if it is running kill that job first.
    change the Data package size from the schduler menu
    Now try to load the data again
    Regards
    PBI

  • 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

  • After upgrading AS to run Webutil, Reports Server is no longer found

    Recently we update de configuration of Application Server to use the WebUtil features (FileTransfer, etc) but some clients can not view the reports (the PDF files generated and the previous html page where are passed de parameters to generate de PDF file paramform=yes <--- I mean this parameteter passed to RUN_REPORT_OBJECT_PROC )
    The curious thing is that in NetScape it Works fine, but in MS Internet Explorer does not.
    Initially we thought that was the problem, a configuration in the client, but after formatting the PC, the problem persists.
    In the webutils log (after enable this capabilitiy) does not show anything abnormal:
    192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 2
    192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
    192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[loadSettings()] Local properties file loaded
    192.168.0.244:desarrollo: 2006-sep-27 12:19:47.248 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
    192.168.0.244:desarrollo: 2006-sep-27 12:19:47.248 WUT[getProperty()] Getting
    In a similar topic we read that it could be a problem with the reports classpath, but why webutils configuration works in some clients and with others does not?
    In the RUN_REPORT_OBJECT_PROC function instead using relative address for the reports servlet we changed for a complete adress, I mean
    RUN_REPORT_OBJECT_PROC(repid,
    '/reports/rwservlet')
    replaced with:
    RUN_REPORT_OBJECT_PROC(repid,
    'http://ias.website/reports/rwservlet')
    But the problem persists (we have the reports and forms services in the same server)
    and after debugging the RUN_REPORT_OBJECT_PROC function, in this line
    rep_status := report_object_status(report_message);               
    report_object_status returns null
    Why happends this?
    Could you help us? What information need to be posted to this? what else we need to do?
    We configured webutils as mentioned in the Oracle® Forms Developer
    WebUtil User’s Guide
    Release 1.0.6
    We're using MS Windows 2003 Server, Oracle AS 10g and Oracle DB 10g
    The RUN_REPORT_OBJECT_PROC function (procedure) is the same what is mentioned in
    http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.pdf
    and the same that worked fine for a long time ago.

    We added the following lines to webutiljini.htm
    For IE
    <PARAM NAME="BROWSER" VALUE="InternetExplorer">
    <PARAM NAME="MAYSCRIPT" VALUE="TRUE">
    For NetScape:
    BROWSER="Netscape"
    MAYSCRIPT="true"
    And adding the frmwebutil.jar to the Reports Server ClassPath the problem was solved

  • 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 upload data from excel to form using webutil

    Hi,
    In the sample provided by Oracle
    http://www.oracle.com/technology/products/forms/htdocs/webutil/howto_ole.html
    Note 247606.1 How to Copy Records From a Form Into Excel
    It shown the methods of how to copy data from form to excel but is there any sample to provide the step on how to read the cell from excel into Form in 10g.

    declare
    args client_ole2.list_type;
    application client_ole2.obj_type;
    vworkbooks client_ole2.obj_type;
    vdoc     client_ole2.obj_type;
    vworksheet     client_ole2.obj_type;
    vrange               client_ole2.obj_type;
    begin
    -- create app object
    application := client_ole2.create_obj('Excel.Application');
    client_OLE2.SET_PROPERTY(application, 'Visible','True');
    -- get workbooks object
    vworkbooks := client_ole2.get_obj_property(application, 'Workbooks');
    -- and open a file
    args := client_ole2.create_arglist;
    client_ole2.ADD_ARG(args, 'c:\tp_ae.xls');
    vdoc :=client_ole2.INVOKE_OBJ(vworkbooks,'Open',args);
    client_ole2.destroy_arglist(args);
    -- get a worksheet object
    -- for this to work you need to know the sheet name or its index
    args := client_ole2.create_arglist;
    client_ole2.ADD_ARG(args, 1); <-- name or index
    vworksheet := client_ole2.get_obj_property(vdoc,'Worksheets',args);          
    client_ole2.destroy_arglist(args);
    -- get a range object which in this case is just a cell
    -- for this to work you need to know the cell coordinates
    args := client_ole2.create_arglist;
    client_ole2.ADD_ARG(args, 'B6');          
    vrange := client_ole2.get_obj_property(vworksheet,'Range',args);
    client_ole2.destroy_arglist(args);
    -- and here you get the value
    message(client_ole2.get_char_property(vrange,'Value'));
    -- release objects          
    client_ole2.release_obj(vrange);
    client_ole2.release_obj(vworksheet);
    client_ole2.release_obj(vdoc);
    client_ole2.release_obj(vworkbooks);
    client_ole2.release_obj(application);
    end;

  • 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 download file from app server

    i am calling a report from forms. report uses text_io to write delimited data to app server disk. report info also displays in browser using web.show_document. when i call report from forms i run report, use web.show_document to display in browser and then call webutil to download file to client form appserver. sequence would be in a manner as below:
    run_report_object (report_id);
    when report = finished then
    web.show_document;
    end if;
    webutil.download_file (filename);
    the problem is this: the web.show_document code runs but while this is running the webutil code also is running. but the report has not completed yet so when webutil runs looking for the file the report is supposed to write it cannot find it since the report has not completed. web.show_document fires off a browser session and then immediately runs the webutil code. but i dont want the webutil code to run until the report has successfully completed. does anyone know how to integrate these two functions into one step instead of running the report and allowing it to complete and then executing a separate step to download the file.
    thank you

    You might want to try this code snippet....
    --- code to set parameters, declare variables etc...
    l_report_return := run_report_object(l_report_id);
    l_report_status := report_object_status(l_report_return);
    WHILE l_report_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
         l_report_status := report_object_status(l_report_return);
    END LOOP;
    IF l_report_status = 'FINISHED' THEN
         /*Display report in the browser*/
         web.show_document(......);
    ELSE
         message('Error when running report ');
    END IF;

Maybe you are looking for

  • Print out of cash receipt in FBCJ

    Hi,    We have posted a document in FBCJ. Now I want to take print out of that as per our own format. For this my ABAPer developed a program. For print of this document we used to click on Edit-Print Receipt. Which can provide us the output. My Progr

  • DO NOT user the 2006-01-10 Updater on Windows XP

    I tried running the 2006-01-10 Updater on my XP machine and it wreaked havoc with my system AND my iPod. First running just "Update", and NOT "Restore", yes I made absolutely sure, wiped all of my data off of my 20GB iPod. Then when I tried to restor

  • LR/PS CC in South Africa

    I'd like to take up the $9.99 offer for LR/PS CC. When I tried online, I received a notification that it wasn't available in my country, South Africa, yet this site says personal cloud memebership IS - http://www.adobe.com/content/dam/Adobe/en/produc

  • WLS 10.3.6 Debug

    If the DEBUG_PORT in setDomainEnv.cmd is 8473 or if I set the DEBUG_PORT variable to 8473 (in spite of what is in setDomainEnv.cmd) in the debug launch configuration of the WLS in OEPE, I see that the server is getting started accordingly. -Xdebug -X

  • Audio out of sync - any hints?

    I'm using a Pyro A/V Link to transfer VHS tapes to iMovie/iDVD. In some cases, the quality of the tapes is bad and I lose frames. Since some of the footage I'm converting is heavily music-based, it seemed really odd to drop the frames, and I got the