I have oracle forms 22.214.171.124.0 on Windows 2008R2 as app server and client machine is Windows 7 with jre1.7.25.
My forms have webutil_host and client_host but they are not running on 1.7.25.
I have applied p17448420_111210_Generic patch for webutil on java 1.7.25.
So do i need to apply only one patch and if yes then which or is there any other solution for this?
Please give me solution?
There are likely several problems with what you are saying.
First, assuming your issue was related to bug 17448420 (patch) then the patch alone will not fix your problem. Nor will simply adding WebUtilNextGenHost to formsweb.cfg. I recommend reading MOS Note 1568659.1 for more details. In order for this patch to be fully effective, you must apply the patch, add the new parameter to the appropriate template html file (refer to the doc I mention), add the parameter to formsweb.cfg and set its value, then review your code for possible changes needed to comply with this security change.
Second, you cannot apply both 16686443 and 17448420. One will overwrite the other. You have two options, create a Service Request with Support and ask that both fixes be merged. Or, and I recommend this one, you should apply the latest full patch which is 126.96.36.199
Finally, assuming the issue noted in bug 16686443 is what you are experiencing, the only way anyone will be able to assist is if we understand what your HOST code looks like. Also, you say "it is not working". What does this mean? Is there an error (what is the error) or does nothing happen?? Please explain.
i have written WEBUTIL_HOST.NONBLOCKING('cmd.exe /c DIR /b /a:-d /o:n c:\abc > y:\import.txt');
but this is not generating import.txt on y drive but if i execute same on command prompt it is generating file.
All paths are correctly written.
As you say "add the new parameter to the appropriate template html file", can you suggest how to add this parameter in html file.
In order to reference any applet parameter in formsweb.cfg, you must first declare it in the Forms template html file that you are using. So, for example, if you are using WebUtil it is likely you are using webutiljpi.htm. If we also assume you are using Internet Explorer, open webutiljpi.htm in a text editor and add the following line. It should be inserted with the other similar entries.
<PARAM name="WebUtilNextGenHost" value="%WebUtilNextGenHost%">
Once you have added this, you can now assign it a value from formsweb.cfg. For example:
when i pass below window command in client_host or webutil_host.host it is not working other commands like webutil_clientinfo etc are working.
Client_host('cmd /c "dir c:\ > y:\abc.txt"');
webutil_host.host('cmd /c "dir c:\ > y:\abc.txt"'),
but when i pass Client_host('cmd') or Client_host('cmd /c notepad') it will work problem is with only host commands. i think some parameter sequence in host command is changed after 1.7.0_21+ as it is mentioned in doc id given above.
Please tell me what is correct way to execute above commands.
In addition to making the html file change as I mentioned, you will need to change your code as follows:
WEBUTIL_HOST.NONBLOCKING('cmd.exe /c "DIR /b /a:-d /o:n c:\tmp > y:\import.txt"');
I have tested this with Forms 188.8.131.52 and JRE 7U51 and it works correctly. As mentioned in the MOS notes referenced here and the Java release notes, what used to work on the command line may no longer work from within Java programs and Forms with careful quoting and escaping of various characters like \ / < >.
Thanks Michael for your support, you solution was correct. Actually after patch 17448420 i have applied patch 16686443 but signing of frmwebutil.jar is not done correctly so webutil_host.nonblocking was not working. So i have signed frmwebutil.jar and restarted all services and checked and now it is working fine.