Webutil reattachment
hi all,
i have been using webutil for several weeks now. after getting everything configured almost everything works perfectly.
the only remaining problem is that when i open a form in form builder and recompile it for the first time after rebooting i get the following:
wuc-015: your form must contain the following bean for this function to be available. oracle.forms.webutil.file.filefunctions
after reattaching the library, re-subclassing the object group (both from which i dutifully remove the paths), and regenerate the form everything works fine again.
a few notes about our environment:
form builder 9.0.4.0.19
jinitiator 1.3.1.18
application server 9.0.4
portal 9.0.4.1.0
i am calling the form from portal using a url like this:
http://ora-21.sw.nos.myco.com/forms90/f90servlet?config=dcbs1&separateframe=false&form=cbs1_eac_process.fmx&height=600&width=800
the object library and pll are in the same directory as the *.fmb and *.fmx.
anybody have any ideas?
thanks,
curtis
When the user runs a webutil-enabled application they have to accept a java security certificate for webutil. This permits webutil methods to step out of the java sandbox and access the user's PC drives.
Beyond that, there are no special security considerations.
Where it gets sticky is in extranet/internet applications, where the user may not trust your software and so may not be prepared to run things. This wasn't a problem with ORA_FFI, because that was pretty much only ever distributed through internal networks.
Cheers, APC
Similar Messages
-
dears,
i was design an form that read an excel sheet and upload the excel sheet contant into a table on DB, the excel sheet contain only 2 columns, the problem is when i compile the form CTRL+K there is no errors shown but when the form run i click Browes button but it give me error as below
ORA-06508 PL/SQL could not find program unit being called .
the program unit is client_get_file_name it a package within WEBUTIL attached library, the problem is the form cant call any package or anything from WEBUTIL attached library.
on the form i have 2 buttons
First Button Code: "Browes"
Declare
V_FILE VARCHAR2(2000);
BEGIN
V_FILE := client_get_file_name(NULL, NULL, NULL, NULL, open_file, TRUE);
:main_block.FNAME := V_FILE;
EXCEPTION
WHEN OTHERS THEN
my_alert('There Is Error: '||sqlerrm); -- My_alert(p_text) is program unit
RAISE FORM_TRIGGER_FAILURE;
END;
Second Button code : "Import to DB"
DECLARE
MYFILE CLIENT_TEXT_IO.FILE_TYPE;
filename varchar2(100);
temp varchar2(1000);
t1 varchar2(1000);
t2 varchar2(1000);
cust_id number;
dfrom date;
dto date;
ccode varchar2(100);
r varchar2(1000);
transfer_status boolean;
begin
filename := :main_block.fname;
MYFILE := CLIENT_TEXT_IO.FOPEN(filename, 'r');
SYNCHRONIZE;
SYNCHRONIZE;
CLIENT_TEXT_IO.get_line(MYFILE,temp);
t1:=temp;
while temp is not null loop
CLIENT_TEXT_IO.get_line(MYFILE,temp);
t1:=temp;
select substr(t1,1,instr(t1,',') -1)
into t2
from dual;
ccode:=t2;
select substr(t1,instr(t1,',') +1)
into t1
from dual;
insert into trc_upload -- table on DB
values(t2,t1);
commit;
end loop;
CLIENT_TEXT_IO.FCLOSE(MYFILE);
EXCEPTION
WHEN DDE.DDE_APP_FAILURE THEN
my_alert('WINDOWS APPLICATION CANNOT START.');
WHEN DDE.DDE_PARAM_ERR THEN
my_alert('A NULL VALUE WAS PASSED TO DDE');
WHEN DDE.DMLERR_NO_CONV_ESTABLISHED THEN
my_alert('DDE CANNOT ESTABLISH A CONVERSATION');
WHEN DDE.DMLERR_NOTPROCESSED THEN
my_alert('A TRANSACTION FAILED');
end;
so please to help me on this issue
Note:
the form deployed under UNIX on Application Server
Thanks
Murad.From ORA-06508 is seems like WEBUTIL.pll is not found in the runtime-environment.
Possible solutions:
Check if the WEBUTIL.pll (or plx) is on the path where the fmx-File is placed.
If not, check the FORMS90_PATH in your env-File (normally default.env) (you didn't mention your forms-Version, may also be FORMS60_PATH) and if the WEBUTIL.pll is in that path, if not adjust the env-file.
If its still not working, check if WEBUTIL.pll is attached including the full Path (unattach WEBUTIL.pll and reattach it without the path)
Last hint: Case-sensitivity: If you attach in lowercase-letters and library is in uppercase on unix-system the library will not be found at runtime. You won't see how the the pll was attached, best method is to unattach library and reattach it in correct case.
Another remark:
The DDE-Exception seem to be useless, because you don't use DDE (and i would not work for its not available under unix).
Hope this helps -
Facing problem in using webutil
hello,
i have oracle developer suite 10g (9.0.4), which have not webutil capabilities,
i download the webutil 1.0.6, and manually made all the required chages,but facing problem in using all the fuctions, firstly it return value or string exception (ora-06502) and after that it always return NO_data_found(01403) exception,
Please! help on this
regards,
sidharthIn order for us to help you will need to provide a lot more information. However, I would start with this:
1. Have you compile the webutil.pll file in to a .plx?
2. Is the PLX included in the FORMSxx_PATH?
3. Have you attached the WebUtil objects (from the Object Library) to your form?
4. If you are developing your form on Windows and trying to run it on Unix, have you recompiled the PLL and FMB?
5. If you sub-classed the WebUtil objects in to your form, the webutil OLB will need to be in the FORMSxx_PATH
Try using the WebUtil Demo form:
http://www.oracle.com/technology/products/forms/htdocs/webutil/Webutil_demo.zip
Read the WebUtil doc. It may be necessary to detach and reattach the WebUtil Library. Then execute a COMPILE_ALL. Refer to the WebUtil doc Section 5.1 "Adding The Required Objects"
http://www.oracle.com/technology/products/forms/htdocs/webutil/web_util.pdf -
Attached library webutil added on opening form in forms dev 10.1.2.0.2
Using forms developer 10.1.2.0.2. Converted forms from 6i. Everything is working as expected, however having an issue with Forms developer. I have added the webutil.olb to the forms developer object libraries. I have not attached the webutil object group to my specific form. I have not attached the webutil.pll to my specific form in the attached library. However, when I open the form, forms developer automatically attaches webutil.pll to my specific form's attached library. This happens on every form but just on one machine. I have tried deleting the library, recompiling, saving, closing, reopening and it is still there. If anyone can provide some insight, I would appreciate it.
Solved - We had another attached library that referenced something that was using webutil. When we removed that attached library and webutil.pll, then we did not see webutil.pll reattach itself upon opening the form in forms builder. It is odd that it is smart enough (or mean enough) to try to help you out by including things you don't want. Just thought I would share on the small chance anyone else has run across this.
-
Error while compiling forms10g in Unix with webutil features.
Hi,
I developed a form called test.fmb and attached webutil.pll. change all text_io to client_text_io.
Copied the file to unix and tried to compile, it says
CLIENT_TEXT_IO.FILE_TYPE must be declared.
(Please note that webutil.pll has been compiled and .plx file is generated).
Please help.
Thanks.Our Forms_90 Path is
FORMS90_PATH=/AppsTop/FRMTOP/app/9.0.4/forms90:/AppsTop/FRMTOP/app/9.0.4/pi:/AppsTop/FRMTOP/app/9.0.4/webutil:/AppsTop/FRMTOP/app/9.0.4/webutil/forms
I just copied webutil.pll from
:/AppsTop/FRMTOP/app/9.0.4/webutil/forms/webutil.pll to
my local directory C:\webutil.pll
I attached the C:\webutil.pll under Attached Libraries in test.fmb in my own PC.
Please advice.
Thanks,
Mano. -
Error in loading WebUtil package
Dear all,
i have the following problem,
we have install the application server on one machine
Windows server 2003 Enterprise edition
(both the infra and middle tier on the same machine), and we wanted to configure the webutil package with this installation for runtime usage, we met all the configuration steps, and we met all the platform security privilages(windows privilages),but..
when we try to open the form that uses this package, we found two problems, the form didn't open at all and the following log written to the java console which indicates that there is a problem while loading the webutil beans(last few lines)
Waiting for help, and following is the log
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\Administrator.PWAGAZA Proxy Configuration: Manual Configuration Proxy: 192.168.0.5:8080 Proxy Overrides: pwa-application.pwagaza,<local> JAR cache enabled
Location: C:\Documents and Settings\Administrator.PWAGAZA\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://localhost/forms/java/frmall_jinit.jar from JAR cache Loading http://localhost/forms/java/frmwebutil.jar from JAR cache RegisterWebUtil - Loading WebUtil Version 10.1.2.0 java.io.FileNotFoundException: File not found: http://localhost/forms/java/myAppIcons.jar at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source) at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source) at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source) at oracle.jre.protocol.jar.JarCache.get(Unknown Source) at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source) at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source) at sun.misc.URLClassPath$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getResource(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) 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.ewt.util.FocusUtils.<clinit>(Unknown Source) at oracle.ewt.lwAWT.LWComponent.<clinit>(Unknown Source) at oracle.ewt.laf.oracle.OracleLookAndFeel._initCommonFixedDefaults(Unknown Source) at oracle.ewt.laf.oracle.OracleLookAndFeel._getCommonDefaults(Unknown Source) at oracle.ewt.laf.oracle.OracleLookAndFeel._getIndexedDefaults(Unknown Source) at oracle.ewt.laf.oracle.OracleLookAndFeel.getDefaults(Unknown Source) at oracle.ewt.lwAWT.BufferedApplet.getUIDefaults(Unknown Source) at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source) at oracle.ewt.swing.JBufferedApplet.<init>(Unknown Source) at oracle.forms.engine.Main.<init>(Unknown Source) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) WARNING: Unable to cache http://localhost/forms/java/myAppIcons.jar Loading http://localhost/forms/java/jacob.jar from JAR cache Loading http://localhost/forms/java/FormsGraph.jar from JAR cache proxyHost=null proxyPort=0 connectMode=HTTP, native. Forms Applet version is : 10.1.2.0 2006-Jul-10 12:07:37.481 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.481 WUI[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.496 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.496 WUF[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.496 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.512 WUH[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.512 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.512 WUS[SessionFunctions.init()] Dispatcher Monitoring interval set to 5 2006-Jul-10 12:07:37.512 WUS[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.527 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.527 WUT[SessionFunctions.init()] Max Transfer chunk size set to 16384 2006-Jul-10 12:07:37.527 WUT[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.699 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.699 WUO[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.715 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.715 WUL[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.715 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress 2006-Jul-10 12:07:37.715 WUB[VBeanCommon.getIPAddress()] 192.168.0.3 2006-Jul-10 12:07:37.730 WUI[VBeanCommon.destroy()] WebUtil GetClientInfo Utility being removed.. 2006-Jul-10 12:07:37.730 WUF[VBeanCommon.destroy()] WebUtil Client Side File Functions being removed.. 2006-Jul-10 12:07:37.730 WUH[VBeanCommon.destroy()] WebUtil Client Side Host Commands being removed.. 2006-Jul-10 12:07:37.730 WUS[VBeanCommon.destroy()] WebUtil Session Monitoring Facilities being removed.. 2006-Jul-10 12:07:37.730 WUT[VBeanCommon.destroy()] WebUtil File Transfer Bean being removed.. 2006-Jul-10 12:07:37.730 WUO[VBeanCommon.destroy()] WebUtil Client Side Ole Functions being removed.. 2006-Jul-10 12:07:37.730 WUL[VBeanCommon.destroy()] WebUtil C API Functions being removed.. 2006-Jul-10 12:07:37.902 WUB[VBeanCommon.destroy()] WebUtil Browser Functions being removed..Hi Geetha
check if that job is still running,if it is running kill that job first.
change the Data package size from the schduler menu
Now try to load the data again
Regards
PBI -
WUO-709: Unable to get Property: Open == Forms application using Webutil
Hi everyone,
I have configured Webutil and tested a demo application for loading excel data into a forms application. The application works just fine. Here is the code:
DECLARE
application Client_OLE2.Obj_Type;
workbooks Client_OLE2.Obj_Type;
workbook Client_OLE2.Obj_Type;
worksheets Client_OLE2.Obj_Type;
worksheet Client_OLE2.Obj_Type;
filename varchar2(2000);
cell Client_OLE2.OBJ_TYPE;
args Client_OLE2.OBJ_TYPE;
cell_value varchar2(100);
eod boolean:=false;
j integer:=1;
BEGIN
-- The following set up communication with the excel spreadsheet
application := Client_OLE2.create_obj('Excel.Application');
Client_OLE2.set_property(application,'Visible','false');
workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
args := Client_OLE2.CREATE_ARGLIST;
Client_OLE2.add_arg(args, 'c:\test\test.xls');
workbook := Client_OLE2.GET_OBJ_PROPERTY(workbooks,'Open',args);
Client_OLE2.destroy_arglist(args);
worksheets := Client_OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
worksheet := Client_OLE2.GET_OBJ_PROPERTY(application,'activesheet');
--Go to the first record
go_block('planets');
first_record;
loop
If :system.record_status <> 'NEW' then
create_record;
end if;
exit when eod;
for k in 1..3 loop --3 fields per record
args:= Client_OLE2.create_arglist;
Client_OLE2.add_arg(args, j);
Client_OLE2.add_arg(args, k);
cell:= Client_OLE2.get_obj_property(worksheet, 'Cells', args);
Client_OLE2.destroy_arglist(args);
cell_value :=Client_OLE2.get_char_property(cell, 'Value');
if upper(cell_value) = 'EOD' then
eod:=true;
Message('End of Data');
exit;
end if;
--Could be done this way also ->
/*if k =1 then
:dept.deptno:=cell_value;
end if;
if k =2 then
:dept.dname:=cell_value;
end if;
if k =3 then
:dept.loc:=cell_value;
end if;
--Less code this way ->
copy(cell_value,name_in('system.cursor_item'));
next_item;
end loop; --for
j:=j+1;
end loop;--main loop
-- Release the Client_OLE2 object handles
Client_OLE2.release_obj(cell);
Client_OLE2.release_obj(worksheet);
Client_OLE2.release_obj(worksheets);
Client_OLE2.release_obj(workbook);
Client_OLE2.release_obj(workbooks);
Client_OLE2.invoke(application,'Quit');
Client_OLE2.release_obj(application);
END;
-- cell_value :=Client_OLE2.get_num_property(cell, 'Value');
The issue comes when I try to supply filename and path (here, c:\test\test.xls) through a file open dialog. I tried each of these:
1.
filename := client_get_file_name
(directory_name => 'C:\'
,file_name => 'test'|| '.xls'
,file_filter => 'Excel (*.xls)|*.xls|'
,message => 'Select client side filename where App Server file will be saved'
,dialog_type => OPEN_FILE
,select_file => TRUE
2.
filename := Client_Get_File_Name(directory_name => 'C:\'
,file_name => null
,file_filter => null
,message => null
,dialog_type => null
,select_file => null
3.
filename := client_get_file_name ('','','','Select a file to Upload ',null,TRUE);
On using the above, I DO get a file open box. However, after browsing and selecting a file, I am getting the error message:
WUO-709 [OleFunctions.get_obj_property_args()] Unable to get Property: Open; Exception com.jacob.com.ComFailException: Can't map name to dispid: Open
I have checked the documentation on 'WUO-709' but cannot seem to figure out why it's not working.
Sorry for the lengthy description. Would greatly appreciate help on this.
- AmitI forgot to mention that in the modified code, I am supplying 'filename' as:
filename := client_get_file_name ('','','','Select a file to Upload ',null,TRUE);
args := Client_OLE2.CREATE_ARGLIST;
Client_OLE2.add_arg(args, filename);
Thanks,
Amit -
After upgrading AS to run Webutil, Reports Server is no longer found
Recently we update de configuration of Application Server to use the WebUtil features (FileTransfer, etc) but some clients can not view the reports (the PDF files generated and the previous html page where are passed de parameters to generate de PDF file paramform=yes <--- I mean this parameteter passed to RUN_REPORT_OBJECT_PROC )
The curious thing is that in NetScape it Works fine, but in MS Internet Explorer does not.
Initially we thought that was the problem, a configuration in the client, but after formatting the PC, the problem persists.
In the webutils log (after enable this capabilitiy) does not show anything abnormal:
192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 2
192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
192.168.0.244:desarrollo: 2006-sep-27 12:19:46.967 WUT[loadSettings()] Local properties file loaded
192.168.0.244:desarrollo: 2006-sep-27 12:19:47.248 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
192.168.0.244:desarrollo: 2006-sep-27 12:19:47.248 WUT[getProperty()] Getting
In a similar topic we read that it could be a problem with the reports classpath, but why webutils configuration works in some clients and with others does not?
In the RUN_REPORT_OBJECT_PROC function instead using relative address for the reports servlet we changed for a complete adress, I mean
RUN_REPORT_OBJECT_PROC(repid,
'/reports/rwservlet')
replaced with:
RUN_REPORT_OBJECT_PROC(repid,
'http://ias.website/reports/rwservlet')
But the problem persists (we have the reports and forms services in the same server)
and after debugging the RUN_REPORT_OBJECT_PROC function, in this line
rep_status := report_object_status(report_message);
report_object_status returns null
Why happends this?
Could you help us? What information need to be posted to this? what else we need to do?
We configured webutils as mentioned in the Oracle® Forms Developer
WebUtil User’s Guide
Release 1.0.6
We're using MS Windows 2003 Server, Oracle AS 10g and Oracle DB 10g
The RUN_REPORT_OBJECT_PROC function (procedure) is the same what is mentioned in
http://www.oracle.com/technology/products/forms/pdf/10g/frmrepparamform.pdf
and the same that worked fine for a long time ago.We added the following lines to webutiljini.htm
For IE
<PARAM NAME="BROWSER" VALUE="InternetExplorer">
<PARAM NAME="MAYSCRIPT" VALUE="TRUE">
For NetScape:
BROWSER="Netscape"
MAYSCRIPT="true"
And adding the frmwebutil.jar to the Reports Server ClassPath the problem was solved -
Trying to use webutil - Works in development, will not work on app server.
I am having a similar problem. I have followed all the instructions from above.
I run my code in the developer and it runs fine. If I run my code from the application server I get locked up.
Here is the output from my java console.
Oracle JInitiator: Version 1.3.1.28
Using JRE version 1.3.1.28-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\BrianG.PSSI
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\Documents and Settings\BrianG.PSSI\Oracle Jar Cache28
Maximum size: 1,024 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://smprdap2.pssi.local/forms/java/frmall_jinit.jar from JAR cache
Loading http://smprdap2.pssi.local/forms/java/frmwebutil.jar from JAR cache
RegisterWebUtil - Loading WebUtil Version 1.0.6
Loading http://smprdap2.pssi.local/forms/java/esteelman.jar from JAR cache
Loading http://smprdap2.pssi.local/forms/java/sticons.jar from JAR cache
Loading http://smprdap2.pssi.local/forms/java/jacob.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.3
Exception occurred during event dispatching:
java.lang.NoSuchMethodError
at oracle.forms.webutil.common.VBeanCommon.init(VBeanCommon.java:281)
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.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.Window.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)
This is the configuration I an trying to use is:
[SMT1]
form=st_menu.fmx
imageBase=CodeBase
width=1020
height=740
separateFrame=true
splashScreen=/forms/steelman/images/logo.gif
background=no
lookAndFeel=Oracle
colorScheme=purple
logo=/forms/steelman/images/small_logo.gif
formsMessageListener=
recordFileName=
pjcRegisterApplet=oracle.forms.demos.util.RegisterCertificate
pjcArchive=esteelman.jar
baseHTMLjinitiator=signedjini.htm
baseHTMLJinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm.
WebUtilArchive= esteelman.jar,sticons.jar, frmall_jinit.jar, frmwebutil.jar,jacob.jar
archive_jini=frmall_jinit.jar,esteelman.jar,sticons.jar,frmwebutil.jar,jacob.jar,
em_mode=1
serverApp=/steelman/conf/steelman
envFile=C:\steelman\conf\smt1.env
If i do not use baseHTMLjinitiator=signedjini.htm
our application will not launch at all.The first problem I see is that you are using an old version of WebUtil, which is not supported for use with Forms 10.1.2.3 and is probably the cause of the problem.
RegisterWebUtil - Loading WebUtil Version 1.0.6
The correct versions of frmwebutil.jar and webutil.pll are applied to Developer Suite installations and can be copied to Application Server. If you do not have an iDS installation, you can install the latest Forms Bundle patch which includes the correct WebUtil files. Refer to Patch ID 9593176 and Note 1188127.1. Be sure to review the ReadMe included with the patch.
The second problem is that you are using Jinitiator. Jinitiator has been obsolete for a long time. However, if you have some reason why you must use it, I would recommend that you at least get the last version released (1.3.1.30). This can be downloaded from within MyOracleSupport (account required) using Patch ID 7410076. If you do not have access to MyOracleSupport and you are using Forms 10.1.2.3, then you can use JRE6 (1.6.0_37). Do not attempt to use JRE7
http://www.oracle.com/technetwork/java/javase/downloads/jre6u37-downloads-1859589.html
You would need to install the 32bit version: jre-6u37-windows-i586.exe
References:
<li>Note: 566628.1
<li>Note: 561273.1 -
How to upload data from excel to form using webutil
Hi,
In the sample provided by Oracle
http://www.oracle.com/technology/products/forms/htdocs/webutil/howto_ole.html
Note 247606.1 How to Copy Records From a Form Into Excel
It shown the methods of how to copy data from form to excel but is there any sample to provide the step on how to read the cell from excel into Form in 10g.declare
args client_ole2.list_type;
application client_ole2.obj_type;
vworkbooks client_ole2.obj_type;
vdoc client_ole2.obj_type;
vworksheet client_ole2.obj_type;
vrange client_ole2.obj_type;
begin
-- create app object
application := client_ole2.create_obj('Excel.Application');
client_OLE2.SET_PROPERTY(application, 'Visible','True');
-- get workbooks object
vworkbooks := client_ole2.get_obj_property(application, 'Workbooks');
-- and open a file
args := client_ole2.create_arglist;
client_ole2.ADD_ARG(args, 'c:\tp_ae.xls');
vdoc :=client_ole2.INVOKE_OBJ(vworkbooks,'Open',args);
client_ole2.destroy_arglist(args);
-- get a worksheet object
-- for this to work you need to know the sheet name or its index
args := client_ole2.create_arglist;
client_ole2.ADD_ARG(args, 1); <-- name or index
vworksheet := client_ole2.get_obj_property(vdoc,'Worksheets',args);
client_ole2.destroy_arglist(args);
-- get a range object which in this case is just a cell
-- for this to work you need to know the cell coordinates
args := client_ole2.create_arglist;
client_ole2.ADD_ARG(args, 'B6');
vrange := client_ole2.get_obj_property(vworksheet,'Range',args);
client_ole2.destroy_arglist(args);
-- and here you get the value
message(client_ole2.get_char_property(vrange,'Value'));
-- release objects
client_ole2.release_obj(vrange);
client_ole2.release_obj(vworksheet);
client_ole2.release_obj(vdoc);
client_ole2.release_obj(vworkbooks);
client_ole2.release_obj(application);
end; -
How to run multiple DOS commands from a single Webutil Client_Host session?
Hello all,
I have a requirement where I need to create an interface with SVN from Forms for basic checkin-checkout of files.
So, I've been trying to use webutil client_host to open a command line session and issue svn commands.
For svn, sometimes I need to give multiple commands like change to a particular directory and then run an svn command.
But client_host takes in only one command at a time and I'm unable to issue a series of DOS commands to perform
a particular task.
Is there a way to do this?
Pls suggest.
Regards,
SamFirst your original question... You can put more than one DOS command on a single line, simply separate each command with an ampersand (&). For example:
mkdir c:\abc & cd abc & dir*
Regarding your concerns about performance, well that would depend on exactly what you mean. Using CLIENT_HOST (or HOST on the server) simply opens a shell (DOS in this case) then passes your command to it. The performance of performing this action really isn't measurable. Basically you are just pressing a button and you should get a near immediate action. As for the performance of executing each command, that has nothing to do with Forms. Once the command is passed to the shell, the rest is a function of the shell and whatever command you passed.
Having said that, if you were to write something sloppy like a loop (in pl/sql) which called CLIENT_HOST lots of times repeatedly, then yes there would be a performance problem because the pushing of the button will cause an exchange to and from the server and each cycle in the loop will do the same.
So the answer to how performance is impacted will depend on what exactly you need to accomplish. If it is a single call to CLIENT_HOST, this should be fine. -
Webutil download file from app server
i am calling a report from forms. report uses text_io to write delimited data to app server disk. report info also displays in browser using web.show_document. when i call report from forms i run report, use web.show_document to display in browser and then call webutil to download file to client form appserver. sequence would be in a manner as below:
run_report_object (report_id);
when report = finished then
web.show_document;
end if;
webutil.download_file (filename);
the problem is this: the web.show_document code runs but while this is running the webutil code also is running. but the report has not completed yet so when webutil runs looking for the file the report is supposed to write it cannot find it since the report has not completed. web.show_document fires off a browser session and then immediately runs the webutil code. but i dont want the webutil code to run until the report has successfully completed. does anyone know how to integrate these two functions into one step instead of running the report and allowing it to complete and then executing a separate step to download the file.
thank youYou might want to try this code snippet....
--- code to set parameters, declare variables etc...
l_report_return := run_report_object(l_report_id);
l_report_status := report_object_status(l_report_return);
WHILE l_report_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
l_report_status := report_object_status(l_report_return);
END LOOP;
IF l_report_status = 'FINISHED' THEN
/*Display report in the browser*/
web.show_document(......);
ELSE
message('Error when running report ');
END IF; -
Problem with Form and webutil loading jar and connection
Can anyone shed light on this. Here is my java console output. I then get FRM-90250 and FRM-92101....
Orion-web.xml
<virtual-directory virtual-path="/webutil"
real-path="C:\webutil/lib" />
Forms90.conf
#Virtual path for WebUtil
AliasMatch ^/forms90/webutil/(..*) "c:\webutil/lib/$1"
formsweb.cfg
webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
[WEBFTU]
pageTitle=Creative Automation Services
form=c:\export\data\ca\prod\webftu.fmx
archive_jini=f90all_jinit.jar,rolloverbutton.jar,hyperlink.jar
archive_ie=f90all.cab
archive=f90all.jar
webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
WebUtilLogging=off
#WebUtilLogging=Console
# WebUtilLoggingDetail=normal
WebUtilLoggingDetail=Detailed
WebUtilErrorMode=Alert
baseHTMLjinitiator=C:\webutil\server\webutiljini.htm
width=900
height=600
splashScreen=/forms90/images/splash.gif
background=/forms90/images/black.gif
logo=/forms90/images/blackborder.gif
lookAndFeel=Oracle
colorScheme=Titanium
otherparams=useSDI=yes
workingDirectory=c:\export\data\ca\prod
envFile=C:\webutil\server\webutil.env
Oracle JInitiator: Version 1.3.1.9
Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\msantry
User has overriden browser's proxy settings.
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\javaburps\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://clientapps.cauto.com/forms90/webutil/webutil.jar from JAR cache
Downloading http://clientapps.cauto.com/forms90/webutil/jacob.jar to JAR cache
Loading http://clientapps.cauto.com/forms90/java/f90all_jinit.jar from JAR cache
RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
Loading http://clientapps.cauto.com/forms90/java/rolloverbutton.jar from JAR cache
Loading http://clientapps.cauto.com/forms90/java/hyperlink.jar from JAR cache
connectMode=HTTP, native.
oracle.forms.net.ConnectionException: Forms session <3> failed during startup: no response from runtime process
at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
at oracle.forms.net.HTTPNStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
at oracle.forms.net.HTTPConnection.connect(Unknown Source)
at oracle.forms.engine.FormsDispatcher.initConnection(Unknown Source)
at oracle.forms.engine.FormsDispatcher.init(Unknown Source)
at oracle.forms.engine.Runform.initConnection(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)
Thanks,
Mary SantryThe error does not look like a webutil client side problem - it looks more like a server side issue - perhaps the runtime not being able to find the webutil.pll.
Check your FORMS90_PATH in the webutil.env file and make sure it's not too long (>255 chars) if it is split it and use ORACLE_PATH as well. -
How to open Dialog Box by using webutil
Hi all,
I am using webutil in 9i(9.0.2)
as in the user manual i did the changes..
except one..when i set
baseHTMLjinitiator=d:\webutil\server\webutiljini.htm
it gives the
Duplicate Parameter on Command Line..
when i commented the above baseHTMLjinitiator=d:\webutil\server\webutiljini.htm
and run the form ..that time formd gives the following error
oracle.forms.webutil.file.FileFunctions...
How to solve ..this issue ?
any help ..
with anticipating the reply
Regards
A meetThanks Phuong. I try it, but still does not work. I have tried the followings:
CLIENT_HOST('CMD/C START "editor" C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt' );
CLIENT_HOST('CMD/C START "editor" wordpad.exe D:\temp\out.txt' );
WEBUTIL_HOST.NONBLOCKING('CMD /C C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt');
--trang -
How to edit a file into webutil dialog box?
Hello, I have a webutil dialog box to open a file on a server in Win2003.
I want edit and save the changes in a file into dialog box, but i don't have this function like windows operation system.
Can i customize the webutil dialog box and add this function ?
Regards,
GP
Message was edited by:
ualual99As I said, the Webutil open/save dialog functions will only allow you to work with the client machine.
You can use the file_transfert_AS_to_client() Webutil function to get the file on the client machine then edit it, then use the file_transfert.client_to_AS() function to upload the new file on the Application Server.
In my article about the Oracle Forms 10g release 2 : Demos, Tips and Techniques,
http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
you could find an "open file dialog" like form sample able to display the Server's directories.(paragraph: 2.4.3)
Have a try !
Francois
Maybe you are looking for
-
PB G4 1.5 Display Blacks Out. Any ideas?
So I have a 1.5 12" PB. I love it. It's a great little machine. Randomly my screen decides that it would be a great idea to go black, no backlight on. I can still see faint images on the screen and everything is working, just no backlight. I close th
-
Error while taking archive log backup
Dear all, We are getting the below mentioned error while taking the archive log backup ============================================================================ BR0208I Volume with name RRPA02 required in device /dev/rmt0.1 BR0210I Please mount BR
-
Error in dep run - Asset under construction
Hi! Could someone please help me with the following: My customer has a large amount of assets under construction (AuC) and also other assets. None of the assets under consctruction should have a depreciation key (or depreciation key 0000) and no depr
-
Reading Header data in a SOAP Envelope for SOAP Sender Adapter
Hello All, Am using a SOAP sender adapter and want to use the data inside the SOAP Header for some routing purpose(extended receiver determination). Any SOAP message coming into XI will look something like below. But XI will pass the contents of <SOA
-
Dear sir, i am running my phone with business mail which is given by my organization, But i am unable to send PDF file with my mail. Please look into that & resolve at the earliest.