WUC-15 [FileFunctions.fopen()]

hi all
i run forms 10g R2 on windows xp and using webutil and it run normally with all functions except when i deal with files
when i call fopen like
OUT_FILE := CLIENT_TEXT_IO.Fopen(:FILE_NAME,'w');
the file created but i got ora error ora-302000 and form stoped and i get the next error in java console
java.lang.NullPointerException
     at sun.io.Converters.getConverterClass(Unknown Source)
     at sun.io.Converters.newConverter(Unknown Source)
     at sun.io.CharToByteConverter.getConverter(Unknown Source)
     at java.io.OutputStreamWriter.<init>(Unknown Source)
     at oracle.forms.webutil.file.FileFunctions.fopen(Unknown Source)
     at oracle.forms.webutil.file.FileFunctions.getProperty(Unknown Source)
     at oracle.forms.handler.UICommon.onGet(Unknown Source)
     at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
     at oracle.forms.engine.Runform.processMessage(Unknown Source)
     at oracle.forms.engine.Runform.processSet(Unknown Source)
     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
     at oracle.forms.engine.Runform.onMessage(Unknown Source)
     at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
     at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
2007-Oct-17 08:52:11.551 ERROR>WUC-15 [FileFunctions.fopen()] Unexpected error, Exception: java.lang.NullPointerException
i removed the webutil.pll and recompiled it and attached it again but still the same
any ideas ... thanx.

To every one have the same problem
use TEXT_IO "NOT" CLIENT_TEXT_IO and the file will create on the server so you can copy this file to client using
webutil_file_transfer.as_to_client
and you will gain the performance because it is so fast i test it and it really work perfect
i hope it be useful

