Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

File Upload Pluggable Java Component / Java Bean

398711Feb 25 2005 — edited Sep 7 2005
Dear Colleague,

I integrated the File Upload java bean into one of my Forms 9i forms. I also had it up and running (!!!), but after I rebooted the machine, I no longer receive the File Upload dialog window as I did originally. When I press the button which starts the File Upload, it never displays the window to select a file. My trigger is as follows:

begin
/* Initialize the Java Bean */
FileUploader.init('DOCU_BLOCK.FILE_UPLOADER','LOAD_CALLBACK_TRIGGER');
/* Make sure the file is compressed on upload */
FileUploader.setCompressed(true);
/* Do the load to the c:\rolic\RKMS_documents\ directory on the server */
FileUploader.UploadFile (:PARAMETER.file_destination);

/* Error Handling */
exception
when FileUploader.FileUploaderEx then
message (FileUploader.GetError);
end;

I have the "uploadclient.jar" file in my folder: C:\oracle9iDS\forms90\java

I list the "uploadclient.jar" file in the forms config file, formsweb.cfg as follows:

archive_jini=f90all_jinit.jar, uploadclient.jar, RKMS_images.jar

and I reference the uploadserver.jar in the default.env file as part of the CLASSPATH as follows:

CLASSPATH=c:\oracle9iDS\jlib\debugger.jar;c:\oracle9iDS\jlib\ewt3.jar;c:\oracle9iDS\jlib\share.jar;c:\oracle9iDS\jlib\utj90.jar;C:\oracle9iDS\forms90\java\UploadServer.jar

=========================================================
- Why did this work before I rebooted and now no longer???
- Any tips? Ideas?
=========================================================

The uploadclient.jar file also successfully loads as shown in the Java Console:

Oracle JInitiator: Version 1.3.1.9
Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
User home directory = C:\Dokumente und Einstellungen\Randy

Proxy Configuration: no proxy

JAR cache enabled
Location: C:\Dokumente und Einstellungen\Randy\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0

Loading http://quantum:8888/forms90/java/f90all_jinit.jar from JAR cache

Loading http://quantum:8888/forms90/java/uploadclient.jar from JAR cache

Loading http://quantum:8888/forms90/java/RKMS_images.jar from JAR cache

connectMode=HTTP, native.

Forms Applet version is : 90290
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 5 2005
Added on Feb 25 2005
2 comments
390 views