Problem of calling the applet by Oracle Form
Hi,
The oracle form invokes a applet function, and send one parameter to the applet. The parameter will be displayed in the applet correctly at the first time.
But if the user do not close the applet and use invoke the applet function again, the applet cannot show the latest parameter and keep show the old one.
Please give me some adive.
Thanks
Hi,
This is a JDeveloper help forum, the Formsforum can be found at Forms Now you might think that Forms developers don't understand Java well enough, they do however understand teh Forms context and this is important to answr the question.
a) Which Java version does your ben require?
b) Are you using JInitiator or JavaPlugin (Jinitiator only supports Java 1.3)
c) Is your PJC signed? Note that running an app stand alone as a Java app does not require special grants. Running it within a JavaApplet - as Forms is - does execute teh bean in a security sandbox, for which reasons the jar file must be signed and the public key be available in the Forms certdb.txt file (assuming Jinitiator)
d) An exception stack trace gives more information than "Oracle Form it doesn't run and exception is thrown on javax.imageio and other packages", which is meanlingless to me and others. Teh stack trace canbe copied from teh JInitiator console
I recommend resending this question to the Forms forum
Frank
Similar Messages
-
Problem in calling concurrent request from oracle forms
Hi,
I am using the following code to call the above concurrent request to transfer the data from AR interface table to the base table.
req_id := FND_REQUEST.SUBMIT_REQUEST('AR','RAXMTR','','',FALSE,
'1', '1023', 'CONTRA', '2009/10/30 00:00:00' ,'','','','','',''
,'','','','','Y','','103','','',''
if app_form.quietcommit then
MESSAGE(req_id);
MESSAGE(req_id);
end if;
The request gets completed with error. The diagnostic shows the following error
"*This request finished with an error and produced the following completion message: Usage: program oracleid request_id Y*
*The processing began on 30-OCT-2009 17:53:13 and ended on 30-OCT-2009 17:53:14. You may find more information on the cause of the error in the request log or the concurrent manager log*."
I have used similar method to execute AP interface import program and it worked. The above request is a spawned request. Any help would be appreciated.
Regards
DeepakPl see if these MOS Docs can help
170729.1 - Autoinvoice Master Program fails with USAGE: PROGRAM ORACLEID REQUEST_ID Y
460048.1 - AutoInvoice Master Log Shows "Usage: Program Oracleid Request_id Y"
217054.1 - Autoinvoice Errors USAGE: PROGRAM ORACLEID REQUEST_ID Y
HTH
Srini -
Calling web service from oracle forms 10g
Problem Description:
I'm following the steps as per the doc:
http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
The service was developed by us.
Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
The code from oracle form to call web service is as below:
DECLARE
jo ora_java.jobject;
xo ora_java.jobject;
rv varchar2(2000);
ex ora_java.jobject;
str varchar2(100);
BEGIN
jo := GendServiceClient.new;
rv := GendServiceClient.sendHello('Nora');
EXCEPTION
WHEN ORA_JAVA.JAVA_ERROR then
message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
WHEN ORA_JAVA.EXCEPTION_THROWN then
ex := ORA_JAVA.LAST_EXCEPTION;
message(Exception_.toString(ex));
END;
Any help/ideas on this is greatly appreciated. Thanks.
Edited by: KE Nora Loera on Jun 1, 2012 1:24 PMMy primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
Thanks -
Calling web service from oracle forms fails with ORA_JAVA.JAVA_ERROR
Problem Description:
I'm following the steps as per the doc:
http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
WSDL for external web service used is http://www.webservicex.net/CurrencyConverter.asmx?wsdl
Calling the web service using JDeveloper works fine but from Oracle Forms returns ORA_JAVA.JAVA_ERROR; Unable to call out to Java, Invalid object type for argument 1
The code from oracle form to call web service is as below:
DECLARE
jo ora_java.jobject;
rv ora_java.jobject;
ex ora_java.jobject;
outString varchar2(2000);
BEGIN
jo:= CurrencyConvertorStub.new;
--This will get the exchange rate from US Dollars to UK Sterling.
rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD');
message (float_.floatValue(RV));
EXCEPTION
WHEN ORA_JAVA.JAVA_ERROR then
message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
WHEN ORA_JAVA.EXCEPTION_THROWN then
ex := ORA_JAVA.LAST_EXCEPTION;
outString := Exception_.toString(ex);
message(outString);
END;
Any help/ideas on this is greatly appreciated. Thanks.Yes, it is the message line - so basically this call fails => rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD'); and control goes in the exception block
WHEN ORA_JAVA.JAVA_ERROR then
message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
Below is the code from java stub that was generated using JDeveloper by using web services stub/skeleton and associating the WSDL
public Double ConversionRate(String FromCurrency, String ToCurrency) throws Exception
URL endpointURL = new URL(endpoint);
Envelope requestEnv = new Envelope();
Body requestBody = new Body();
Vector requestBodyEntries = new Vector();
String wrappingName = "ConversionRate";
String targetNamespace = "http://www.webserviceX.NET/";
Vector requestData = new Vector();
requestData.add(new Object[] {"FromCurrency", FromCurrency});
requestData.add(new Object[] {"ToCurrency", ToCurrency});
requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
requestBody.setBodyEntries(requestBodyEntries);
requestEnv.setBody(requestBody);
Message msg = new Message();
msg.setSOAPTransport(m_httpConnection);
msg.send(endpointURL, "http://www.webserviceX.NET/ConversionRate", requestEnv);
Envelope responseEnv = msg.receiveEnvelope();
Body responseBody = responseEnv.getBody();
Vector responseData = responseBody.getBodyEntries();
return (Double)fromElement((Element)responseData.elementAt(0), java.lang.Double.class);
} -
Embedding Java Applet in Oracle Form
I'd like to embed Java applet in Oracle Form. Please someone help me..let me know how to do it. Also I need to know how'll I use a jar within Oracle. Please help.
Regards
RashedHi Grant
Thanks...I developed an applet which has a button on it and clicking the button something will happen. I mean this is a complete java project. Now I need to use this java applet from Oracle Form...that means I'll develop an oracle form on which the applet will be embedded so that the button on the applet can be pressed. Now could you please help me do this? I also have another problem but I need to resolve this first.
Rashed -
Calling a report from oracle form 10g
how to call a report from oracle form 10g
Please see the link:
http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf -
URGENT!!! calling crystal reports from oracle forms 10g
Is it possible to call crystal reports from oracle forms 10g?
Can someone help to answer how, if there is a solusion, to call crystal reports from oracle forms 10g.
Please provide codes with details showing step by step.
Thankshi
try something like this.
DECLARE
charWinHandle VARCHAR2(50);
numWinHandle NUMBER;
BEGIN Set_Application_Property(Cursor_Style,'BUSY');
charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
numWinHandle := To_Number(charWinHandle);
:Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowParentHandle
:= numWinHandle;
:Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowState := 2;
:Item('CONTROL.CRYSTALREPORT1').OCX.Crystal.Crysta lReport.Connect
:= 'DSN=;UID=' || Get_Application_Property(UserName) ||
';pwd=' || Get_Application_Property(password) || ';dsq=;';
Crystal_CrystalCtrl.ReportFileName( :Item('Control.CrystalReport1').interface,
'C:\Sample_Rep.Rpt' );
Set_Window_Property( Forms_Mdi_Window, Window_State,Maximize );
Set_Window_Property( 'MAIN', Window_State, Maximize );
:reptitle := 'Report Preview Window';
numWinHandle := Crystal_CrystalCtrl.PrintReport( :Item('Control.CrystalReport1').interface );
Set_Application_Property(Cursor_Style,'DEFAULT');
END;NOTE: Change the report name and path according to your required file name and path in
the "Crystal_CrystalCtrl.ReportFileName" method call. Also, the connection string shown
assumes that you will use the current USER and PASSWORD for the Form.
- To make the above Form generic so that you can run any Crystal report from it, then create
a parameter for the report name and pass it to the Form using CALL_FORM from any other Form.
Then just replace the file name with the passed parameter.
-. Run the Form
If its correct/helpful please mark it thanks.
sarah
Edited by: S@R@h on Nov 27, 2009 6:33 AM -
Calling BI Reports from Oracle Forms
Hi Guys,
I have successfully called the BI Reports from Form Services at my Development Server.
But now I am deploying the same in production Server but the following error is coming.
Exception: java.lang.Exception: java.lang.NoSuchMethodError: oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnectio.setPreemptiveBasicAuth(Z)V
Does any body have any idea which jar file I can find the above method.
Thanks & Regards,
RajenderHere :
where is jar file for oracle.j2ee.ws.client.ServiceFactoryImpl
they talk about a :
wsclient.jar
What is sure is that the jar must contain/begin with WS as webservice.
Success
Nico -
Hi,
I have an applet application that i want to deploy on the Oracle cloud.
So i have created a jar file for the applet application and i am using this jar to call the applet on a jsp page.
But when i am delpoying my application on the java cloud, its giving me the below error:
2014-10-28 03:16:41 CDT: Starting action "Virus Scan"
2014-10-28 03:16:41 CDT: Virus Scan started
2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
2014-10-28 03:16:49 CDT: File Scanned: "Application7.ear".
2014-10-28 03:16:49 CDT: File Size: "106698122".
2014-10-28 03:16:49 CDT: File Status: "INFECTED".
2014-10-28 03:16:49 CDT: ----------------------------------------------------------------------
2014-10-28 03:16:49 CDT: Virus scan failed.
2014-10-28 03:16:49 CDT: "Virus Scan" complete: status FAILED
Can't we deploy any application having applet or swing component's onto the cloud?
Or do we need to request for any extra permissions for the same?
Thanks,
ManojI don't see applets mentioned in the supported features nor in the unsupported features so not sure if they are supported you would likely need to contact the operations team to confirm.
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/ -
How to call database procedure in oracle forms
Hi,
Can anyone describe me that how I'll call database procedure in oracle forms (6i,10g)?
Thanks in Advance.
BalochHi Francois,
As I created a procedure in database as below
create or replace procedure For_table (tbl_of in number,st_pnt in number,en_pnt in number) is
begin
for i in st_pnt..en_pnt loop
dbms_output.put_line(tbl_of||'*'||i||'='||tbl_of*i);
end loop;
end For_table;
The above procedure is working fine when I'm using PL/SQL. I call the above procedure as
begin
For_table(3,5,20);
end;
but nothing happen
Thanks in Advance.
Baloch -
How to call java function in Oracle forms?
Hi I am having Oracle 9i with 10g Developer Suite.
I am new to Oracle forms..
I had one function in java getDatas()..
How can I call this function in Oracle Forms..
Pls help
ThanksThanks Francois,
I want to display values from my java code in the Forms..
For that purpose only i am installing 10g Developer Suite..
The below is java code..
public class DBTest {
public static String callDB(int id,String name){
String ss="Hai";
Connection con=null;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection("url","id","pwd");
Statement st=con.createStatement();
System.out.println("Connected...");
int r=st.executeUpdate("Insert into FORM_TEST VALUES('"+id+"','"+name+"')");
if(r==1){
ss="Inserted Sucessfully";
else{
ss="Insertion Failed";
}catch(final Exception e){
System.out.println(e);
return ss;
public static void main(String[] args) {
int empid=102;
String empname="Gilbert";
String resultStr=callDB(empid,empname);
System.out.println(resultStr);
I want to dispaly Inserted or Insertion Failed in Oracle Forms..
As per Gerd Volberg suggestion, i had placed DBTest.jar in
E:\DevSuite\forms\java\DBTest.jar
and in formsweb.cfg the below jar is added..
archive_jini=frmall_jinit.jar,DBTest.jar
But in Fomrs Builder-->Program-->Import Java Classes-->Oracle
org,ice,com and subnodes are available.
But my jar is not available..
Is my way is coorect?
Pls provide soln..
Thanks -
Calling Sql*Loader from oracle Form builder
How do i call sql* loader from my forms to import the external data in different formats into my existing database?
Specify the flexibility of sql* loader to import external data from .txt files or .xls files.
Would be thankful if certain examples are given along with the answer.Hi,
1. First you have to create seperate ctl (Control files) which maps to different file formats
2. Using Oracle Forms,
2a) You can use the 'HOST' command to execute the command line ie. In this case executing
SQL*Loader script
2b) You also have the feature in ORACLE forms to read text files and load the data into
ORACLE db.
This can be achieved by using TEXT_IO package which comes with ORACLE Forms.
Hope this helps
Ta
Shailender -
Encounter problem when running test.fmx in Oracle form 11g
I am new to Oracle form 11g and encounter a problem regarding testing the Form Services.
I have Oracle form 11g (deployment mode) on my app server. I opened 'Run a form on the web' and clicked 'Run form' to conduct a test with default values suggested by the screen. Then I got the below screen showing 'An add-on for the website failed to run'.
Is the problem in relation to IE setting? or is my set up of Oracle form 11g not OK?Hi ,
This community is to discuss Weblogic Server specific issues, you can post this query Forms in for better response in the below link:-
Oracle Forms (MOSC)
Regards,
Prakash. -
I am getting weary of my iPhone 4s. The battery life is non-existent, secondly, I had problems with calls, the caller couldn't hear me and now it cannot detect internet networks. Be they Wi-Fi or cellular. what could be the problem?
Mullaly75 wrote:
I assume u guys don't understand what open source software is
Yes, I think most of us do understand what open source software is. It sounds as if you don't. Here's some information:
Open-source software (OSS) is computer software that is available in source code form: the source code and certain other rights normally reserved forcopyright holders are provided under an open-source license that permits users to study, change, improve and at times also to distribute the software.
Open source software is very often developed in a public, collaborative manner. Open-source software is the most prominent example of open-sourcedevelopment and often compared to (technically defined) user-generated content or (legally defined) open content movements.
from http://en.wikipedia.org/wiki/Open_source_software
Yes, Tom Wu of Stanford wrote a paper on something called Secure Remote Access Protocol. It's a form of Asymetric Key Exchange and has nothing to do with hacking anything. It's actually intended to protect data. -
Calling unix script using oracle forms
we have to call unix script using oracle forms , a trigger in form calls stored procedure on database
that stored procedure on database calls a oracle shared library
but since the only listener account for oracle on our unix server is oralist , whenever a call is made to the unix script from the oracle form , the unix script is executed by oralist user
but issue that we are having now is since oralist is specific for listening connections from orale we dont want to use this user to establish SFTP on it to avoid any issues with oralist
we want the sftp to be established on soem other useraccount , so is it possible to do something so that the script is executed by an account other that oralist.I'm not a Linux/Unix specialist, but I think this may work: let your database call a shell script that does a su command before running the actual script:
su - other_account
your_script.sh
Maybe you are looking for
-
Is there any way to save a custom file naming routine into a preset?
-
I cannot get an Adobe pdf printer to correctly install in windows 7 64 bit
I purchased Acrobat Pro XI and installed and it went fine. I then installed my copy of Master Collection 5.5, it didn't install Acrobat X, and the printer disappeared. I have tried to repair my XI installation, but it won't do it, and I have tried
-
Possible to reduce the amount of white space in thumbnail view?
Hi, after following these directions to generate large thumbnail views, there is still a lot of white space surrounding the thumbnails - I'm wondering if this could be significantly diminished, to allow more images, closer together. thanks 1. Open a
-
My ipad was stolen and I didnt have an icloud, I want to block my personal information
Please help me. I want to block my personal information because my ipad was stolen, i didnt create an icloud because I just bought it one week ago
-
hi, I need to get daily average hours YTD in a report for regular hrs worked and overtime. i am getting daily hrs by formula created on calendar day --> calendar day - 398 and key figure hrs. how can i get avg. for year todate ? i have hr type, cale