Application server file  does not exist or is of zero length

chalie001
chalie001 used Ask the Experts™
on
hi am trying to download file in oracle form using webutil am geting the following error
Application server file INT.REQ-4805-18152.TXT does not exist or is of zero length
this si the log Java Plug-in 11.211.2.12 x86
Using JRE version 1.8.0_211-b12 Java HotSpot(TM) Client VM
User home directory = C:\Users\username
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
network: Connecting http://hostname:9001/ with proxy=DIRECT
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
2019-Sep-25  08:42:43.580 WUF[setProperty()] Setting property WUF_GFN_DIRNAME to /usr2/dev/maint/apps/ncs/appfiles/arc/
2019-Sep-25  08:42:43.580 WUF[setProperty()] Setting property WUF_FILENAME to INT.REQ-4805-18152.TXT
2019-Sep-25  08:42:43.580 WUF[setProperty()] Setting property WUF_FILTER to
2019-Sep-25  08:42:43.580 WUF[setProperty()] Setting property WUF_GFN_MESSAGE to Save A File
2019-Sep-25  08:42:43.595 WUF[setProperty()] Setting property WUF_GFN_MULTISELECT to FALSE
2019-Sep-25  08:42:43.595 WUF[setProperty()] Setting property WUF_GFN_SAVEFILE to
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
network: Connecting http://hostname:9001/ with proxy=DIRECT
security: blacklist: check contains 3vczRxt9cr8sILL08/izC1BqFic=, state now IN_MEMORY
security: blacklist: not  found in cache
security: Trusted libraries list file not found
cache: Create from verifier: JarSigningData{hasOnlySignedEntries=true, hasSingleCodeSource=true, hasMissingSignedEntries=false}
network: Cache entry not found [url: http://hostname:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.class, version: null]
network: Connecting http://hostname:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.class with proxy=DIRECT
network: Cache entry not found [url: http://hostname:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.properties, version: null]
network: Connecting http://hostname:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.properties with proxy=DIRECT
network: Cache entry not found [url: http://hostname:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.properties, version: null]
network: Connecting http://hostname:9001/forms/java/oracle/ewt/alert/resource/AlertBundle_en.properties with proxy=DIRECT
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
2019-Sep-25  08:42:51.232 WUT[getProperty()] Getting property WUT_MAX_BYTES
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
2019-Sep-25  08:42:51.419 WUF[setProperty()] Setting property WUF_FILENAME to C:\Users\username\Documents\dispatch\INT.REQ-4805-18152.TXT
2019-Sep-25  08:42:51.419 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 4
2019-Sep-25  08:42:51.419 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
2019-Sep-25  08:42:51.435 WUF[setProperty()] Setting property WUF_FILENAME to C:\Users\username\Documents\dispatch\
2019-Sep-25  08:42:51.435 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 4
2019-Sep-25  08:42:51.435 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
2019-Sep-25  08:42:51.435 WUT[getProperty()] Getting property WUT_STATUS
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
2019-Sep-25  08:42:51.794 WUT[setProperty()] Setting property WUC_ERROR_MSG to ERROR118|WEBUTIL_FILE_TRANSFER.DownloadInt|INT.REQ-4805-18152.TXT
security: blacklist: check contains UZW1w50Xr/JrNm7Ud55EeVZ5mvw=, state now IN_MEMORY
security: blacklist: not  found in cache
security: Trusted libraries list file not found
cache: Create from verifier: JarSigningData{hasOnlySignedEntries=true, hasSingleCodeSource=true, hasMissingSignedEntries=false}
network: Cache entry not found [url: http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en.class, version: null]
network: Connecting http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en.class with proxy=DIRECT
network: Cache entry not found [url: http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en.properties, version: null]
network: Connecting http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en.properties with proxy=DIRECT
network: Cache entry not found [url: http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en.properties, version: null]
network: Connecting http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en.properties with proxy=DIRECT
network: Cache entry not found [url: http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en_US.class, version: null]
network: Connecting http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en_US.class with proxy=DIRECT
network: Cache entry not found [url: http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en_US.properties, version: null]
network: Connecting http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en_US.properties with proxy=DIRECT
network: Cache entry not found [url: http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en_US.properties, version: null]
network: Connecting http://hostname:9001/forms/java/oracle/forms/webutil/common/WebUtilBundle_en_US.properties with proxy=DIRECT
2019-Sep-25  08:42:51.887 ERROR>WUT-118 [WEBUTIL_FILE_TRANSFER.DownloadInt] Application server file INT.REQ-4805-18152.TXT does not exist or is of zero length
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
network: Connecting http://hostname:9001/ with proxy=DIRECT
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT
network: Connecting http://hostname:9001/forms/lservlet;jsessionid=CDhmdLLV7Wc2WgSJhyfxshNgpT263YnF3dGfGRTGgyKnbmwgpfq5!2075368613 with proxy=DIRECT

this is the code
PROCEDURE download_file IS

v_path_from_file_browser      varchar2(500) := null;

v_filename                    varchar2(500);  

v_ncs_export_folder           varchar2(200);

v_archive_folder              varchar2(200);

v_file_transfer_success       boolean;

BEGIN







  v_path_from_file_browser := CLIENT_GET_FILE_NAME(directory_name => :control.topdirectory,

file_name     => :control.results_box, -- temp_filename - will replace below

file_filter   => null,

message       => 'Save A File',

dialog_type   => SAVE_FILE);







if v_path_from_file_browser is not null then











-- save the file in destination selected by user

v_file_transfer_success := webutil_file_transfer.as_to_client_with_progress(v_path_from_file_browser,

                                                      'c:\temp\'||:control.results_box,

                                                      'Downloading ...',

                                                      'OK');





host('unix2dos '||v_path_from_file_browser||v_filename||' '||v_path_from_file_browser||v_filename);--dev                                                      

if v_file_transfer_success then

  message_warn('File transfer completed.');    





else

message_fail('File Transfer Error:'||chr(10)||v_path_from_file_browser||v_filename||chr(10)||v_ncs_export_folder||v_filename);      

end if;



end if;

EXCEPTION

when form_trigger_failure then

raise;

when others then

null;

END;
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Mark GeerlingsDatabase Administrator

Commented:
Please give us some more information:
1. Is this the name of the file you are trying to download: INT.REQ-4805-18152.TXT?
2. Does that file actually exist in your system somewhere?  If yes, where (that is, in which directory on which computer)?
3. Have you successfully downloaded other files in Oracle Forms using webutil?
4. Or, is this your first attempt to use this combination?

Author

Commented:
the issue have been resolve by putting correct path
nociSoftware Engineer
Distinguished Expert 2018

Commented:
Please close the question with your solution as the solution then.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial