Home » Developer & Programmer » Forms » Error WUF-201 and WUF-200, when open or read file (Forms [32 bits] Versión 10.1.2.0.2 in Windowes XPProfessional)
Error WUF-201 and WUF-200, when open or read file [message #341032] Fri, 15 August 2008 11:10 Go to next message
econtreras
Messages: 6
Registered: August 2008
Junior Member
Products:
Forms [32 bits] Versión 10.1.2.0.2 (In Windows)
Pl/SQL Versión 10.1.0.4.2 (In Windows)
Oracle Database 10g Release 10.2.0.3.0 (in AIX)
OAS 10g (in AIX)
JInitiator 1.3.1.26 (In Windows)
Windows XP Professional (In Windows)

Mrs., excuse my english, i like read or open a file (it does not matter), but i received the message in the console of java: "WUF-200 unable to open file", when try to read "r", i am sure that file exists.

Next is the source code, is it invoked when push a botton:

Declare
Arch_Aceptados CLIENT_TEXT_IO.FILE_TYPE;
Nombre_Arch_Aceptado varchar2(500);
Linea varchar2(300);

Begin
Begin
Nombre_Arch_Aceptado := User||'_'||'prueba.Log';
Message(Nombre_Arch_Aceptado);
synchronize;
Arch_Aceptados :=
CLIENT_TEXT_IO.FOPEN('c:\'||Trim(Nombre_Arch_Aceptado),'w');
Message('Here...');
synchronize;
End;

CLIENT_Text_Io.Putf(Arch_Aceptados,'UNO'||'\n');
CLIENT_Text_Io.Putf(Arch_Aceptados,'DOS'||'\n');
CLIENT_Text_Io.Putf(Arch_Aceptados,'TRES'||'\n');

CLIENT_Text_Io.Fclose(Arch_Aceptados);
End;
------------------------------

The file is created but inmmediate send me error WUF-201 and not write nothing.


when is read "R" (and change some the code), send me WUF-200

PLEASE, I NEED HELP!!! (little documentation exists on the matter)

THANK.





Re: Error WUF-201 and WUF-200, when open or read file [message #341167 is a reply to message #341032] Sun, 17 August 2008 08:10 Go to previous messageGo to next message
mudabbir
Messages: 235
Registered: April 2006
Location: Kuwait
Senior Member

Its working with me... did you subclass the webutil.olb file and attach the webutil.pll file to your form? as in the pic attached
  • Attachment: 1.JPG
    (Size: 85.29KB, Downloaded 540 times)
Re: Error WUF-201 and WUF-200, when open or read file [message #341626 is a reply to message #341167] Tue, 19 August 2008 10:28 Go to previous messageGo to next message
econtreras
Messages: 6
Registered: August 2008
Junior Member
Yes, my form open the dialog box with get_file.
like additional commentary, the command open_file('nombarch', 'W'), make file with cero len and the inmediate report error WUF-201.


it will be permissions or mutual incompatibility with versions of the navigator, jinitiator or something thus ???
Re: Error WUF-201 and WUF-200, when open or read file [message #341663 is a reply to message #341626] Tue, 19 August 2008 17:39 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
I googled 'WUF-201' and found http://www.oracle.com/webapps/online-help/forms/10g/state/content/navId.3/navSetId._/vtTopicFile.web_util%7Capp_b~htm/

Do you have another copy of your application already running? Are you writing a 'csv' file that is already open in your spreadsheet processor?

David
Re: Error WUF-201 and WUF-200, when open or read file [message #341844 is a reply to message #341663] Wed, 20 August 2008 09:16 Go to previous messageGo to next message
econtreras
Messages: 6
Registered: August 2008
Junior Member
Yes, I saw that page, and verifies. I do not have any open file.

Re: Error WUF-201 and WUF-200, when open or read file [message #342002 is a reply to message #341844] Thu, 21 August 2008 01:04 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
What is the name of the file you are writing and in which directory are you trying to write it?

Do you have write access to that directory? Is there enough space?

David
Re: Error WUF-201 and WUF-200, when open or read file [message #342148 is a reply to message #342002] Thu, 21 August 2008 09:27 Go to previous messageGo to next message
econtreras
Messages: 6
Registered: August 2008
Junior Member
Mr. Martin, Thank for your help.

We made the following steps:

- Disabled firewall
- We verify the disc space (it has sufficient)
- We eliminate all the restrictions of security of the
Activation Server
- We tried with IE and Firefox.

But the error even persists, we are calling to support of oracle (metalink) to see that it happens.

If You obtain something before, I will be thanked for always!
Re: Error WUF-201 and WUF-200, when open or read file [message #342271 is a reply to message #342148] Thu, 21 August 2008 18:37 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Try setting a 'TMP' and a 'TEMP' environment variable which both point to an area to which the user has write access.

You didn't answer my file name and directory question.

David
Re: Error WUF-201 and WUF-200, when open or read file [message #342472 is a reply to message #342271] Fri, 22 August 2008 07:55 Go to previous messageGo to next message
econtreras
Messages: 6
Registered: August 2008
Junior Member
Ups!, excuse me please.

The file name is:
Nombre_Arch_Aceptado := User||'_'||'prueba.Log';
-- User is econtre1

Directory is:
CLIENT_TEXT_IO.FOPEN('c:\'||Trim(Nombre_Arch_Aceptado),'w');
-- c:\, but i try in "c:\tb" and "C:\Documents and Settings\econtreras" and "C:\Carga_Masiva"

Thank.

Re: Error WUF-201 and WUF-200, when open or read file [message #342485 is a reply to message #342472] Fri, 22 August 2008 08:39 Go to previous messageGo to next message
econtreras
Messages: 6
Registered: August 2008
Junior Member
Ok., I setting a 'TMP' and a 'TEMP' environment variable in the regedit, to the same directory.

But the error happens.

Thank.-
Re: Error WUF-201 and WUF-200, when open or read file [message #343324 is a reply to message #342472] Tue, 26 August 2008 23:39 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Okay 'Documents and Settings' won't work because it has spaces in it.

'TMP' and 'TEMP' are ENVIRONMENT varirables not registry entries.

On the desktop, press F1 for Help, search for 'environment variable'. Follow the links.

David
Re: Error WUF-201 and WUF-200, when open or read file [message #583323 is a reply to message #342485] Mon, 29 April 2013 10:52 Go to previous messageGo to next message
TM786
Messages: 6
Registered: August 2008
Junior Member
I am having same issue. how did you resolve this issue.
When opening the file throws wuf-201 unable to open file. It used to work with Windows xp but stopped working when using Windows 7.

Oracle Forms version 11gR1
Please respond quickly. Thanks
Re: Error WUF-201 and WUF-200, when open or read file [message #583382 is a reply to message #583323] Tue, 30 April 2013 06:30 Go to previous messageGo to next message
Littlefoot
Messages: 19767
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Did you check everything suggested above (such as "directory name without any spaces in it")?

Which Windows 7 edition do you use? Note that Oracle software is not certified with any Windows Home edition (and your software might not work properly if you use it).
Re: Error WUF-201 and WUF-200, when open or read file [message #583419 is a reply to message #583382] Tue, 30 April 2013 10:52 Go to previous messageGo to next message
TM786
Messages: 6
Registered: August 2008
Junior Member
I found the reason. This was happening after upgrading to Windows 7 from XP. Windows 7 have tightly control security causing it to permission issue. I changed the writing folder to a drive where user has access. Another soultion would be to ask Admin to update the permisson issue to the folder where you are writing the file.
Thanks for the response.
Re: Error WUF-201 and WUF-200, when open or read file [message #583433 is a reply to message #583419] Tue, 30 April 2013 14:13 Go to previous messageGo to next message
Littlefoot
Messages: 19767
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Thank you for letting us know!
Re: Error WUF-201 and WUF-200, when open or read file [message #588410 is a reply to message #341032] Tue, 25 June 2013 11:48 Go to previous message
sankalputtara
Messages: 53
Registered: January 2011
Location: Bangalore
Member
Sorry For bumping the thread but i wanted to know if you guys were able to fix this issue without changing the output path??
1. Is there anyway to prove that the issue is because of proper rights because i am able to modify the files but webutil is not able to modify the data..
2. When my application is trying to write the file by which user will it be making the changes?
Previous Topic: When-Validate-Item
Next Topic: FRM-47109: Cannot locate image file in form oracle 10G
Goto Forum:
  


Current Time: Fri Nov 21 10:52:32 CST 2014

Total time taken to generate the page: 0.09211 seconds