CLIENT_GET_FILE_NAME problem in Webutil
Dear All,
I have following code to allow user to choose pdf file from his desktop;
DECLARE
V_OSUSER VARCHAR2(20);--Operating System User
BEGIN
--Get Operating System User ID
V_OSUSER := WEBUTIL_CLIENTINFO.GET_USER_NAME;
--Get Filename to be attached
:FILENAME := CLIENT_GET_FILE_NAME('C:\Documents and Settings\'||V_OSUSER||'\Desktop',NULL,
'Purchase Requisition Files)|PR*.pdf','Select Purchase Requisition....',OPEN_FILE,TRUE);
END;
After selecting the file for example:
C:\Documents and Settings\Administrator\Desktop\ABC 123.pdf
now from another button lets say, "Transfer File" i am copying the selected file to another folder.
Code is: CLIENT_HOST('CMD /C COPY '||:FILENAME ||' D:\mywork');
PROBLEM: is its not working when filename or path or targat has spaces but working if there is no space in filename or path.
Any suggestion???????
After adding " in both source and target
CLIENT_HOST('CMD /C COPY "'||:FILENAME ||'" "C:\My Work"');
thanks its resolved now
Edited by: rha2 on Apr 12, 2010 1:09 PM
Similar Messages
-
I am using 9ids.
In one form i have attached webutil lib, and copy the webutil.olb into object group.
Forms get comiled with no problem
but when run gives no output.
From java console i get these :-
Loading http://admin1:8888/forms90/webutil/webutil.jar from JAR cache
Loading http://admin1:8888/forms90/webutil/jacob.jar from JAR cache
Loading http://admin1:8888/forms90/java/f90all_jinit.jar from JAR cache
RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
Loading http://admin1:8888/forms90/java/application_images.jar from JAR cache
connectMode=HTTP, native.
Forms Applet version is : 90290
2003-Dec-15 13:21:51.78 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2003-Dec-15 13:21:51.93 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2003-Dec-15 13:21:51.93 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2003-Dec-15 13:21:51.109 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2003-Dec-15 13:21:51.109 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2003-Dec-15 13:21:51.281 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2003-Dec-15 13:21:51.296 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2003-Dec-15 13:21:51.296 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2003-Dec-15 13:21:51.312 WUI[VBeanCommon.destroy()] WebUtil GetClientInfo Utility being removed..
2003-Dec-15 13:21:51.312 WUF[VBeanCommon.destroy()] WebUtil Client Side File Functions being removed..
2003-Dec-15 13:21:51.312 WUH[VBeanCommon.destroy()] WebUtil Client Side Host Commands being removed..
2003-Dec-15 13:21:51.312 WUS[VBeanCommon.destroy()] WebUtil Session Monitoring Facilities being removed..
2003-Dec-15 13:21:51.312 WUT[VBeanCommon.destroy()] WebUtil File Transfer Bean being removed..
2003-Dec-15 13:21:51.312 WUO[VBeanCommon.destroy()] WebUtil Client Side Ole Functions being removed..
2003-Dec-15 13:21:51.312 WUL[VBeanCommon.destroy()] WebUtil C API Functions being removed..
2003-Dec-15 13:21:51.500 WUB[VBeanCommon.destroy()] WebUtil Browser Functions being removed..
pls help me out to get out of this problem.Hello Frank
When I run the Form ,It Displays nothing
But when I remove webutil object from form
and run it it runs fine.
I have to use webutil bcz i am using client_get_file_name function.
Pls help. -
Problem with webutil file dialog box when trying to save/open
Approximately 12 months ago we had this same issue and I think we managed to resolve it with a one off patch. Were getting it on another site now so any info will be much appreicated.
Basically when using webutil file chooser Client_Get_File_Name to upload/download something to/from the database it works sporadically.
When we choose a location to upload from or download to. we then click the buttonon the webutil file chooser and the box disapears without doing anything. Sometimes it works ok but i cant find any pattern to it working/not working
Has anyone else experienced these problems?i found it
patch 6127521
thanks -
Configuration problem running webutil demo form WU_TEST_106
Hi,
I am running the web util demo form from OTN, it works ok till I access the OLE tab and try to write some text to a *.doc file.
The java console spits out this text:
Loading http://dci003wa2197244.prod.irscounsel.treas.gov:8890/forms/java/frmall_jinit.jar from JAR cache
Loading http://dci003wa2197244.prod.irscounsel.treas.gov:8890/forms/java/frmwebutil.jar from JAR cache
RegisterWebUtil - Loading WebUtil Version 10.1.2.0
Loading http://dci003wa2197244.prod.irscounsel.treas.gov:8890/forms/java/jacob.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
Exception occurred during event dispatching:
java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jacob)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkLink(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.jacob.com.Dispatch.<clinit>(Dispatch.java:537)
at oracle.forms.webutil.ole.OleFunctions.create_obj(Unknown Source)
at oracle.forms.webutil.ole.OleFunctions.getProperty(Unknown Source)
at oracle.forms.handler.UICommon.onGet(Unknown Source)
at oracle.forms.engine.Runform.onGetHandler(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.processEventEnd(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I followed the steps layed out for configuring webutil in the users guide, I suspect the problem is related to signing the jacob.jar file.
I signed jacob.jar using $ORACLE_HOME/forms/webutil/sign_webutil.bat, I made sure ORACLE_HOME/jdk/bin was in PATH.
I received these warning/errors at this point
Generating a self signing certificate for key=webutil2...
keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> already exists
There were warnings or errors while generating a self signing certificate. Please review them.
Backing up d:\oracle\Product\dev10gR2suite\forms\java\jacob.jar as d:\oracle\Product\dev10gR2suite\forms\java\jacob.jar.old...
1 file(s) copied.
Signing d:\oracle\Product\dev10gR2suite\forms\java\jacob.jar using key=webutil2...
jarsigner: attempt to rename d:\oracle\Product\dev10gR2suite\forms\java\jacob.jar to d:\oracle\Product\dev10gR2suite\forms\java\jacob.jar.orig failed
I am running forms 10.1.2. How do I resolve this problem.
Your help is greatly appreciated.
Jim
.Well, I think the problem is a permission issue or there is a problem finding the correct files. Let me explain:
1. The first error is expected. Read it carefully and consider what you did to this point.
Generating a self signing certificate for key=webutil2...
keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> already exists
This is expected because the alias was already created when signing frmwebutil.jar. Since the alias only needs to be created one time, this is expected and can be ignored.
2. The second error is your real issue:
jarsigner: attempt to rename d:\oracle\Product\dev10gR2suite\forms\java\jacob.jar to d:\oracle\Product\dev10gR2suite\forms\java\jacob.jar.orig failed
My suggestion:
1. Delete all jacob files including any which may have been renamed.
2. Re-download the correct Jacob version as noted in the WebUtil and Forms documentation. Do NOT attempt to use a newer version as it will cause a failure.
3. Copy the jacob.jar file in the same directory which contains the cortousy signing script (batch) Oracle provides.
4. Ensure that you have (Windows) Administrative permissions on the machine.
5. Open a DOS shell and change directories (cd) to the directory which contains the signer script.
6. Set the PATH to include the JDK\bin. For example:
SET PATH=d:\oracle\Product\dev10gR2suite\jdk\bin;%PATH%
7. Execute the jarsigner script.
sign_webutil jacob.jar
As already mentioned you can ignore messages which suggest that the alias already exists. However, pay attention to any others.
8. Assuming it works correctly, copy jacob.jar to ..\forms\java
9. Clear the JAR cache from whichever JRE (Jinitiator) you are using.
10. Retest -
Strange problem using webutil "WEBUTIL_CLIENTINFO.GET_HOST_NAME"
in a form in with a use (and work fine) some function of webutil (like client_get_file_name etc) i have try to use this function :
:B0.HOST_NAME := WEBUTIL_CLIENTINFO.GET_HOST_NAME;
where b0.host_name is a char filed of 256.
when i try to execute this forms dons not work this lasty function and appear this error :
wuc-015 your form must contain the following BEAN : getclient info ???
i don't understan why ??
in the same form all other function of webutil works fine, only this ??
a solution ???I've got it
quotation from the Webutil install guide:
the Form has instantiated the WebUtil PJCs. This means that you cannot call WebUtil
functions before the Forms UI is rendered. This would include triggers such as PREFORM,
WHEN-NEW-FORM-INSTANCE and WHEN-NEW-BLOCK-INSTANCE for
the first block in the Form.
Likewise you cannot call functions after the UI has been destroyed for instance in POSTFORM.
If you do need to use WebUtil at Forms startup, it is recommended that you create a timer
with a short duration (say 1ms) in your When-New-Form-Instance trigger, then make the
WebUtil call in a When-Timer-Expired trigger.
Francois -
hi all,
i am using oracle 10g forms and i have a problem in mailing using webutil and it the code seesm to be hanging at CLIENT_OLE2.create_obj('Outlook.Application'); and doesnt seems to be moving forward after this point. there seems to be no problem with my webutil since all the other code is working fine in differnt forms.
many thanks in advance
Regards,
RBL.hi Sarah,
Thanks for the quick response! :) well i did finally managed to get the error details. PFB
java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jacob)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkLink(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.jacob.com.Dispatch.<clinit>(Dispatch.java:537)
at oracle.forms.webutil.ole.OleFunctions.create_obj(Unknown Source)
at oracle.forms.webutil.ole.OleFunctions.getProperty(Unknown Source)
at oracle.forms.handler.UICommon.onGet(Unknown Source)
at oracle.forms.engine.Runform.onGetHandler(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.processEventEnd(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
looks like a Jacob.jar issue... i think.
please confirm. also please let me know what can be done for this?
Best Regards,
RBL -
Hi everyone,
I've been installing webutil on my oracle database 11g xe.
Everything got fine until the moment when I needed to compile the library webutil.pll.
I really don't know what is happening, when I try to do this action, is showed for me a message saying where Oracle Forms is unable to generate the plx.
just that.
nothing else.
and.. for webutil to work fine is need to compile this library or else I'll have some exceptions and Oracle Errors.
What can I do to solve my problem?
Everything is working fine ( Oracle Forms, Database ) .. The only problem it's related with Webutil.
Regards,
Victor Hugo Lazariihuu!
I discovered what is the problem!
The problem is connected with Oracle forms Builder exactly. I'm running it on Windows 7 or 8. Anyway, there is a bug on Forms.
I needed to get into Windows register and to change a variable there called - NSL_LANG, changing it value to - AMERICAN_AMERICA.WE8ISO8859P1.
After it has done, you just have to close and to open again the Oracle Forms.
Tks mate!
Victor Hugo Lazari -
Problems with webutil......alternative solution?
not sure if this is the best forum to post this thread to...but here we go:
we are currently using webutil to merge data from Oracle into a Word Template. Word is never actually seen by the end user...the Word Doc is just printed out on the users local printer.
However this is causing errors....
I want to find a solution that enables us to do this without the need for Word on the server.
I've looked at WordWriter by Softartisans but the system requirements are a problem...
We would prefer to use existing Word templates but I'm considering/researching the possibility of outputting the file as a .pdf or postscript...
Any ideas/suggestions?
Cheersthanks for the suggestions....unfortunately I do not know what errors occur using webutil....I hope to find out soon.
However it seems it may be better doing this on the server using ORDCOM.
Can anyone please provide futher info on this. And would others agree ORDCOM is my best bet?
I have spoken to my manager...and apparently problems have occurred in the past using COM components. I am continuing to investigate.....but if anyone has any further comments or suggestion I would appreciate it.
Thanks -
Hi there
I've posted in MetaLink asking for help but no luck there so I'm hoping someone here may help me.
Am testing upgrading my forms from 6i to 9iDS running with OC4J.
I have a simple test form to which I have attached the Webutil library and object library. I installed Webutil as per the documentation and the readme. I have checked my CLASSPATH and PATH and the settings of my formsweb.cfg and default.env over and over but I cannot seem to get it to work.
When I run the form from Form Builder and press my test button I get WUC-015 Your Form must contain the following Bean for this function to be available: oracle.forms.webutil.clientinfo.GetClientInfo.
I can view the Webutil canvas in Form Builder and I can see the items on the block.
The output I get from Java Console is as follows:
Oracle JInitiator: Version 1.3.1.13
Using JRE version 1.3.1.13-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\esther
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\Documents and Settings\esther\Oracle Jar Cache
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://1631cap:8888/forms90/java/f90all_jinit.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 902122
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)
I'm getting very frustrated as I'm sure I must be missing something simple, keep searching different topics but can't seem to find the problem. Please can anyone point me in the right direction?
Thanks in advance...Hi there
Thanks for your input. I checked my orion-web.xml, it is as follows:
<?xml version="1.0" ?>
<!DOCTYPE orion-web-app (View Source for full doctype...)>
- <orion-web-app deployment-version="9.0.2.0.0" jsp-cache-directory="./persistence" temporary-directory="./temp" servlet-webdir="/servlet/" autoreload-jsp-beans="true" autoreload-jsp-pages="true" default-buffer-size="2048" default-charset="iso-8859-1" development="false" directory-browsing="deny" file-modification-check-interval="1000" get-locale-from-user="false" internationalize-resources="false" jsp-print-null="true" jsp-timeout="0 (never)">
<context-param-mapping name="configFileName">C:\OraHome1/forms90/server/formsweb.cfg</context-param-mapping>
<virtual-directory virtual-path="/java" real-path="C:\OraHome1/forms90/java" />
<virtual-directory virtual-path="/html" real-path="C:\OraHome1/tools/web90/html" />
<virtual-directory virtual-path="/webutil" real-path="C:\webutil/lib" />
<virtual-directory virtual-path="/image" real-path="C:\OraHome1/forms90/image" />
<virtual-directory virtual-path="/jcons" real-path="C:\tardis\9i\icons" />
<virtual-directory virtual-path="/jinitiator" real-path="C:\OraHome1/jinit" />
<session-tracking cookies="disabled" autoencode-absolute-urls="false" autoencode-urls="true" autojoin-session="false" cookie-max-age="in memory only" />
</orion-web-app>
So it looks OK to me - still having the same problem. Any more suggestions? -
Problem with webutil library in Forms 11g debug (FRM-93652)
Hi.
I have a problem when debug a forms in OFM11g, that used.
the problem is that the forms, in debug mode, raise the error FRM-93652. Only in debug mode.
I add tha jacob.jar and jacob.dll in the folder ORACLE_HOME/forms/java and Oracle_home/forms/webutil.
the classpath variable in default.env, has added the jacob.jar file, and in my FORMS_BUILDER_CLASSSPATH Registry variable.
Can some one help me???.
Thanks and sorry for my englishI have the same issue with debug_messages in Forms 11g -- they will not appear. I can, however, run in debug mode and attach the session to Forms Builder 10.1.2.0.2. Thus, when I run in debug mode and check the the Command Line tab under Global/System Variables, DEBUG_MESSAGES is always set to NO regardless of how I set it on the command line. Still works fine in our 10gR2 instances.
DB 11.1.0.7
Forms 11.1.1.4
WebLogic 10.3.4
AIX 5.3 64-bit
AIX Java 1.6.0 SR9 FP1
Client: WinXP JRE 1.6.0_25
My real issue has to do with a FRM-40734 on EXIT_FORM after ENTER_QUERY or EXECUTE_QUERY have caused the KEY-EXEQRY trigger to erroneously fire -- especially when DO_KEY is involved -- but that's a different and much more problematic story. -
Problem using webutil bean and synchronize.
'lo,
I go an unsolvable (for me ) problem in a form using webutil.
Cause i need to do a synchronize at the end of when_new_form_instance trigger,
and this seems to desactivate (or better pass throught activation) webutil beans.
Then when i try use webutil it says bean not found.
If i dunot do the synchronize, work well.
Do someone got idee ?
TkThe webutils beans are not usable from the when-new-forms-instance trigger as you have discovered.
The usual workaround is to create a timer that is fired at the end of the w-n-f-i and the webutil code is placed in/called from the when-timer-expired trigger. If you already have timers, you need to detect which one you need. -
Pb de lenteur avec WEBUTIL / Slow problem with WEBUTIL
Bonjour,
J'ai implémenté l'objet WEBUTIL afin de charger les données d'un fichier Excel dans un Forms (10G). Cela fonctionne correctement mais je rencontre de gros problèmes de lenteur pour extraire ces données.
Avez-vous rencontré le même cas ? Comment l'avez-vous résolu ?
Merci pour votre aide.
Hi,
I use the Webutil object to import data, stored in Excel file, to a Forms in version 10G. It works but I have huge slow problems to extract the data.
Do you have this kind of problems ? How do you solve them ?
Thanks for helping.
SéverineYes, of course.
This is an extract of the code :
app CLIENT_OLE2.OBJ_TYPE;
wbooks CLIENT_OLE2.OBJ_TYPE;
wbook CLIENT_OLE2.OBJ_TYPE;
wsheet CLIENT_OLE2.OBJ_TYPE;
wsheets CLIENT_OLE2.OBJ_TYPE;
args CLIENT_OLE2.LIST_TYPE;
app := CLIENT_OLE2.create_obj('Excel.Application');
CLIENT_OLE2.SET_PROPERTY(app,'Visible',0);
wbooks := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Workbooks');
args := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.add_arg(args, filename);
wbook := CLIENT_OLE2.INVOKE_obj(wbooks, 'Open', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
wsheets := CLIENT_OLE2.GET_OBJ_PROPERTY(wbook, 'Worksheets');
args := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.add_arg(args, 'Instructions');
wsheet := CLIENT_OLE2.GET_OBJ_PROPERTY(wsheets, 'Item', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
args := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.add_arg(args, 1);
CLIENT_OLE2.add_arg(args, 1);
cell := CLIENT_OLE2.INVOKE_obj(wsheet, 'Cells', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
Tampon1 := TRIM(CLIENT_OLE2.get_char_property(cell, 'Value'));
CLIENT_OLE2.release_obj(cell);
args := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.add_arg(args, 1);
CLIENT_OLE2.add_arg(args, 3);
cell := CLIENT_OLE2.INVOKE_obj(wsheet, 'Cells', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
Tampon2 := TRIM(CLIENT_OLE2.get_char_property(cell, 'Value'));
CLIENT_OLE2.release_obj(cell);
I get about a hundred cells in my Excel File and it takes more than 1 minute.
Thanks.
Séverine -
Hello everyone,
When I want to upload a document in the database from the client machine, it gives error of
ORA-04063: package body 'SCOTT.WEBUTIL_DB' has errors
I installed and configured webutil correctly but I can't figure out what's the problem.
Can someone help me please??hi
please read it properly i hope it will help u too.
Configure WebUtil 1.06
How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform,
I also tested it on Linux and it works well (after of course taking care of the differences in PATH format)
Solution
Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
here are steps to get a small test form running, using WebUtil 1.06.
Note: Oracle_Home is used as an alias for your real oDS ORACLE_HOME.
Feel free to copy this note to a text editor, and do a global find/replace on
Oracle_Home with your actual value (no trailing slash). Then it is easy to
copy/paste actual commands to be executed from the note copy.
1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
2) Copy or move jacob.jar and jacob.dll
C:\webutile is the folder where you extracted Jacob, and will end in ...\jacob_18
cd C:\webutile
copy jacob.jar C:\DevSuiteHome_1\forms\java\.
copy jacob.dll C:\DevSuiteHome_1\forms\webutil\.
The Jacob staging area is no longer needed, and may be deleted.
3) Sign frmwebutil.jar and jacob.jar
Open a DOS command prompt.
Add C:\DevSuiteHome_1\jdk\bin to the PATH:
set PATH=C:\DevSuiteHome_1\jdk\bin;%PATH%
Sign the files, and check the output for success:
C:\DevSuiteHome_1\forms\webutil\sign_webutil C:\DevSuiteHome_1\forms\java\frmwebutil.jar
C:\DevSuiteHome_1\forms\webutil\sign_webutil C:\DevSuiteHome_1\forms\java\jacob.jar
4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
you may skip this step. Otherwise,
Create a schema to hold the WebUtil stored code, and privileges needed to
connect and create a stored package. Schema name "WEBUTIL" is recommended
for no reason other than consistency over the user base.
Open C:\DevSuiteHome_1\forms\create_webutil_db.sql in a text editor, and delete or comment
out the EXIT statement, to be able to see whether the objects were created witout
errors.
Start SQL*Plus as SYSTEM, and issue:
CREATE USER webutil IDENTIFIED BY a
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
CONNECT webutil/webutil@rcci
@C:\DevSuiteHome_1\forms\create_webutil_db.sql
-- Inspect SQL*Plus output for errors, and then
CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
Reconnect as SYSTEM, and issue:
grant execute on webutil_db to public;
5) Modify C:\DevSuiteHome_1\forms\server\default.env, and append C:\oracle\developer\jdk\jre\lib\rt.jar
to the CLASSPATH entry.
6) Modify C:\DevSuiteHome_1\forms\server\formsweb.cfg insde [default] add :
archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
archive=frmall.jar
also add :
[webutil]
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=frmall_jinit.jar
WebUtilArchive=frmwebutil.jar,jacob.jar,f90all.jar
archive=frmwebutil.jar,f90all.jar
lookAndFeel=oracle
7) Modify C:\DevSuiteHome_1\forms\server\webutil.cfg and add :
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
8) Start the OC4J instance
9) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
It is important to generate the PLX, to avoid the FRM-40039 discussed in
Note 303682.1
If the PLX is not generated, the Webutil.pll library would have to be attached with
full path information to all forms wishing to use WebUtil. This is NOT recommended.
10) Create a new FMB.
Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
There is no need to Subclass the WebutilConfig object.
Attach the Webutil.pll Library, and remove the path.
Add an ON-LOGON trigger with the code
NULL;
to avoid having to connect to an RDBMS (optional).
Create a new button on a new canvas, with the code
show_webutil_information (TRUE);
in a WHEN-BUTTON-PRESSED trigger.
Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
11) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
the "Application Server URL" is empty.
Then append "?config=webutil" at the end, so you end up with a URL of the form
http://server:port/forms/frmservlet?config=webutil
12) Run your form.sarah -
hi
i tried to install webutil. i did all the steps listed in familiarization manual and readme.html.
it's the first time i use a library in my form.
when i run it i get a frm-40039 -> library could not be attached to form.
what am i doing wrong? the forms are on the same machine as iAS is installed. so i use that OC4J, not the embedded in developer suite.
when attaching the library i tried both methods (remove paht yes and no). isn't yes correct for my situation?
i also first attached the library and then subclassed the webutil object group.
here are some lines of the .env file i'm using.
FORMS90_PATH=D:\join3000/forms;D:\Oracle\9iAS\forms90\webutil\forms
WEBUTIL_CONFIG=D:\Oracle\9iAS\forms90\webutil\server\webutil.cfg
CLASSPATH=....;D:\Oracle\9iAS\forms90\webutil\lib\webutil.jar;D:\Oracle\9iAS\jdk\jre\lib\rt.jar
hope someone can help me.
are there any webutil-demos to test it?Is your app server on windows or unix ? could it be a case problem (unix being case sensitive??)>
regards
Grant Ronald
Forms Product Management -
Hi everyone, i downloaded the webutil library and install step by step, then i dragged the webutil.olb, atach the webutil.pll, but when i ran the form in 9IDS, and i use a simple host or client_host a message appears that say "WUC-015 your form must contain the following Bean for this function to be available: oracle.forms.webutil.host.Host", when i look for the error it say that you don't have java beans on your form, i check and the form contain that, i include the path of webutil to forms90_builder_classpath and forms90_classpath, i change the formsweb.cfg, webutil.cfg and the default.env files, but if i go to the menu of developer forms, in program->Import Java Classes...
and i select oracle.forms.webutil.host.Host an error appears that say Exception occurred: "java.lang.NoClassDefFoundError: oracle/forms/ui/VBean"
what can i do?,
Thanks advanced,To using Webutil in 9iDS. You only do following steps:
- Download webutil and jacob
- Modify Formweb90.cfg (reconfig baseHTML and add WebutilArchive)
- Add vitual path for webutil.jar in orion-web.xml
- Add Classpath in default
Attention:
in Formweb90.cfg distinguish lower case from upper case. So somtime if in vitual path you wrote "webutil" but if in formsweb90.cfg (WebutilArchive)you write "Webutil" you will get WUC-015 error.
Cheer!
Maybe you are looking for
-
IPod Nano synced with itunes after checking a box now playlists and playcounts are gone
Hello, I have a macbook pro with OS X and and iPod Nano 7th Generation, and recently I entered iTunes with my iPod connected and I entered the iPod tab in the side bar. From that tab I entered 'Music' and checked. Erasing my playlists and playcounts?
-
How can i sign out from ichat ??
how can i sign out from the ichat ??
-
hi all, i would like to know how to add certain fields to the standard program RFBABL00. i want to add fields like vendor/customer id, document clearing date etc. pls reply
-
How create filter in olap universe with MDX LIKE Function
Hi all I need to create a filter in a olap universe with the LIKE MDX function. Problem: There is a dimension with account numbers whit 10 digits like this: 5683492703 and i need to create a filter whit all account numbers whit the number 7 in the si
-
Oracle9iAS Java Edition v9.0.3 instalattion on SuSE 8.2
The OC4J "standalone" edition was simple. With the Oracle9iAS Java Edition v9.0.3 instalation bundle, it comes with other funcionalites (Oracle HTTP server, enterprise console, and other), and with many many problems. I have tested the installation u