Similar Messages

  • Client_text_io.fopen causes java.lang.NullPointerException

    Hi all
    I have the following very simple snippet of code:
    declare
         f client_text_io.file_type;
    begin
         f := client_text_io.fopen('C:\test.txt', 'r');
    end;
    If "C:\Test.txt" does NOT exist on the client, Webutil correctly pops up and complains "Can't open file" etc. But... when the file actually exists and is ready to be opened for read, the following exception is thrown in the console, and nothing happens:
    java.lang.NullPointerException: charsetName
         at java.io.InputStreamReader.<init>(Unknown Source)
         at oracle.forms.webutil.file.FileFunctions.fopen(Unknown Source)
         at oracle.forms.webutil.file.FileFunctions.getProperty(Unknown Source)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.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.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    2006-feb-23 10:36:18.653 ERROR>WUC-15 [FileFunctions.fopen()] Uventet fejl, undtagelse: java.lang.NullPointerException: charsetName
    I have no idea, what goes wrong here.... can anyone help? I use Sun JPI 1.5 on the client.
    Thanks in advance.

    Hi all
    I have forms 9.0.4.6 and Webutil 1.0.6
    When I use client_text_io.fopen like this:
    declare
    f client_text_io.file_type;
    begin
    f := client_text_io.fopen('C:\test.txt', 'r');
    end;
    I get an error:
    ERROR>WUC-15 [FileFunctions.fopen()] Unexpected error, Exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at sun.io.Converters.getConverterClass(Unknown Source)
         at sun.io.Converters.newConverter(Unknown Source)
         at sun.io.ByteToCharConverter.getConverter(Unknown Source)
         at java.io.InputStreamReader.<init>(Unknown Source)
         at oracle.forms.webutil.file.FileFunctions.fopen(FileFunctions.java:413)
         at oracle.forms.webutil.file.FileFunctions.getProperty(FileFunctions.java:188)
         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)
    Could anybody help me? I really need to use this.

  • WU_TEST_106 , client_text_io not working

    I tried the demo webutil software, all the components are working except the client_text_io , which is on the second tab, writing to a text file from the screen.
    Reference data from Java Console
    Loading http://hostmachine:8889/forms90/java/f90all_jinit.jar from JAR cache
    Loading http://hostmachine:8889/forms90/java/frmwebutil.jar from JAR cache
    Loading http://hostmachine:8889/forms90/java/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.0
    java.lang.NullPointerException
    at sun.io.Converters.getConverterClass(Unknown Source)
    at sun.io.Converters.newConverter(Unknown Source)
    at sun.io.CharToByteConverter.getConverter(Unknown Source)
    at java.io.OutputStreamWriter.<init>(Unknown Source)
    at oracle.forms.webutil.file.FileFunctions.fopen(FileFunctions.java:434)
    at oracle.forms.webutil.file.FileFunctions.getProperty(FileFunctions.java:188)
    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)
    2006-Jan-26 15:38:30.648 ERROR>WUC-15 [FileFunctions.fopen()] Unexpected error, Exception: java.lang.NullPointerException

    I have replaced them with the webutil1.06 pll,plx and then attched them to my form.
    and work fine
    Clovis Baldin

  • WEB UTIL error.

    Urgent help needed
    I am using webutill. pll and trying to save a file to the client machine. I have configured webutil properly. I am also able to use CLIENT_GET_FILENAME to get the dialog box to select the filename. Now after selecting the file name i am trying to open the file to write the contents.
    L_MYFILE := CLIENT_TEXT_IO.FOPEN(l_file_name, 'W'); where L_MYFILE is the file handler, and other variable to store filename
    l_file_name VARCHAR2(500);
    L_MYFILE CLIENT_TEXT_IO.FILE_TYPE;
    when i try to open i get this error.
    WUC-15
    extract from console follows
    2006-Feb-09 19:09:13.490 ERROR>WUC-15 [FileFunctions.fopen()] Unexpected error, Exception: java.lang.NullPointerException
    2006-Feb-09 19:09:19.333 WUF[getProperty()] Value of WUF_TEXTIO_OPEN={NULL}
    i am sure that my configuration is correct as it gives me dialog box to select the file name. after selecting the file name only when i try to open the file its failing.
    Any help in this will be appreciated. U can also mail to me at [email protected]
    Regards
    Kumar.D

    Please look at the webutil manual - there is section on this error.
    http://otn.oracle.com/products/forms/htdocs/webutil/webutil_manual.pdf
    Regards
    Grant Ronald
    Forms Product Management

  • Webutil Pkg

    Hi All
    i am using forms 9.0.4 and trying to write data to flat file using webutil pkg. i configured webutil package and while trying to write the data, its generating the file in my c drive but with empty records and throws error-302000 non oracle exception....any suggestions please.below is the message from my java console.
    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\APPSProxy Configuration: no proxyJAR cache enabled
    Location: C:\Documents and Settings\APPS\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>
    ----------------------------------------------------load: class oracle.forms.webutil.common.RegisterWebUtil not found.java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.     at sun.applet.AppletClassLoader.getBytes(Unknown Source)     at sun.applet.AppletClassLoader.access$100(Unknown Source)     at sun.applet.AppletClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     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 sun.applet.AppletClassLoader.loadCode(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)Loading http://mrevathi.apps.com:8889/forms90/java/f90all_jinit.jar from JAR cacheLoading http://mrevathi.apps.com:8889/forms90/java/frmwebutil.jar from JAR cacheLoading http://mrevathi.apps.com:8889/forms90/java/jacob.jar from JAR cacheproxyHost=nullproxyPort=0connectMode=HTTP, native.Forms Applet version is : 9.0.4.0java.lang.NullPointerException     at sun.io.Converters.getConverterClass(Unknown Source)     at sun.io.Converters.newConverter(Unknown Source)     at sun.io.CharToByteConverter.getConverter(Unknown Source)     at java.io.OutputStreamWriter.<init>(Unknown Source)     at oracle.forms.webutil.file.FileFunctions.fopen(FileFunctions.java:434)     at oracle.forms.webutil.file.FileFunctions.getProperty(FileFunctions.java:188)     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.processKeyEvent(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)2006-Jun-05 18:38:51.718 ERROR>WUC-15 [FileFunctions.fopen()] Unexpected error, Exception: java.lang.NullPointerException
    Thanks In Advance
    Sasi

    Hi Francois
    Below is the code written in my button action.
    PROCEDURE gen_csv_file (pfiledir IN VARCHAR2, pcount OUT NUMBER)
    IS
    tab VARCHAR2 (200);
    col VARCHAR2 (4000);
    v_file client_text_io.file_type;
    v_row VARCHAR2 (4000);
    vreccnt NUMBER := 0;
    v_quest VARCHAR2 (4000) := ' ';
    v_report_total NUMBER := 0;
    vlcnt NUMBER := 0;
    CURSOR rep_cur
    IS
    SELECT view_ts_quote.quote_id,
    TO_CHAR (view_ts_quote.quote_date, 'DD-Mon-yy') quoted_date,
    view_ts_quote.partner_name, view_ts_quote.customer_name,
    view_ts_quote.ts_sales, view_client.country,
    view_client.geo_region,
    DECODE (quote_value,
    0, '$ -',
    '$' || ROUND (view_ts_quote.quote_value)
    ) quote_value,
    DECODE (curr_qtr_rev,
    0, '$ -',
    '$' || ROUND (view_ts_quote.curr_qtr_rev)
    ) curr_qtr_rev,
    DECODE (PERCENT,
    NULL, ' ',
    view_ts_quote.PERCENT || '%'
    ) PERCENT,
    view_ts_quote.priority,
    TO_CHAR
    (view_ts_quote.projected_close_date,
    'DD-Mon-yy'
    ) projected_close_date,
    view_ts_quote.close_comments
    FROM nuance.view_ts_quote view_ts_quote,
    nuance.view_client view_client
    WHERE (view_ts_quote.quote_status = 'Open')
    AND (view_ts_quote.cust_client_id = view_client.client_id)
    ORDER BY view_ts_quote.ts_sales ASC,
    view_ts_quote.partner_name ASC,
    view_ts_quote.customer_name ASC,
    view_ts_quote.quote_date DESC;
    rep_rec rep_cur%ROWTYPE;
    vorder_id NUMBER;
    BEGIN
    :SYSTEM.message_level := 25;
    v_file := client_text_io.fopen (pfiledir, 'w');
    IF client_text_io.is_open (v_file)
    THEN
    IF :control.rg_rep_csv = 'CSV'
    THEN
    v_row :=
    'Quote Id'
    || ','
    || 'Quoted Date'
    || ','
    || 'Partner Name'
    || ','
    || 'Customer Name'
    || ','
    || 'Ts Sales'
    || ','
    || 'Country'
    || ','
    || 'Geo Region'
    || ','
    || 'Quote Value'
    || ','
    || 'Curr Qtr Rev'
    || ','
    || 'Percent'
    || ','
    || 'Priority'
    || ','
    || 'Projected Close Date'
    || ','
    || 'Close Comments';
    END IF;
    client_text_io.put_line (v_file, v_row);
    FOR rep_rec IN rep_cur
    LOOP
    vreccnt := vreccnt + 1;
    IF :control.rg_rep_csv = 'CSV'
    THEN
    v_row :=
    rep_rec.quote_id
    || '~'
    || rep_rec.quoted_date
    || '~'
    || rep_rec.partner_name
    || '~'
    || rep_rec.customer_name
    || '~'
    || rep_rec.ts_sales
    || '~'
    || rep_rec.country
    || '~'
    || rep_rec.geo_region
    || '~'
    || rep_rec.quote_value
    || '~'
    || rep_rec.curr_qtr_rev
    || '~'
    || rep_rec.PERCENT
    || '~'
    || rep_rec.priority
    || '~'
    || rep_rec.projected_close_date
    || '~'
    || rep_rec.close_comments;
    v_row := REPLACE (v_row, ',', ' ');
    v_row := REPLACE (v_row, CHR (10), ' ');
    v_row := REPLACE (v_row, '~', ',');
    progress.bar (vreccnt); --
    client_text_io.put_line (v_file, v_row);
    END IF;
    END LOOP;
    pcount := vreccnt;
    client_text_io.fclose (v_file);
    ELSE
    MESSAGE ('Error in creating txt file');
    END IF;
    :SYSTEM.message_level := 0;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    client_text_io.fclose (v_file);
    MESSAGE ('No Data found');
    WHEN OTHERS
    THEN
    --CLIENT_TEXT_IO.FCLOSE(V_FILE);
    RAISE;
    END;
    Thanks In Advance
    Sasi

  • Client_Text_IO and errors WUC-12, WUC-14

    I have some pretty basic code as shown below. I just want to pull records from a cursor and output them to a .xls file. However, when I run this code, after 10 seconds or so I get the following errors:
    WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle -1 not found in the cache
    WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle -1 not found in the cache
    WUC-12 [FileFunctions.putf()] Object Cache Error: Object is not the expected BufferedWriter type
    The cursor is fine, this code worked fine in the past (6i) until we recently tried upgrading to the web and changed Text_IO to Client_Text_IO. The output should be 3 columns of data and about 25,000 rows. However, since I added the Client_Text_IO's I only get around 6000 rows of data before I get the errors. Also, it seems like I'm getting the last 6000 rows, the first 19,000 rows of data and the header row never get written to the file. Has anyone seen these errors before? Is there any kind of timeout setting in the config files I need to worry about? Note that all our other webutil stuff and Client_Text_IO's work fine.
    -- Code --
    file_handle := Client_Text_IO.FOpen( file_name, 'w' );
    Client_Text_IO.PutF( file_handle,'%s \n', 'Header Text' );
    for one_rec in data_cursor loop
    -- the columns are tab seperated
    Client_Text_IO.PutF( file_handle, '%s \n', one_rec.Item_Name || '     ' || one_rec.Item_Number || '     ' || one_rec.Test_Name );
    end loop;
    Client_Text_IO.FClose( file_handle );

    Sure, here is the code. Since I posted before, I tried a few other reports we have that output over 200k of data... when I did, some of the other reports gave me the same error message.
    procedure Gen_Test_Rpt is
    cursor data_cursor is
    select cd.item_name, cd.item_number, cd.test_name
    from compact_data cd
    order by cd.item_name;
    file_handle Client_Text_IO.File_Type;
    File_Name varchar2(1000) := 'c:\test_report.xls';
    -- there are tabs between "Item Name" and "Item #" and "Item #" and "Test Name"
    Header varchar2(400) := 'Item Name     Item #     Test Name';
    begin
    file_handle := Client_Text_IO.FOpen( File_Name, 'w' );
    Client_Text_IO.PutF( file_handle,'%s \n', Header );
    for one_rec in data_cursor loop
    -- tab seperated
    Client_Text_IO.PutF( file_handle,'%s \n', one_rec.item_name || '     ' || to_char(one_rec.item_number) || '     ' || one_rec.test_name );
    end loop;
    Client_Text_IO.FClose( file_handle );
    end;

  • Strange behaviour in ORacle Forms Webutil 106 / Error message WUC-14 WUC-12

    This is to inform you about a strange behaviour in Webutil V1.0.6
    Hosting environment is Oracle Application Server 10.1.2.0.2 on Unix Solaris 10
    Oracle Server 10.2.0.4.0 Enterprise Edition
    Client-envionment : Windows 2000, IE 6
    I created an Forms based application which reads in certain text files into the database using
    Webutil. The data will get changed using the application with logic and lateron a different textfile
    will be transmitted using either ftp or it may be created on the client side (again with Webutil).
    This solution worked perfect for some time (a year or so) using CLIENT_TEXT_IO...
    Hoewever, during the week, I recognized users coming up with the statement that the download
    to the local client does not worked anymore in certain situations. The system is producing an error-msg
    on the Form in the following sequence :
    WUC-14 [getFromObjectCache] ...
    WUC-14 [getFromObjectCache] ...
    WUC-12 [FileFunctions.newLine()] ...
    I traced the session and traced WebUtil, was able to reproduce the problem but could not find out the source
    of it in the first place.
    Hoewever, it came out, that part of the file being created on the client is a "¿" sign : hex :$BF
    This was already part of the file being read in the first place, so the value is stored in the database.
    There is no problem when reading a file having a content like this with CLIENT_TEXT_IO but there obviously is one
    when writing it to the local client.
    The file is getting processed on the client and gets closed with CLIENT_TEXT_IO.FCLOSE.
    After the FCLOSE statement is getting processed, the above errors occurs, The length of the produced file is then : 0 bytes ^^
    Whenever facing a problem like this check the content of the file you are trying to create.
    Workaround was :
    - set workingDirectory in formsweb.cfg
    - using Forms based TEXT_IO rather than CLIENT_TEXT_IO to create the file on the backend side (Apps-server)
    - implement WEBUTIL_FILE_TRANSFER.AS_To_Client_With_Progress to download the file to the client
    In order to make it a little bit "colourful" I implemented a bean with progressbar when creating the file on the back end side
    Works perfect... and looks nice :)

    XeM wrote:
    Hi Andreas,
    install.syslib.location.client.0=webutil\syslibi found the above line over google but when i check my webutility configuration file i didn't found it there. I added this line after the line i have mentioned in previous post but this also not worked. And then i worked on changing permission over folder.
    HI XeM
    Your adding location is ok. But i suggest try something different. Change the above line to
    /* i'm confuse with the \ or / *\
    install.syslib.location.client.0=\webutil
    or
    install.syslib.location.client.0=/webutilAnd do the following work In the client
    1. Close ALL open browsers.
    2. On the client machine search all directories for webutil.*properties and delete all instances of that file.
    3. Delete d2kwut60.dll, JNIsharedstubs.dll, and jacob.dll from the JRE\bin directory.
    4. Clear the JRE jar cache. This can be done several ways, but using the Java Control Panel is likely the easiest and safest.
    Now stop the OC4J instance and start again and try at client...
    Hope this works...
    If works... please post the solutions.
    Hamid

  • WEBUTIL_FILE.FILE_SELECTION_DIALOG -- Return value removes "/" UNC path

    Hello:
    When you pass UNC path (Example "//mcName/test/") as the "Directory Name" for the the above function, it returns the selected file along with the "Directory_Name" but removes ONE file separator("/") from the UNC path (Example "/mcName/test/test.doc").
    Why is this function removes one file separator (/)?
    Thanks

    We have the same problem.
    Copy from JAVA console:
    2009-Mar-16 14:07:07.554 WUF[gfnDialog run()] Creating Custom File Filter : Mask=*.txt, Label=Teksta fails(*.txt)
    2009-Mar-16 14:07:07.554 WUF[gfnDialog run()] Save File mode
    2009-Mar-16 14:07:27.133 WUF[gfnDialog run()] Selected Directory: \\alise\shares\kastanis-u\ Selected File: test.txt
    2009-Mar-16 14:07:33.211 WUF[setProperty()] Setting property WUF_FILENAME to \alise\shares\kastanis-u\test.txt
    2009-Mar-16 14:07:33.211 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 1
    2009-Mar-16 14:07:33.211 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
    2009-Mar-16 14:07:33.211 WUF[getProperty()] Value of WUF_FILE_ATTRIBUTE=FALSE
    2009-Mar-16 14:07:33.211 WUF[setProperty()] Setting property WUF_FILENAME to \alise\shares\kastanis-u\test.txt
    2009-Mar-16 14:07:33.227 WUF[setProperty()] Setting property WUF_TEXTIO_FILEMODE to W
    2009-Mar-16 14:07:33.227 WUF[setProperty()] Setting property WUF_TEXTIO_CHARSET to (null)
    2009-Mar-16 14:07:33.227 WUF[getProperty()] Getting property WUF_TEXTIO_OPEN
    2009-Mar-16 14:07:33.227 WUF[FileFunctions.fopen()] Opening in Write/Append Mode
    2009-Mar-16 14:07:33.227 ERROR>WUF-201 [FileFunctions.fopen()] Unable to open file \alise\shares\kastanis-u\test.txt for writing (mode=w); Exception: java.io.FileNotFoundException: \alise\shares\kastanis-u\test.txt (The system cannot find the path specified)

  • IndexOutOfBoundsException after upgrade

    Hi all,
    In some of our forms we use the Java class FFileChooser in the frmwebutil jar. After upgrading from version 10.1.2.0.2 to 10.1.2.3 we receive the following error on the Java Console:
    (The Dutch error message says: Unexpected Exception; Error: java.lang.IndexOutOfBoundsException: Invalid index)
    java.lang.IndexOutOfBoundsException: Invalid index
         at javax.swing.DefaultRowSorter.convertRowIndexToModel(Unknown Source)
         at sun.swing.FilePane$SortableListModel.getElementAt(Unknown Source)
         at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
         at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
         at javax.swing.plaf.basic.BasicListUI.getCellBounds(Unknown Source)
         at javax.swing.JList.getCellBounds(Unknown Source)
         at javax.swing.JList.ensureIndexIsVisible(Unknown Source)
         at sun.swing.FilePane.ensureIndexIsVisible(Unknown Source)
         at sun.swing.FilePane.doDirectoryChanged(Unknown Source)
         at sun.swing.FilePane.propertyChange(Unknown Source)
         at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
         at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
         at java.awt.Component.firePropertyChange(Unknown Source)
         at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
         at oracle.forms.webutil.file.FFileChooser.setCurrentDirectory(Unknown Source)
         at javax.swing.JFileChooser.setSelectedFile(Unknown Source)
         at oracle.forms.webutil.file.FFileChooser.setSelectedFile(Unknown Source)
         at oracle.forms.webutil.file.FFileChooser.setCurrentDirectory(Unknown Source)
         at oracle.forms.webutil.file.FileFunctions.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    2010-sep-24 09:01:56.440 ERROR>WUC-15 [FileFunctions.gfnDialog run()] Onverwachte fout; uitzondering: java.lang.IndexOutOfBoundsException: Invalid index
    After some investigation we discovered that the method setCurrentDirectory was changed between versions 10.1.2.0.2 and10.1.2.3. So we created a quick fix by creating a new FileChooser which extends the FFileChooser and overrides the setCurrentDirectory method.
    This works fine, but is there a more clean solution or maybe a patch?_
    Kind regards,
    Davy

    Hi all,
    What I forgot to say in my previous post is that we previously used our code with JInitiator in IE6, now we are using the Java Console with IE8.
    We did some more research tests on the problem:
    The problem is invariant to the OS of the client: both Windows and Unix clients get the same error for both IE8 and FireFox.
    Also the Java version is not the problem: tested with Java 1.6_21 and Java 1.5_11
    The problem is also invariant to the OS of the server.
    Anyone an idea?
    Maybe we should fire a bug report?
    Kind Regards,
    Davy

  • Errors with 10g Migration: WUC-24 and FileFunctions bean

    I'm experiencing a couple issues with my Migration to 10g (9.0.4) from 6i Forms. Through much searching to find resolutions, I have been unsuccessful.
    I have two errors that I am unable to get rid of.
    1) oracle.forms.webutil.file.FileFunctions bean not found. CLIENT_TEXT_IO.fopen will not work
    - I wondered if there was a DB permissions issue with the WEBUTIL_DB package related to this perhaps? I included the package to my DB but perhaps something is incorrect w/ that causing the error.
    2) WUC-24: Error reading URL
    http://myserver.com:7777/forms90/webutil/jacob.dll
    /JNIsharedstubs.dll
    /d2kwut60.dll
    - problem loading from forms90/webutil perhaps? I tried to download a test.html page from this location but was unsuccessful.
    Another thought I had was that maybe I have an issue w/ my formsweb.cfg configuration. The webutil configuration is as follows:
    [webutil]
    form=myform.fmx
    webUtilArchive=f90webutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=f90all_jinit.jar
    archive=f90all.jar
    lookAndFeel=oracle
    Also, what about this parm?
    webUtilConfig=/forms90/server/webutil.cfg
    Do I need it included as well? Got the same result w/ it.
    Thanks, Phil

    You said:
    ...problem when i open form on client side then i get following errors, but when i work on local machine where my forms server is installed ... However, the error shows that you are using port 8889. This suggests you are using Developer Suite and not application server (unless you've changed the ports). Developer Suite is not intended for remote access, nor is it intended for multiple user access. Although it can be made to work in this manner, it is not supported. Deployment should be configured using Application Server
    So, if the above is not true and you are in fact using Application Server, the consider the following:
    1. Can you access the libraries if you attempt to locate them manually using your browser. Open a browser from a client machine and enter a url such as:
    http://domainname:8889/forms/webutil/ffisamp.dll
    You should be presented with a "Save" / "Open" file dialog box. If not, then the issue is related to the fact that either the client cannot communicate with the server (e.g. firewall, incorrect address, etc) or the server is not responding or the file requested is not found on the server.
    2. If the client machine is Vista, Win7, or Win2008, by default, Windows will not permit the files to be written into the "Program Files" directory. In this case, refer to MyOracleSupport Note 783937.1 ; This note will explain how to change the destination directory of where the libraries will be stored on the client.

  • Error WUC-14 after open a File with CLIENT_TEXT_IO.FOPEN (Oracle 10g)

    Hi,
    the error WUC-14 occurs during open a file with forms10g.
    F_VersandZahlen := CLIENT_TEXT_IO.FOPEN (F_Dateiname,'w');
    Afterwards the error message it ist possible to write into the file and close it correctyl (without am error message - also the Information is correkt).
    During debugging the error occurs in the function GETPROPERTY (Webutil).
    the error occurs only sometimes.
    Can anybody help me to solve the problem ?
    best regards,
    Alexandra Schermann

    Hi Alexandra,
    You can catch the exception in Exceptions part and close the file. Something like,
    DECLARE
    F_VersandZahlen CLIENT_TEXT_IO.FILE_TYPE;
    BEGIN
    F_VersandZahlen := CLIENT_TEXT_IO.FOPEN (F_Dateiname,'w');
    <do your processing>
    EXCEPTION
      WHEN OTHERS THEN
       CLIENT_TEXT_IO.FCLOSE(F_VersandZahlen);
    END;-Arun

  • Error WUC-14 after CLIENT_TEXT_IO.FOPEN

    Hi,
    the error WUC-14 occurs during open a file with forms10g.
    F_VersandZahlen := CLIENT_TEXT_IO.FOPEN (F_Dateiname,'w');
    Afterwards the error message it ist possible to write into the file and close it correctyl (without am error message - also the Information is correkt).
    During debugging the error occurs in the function GETPROPERTY (Webutil).
    the error occurs only sometimes.
    Can anybody help me to solve the problem ?
    best regards,
    Alexandra Schermann

    Sounds like an Oracle Forms question... there is a dedicated forum for Forms. Maybe answer your question there.
    Forms
    Edited by: Alex Nuijten on Oct 27, 2009 11:08 AM

  • CLIENT_TEXT_IO.fopen will not work Error

    I keep getting the following -
    WebUtil Error: oracle.forms.webutil.file.FileFunctions bean not found. CLIENT_TEXT_IO.fopen will not work.
    Nothing I have found on any forum threads has helped me resolve this issue. I believe it has to do w/ configuration. The error occurs in my Development Suite environment I have set up on my laptop. The webutil set up on the Application Server seems to be fine.
    I've checked both default.env and formsweb.cfg and both seem to be set correctly. I have the webutil.pll attached to the forms and the webutil.olb in the object library.
    I'm using WebUtil 1.0.6 on Oracle 10g (9.0.4).
    If anyone has any guidance on this issue, your help is appreciated.

    The error isn't obvious. The Java Console outputs the following. I went through the webutil docs again and still didn't get the issue resolved. Can you help?
    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\localadmin
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: C:\Documents and Settings\localadmin\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    Loading http://server.domain.com:8889/forms90/java/f90all_jinit.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.0
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
         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.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • Webutil wuc-015 error

    Hi,
    I have been trying to run a simple form on OAS (running on 2003 server) to test webutil functions for a few days and it is giving
    the error 'WUC-015 Your form must contain the following bean for this function to be available: oracle.forms.webutil.file.FileFunctions'
    I built and compiled the form as described in the webutil documentation( I have attached webutil.pll and copied the object group to the form as a subclass) after adding the neccessary packages to the schema.
    I set ORACLE_HOME, FORMS90_PATH(pointing to /webutil/forms directory), CLASSPATH(for webutil.jar, rt.jar),WEBUTIL_CONFIG,FORMS90_BUILDER_CLASSPATH in default.env file appropriately.
    I set the virtual directories by adding
         AliasMatch ^/forms90/webutil/(..*) "c:\webutil/lib/$1"
         AliasMatch ^/forms90/f90servletwebutil/(..*) "c:\webutil/lib/$1"     to forms90.cfg
    and
         <virtual-directory virtual-path="/webutil"
              real-path="C:\webutil/lib" />     to orion-web.xml
    I added the following lines to formsweb.cfg file:
         webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
         baseHTML=c:\webutil\server\webutilbase.htm
         baseHTMLjinitiator=c:\webutil\server\webutiljini.htm
         baseHTMLjpi=c:\webutil\server\webutiljpi.htm
    I also dowloaded jacob.jar and signed both the webutil.jar and the jacob.jar as described in readme.html.
    My forms developer is 9.0.4 and db is 10g. I checked out webutil FAQ but could not solve the problem.
    Can you help, where am I making a mistake?
    Thanks in advance
    Nihal

    Dear Nihal,
    I recommend that you have a look at the following thread
    "wuc-15 form must contain the following bean"
    registered on Jul 30, 2005 2:03 AM by svetlikp
    as it sounds like the same or a similar problem that you discribe.
    Good luck!
    Randy

  • Wuc-015 Your form must contain the following bean ...

    Hi,
    I'm having this problem in forms 10g:
    WUC-015: Your Form must contain the following Bean for this function to be availabe:
    oracle.forms.webutil.file.FileFunctions
    I have installed webutil and followed all the steps, I can the run the test form, but I'm having this problem when I want to run a form that has a attached library and this library is using the webutil_c_api functions (this library has the webutil.pll attached).
    I've found this problem in metalink and they suggested to drag the webutil.olb in the form, but my form is not using the webutil, the library does, so I think I don't have to drag it in the form.
    Besides I made all the sugestion about the configuration files of webutil.
    waiting with anticipation for the solution ..
    Thanks !!

    If you want to use WebUtil functions like webutil_c_api you must follow the development instructions in the install.pdf. That includes attaching webutil.pll and webutil.olb.
    In your case you have, to my understanding, created a library that uses webutil functions, and that you aren't using them. If you attach that library you must "webutilize" your Forms.
    I would suggest that you split the library you made into two. One containing WebUtil functions, and one that doesn't. Problem solved?
    Regards,
    Martin Malmstrom

Maybe you are looking for

  • Adobe Bridge CC (Mac) isn't showing collections generated in Bridge CS6

    Opening Adobe Bridge CC doesn't show the collections I generated in Adobe Bridge CS6. Both versions of Bridge are on the same Mac and opened within the same User account (of the operating system). In Bridge CS6 (which seems to not open while running

  • How to use first_record or Next_record in WHEN-VALIDATE-ITEM.

    Hi All, I have a multi-record block where, in one of the fields I need to add this PL/SQL so that for there is no gaps in sequence for S_type and cer_dl fields.below is the sample of how the record should appear. s_type cer_dl seq xyz ASD Y 1 N ASD Y

  • How can I access the iCloud email on used iPad 2

    I purchased two iPad 2's that were sold to a salvage company by an insurance company.  One works fine, the other says it is registered to someones iCloud account.  I understand that there is not a way to restore or bypass this.  Apple says you have t

  • Multi-page form from single PDF form

    I need to create a 50 page form with calculated fields.  Each page is basically the same except for a couple calculations.  Is there a way to make this from a single form?  I have one page complete and would like to copy it and the calculations so th

  • Private ints

    Let's say I have something like.... public class Example private int a; private int b; public class Example2 extends Example1 private int c; private int d; public class Example3 extends Example2 private int e; }the use of instance variable b in class