Webutil_file.file_size
Hi,
i tried to find the file size using webutil_file.file_size, its is giving the file size for small files like *98 KB*,after that am getting error like 'FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06502'.Please help me resolve this issue.thanks in advance.
Regards,
Tharini.
Edited by: tharini on 22-Jul-2010 05:34
As Francois mentioned, without the code example and version information we can't offer much help. When providing version information, do not say "10g". Please provide the exact numbers (e.g. 10.1.2.2).
If you are trying to run the command repeatidly in a loop to get sizes for many files, this will likely fail, at least intermittently. You should not do this in a loop. If you cannot find any better way of doing it, at least put a delay between calls to each file or a SYNCHRONIZE after each call. This will be very expensive from a networking point of view, but it should resolve the problem.
Similar Messages
-
How do I make the webutil file transfer works correctly?
Hello,
I'm using Oracle 10g Database and form builder in developer suite 10g release 2. Running on Windows XP SP2.
I've created a database user, executed the create_webutil_db.sql , and created a table as below:
CREATE TABLE DOCS
(DOC_ID VARCHAR2(15) NOT NULL,
DOC_IMAGE BLOB,
TEXT_DESCRIPTION CLOB,
FILENAME VARCHAR2(80),
FILE_SIZE NUMBER NOT NULL,
CONSTRAINT PK_DOCS PRIMARY KEY (DOC_ID)
I've created two buttons in the from, one for upload and one for download
the upload code:
DECLARE
fname VARCHAR2(1000);
fext VARCHAR2(1000);
result BOOLEAN;
BEGIN
fname := Client_Get_File_Name(null,null,null,null,OPEN_FILE,TRUE);
fext := fname;
WHILE instr(fext,'.') <> 0 LOOP
fext := substr(fext,instr(fext,'.')+1);
END LOOP;
IF LOWER(fext) <> 'doc' THEN
message('Only Microsoft Word Document (*.doc) can be uploaded');
ELSE
result := Webutil_File_Transfer.Client_To_DB
(trim(fname),'DOCS','DOC_IMAGE','DOC_ID = ' || '''' || :DOC_ID || '''');
IF result THEN
message ('Upload success');
:FILENAME := fname;
:FILE_SIZE := WebUtil_file.file_size(:FILENAME);
WHILE instr(:FILENAME,'\') <> 0 LOOP
:FILENAME := substr(:FILENAME,instr(:FILENAME,'\')+1);
END LOOP;
ELSE
message ('Upload failed');
END IF;
END IF;
END;
and the download code:
DECLARE
result BOOLEAN ;
BEGIN
IF :FILE_SIZE > 0 THEN
result := Webutil_File_Transfer.DB_To_Client
(trim(Client_Get_File_Name(null,:FILENAME,null,null,SAVE_FILE,TRUE)),'DOCS','DOC_IMAGE','DOC_ID = ' || '''' || :DOC_ID || '''');
IF result THEN
message ('Download success');
ELSE
message ('Download failed');
END IF;
ELSE
message('No file to download');
END IF;
END;
I can upload the file to the database, and download the file.
However, the file being downloaded is corrupted. I don't know why this will happen. I've tried to rebuild the form, re-attach the webutil library, rebuild the database users and tables, but all these doesn't work.
Please help, thank you.
Message was edited by:
se072c231 Can u try running the sample form available from OTN (WU_TEST) and check whether it works
2 If it doesnt then enable the java console and check the error message
Rajesh ALex -
Webutil command into batch file
Hello,
We have a 10gR2 environment, with webutil.
I get a weird behaviour with CLIENT_HOST.
When I use this command
myCommand := 'cmd /c COPY c:\file1.txt c:\toto.sql ';
CLIENT_HOST(myCommand);
There is no problem.When I use put the COPY command into a .bat file, in order to execute the .bat file with CLIENT_HOST ... the command doesn't make the job.
There is no special information in the jInitiator console...
But here is the code I'd like to write :
myFile CLIENT_TEXT_IO.FILE_TYPE;
myCommand VARCHAR2(1000);
BEGIN
myFile := CLIENT_TEXT_IO.FOPEN('c:\myBatch.bat', 'W');
CLIENT_TEXT_IO.PUTF(myFile, 'COPY c:\file1.txt c:\toto.sql \n');
CLIENT_TEXT_IO.FCLOSE(myFile);
myCommand := 'cmd /c c:\myBatch.bat ';
CLIENT_HOST(myCommand);
END;
Also, when I doubleClick on the myBatch.bat file under Windows, the command works fine !
My problem is that I need to have a .bat file that gathers many commands. (this is not only about copying a file)
What puzzles me, is that I don't have such problem with our 8i environment !
That's why I was thinking about any special privilege/setup missing in our 10g environment / configuration...
Any idea or advice?
Thanks,
OlivierHi Olivier
The problem is that the operative system hasn’t written the file yet, even though the fclose command as been executed.
I used this type of code to check if the file is closed in the file system.
loop
l_counter := l_counter + 1;
if webutil_file.file_size('c:\myBatch.bat') > 0 then
CLIENT_HOST(myCommand);
exit;
end if;
if l_counter > 100 then
SET_ALERT_PROPERTY('UI_ERROR',alert_message_text,'Timeout. Copy can not be completed, due to file not being released by file system.' );
l_button := show_alert('UI_ERROR');
exit;
end if;
end loop;
Hope this will help you solve the problem
Cheers
Nils Peter -
How to restrict bytes in client_get_file_name (webutil)
Does someone know how to restrict files in bytes before upload them into the database with webutil? (db10g, forms10g).
l_filename := client_get_file_name(directory_name => :GLOBAL.user_dir
,file_name => null
,file_filter => null
,message => null
,dialog_type => null
,select_file => null
Thanks.
m.Hi, the problem was the function is webutil_file.file_size (not webutil.file_size). Thanks everyone for helping me.
IF webutil_file.file_size(l_filename) > 100000 THEN
file_too_big;
END IF;
m. -
Using webutil to test file size (csv) .
I use Webutil_file.File_Size to test if a csv file is empty.Even the file is empty it returns a value greater than zero (No data in the file).What could be the solution to find if no data in the file to return zero or another solution.Very urgent please!
If you have a "very urgent" issue, I recommend contacting Oracle Consulting or Oracle Support. The forums are not for "urgent" issues. Also, in order to get "urgent" help, include as much detail as possible would be a good start. For example, exactly which Forms and WebUtil version are you using? What is the client platform (Windows what)?
I have tested what you descibed using Forms 10.1.2.3 with WebUtil 10.1.2.3 on Windows 2003 and XP and it appears to work correctly. WEBUTIL_FILE.FILE_SIZE correctly returns 0 when the file size is 0 and returns the correct size when not 0.
fileSize := Webutil_file.File_Size ('C:\someDirectory\somefile.csv'); -
WEBUTIL_FILE.FILE_SELECTION_DIALOG
Hi,
Forms 10gR2
Client XP with IE
Webutil 1.0.6
I've got a problem with the function WEBUTIL_FILE.FILE_SELECTION_DIALOG : even if I specify a start directory like this :
v_file := webutil_file.file_selection_dialog (directory_name=>'c:\tmp', title=>'Open file');
the dialog box shows "My documents" files and not "c:\tmp" files.
Obviously, I've got the same problem with :
- FILE_OPEN_DIALOG
- FILE_SAVE_DIALOG
- CLIENT_GET_FILE_NAMEHello,
Quick and probably dumb answer : have you tested with the standard parameter passing ?
File_Selection_Dialog
'c:\tmp',
NULL,
'Title'
) ;Francois -
Webutil_file.copy_file slow in copying files
Hi All,
I've read about this problem previously and I'm finally suffering from it myself.
It took between 5 and 10 minutes to copy a 500k file between two network drives connected to my client. How slow is it going to be for the 100Mb files we will want to copy?
Has anyone found a solution? IS the only speedy alternative to use client_host and the copy command? I was hoping that the webutil_file.copy_file was a more elegant solution to the file copying process!!!
TIA
TonyHello Tony,
That would be fine if I wanted to transfer from the AS to the client.
But I want to transfer between two network drives on the client,
these drives are not visible to the AS at the moment.My understanding is that the functions are executed on the client and therefor the network drives have to be visible to the client and not to the AS.
But currently i'm working in the OC4J and my server and client are the same.
So it is not really tested.
Is the AS to client copy much faster than the copy_file on the client?
Why would that be? Is it access to network drives on the client that is slow?Yes it is faster. The procedures use different implementations. Files don't get divided in chunks when webutil_file_transfer.AS_to_Client is used.
Bernd -
Webutil_file.create_directory & client_host
HI,
*1.*
I want to create directories & files in my C:\tmp, but I want try to run from my form.
For example, I have a form. In my form, have a button 'Create File'. When I click that button, it will create a folder/file in my C:\tmp, not in AS. My OS pc is Win XP, AS is Unix, Oracle Forms [32 Bit] Version 9.0.2.12.2 (Production).
Is it possible to do that? Or it totally impossible? I've tried using client_host, host, & webutil_file.create_directory, but all failed.
When I use client_host & webutil_file.create_directory, error during compile.
identifier 'client_host' must be declared.
identifier webutil_file.create_directory' must be declared.
Or am I forgot something about the settings?
I know that:
HOST is executed on the App Server
CLIENT_HOST Is executed on the client
but I really don't know the concept how & where to apply. I'm really new to all these things.
*2.*
Lastly, my question: Is it allow me to create folder in AS? That means I need access privilege/rights to create,edit,delete files/folders or not ? Because when I try to create folder in AS using host command, it failed.
Is this problem related to rights on AS? The error appeared was +302000: non-ORACLE exception.+
Can anyone help or clarify to me?
Thanks,
Luthfi
Edited by: Luthfi on Sep 28, 2011 8:38 PM
Edited by: Luthfi on Sep 28, 2011 8:44 PM
Edited by: Luthfi on Sep 29, 2011 2:27 AM
Edited by: Luthfi on Sep 29, 2011 2:32 AM
Edited by: Luthfi on Sep 29, 2011 2:34 AMfor creating the files at the client side you have to use the
CLIENT_HOST('c:\windows\system32\cmd.exe /k "mkdir c:\temp\aa"');
the above command will create a directory in the c:\temp\aa
you have to configure the AS for pirvilleges for the creating of directories... -
Hi,
i am using WebUtil with Oracle Developer 10g(9.0.4)
i have got the problem
oracle.forms.webutil.file.FileFunctions bean not found
WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work.
all configuration is very good ( formsweb.cfg, wenutill.pll...)
but i have got this problem
I am create a new form in C:\webutil_106 and webutil.olb and
webutil.pll in the same direction C:\webutil_106.
in FORMS_PATH IN REGISTARY
Code: [Select all] [Show/ hide]
( C:\webutil_106 )
in default.env
Code: [Select all] [Show/ hide]
( FORMS90_PATH=C:\Dev10g_old\forms90;C:\Dev10g_old\forms90\webutil; C:\webutil_106
WEBUTIL_CONFIG=C:\Dev10g_old\forms90\server\webutil.cfg
CLASSPATH= C:\Dev10g_old\forms90\java\jacob.jar;
C:\Dev10g_old\forms90\java\frmwebutil.jar;
C:\Dev10g_old\forms90\java\f90all.jar;
C:\Dev10g_old\jdk\jre\lib\rt.jar
in formsweb.cfg
Code: [Select all] [Show/ hide]
( archive_jini=f90all_jinit.jar;frmwebutil.jar;jacob.jar
archive=f90all.jar
and end of files
[webutil]
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=f90all_jinit.jar
WebUtilArchive=frmwebutil.jar,jacob.jar,f90all.jar
archive=frmwebutil.jar,f90all.jar
lookAndFeel=oracle
in webutil.cfg
Code: [Select all] [Show/ hide]
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
and I am using The URL:
Code: [Select all] [Show/ hide]
http://<LOCALHOST>:8889/forms90/f90servlet?CONFIG=WEBUTIL
I am creating the webutil user and grant dba and execute
the create_webutil_db.sql successfullyHi,
i am using WebUtil with Oracle Developer 10g(9.0.4)
i have got the problem
oracle.forms.webutil.file.FileFunctions bean not found
WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work.
all configuration is very good ( formsweb.cfg, wenutill.pll...)
but i have got this problem
I am create a new form in C:\webutil_106 and webutil.olb and
webutil.pll in the same direction C:\webutil_106.
in FORMS_PATH IN REGISTARY
Code: [Select all] [Show/ hide]
( C:\webutil_106 )
in default.env
Code: [Select all] [Show/ hide]
( FORMS90_PATH=C:\Dev10g_old\forms90;C:\Dev10g_old\forms90\webutil; C:\webutil_106
WEBUTIL_CONFIG=C:\Dev10g_old\forms90\server\webutil.cfg
CLASSPATH= C:\Dev10g_old\forms90\java\jacob.jar;
C:\Dev10g_old\forms90\java\frmwebutil.jar;
C:\Dev10g_old\forms90\java\f90all.jar;
C:\Dev10g_old\jdk\jre\lib\rt.jar
in formsweb.cfg
Code: [Select all] [Show/ hide]
( archive_jini=f90all_jinit.jar;frmwebutil.jar;jacob.jar
archive=f90all.jar
and end of files
[webutil]
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=f90all_jinit.jar
WebUtilArchive=frmwebutil.jar,jacob.jar,f90all.jar
archive=frmwebutil.jar,f90all.jar
lookAndFeel=oracle
in webutil.cfg
Code: [Select all] [Show/ hide]
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
and I am using The URL:
Code: [Select all] [Show/ hide]
http://<LOCALHOST>:8889/forms90/f90servlet?CONFIG=WEBUTIL
I am creating the webutil user and grant dba and execute
the create_webutil_db.sql successfully -
WebUtil_File Function Typo
The defined function "webutil_file.get_file_separator" is actually misspelled in the software. To use it, you have to misspell it as "webutil_file.get_file_seperator". Will this be corrected in future versions?
Tis simply the Olde English spelling, however, yes this (and a couple of other typos that I will leave you to discover) has been corrected
-
Hi guys,
I have updated my AS and DS to 10.1.2.3 and downloaded Wbutil 1.6 update 10.
I configured all the .cfg files as mentioned in the documentation when I launch a test form with config=webutil and a webutil functionality in it then i am getting following error -
oracle.forms.webutil.file.FileFunctions bean not found.
WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work.
Java console shows following -
java.lang.ClassNotFoundException: oracle.forms.webutil.clientInfo.GetClientInfo
Caused by: java.io.IOException: open HTTP connection failed:http://abhamare-2k.cybage.com:7778/forms/java/oracle/forms/webutil/clientInfo/GetClientInfo.class
java.lang.ClassNotFoundException: oracle.forms.webutil.file.FileFunctions
Caused by: java.io.IOException: open HTTP connection failed:http://abhamare-2k.cybage.com:7778/forms/java/oracle/forms/webutil/file/FileFunctions.class
java.lang.ClassNotFoundException: oracle.forms.webutil.host.Host
Caused by: java.io.IOException: open HTTP connection failed:http://abhamare-2k.cybage.com:7778/forms/java/oracle/forms/webutil/host/Host.class
java.lang.ClassNotFoundException: oracle.forms.webutil.session.SessionFunctions
Caused by: java.io.IOException: open HTTP connection failed:http://abhamare-2k.cybage.com:7778/forms/java/oracle/forms/webutil/session/SessionFunctions.class
and so on..
Some how my java console too has stopped showing up after mistakingly clicked Hide Console.
So can any one help me to get out of this error.
Its sort of driving me crazy.
Thanks in advance.
Av.Hi Av, Can you let me know what you did to fix this issue? We are facing a serious issue with the same error and we can't get around it.
Thanks
Sam. -
hi am trying to run my form in development am geting this error oracle.forms.webutil.file.filefunctions bean not found webutil_file.file_selection_dialog_int will not work what could be the problem
yes i do have jacob.jar and frmwebutil.jar in my forms/java directory my java console message is
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\dmadima.PGWC
Proxy Configuration: Browser Proxy Configuration
JAR cache enabled
Location: C:\DevSuiteHome_1\forms\java
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://training1pc:8889/forms/java/frmall_jinit.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.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)
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)
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)
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)
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)
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)
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)
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)
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.ButtonItem.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_FILE.FILE_OPEN_DIALOG
I've been trying to use this function such that it goes to the last directory used but I'm not having much luck. I tried using a global and ,in the example below, a variable but neither works. The variable has the correct directory when displayed using set_alert_text immediately before the call. Can anyone help?
Here's my code,
DECLARE
alert_button NUMBER;
l_directory PAYROLL_FILE_HEADER.FILENAME%TYPE;
BEGIN
l_directory := :GLOBAL.directory;
set_alert_text( 'PAYROLL_INTERFACE_ERROR_ALERT'
, l_directory
, alert_button);
:FILE_VALIDATION.INPUT_FILE_NAME := WEBUTIL_FILE.FILE_OPEN_DIALOG(l_directory, '', '|All files|*.*|', 'Select Payroll Data File');
:FILE_VALIDATION.File_Name := '';
:FILE_VALIDATION.File_Directory := '';
:FILE_VALIDATION.Number_Of_Records := '';
:FILE_VALIDATION.File_Details := '';
GO_ITEM('FILE_VALIDATION.CONFIRM_BUTTON');
SET_ITEM_PROPERTY('FILE_VALIDATION.CONFIRM_BUTTON', ENABLED, PROPERTY_TRUE);
END;I have also tried...
:block.rute := webutil_file.file_selection_dialog(directory_name => 'c:\',
file_name => null,
file_filter => 'Documentos pdf|*.pdf',
title => 'Seleccione Fichero',
dialog_type => open_file, --save_file
select_file => TRUE);
... without any success of the PDF showing after selecting the file and pressing Open button of the selection diaglog. -
WebUtil_File.File_Open_Dialog VERY SLOW with large amounts of files
Dear Friend,
We are using WebUtil_File.File_Open_Dialog on the client to allow for the selection of an image from a folder on the server, which contains around 2-3000 files.
It takes around 10-15 minutes to display the files within the folder. This is obviously unacceptable and I was wondering if anyone had come up with a viable solution to this problem, as i noticed similar issues had been posted in the past and no solution was suggested.
The function call for the above operation is: :control.fichier := WebUtil_File.File_Open_Dialog(:global.path||'images\bdsurvey\', '', '*.jpg |*.jpg| (All files)*.* |*.*|', 'Nom du fichier photo');
Many thanks,
JohnThis can be done by the following:
Tuning the file system - reducing/filtering unwanted files, defragmentation, FAT (NTFS might consume more time)
I am not sure whether you can do anything for this in AS.
Alternatively there are some java classes which may be used instead of web util. -
WebUtil_File.FIle_Selection_Dialog error in forms 10g release 2
when I click to butotn to select the file from the OS system by using client_get_file_name function this alert message.
The message;
!!!!oracle.forms.webutil.file. FileFunctions bean not found. WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not found.!!!!
I have written the following trigger in when button press
:txt1 :=client_get_file_name(null,null,null,null,opne_file,true);
plz can anybody send me the solution for thisthe frmwebutil.jar exists and when I check it from browser it works like
http://osname:8889/forms/java/frmwebutil.jar its works fine, or is there any other way to check plz send me and one more issue is when i check the webutil layout in the form its give oracle.forms.webuitl.ole class function does not implement in bean in the layout and then i try to import that classs from the import java classs it gvies error. I need it very urgently
Maybe you are looking for
-
My spell check only works for about half of an article. Is there a way to fix this?
When I'm on a wiki, looking at an article, I sometimes see a couple spelling errors that just bug me, so I sometimes go in and fix them. However, when I pull up the editing page, the spell check only works for about the first half of the article. I c
-
How to pass a value to the export parameter for a method (public instance)?
Hello, I am trying ABAP OO newly. How to pass a value to the export parameter for a method (public instance) called in a report? This *export parameter has a reference type of structure. Thanks in advance, Ranjini
-
Change connection string in MS Excel 2013 powerpivot
I need to update connection strings of multiple files in Bulk using c# . But , Its working for MS Excel 2010 and not for Excel 2013. Code snippet : Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application(); M
-
Image to array maximum image size
Hey guys, I have a problem with the Image to array VI. I am getting the image from a FL2-20S4M camera from point grey, which has a maximum resolution of 1624x1224 pixels. The image is loaded with IMAQ vision and displayed. I now use image to array to
-
Access 2010 SP1 - random crashes relating to vbe7.dll
We are experencing the same problem as described here in a post on Microsoft Answers. However was are also still occasionally seeing the problem after uninstalling SP1. Has anyone come across any better workarounds? Microsoft: can we please have s