Getting "oracle.forms.jdapi.JdapiStatusException: _jni_create_object failed
Hi All,
Please help me in the following Scenario.
For the Oracle Forms, I am writing java program in JDAPI(Java Development API) to create a DataSourceColumns for the Base Block with out touch the form manually.
i wrote the following code to create DataSourceColumns for the Block...
JdapiIterator blkcolmap = block.getQueryDataSourceColumns();
/* block is an object which points to block of the form */
while(blkcolmap.hasNext())
DataSourceColumn colmap1 = (DataSourceColumn)blkcolmap.next();
try{
if(!blk1.getQueryDataSourceName().equals(""))
{ DataSourceColumn colmap2 = new DataSourceColumn(blk1,colmap1.getDSCName());
colmap2.setDscName(colmap1.getDscName());
colmap2.setDscLength(colmap1.getDscLength());
colmap2.setDscPrecision(colmap1.getDscPrecision());
colmap2.setDscScale(colmap1.getDscScale());
colmap2.setDscType(colmap1.getDscType());
catch(Exception e)
System.out.println(e);
When i run the above code... every time the exception raises and got the following error.
"oracle.forms.jdapi.JdapiStatusException: _jni_create_object failed"
How can i solve this problem
Hi,
thouh you use Java, I suggest to post this to the Forms forum
Forms
Frank
Similar Messages
-
Oracle.forms.jdapi.JdapiStatusExcept
Hi,
Help me
I am trying link to Oracle Forms by JDeveloper ,
but i can't link , showing this Exception
Exception in thread "AWT-EventQueue-0" oracle.forms.jdapi.JdapiStatusException:
jniinitialize: Failed to create new forms context
okHello , I think its JDapi related error . i explain more details below.
import oracle.forms.jdapi.*;
public class JdapiSessionExample
public static void main(String[] args)
Jdapi.setFailSubclassLoad(true);
Jdapi.setFailLibraryLoad(true);
FormModule fmb = new FormModule("myform.fmb");
Jdapi.shutdown();
Exception
Exception in thread "main" oracle.forms.jdapi.JdapiStatusException: jniinitial
ize: Failed to create new forms context
at oracle.forms.jdapi.BaseAPI._jni_initialize(Native Method)
at oracle.forms.jdapi.Jdapi.initialize(Unknown Source)
at oracle.forms.jdapi.Jdapi.getContextPointer(Unknown Source)
at oracle.forms.jdapi.FormModule.<init>(Unknown Source)
at JdapiSessionExample.main(JdapiSessionExample.java:16) -
How to get Oracle Form Parameter Value into Oracle Report
Hi,
Please guide for the following:
On a form, there is one Control Block (CB1), having two TEXT ITEMS, namely From_Date & To_Date respectively. The user inputs from and to dates, for example From_Date: 01-JAN-2009 and To_Date: 31-DEC-2009 and then press "Print Report" button.
I want to get From_Date & To_Date in the report, as per below mentioned heading:
SALES REPORT
From: 01-JAN-2009 To: 31-DEC-2009
Regards,You can use ADD_PARAMETER builtin,
The following example creates a parameter List, adds two parameters to it, and then passes the List to a form by way of the CALL_FORM procedure:
<pre>
/** Declare a variable of type ParamList to store ** the parameter List ID */
DECLARE
PARAM_ID ParamList;
BEGIN
/* ** Create a parameter List named "input_params" */
PARAM_ID := Create_Parameter_List('input_params');
/* ** Add two parameters to the List to pass values for each user-defined parameters defined in the target form; for each parameter, specify its key, type (text or data), and value */
Add_Parameter(PARAM_ID, 'FROM_DATE'', TEXT_PARAMETER, to_char(:CB1.From_Date, 'DD-MON-RRRR'));
Add_Parameter(PARAM_ID, 'TO_DATE', TEXT_PARAMETER, to_char(:CB1.To_Date, 'DD-MON-RRRR'));
/* ** Now call the report, referencing the parameter List ID ** in the last argument to the report calling procedure */
END;
</pre>
Edited by: Charan on Jul 13, 2011 9:08 AM -
Oracle Forms Builder 10g Questions
Good day everyone,
I want to start off by saying that I'm very new to Oracle Forms Builder (it was dumped on my table about a month ago) and I'm having some issues I need resolved in order to complete a project for a client.
I'm looking mainly for documentation or resources that will show me how to do the following in Oracle Forms Builder 10g:
* Use either the ENTER button or mouse click to navigate between mandatory fields in a form (currently only TAB works)
* Populate a field[s] after pressing a search button based on a SQL query
* Populate a field[s] on launch based on a SQL query
* Throw a warning message if an SQL query returns with a specific result
* Populate a drop down menu based on a SQL query (ie only show valid options to user)
* Remove static highlighting (fields should only be highlighted if necessary, which is never on this particular form)I've been able to reduce my problem down to the fact that Oracle Forms Builder 10g is not configured correctly on my machine for my environment. I can seem to get Oracle Forms Builder to see my libraries. When I load the form I'm working on I get the following error:
FRM-18108: Failed to load the following objects.
Source Module:utlf_gui
Source Object: TOOLBAR_MDI
+... (many more of the one above)+
I press ok and get the following error:
FRM-10102: Cannot attach PL/SQL library sdsl. This library attachment will be lost if the module is saved.
+... (many more of the one above)+
From my various searches on the internet I've learned that this is because Oracle Forms Developer can not find the listed PL/SQL libraries and I should check my Environmental variables. I've set up two Environmental variables with the following:
Forms_Path = C:\<project path>\Lib\ (This is the folder in the project folder where all the PL/SQL libraries are stored)
Forms90_Path = C:\<project path>\Lib\ (This is the folder in the project folder where all the PL/SQL libraries are stored)
I created both Environmental variables because there wasn't any consistency on the sites I was checking to which was needed.
Also if I try to attack a PL/SQL library I get the following error:
Attached library name <name> contains a non-portable directory specification. Remove path?
I press yes or no and get the following error:
PDE-PLI038 Cannot open file for use as a PL/SQL library.
Any help is much appreciated.
Edited by: ThomasBoxall on 12-Dec-2011 12:18 -
Oracle Forms C/C++ API
hi all,
from where I can get Oracle Forms(6i/9i/10g) C/C++ API reference
With regards
Satheesh KumarFor C API, you can download Oracle technical white paper
"Using the Oracle Forms Application Programming Interface (API)"
http://www.oracle.com/technology//products/forms/pdf/274326.pdf
The tree examples in the Form Builder online help contained errors.
The programs have been corrected and presented in white paper.
Note that you can also use JDAPI (Java Development API) for Oracle Forms 6i/9i/10g.
Regards,
Zlatko Sirotic -
Where's the Oracle Forms Java API documentation for 11g?
Hi,
Can anyone point me in the direction of the Oracle Forms Java API documentation?
The only thing I can find is this: http://www.oratransplant.nl/1012jdapiDoc/oracle/forms/jdapi/JdapiModule.html but this seems to be for 10.1.2 and it doesn’t correspond to the version I’m using (11.1.1.3).
Help appreciated,
Donal.i couldn't find the api either however if you implement the class you will simply get compiler errors explaining what you left out.
-
Could not start the Oracle Forms Server
I am using Windows 2000 Professional
The Oracle Forms Server [Forms60Server] service failed to start due to the following error:
Access is denied.
Event ID: 7000
Source: Service Control Manager
Description: Could not start the Oracle Forms Server [Form60Server] service on a Local Computer.
Error 0005: Access is DeniedDescription:
I Installed Oracle Forms6i and when i tried to run web test form I got this :
Event Type: Information
Event Source: Application Popup
Event Category: None
Event ID: 26
Description:
Application popup: ifcgi60.exe - Unable To Locate DLL : The dynamic link library D2LA60.dll could not be found in the specified path C:\orant\tools\web60\cgi;.;C:\WINNT\System32;C:\WINNT\system;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem.
this missed file already exist in <Oracle Home>\Bin
directory, and if I copied it to the asked destination
it asks for more CORE40.dll and NLSRTL33.dll
and then those also copied then the screen disappears
Question : Why did this error occur, what went wrong
and how do I fix this problem
2)the other question is in Forms9iDS Version 9.0.2.7.0 I am getting this error
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7000
Description:
The OracleOraHome9iAgent service failed to start due to the following error:
Access is denied.
FRM-92060 :Failed to connect to the server
Bad machine specification :/forms90/190servlet:-1
Any Suggestion will be appreciated -
Oracle.forms.webutil.ole.OleFunctions class not found
Hi all,
I am getting oracle.forms.webutil.ole.OleFunctions class not found at design time in Forms Builder 10gR2 as well as at run time when working with webutil. Webutil is properly configured. I am using file uploading and downloading and it is working fine. but when I m working with CLIENT_OLE2, it is giving class not found exception. Can someone please help me to identify the problem.
Thanks in advance
Bilalhi
Forms [32 Bit] Version 10.1.2.0.2 (Production in this version the webutil is already installed but u have to sign jars and there is also some modifications
in formsweb.cfg.
please check this.
How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
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: [OraHome] 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
[OraHome] 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
[JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
cd [JacobStage]
copy jacob.jar [OraHome]\forms\java\.
copy jacob.dll [OraHome]\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 [OraHome]\jdk\bin to the PATH:
set PATH=[OraHome]\jdk\bin;%PATH%
Sign the files, and check the output for success:
[OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
[OraHome]\forms\webutil\sign_webutil [OraHome]\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 [OraHome]\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 [password]
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
CONNECT webutil/[password]@[connectstring]
@[OraHome]\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 [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
to the CLASSPATH entry.
6) Start the OC4J instance
7) 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.
8) 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).
9) 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
10) Run your form.sarah -
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);
} -
Getting Error when running oracle form 10g
Hi all, i have a problem when i run oracle form 10g.
in the applet show like this :
Loading http://abc:8889/forms/java/frmwebutil.jar from JAR cache
RegisterWebUtil - Loading WebUtil Version 10.1.2.0
Loading http://abc:8889/forms/java/frmall_jinit.jar from JAR cache
Loading http://abc:8889/forms/java/jacob.jar from JAR cache
Loading http://abc:8889/forms/java/printtext.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
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.TextFieldItem.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.ButtonItem.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)
Can anybody help me how to solve this problem ?
Thanks,
IwanLoading http://abc:8889/forms/java/printtext.jar from JAR cache
This tells me you are using a 3rd party or locally developed Java Bean to perform some type of print function. Is this correct?
java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.Does your printtext.jar Java Bean need to open an HTTP connection in order to print?
Have you been able to print in the past using this Java Bean? Where did you get the Java Bean?
RegisterWebUtil - Loading WebUtil Version 10.1.2.0Your form appears to be using WebUtil. Has it been successfully configured?
Honestly, you need to list the following minimum information when you post a question; it gives us all or most of the information we need to help you and it eliminates the need for us to ask for this information. Please always include:
* Forms Version (eg; 10.1.2.0.0 not 10g)
* Java Version
* Client OS version
* What you were doing when the error occured.
Craig... -
Oracle Forms 11g LOGOUT in-built failing to disconnect database session
Hi guys,
When executing the oracle forms LOGOUT in-built, it is failing to disconnect the oracle database session. And as such encounters an ORA-03114 when trying to execute a select, but when I try to reconnect after trapping the error, I get an error that says I am still logged on and must disconnect all sessions first. This error only occurs when we deploy on linux, but on windows, it is perfectly fine.
Please assist, this is very urgent.http://www.4shared.com/file/o5ETXcZ4/PWDSETUP.html
http://www.4shared.com/file/89JOb0Xm/p1_dept_2.html
Download these two files and rename p1_dept_2.fmb to p1_dept.fmb
1. Compile the forms and deploy on linux,
2. Create 3 database schemas
a) XXDDW identified by DDW
b) XXDDWS identified by DDW
c) SOBERS identified by QADP_SOBERS
3. In your formsweb config, in the setup for your launch, use p1_dept.fmx as you entry form and also default login should be set as XXDDW
4. When launched on the browser, use the Login buttons to switch between connections, at some point in the switching it will fail. Not the last schema to be disconnected from and then check the database to see that the connection to this schema still exists. -
Oracle.forms.engine.RunformException: Forms session 1 failed during start
Dears,
I have newly installed APPS R12 on Windows 2003 (32-bit),I'm facing the below issue while using the web page to access any forms,
oracle.forms.engine.RunformException: Forms session <3> failed during startup: no response from runtime process
KhanHi,
I am unable to login into Oracle Apps.The address typed in the address bar is
http://com1.edu:8000/dev60cgi/ifcgi60.exe
The message I get is
load:class oracle.forms.engine.Main not found and
exception: com1.edu.
Please give the solution in detail.
Thanks in advance.
Also wishing you all a Happy and Prosperous New Year
Regards
Shiva -
Getting Logged on User'Information in an Oracle-Form SSO Partner Application
Hi.
I could run Flight-of Fancy Application and capture user's information by calling the
"Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
and defined an Oracle-Form application as Partner application like FOF.
I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
Thanks in advanced.Hi.
I could run Flight-of Fancy Application and capture user's information by calling the
"Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
and defined an Oracle-Form application as Partner application like FOF.
I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
Thanks in advanced. If you're writing your own partner application, then you are correct to get the user information from the output variables
from the parse_url_cookie procedure. You should then set the information you want to keep track of in the cookie, or combination
of cookie and persistent storage in the database. Take care of the security implications while doing this.
On subsequent calls to your application, the user info should be obtained from the cookie and the database, if you
are using a combination of the cookie and database storage to keep your info.
The owa_cookie.get routine is used to read the cookie, which is generated with owa_cookie.send.
These routines work fine, when invoked correctly.
If you are having trouble with them, you're probably not using the calls properly.
The following code provides an example of how to use the owa_cookie calls...
create or replace package testcookie
is
procedure show (p_name IN VARCHAR2);
procedure send
p_name IN VARCHAR2,
p_value IN VARCHAR2,
p_path IN VARCHAR2 default null,
p_expires IN VARCHAR2 default null
end testcookie;
show error package testcookie
create or replace package body testcookie is
procedure show (p_name IN VARCHAR2) is
v_cookie owa_cookie.cookie;
begin
v_cookie := owa_cookie.get(upper(p_name));
htp.htmlopen;
htp.bodyopen;
htp.print(v_cookie.vals(1));
htp.bodyclose;
htp.htmlclose;
exception
when others then
htp.htmlopen;
htp.bodyopen;
htp.print('NO COOKIE FOUND.');
htp.print(SQLERRM);
htp.bodyclose;
htp.htmlclose;
end;
procedure send
p_name IN VARCHAR2,
p_value IN VARCHAR2,
p_path IN VARCHAR2 default null,
p_expires IN VARCHAR2 default null
is
v_cookie owa_cookie.cookie;
l_agent varchar2(30);
l_expires varchar2(30);
l_path varchar2(100);
begin
if p_expires is null then
l_expires := null;
else
l_expires := to_date(p_expires, 'MMDDYYYY');
end if;
if p_path = 'ALL' then
l_path := '/';
else
l_path := null;
end if;
owa_util.mime_header('text/html', FALSE);
l_agent := owa_util.get_owa_service_path;
l_agent := substr(l_agent, 1, length(l_agent) - 1 ) ;
owa_cookie.send(
name => upper(p_name),
value => p_value,
expires => l_expires,
path => l_path
owa_util.http_header_close;
htp.htmlopen;
htp.headopen;
htp.headclose;
htp.bodyopen;
htp.print ('Cookie set.');
htp.bodyclose;
htp.htmlclose;
end;
end testcookie;
show error package body testcookie;
grant execute on testcookie to public;If you load this into a schema which a DAD can access, then you can invoke the show and send procedures to view and
generate cookies.
To generate a cookie, issue the following from your browser ...
http://server.domain.com/pls/dad/schema.testcookies.send?p_name=test&p_value=hello
To view the cookie:
http://server.domain.com/pls/dad/schema.testcookies.show?p_name=test -
Oracle Forms and Reports Installation - Creating domain failed
I installed the weblogic 10.3.6 (Oracle WebLogic Server 11gR1 (10.3.6) + Coherence + OEPE - Package Installer) in my Microsoft Windows(32-bit JVM) system first.
But there was an error occorred when the package of forms and reports (Oracle Forms and Reports 11gR2 (11.1.2.2.0)) was installing.
Please find the following error message for your reference.
Do you have any idea? Please kindly advise.
Thanks a lot!
2014-04-02 14:11:14,099 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - read template from "C:/Users/GZ/AppData/Local/Temp//tmp1396419069239wls.jar"
2014-04-02 14:11:16,185 INFO [main] com.oracle.cie.domain.template.catalog.impl.ComponentsXMLConverter - C:\Oracle\Middleware\wlserver_10.3\common\lib\components.xml does not contain component elements and will be skipped
2014-04-02 14:11:17,556 INFO [main] com.oracle.cie.domain.WLSTemplateBuilder - No config-groups.xml found in template
2014-04-02 14:11:17,556 INFO [main] com.oracle.cie.domain.WLSTemplateBuilder - No template-database.xml found in template
2014-04-02 14:11:18,205 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: read template from "C:/Users/GZ/AppData/Local/Temp//tmp1396419069239wls.jar"
2014-04-02 14:11:18,477 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set config option ServerStartMode to "prod"
2014-04-02 14:11:18,477 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set config option ServerStartMode to "prod"
2014-04-02 14:11:18,490 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - create Machine "PC-42A26D.GZAD.MSAD.LOCAL" as obj0
2014-04-02 14:11:18,604 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: create Machine "PC-42A26D.GZAD.MSAD.LOCAL" as obj0
2014-04-02 14:11:18,612 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - find Server "AdminServer" as obj1
2014-04-02 14:11:18,652 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: find Server "AdminServer" as obj1
2014-04-02 14:11:18,698 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute Machine to "PC-42A26D.GZAD.MSAD.LOCAL"
2014-04-02 14:11:18,705 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute Machine to "PC-42A26D.GZAD.MSAD.LOCAL"
2014-04-02 14:11:18,706 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute ListenPort to "7002"
2014-04-02 14:11:18,716 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute ListenPort to "7002"
2014-04-02 14:11:18,716 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - create Server!SSL "AdminServer!AdminServer" as obj2
2014-04-02 14:11:18,724 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: create Server!SSL "AdminServer!AdminServer" as obj2
2014-04-02 14:11:18,735 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj2 attribute HostnameVerificationIgnored to "true"
2014-04-02 14:11:18,739 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj2 attribute HostnameVerificationIgnored to "true"
2014-04-02 14:11:18,739 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - find User "weblogic" as obj3
2014-04-02 14:11:18,755 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: find User "weblogic" as obj3
2014-04-02 14:11:18,755 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - delete obj3
2014-04-02 14:11:18,763 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: delete obj3
2014-04-02 14:11:18,764 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - create User "weblogic" as obj4
2014-04-02 14:11:18,768 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: create User "weblogic" as obj4
2014-04-02 14:11:18,771 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute PeriodLength to "200000"
2014-04-02 14:11:18,807 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute PeriodLength to "200000"
2014-04-02 14:11:18,807 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute IdlePeriodsUntilTimeout to "20"
2014-04-02 14:11:18,815 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute IdlePeriodsUntilTimeout to "20"
2014-04-02 14:11:18,815 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute DGCIdlePeriodsUntilTimeout to "21"
2014-04-02 14:11:18,821 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute DGCIdlePeriodsUntilTimeout to "21"
2014-04-02 14:11:18,822 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj1 attribute IdleConnectionTimeout to "1000"
2014-04-02 14:11:18,830 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj1 attribute IdleConnectionTimeout to "1000"
2014-04-02 14:11:18,833 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set obj4 attribute Password to "********"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set obj4 attribute Password to "********"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set config option OverwriteDomain to "true"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set config option OverwriteDomain to "true"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - set config option JavaHome to "C:/Oracle/Middleware/jdk160_29"
2014-04-02 14:11:18,837 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: set config option JavaHome to "C:/Oracle/Middleware/jdk160_29"
2014-04-02 14:11:18,948 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - validateConfig "KeyStorePasswords"
2014-04-02 14:11:18,953 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: validateConfig "KeyStorePasswords"
2014-04-02 14:11:18,954 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - write Domain to "C:/Oracle/Middleware/user_projects/domains/base_domain"
2014-04-02 14:11:19,441 INFO [main] com.oracle.cie.domain.DomainChecker - ListenPort internal Validation result= [null]
2014-04-02 14:11:19,441 INFO [main] com.oracle.cie.domain.DomainChecker - ListenPort external Validation result= [null]
2014-04-02 14:11:21,609 INFO [Thread-1] com.oracle.cie.domain.StartMenu - Creating start menu program=C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd link=Start Admin Server for Weblogic Server Domain
2014-04-02 14:11:21,659 INFO [Thread-1] com.oracle.cie.domain.StartMenu - Creating start menu program=C:\Oracle\Middleware\user_projects\domains\base_domain\bin\stopWebLogic.cmd link=Stop Admin Server
2014-04-02 14:11:21,667 INFO [Thread-1] com.oracle.cie.domain.StartMenu - Creating start menu program=C:\Windows\system32\rundll32.exe link=Admin Server Console
2014-04-02 14:11:21,759 INFO [Thread-1] com.oracle.cie.domain.DomainRegistryWrapper - need to initialize domainRegistrydocument object
2014-04-02 14:11:21,777 INFO [Thread-1] com.oracle.cie.domain.DomainGenerator - Domain Generation Successful!
2014-04-02 14:11:21,783 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: write Domain to "C:/Oracle/Middleware/user_projects/domains/base_domain"
2014-04-02 14:11:21,784 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - close template
2014-04-02 14:11:21,784 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: close template
2014-04-02 14:11:21,784 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - read domain from "C:/Oracle/Middleware/user_projects/domains/base_domain"
2014-04-02 14:11:21,967 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - succeed: read domain from "C:/Oracle/Middleware/user_projects/domains/base_domain"
2014-04-02 14:11:21,967 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - add template C:/Oracle/Middleware/oracle_common/common/templates/applications/jrf_template_11.1.1.jar to domain
2014-04-02 14:11:22,011 WARN [main] com.oracle.cie.domain.template.dependency.TemplateSelectionTarget - Catalog does not have matching template for location C:\Users\GZ\AppData\Local\Temp\tmp1396419069239wls.jar
2014-04-02 14:11:22,071 INFO [main] com.oracle.cie.domain.WLSTemplateBuilder - No template-database.xml found in template
2014-04-02 14:11:22,100 INFO [main] com.oracle.cie.domain.WLSTemplateBuilder - No template-database.xml found in template
2014-04-02 14:11:22,101 ERROR [main] com.oracle.cie.domain.ConfigGroupsEngine$ConfigTopology - Multiple definitions of server-group BI-ADF-ADMIN-SVR are not allowed
2014-04-02 14:11:22,101 INFO [main] com.oracle.cie.domain.script.ScriptExecutor - fail: add template C:/Oracle/Middleware/oracle_common/common/templates/applications/jrf_template_11.1.1.jar to domain
2014-04-02 14:11:22,101 ERROR [main] com.oracle.cie.domain.script.ScriptExecutor - fail: add template C:/Oracle/Middleware/oracle_common/common/templates/applications/jrf_template_11.1.1.jar to domain
com.oracle.cie.domain.ConfigGroupsException: Multiple definitions of server-group BI-ADF-ADMIN-SVR are not allowed
at com.oracle.cie.domain.ConfigGroupsEngine$ConfigTopology.merge(ConfigGroupsEngine.java:2762)
at com.oracle.cie.domain.ConfigGroupsEngine.mergeTopology(ConfigGroupsEngine.java:551)
at com.oracle.cie.domain.ConfigGroupsEngine.merge(ConfigGroupsEngine.java:479)
at com.oracle.cie.domain.AbstractTemplate.addConfigGroups(AbstractTemplate.java:314)
at com.oracle.cie.domain.script.ScriptExecutor.addTemplate(ScriptExecutor.java:605)
at com.oracle.cie.domain.script.jython.WLScriptContext.addTemplate(WLScriptContext.java:416)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyInstance.invoke(Unknown Source)
at org.python.pycode._pyx3.addTemplate$20(C:\Users\GZ\AppData\Local\Temp\WLSTOfflineIni364664194239939514.py:89)
at org.python.pycode._pyx3.call_function(C:\Users\GZ\AppData\Local\Temp\WLSTOfflineIni364664194239939514.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at org.python.pycode._pyx15.f$0(C:\Users\GZ\AppData\Local\Temp\tmp1396419069304.py:42)
at org.python.pycode._pyx15.call_function(C:\Users\GZ\AppData\Local\Temp\tmp1396419069304.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Unknown Source)
at org.python.util.PythonInterpreter.execfile(Unknown Source)
at weblogic.management.scripting.WLST.main(WLST.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.WLST.main(WLST.java:29)hi user ...
on windows there are some steps in front of installation and configuration.
1) cleare the Windows Env (Path .. Programme x86 )
no Blank in Path and so on
2) insert into your local host file your server and IP Adress
3) in Windows 32 setup of WLS is JDK included so you don't have to install the jdk in front of WLS
4) verify if you are using the right installation medium (jdk 32 bit, wls 32 bit , fmw 32 bit
in your OraInventory/logs directory is a *.out file for your installation please can you put this file in the forum
is there a nodemanager up and running (if so please stop)
Jan-Peter -
How to get report in excel format instead of pdf from oracle forms.
Hi,
How to get report in excel format instead of pdf from oracle forms.
Form & Report developer 10g
report format .rdfcreate a report using report builder.
call the report from form using the following procedure
DECLARE
RO_Report_ID REPORT_OBJECT;
Str_Report_Server_Job VARCHAR2(100);
Str_Job_ID VARCHAR2(100);
Str_URL VARCHAR2(100);
PL_ID PARAMLIST ;
BEGIN
PL_ID := GET_PARAMETER_LIST('TEMPDATA');
IF NOT ID_NULL(PL_ID) THEN
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
RO_Report_ID := FIND_REPORT_OBJECT('RP2RRO');
Add_Parameter(pl_id,'P_SUPCODE',TEXT_PARAMETER,:CONTROL.S_CODE);
Add_Parameter(pl_id,'P_INVOICE_NO',TEXT_PARAMETER,:CONTROL.IN_NO);
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'INVOICE_REG_DETAILS.rep');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'SPREADSHEET');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_dbserver_frhome1');
Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('rep_dbserver_frhome1') + 2, LENGTH(Str_Report_Server_Job));
Str_URL := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=rep_dbserver_frhome1';
WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
DESTROY_PARAMETER_LIST(PL_ID);
END;
Maybe you are looking for
-
Hi I am receiving and Idoc (Debmas06) from R/3 System and need to convert that into a Idoc Text file. Which in turn will again be imported in another R/3 system and an Idoc will be created from the text File. Constraints 1. Can¡¦t directly post a
-
Java.lang.NoClassDefFoundError when running the Junit method
Hi Friends I am stuck in this typical Junit problem for a copule of days but still not able to find any solution for it.The problem is as below. I have written Junit test case for 1 method that has been added in the session bean. the code is as below
-
Intercompany billing vf01 error no accounting document generated
Hi, I face the problem while saving intercompany billing VF01 warning message no accounting document generated, when I manually realise biling VF02 it posted without giving any error message. I also check billing doc. type VOFA I doesnt check posting
-
Is it possible to enable disk usage on the Ipod touch 4th Gen
I was wanting to use my ipod as a storage device as well as an ipod.
-
Using my macbook pro whole day with the power adapter , will it affect my battery? Please help