Webutil Creating file on Client issue
we are planning to us webutil. But when writing file to client is ok for us to write 50 lines but as we write more lines to file on client run success fully but file remains empty nothing written to file. and next call to use of webutil functionality forms hangs. and we have to kill browser to get back browser.
Is there any parameter in webutil configuration that control size of file to written on client.
Creating file and then transferring works great
I was having the same problem as the original poster: Using WebUtil.client_text_io to write a file to the client that had more than a handful of lines. The file would appear on the disk, but the file size stayed at 0. It did not appear to throw an error, but the next time a WebUtil call was made, the entire client hung and became non-responsive.
I tried your suggestion below, where the file is written on the server and transferred to the client using the WebUtil file transfer ability. It worked great, and it is fast. Thanks!
--Tara
Similar Messages
-
Is there any way to create files on client
Hi,
In a servlet class, I use java.net to get the client IP address, and I shared one folder on the client computer. But I got a java.io.IOException: Access is denied error when I was trying to create a file in the shared folder.
I changed the java.policy to let the class have permission to write files. Any one can give me some suggestions?No server-side solution can help u! u should just use Applets.
( or any fat-client like a Java Application )
--Behrad -
Opening CS2 created files in CS4 issue
we commonly work with foor plans which multiple laters of data. We are noticing that nearly all of the files created in cs2 are displaying automatically moving layers when opened in CS4. A layer of symbols or objects simply "shifts" to an alternate location and there is no easy way to fix it. We are unable to identify a fix tho these files other than locating an old verison of cs2 to open them with.
any ideas guys! much appreciated!
KeithFurther to my earlier reply I suddenly remembered that I had created the JPF
files in Photoshop 3 Extended which fortunately I still have loaded on my
computer. I was able to open the JPF files into that and save the them as
JPEG files which I can now open in CS4. Problem solved !! Thanks again for
your help. Learning how to use and manipulate Photoshop is a continuous
process and the interaction between Forum users is invaluable.
Malcatglos -
I'm running Mac OS 10.4.11 on a 1.6 GHz PowerPC G5 Mac. I uninstalled Firefox 3.6 from my according to directions on the Mozilla website. And I deleted my Firefox profile folder contained in the Home> Library> Application Support folder. Every time I attempt a clean install of Firefox 3.6.13.dmg, I get the following message: "Cannot create file."
This issue can be caused by corrupted cookies.
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
* Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove Cookies" from sites causing problems:
* Tools > Options > Privacy > Cookies: "Show Cookies"
See also:
* http://kb.mozillazine.org/Cookies#Removing_cookies -
Problem in creating file on local machine
Hello everbody...
i m using forms and reports 6i
i m creating file out_file := Text_IO.Fopen(:filepath || '.csv', 'a'); using this command in before_report trigger. And closing file in after_report trigger.
here filepath is = \\IP address of local machine\d$\file name
now problem is that if i m giving IP address of local machine then its giving error ORA-39856.
And if i m giving IP address of server machine then it is going to create file on server machine from local machine.
Why its not creating file on client machine?
i think there r problems related to rights
can anyone has solution then please tell meyes in report there is report output and with that it also creating file in coding by
out_file := Text_IO.Fopen(:filepath || '.csv', 'w');
this open stmt is written in before report trigger
Below lines r written for each row thats fetch by report main query.
str := rpad(:apt_bil_no,8,' ') || ',' || lpad(:apt_bil_dt,10,' ') || ',"' ||
rpad(:supl_name,30,' ') || '",' || rpad(:supl_tin_no,11,' ') || ',' ||
rpad(:aptvat_hsn_no,10,' ') || ',' ||
lpad(ltrim(to_char((apt_amt2 - apt_vat_amt2),'999999990.00')),12,' ') || ',' ||
lpad(apt_vat_amt2,12,' ') || ',' ||
lpad(ltrim(to_char(apt_amt2,'999999990.00')),12,' ');
Text_IO.Put(out_file, str);
Text_IO.New_Line(out_file);
file is closing in after report trigger.
text_io.fclose(out_file);
now i wants to create this file on local machine.
yes using report server and its started window service.
can u have any idea? -
Not able to create a text file in Client Machine using Forms 10g
Hi - I'm mot able to create a text file in Client Machine using Forms 10g. I'm getting error when system executes the bolded line.(i.e. CLIENT_TEXT_IO.FOPEN). During run-time system is throwing "ORA-06508: PL/SQL: could not find program unit being called".
I had attached webutil.pll in the form.
Please advise me.
DECLARE
l_Temp CLIENT_TEXT_IO.FILE_TYPE;
LC$Name Varchar2(100) ;
LC$Fic Varchar2(100) ;
LN$Lines Pls_integer := 0 ;
LC$Line Varchar2(4000) ;
Cursor C_CUR Is
Select * From TEST_TEXTIO where rownum <= 50;
BEGIN
LC$Name := 'tmp_file.txt' ;
LC$Fic := 'c:\temp\tmp_file.txt';
Begin
l_temp := CLIENT_TEXT_IO.FOPEN( 'C:\temp\tmp_file.txt', 'W');
Exception
when others then
message( 'OPEN FILE ERROR ' || LC$Fic ||sqlerrm );
display_error;
raise form_trigger_failure;
End ;
-- Write the lines --
For Cur In C_CUR Loop
LC$Line := Cur.CODE || ' -> ' || Cur.COL1 || ',' || Cur.COL2 || ',' || Cur.Col3 ;
CLIENT_TEXT_IO.PUT_LINE( LF$File, LC$Line ) ;
LN$Lines := C_CUR%ROWCOUNT ;
End loop ;
-- Close the file --
CLIENT_TEXT_IO.FCLOSE( LF$File ) ;
Exception
When others Then
message('err='||sqlerrm);message(' ');
display_error;
CLIENT_TEXT_IO.FCLOSE( LF$File ) ;
Raise ;
END;
Thanks.
ArunHi ,
i have one Question though its not related to thos question if some could help me it will be really helpful,
i have created one program to import and export excel to forms vice versa, if the form is attached with webutil its working fine am using ole2.but i have a new idea if i add this program in menu, it can be used for all the forms attched to that menu, i made program also, but problem am facing right now is if the form is not attched with webutil it will not work so is there possiblity to share my webutil from one form to another form ,so i will keep one form as a interface form in that webutil will be attched ,i can share that webutil to all other forms so that all the forms no need to attach webutil again
if its possible means please suggest some ideas -
Open bat file on client machine using webutil
Hi all.
I'm on devsuite 10g.
I want to run a bat file on client machine using client_host function of webutil.
I have tried first to execute the bat file with mouse double-click in order to check if it is ok, and it works.
Now I want to execute this file from my form using webutil.
Here is my code:
--> with this code I select a file from client machine
Declare
LC$Fichier Varchar2(1000):=null ;
PC$Filtre Varchar2(2000) := '|All files|*.*|' ;
Begin
LC$Fichier := WEBUTIL_FILE.FILE_OPEN_DIALOG
null,
PC$Filtre,
'Seleziona un file da caricare'
If LC$Fichier is not null Then
:output.apri_file := LC$Fichier ;
End if ;
End ;
--> with this code I execute the file that I have opened
declare
cmd varchar2(30000) := null;
BEGIN
Cmd := 'cmd /c start "" "' || :output.apri_file || '"' ;
CLIENT_HOST(cmd);
END;
When I execute my form I have this error:
Exception in thread "main" java.lang.NoClassDefFoundError: ....folder of file opened.
Can anyone help me to solve this problem??
Thanks in advance,
FabrizioFabrizio Delli Priscoli wrote:
Hi Tony.
I have tried to run my bat file with double-click and everything is OK.
When you say the DOS window opens for few second, is your batch file being executed?? did you see the results??
The answer in NO for both of your questions.
If I try to drag and drop the file I have error.
How can I attach an image to this post, so that you can see the error??
Thanks,
FabrizioThis seems like a directory or OS level permission issue on the batch file, What is the error you got when you tried drag and drop the batch file in an DOS window???
I think you need to upload the image to a site and use the markup for the image, include the full URL of the uploaded file between ! (exclamation marks) something like ! http://../post.gif ! without the spaces.
Tony
Edited by: Tony Garabedian on Sep 4, 2008 12:30 PM -
Create sql trace files on client machine
Hi
oracle creates sql trace files on server side, what are possible and best ways of sharing those files with end users? is it possible to create them on client side instead?Dbb wrote:
Hi
Hi
oracle creates sql trace files on server side,
Yes
what are possible and best ways of sharing those files with end users?
Using shared directory. Use the parameters dump to point to it
is it possible to create them on client side instead?
No
. :-) any help with my english is wellcome :-) .does this mean sharing user_dump destination at linux level and then mounting it from client machines ( win xp )?is there any doc on this? -
Applet-Servlet - Creating a new file on client's mashine
Hi all!
I need to write a program, that will get a data from client through Applet text fields and save it to a new(or rewrite existing) file on client mashine. To save it, I want to use Servlet, because Applet can't do this because of security restrictions. So I think of sending data from Applet to Servlet, which will save it in a new file (will download this file back to the client's mashine).
I found the following code in forums to download a file from server to client:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class OutputFileOnBrowser extends HttpServlet {
public void service(HttpServletRequest req,HttpServletResponse res)
throws ServletException, IOException
res.setContentType("application/x-filler");
res.setHeader("Content-Disposition", "attachment; filename=out.fif;");
ServletOutputStream stream = res.getOutputStream();
BufferedInputStream fif = new BufferedInputStream(new FileInputStream("in.fif"));
int data;
while((data = fif.read()) != -1)
stream.write(data);
fif.close();
stream.close();
but I don't understand, does it automatically downloads the file out.fif to client's disc and in what path? I tried it, and it did nothing. Anyway, this code doesn't fit exactly my purpose, because I have first to create the file.
Could anybody help me please?
Thank you in advanse!
P.S. I've already wrote the Applet code, what I need now is o n l y the help with a Servlet part!
Best regards.Thanks, but I want not client but servlet save the file automatically in a given path on client's mashine. Is there any way to do that?
Thanks. -
FND function to create .csv data file on client machine?
Hello All,
I am trying to create a concurrent request which when run by the user's creates a .csv file with data. I created a procedure in the database which run's when they run the conc.request.
However is there any FND function or anyother function available that creates the data file on the client machine (either in their 'C:\') or in a share drive etc?
Currently through the procedure, I am able to write the .csv data file to a unix directory to which users do not have access.
Thanks,
ChiruChiru,
Several options for you to consider are :
1. If you want to have the csv on client machine: Make the program to create the csv in server with a constant name, eg : test.csv and create a dos command in client's machine that is could FTP to server, rename the existing csv file in client's machine and get test.csv from server.
2. If you want to do in share drive : As long as the share drive exists in PC that can be used for FTP, you can create unix host script that can FTP the file to the windows server. For instance, create a generic unix host script that accepts parameter such as filename, and server destination, destination folder, unix login ,password, etc. This program will run in a request set after your concurrent program. If you search google I'm sure you will find samples of unix script that does this kind of thing.
3. As per what Kevin said ,another options is to send the csv file using email to the recipients.
HTH -
With webutil-client_host, send txt file to client printer
hi,
I wanna to learn how to send a txt file to client default printer(local or network),
I created txt file at client disk, and try to send printer directly,
just try some statement looks like below;
a.client_host('cmd /c start print C:\TEMP399899.txt /d:lpt1');
b.client_host('cmd /c start copy C:\TEMP399899.txt lpt1');
I do not know the command prompt syntax, please help me, reference me,
thanksHi,
on a command line type
print /?
for the help of how to print documents. On XP this help is
PRINT [D:device] [[drive:][path]filename[...]]
/D:device Specifies a print device.
Frank -
Webutil, syslib files one time download to client
The below are the contents from webutil.cfg file. My question is do these syslib files need to be downloaded to the client, even if we are just using client_get_file_name, client_text_io routines of webutil?
As per the notes on the webuitl.cfg file, only certain integration operations require this one time download , it doesnt say that all integration operations require the one time download.
Thanks in advance.
# 2. Installation Options
# WebUtil needs to download some files to the client in order to perform
# certain integration operations such as OLE or Registry Access
# These files are downloaded the first time that you access one of the
# functions than needs them
# You have to define the location of these files on the server
# Details
# syslib.location: The vitual path to the directory holding the
# the webutil library files on the server side
# this must either be an absolute URL or a url
# URL that is relative to the documentbase
# syslib.<os>.<package>.<n>: The name(s) of the libraries required for particular
# webutil beans
# The format of this is name|size|version|showDownloadDialog
# multiple libraries can be downloaded per package but
# ensure that the <n> values are consecutive and start at 1
install.syslib.location=/webutil
## Do not change the following lines unless instructed to do so
install.syslib.0.7.1=jacob.dll|94208|1.0|true
install.syslib.0.9.1=JNIsharedstubs.dll|65582|1.0|true
install.syslib.0.9.2=d2kwut60.dll|192512|1.0|true
## But you can add your own libraries in here
#install.syslib.0.user.1=testwebutil.dll|204872|1.0|true
install.syslib.0.user.1=ffisamp.dll|40960|1.0|trueGrant Ronald
Thanks for the reply, I really appreciated it. Can you clarify on the below 2
1.Can I comment out the entire Installation Options as I'm using just client_get_file_name and client_text_io ?
2.Can you please give me a link to a document or a metalink document reference where it goes into detail about syslib.install libraries and what they are used for , whey are need for and vice versa ?
Thanks in advance. -
Creating file in the client machine
Hello All,
In my jsp page, am writing data from database to an excel file and I want this excel file to be created in the client machine. I checked in the forums but could not find an apt reply.
ie, when i click on submit button, i get the data from the database and put it in an excel file.
any help would be appreciated.
am realy struggling with this.
any link to previous posts regarding this would be very helpful.
thankx a ton,
arun.you can't write a file from the server to the client. Such functionality would make it really easy to install virusses and such, don't you think? You can write the excel file on the server and then allow the user to download that file. This would mean writing the file to a webdir and then offering it as a link on a webpage.
Check out the apache website for jakarta POI, which allows writing (and reading) of excel files.
http://jakarta.apache.org -
How to create a Java Client from a wsdl file...
Hi,
I am looking for an available option for calling a Cobol unit from a Java application( front end). I've used the MicroFocus tool for creating a wsdl file from our Cobol unit.. Now i want to use this wsdl file for creating a Java Client..
Can any one suggest a suitable solution (software that makes use of the already existing wsdl file and generate a Java Client for that) ASAP....
Thanks,
roopaHey you can create java client using Eclispe or WSAD or far that matter any other IDE. crate a project save the WSDLs in a package. Right click on WSDL goto webservice option. From there you can generate client.
cheers,
sapan
Is it still open ?
cheers,
sapan
Edited by: sapan on Feb 25, 2009 1:17 AM -
Issue with creating Web Service Client using Oracle JDeveloper
Hi All,
I am trying to create a Web Service Client using Oracle JDeveloper. I set the Project compiler property to JRE 1.4
When I run the web service client, it throws me bunch of errors saying:
'Error(32,2): annotations are not supported in -source 1.4'
I am wondering why JDeveloper is using annotations even after I set the compiler property to 1.4
I am following this link to create the webservice client:
http://www.oracle.com/technetwork/developer-tools/forms/webservices-forms-11g-094111.html
Any help in this regard would be greatly appreciated.
Thanks,
Scott.Dear Shay,
Thanks for your prompt response.
You are right. JDeveloper 11g uses JDK 6 style annotations for the clients it creates. But you can change the JRE Version used at compile time by following these steps:
1. In the Applications Navigator, right-click the Project Nanem node and select Project Properties... from the context menu.
2. Select the Compiler node and check the Source Files and Generated Class Files dropdown lists. You may change these versions depending on the version of the JRE you are using with Forms to ensure that the compiled
classes from JDeveloper can be read by the JRE used by Form.
So I selected JDK version 1.4 there.
Sorry that I did not mention that we are using Oracle Forms 10g. That is the reason I selected JDK 1.4
Thank you.
Scott.
Maybe you are looking for
-
I am having a problem burning a disc with ITunes. I get a message that I have to download the program again as there are some files that didn't download because of another disc burning program. I am sure this is true as I have Media Player and Nero o
-
Adobe 9 Pro Document Compare Error
Hello Folks, I have a user with Adobe 9 Pro and he is attempting to do a document compare between 2 pdf docs. It looks like it does the compare but he then gets an error "Acrobat could not create the report document!". I have gone ahead and completel
-
Can change my password for skype account
Hi there I hope someone can help me especially from skype tech team. Background I had to reset my andriod phone lately. Once it was ready then i try to login to skype but it wasnt recognising my password. So i tried tk reset it but that didnt work ei
-
5D Mark II file conversion with CS3
I just bought a 5D Mark II, but CS3 Bridge won't open my files. So I downloaded DNG converter 4.5, but when I tried to do the conversions I got a message saying "There was an error parsing the file". How can I use CS3 Bridge with my 5D Mark II files?
-
After I issued an UPDATE statement in isqlplus, I issued a SELECT statement (also in isqlplus) to confirm the changes has been made. But when I try connect to sqlplus and issued the same SELECT statement, I noticed that the changes did not updated. T