No getting Report Output in OAF for java Concurrent program Method
I am not getting report output for java Concurrent Program(Concurrent Program Executable Method), for the reports which are of type PL/SQL Stored Procedure getting the output. for some of the reports the executable method is 'java Concurrent Program', so is there any thing i need to modify in my code.
Thanks
Babu
The Concurrent request is not able to generate output
getting following error in FNDCPREQUESTVIEWPAGE
The concurrent request 9923758 did not create an output file.
so what may be reasons for this?
Thanks
Babu
Similar Messages
-
Generation .class file for Java Concurrent Program
Hi
Below if my sample java concurrent program code and registered concurrent program
package oracle.apps.sample;
import oracle.apps.fnd.cp.request.*;
public class Hello implements JavaConcurrentProgram {
public static final String RCS_ID = "$Header$";
public void runProgram(CpContext ctx) {
ctx.getLogFile().writeln("-- Hello World! --", 0);
ctx.getOutFile().writeln("-- Hello World! --");
ctx.getReqCompletion().setCompletion(ReqCompletion.NORMAL, "");
Created a sample directory under $JAVA_TOP: $ mkdir $JAVA_TOPoracle/apps/fnd/cp/sample
Copied Hello.java into $JAVA_TOP/oracle/apps/fnd/cp/sample and ran below command to compile
$ cp $HOME/Hello.java $JAVA_TOP/oracle/apps/fnd/cp/sample
But getting error
javac: file not found: /oracle/apps/fnd/cp/sample
Usage: javac <options> <source files>
use -help for a list of possible options
Please suggest what was issue and is there any option to generate class file in J developer in local (Windows) instead of doing on application server if yes what are steps to be followed to generate class in windows
Thanks
ArjunPlease post the details of the application release, database version and OS.
But getting error
javac: file not found: /oracle/apps/fnd/cp/sample
Usage: javac <options> <source files>
use -help for a list of possible optionsHow do you get this error?
Thanks,
Hussein -
How to get Source code of a Schedular Java concurrent program in Payments
Hi Experts,
I am very new to Java Concurrent program.
I need java source code of a schedule java concurrent program.Following are the details of Executable.
Executable :Format Payment Instructions
Short Name :IBY_FD_PAYMENT_FORMAT
Application : Payments
Execution Method :Java Concurrent Program
Execution File Name:FDExtractAndFormatting
Execution File Path : oracle.apps.iby.scheduler
I searched in execution file path,but i am unable to find required java source.
Please someone help regarding this issue..
It's Urgent Issue.
Regards
AmarHi Srini,
Thanks for reply...
In the attached template of concurrent program "Format Payment Instructions", i need to add voucher number in the template.
How can i do this?how to decompile the executable?
It is a check printing.
Please give me suggestions..
Regards
Amar -
NoClassDefFoundError for Java Concurrent Program in Oracle Apps
Hi,
I am accessing the Oracle Apps application which is installed in local server(Within the network).
I am trying to execute Java Concurrent Program in oracle apps (in Windows XP Professional). I did the following.
1. Created the concurrent program executable with Execution file name
as AvailableProg and Execution File Path as
oracle.apps.fnd.cp.request (this is where AvailableProg resides)
and Method as Java Concurrent Program.
2. Created the concurrent program and set the Options as -cp JAVA_CON.
3. Created a environment variable JAVA_CON (In Windows XP) with the
values D:\apps.zip and
D:\oracle.apps.fnd.cp.request.AvailableProg.class.
4. Registered the concurrent program.
5. While I submitted the request I got the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
oracle/apps/fnd/cp/request/Run.
Can anybody help me in resolving this issue?
Is there any documents available in executing java concurrent programs?
Please do the needful..
Thank You....Hi
I am having the same issues. Here are the setup I have for all the variables:
$ echo $AF_CLASSPATH
/u001/oracle/deltacomn/util/jre/1.1.8/lib/rt.jar:/u001/oracle/deltacomn/util/jre/1.1.8/lib/i18n.jar:/u001/oracle/deltacomn/java/appsborg.zip:/u001/oracle/deltaora/8.0.6/forms60/java:/u001/oracle/deltacomn/java
$ echo $JAVA_TOP
/u001/oracle/deltacomn/java
$ echo $AFJVAPRG
/u001/oracle/deltacomn/util/jre/1.1.8/bin/jre
$ echo $CLASSPATH
/u001/oracle/deltacomn/util/jre/1.1.8/lib/rt.jar:/u001/oracle/deltacomn/util/jre/1.1.8/lib/i18n.jar:/u001/oracle/deltacomn/java/appsborg.zip:/u001/oracle/deltaora/8.0.6/forms60/java:/u001/oracle/deltacomn/java:/u001/oracle/deltaappl/ncr_custom/ncrx/1.0.0/java
Please help.
Thanks
AE -
Unable to import the package for java concurrent program
Hi all
i m trying to work on java concurrent program ,but when i tried to import these classes
import oracle.apps.fnd.cp.request.CpContext;
import oracle.apps.fnd.cp.request.JavaConcurrentProgram;
the compiler is throwing
cannot access class oracle.apps.fnd.cp.request.CpContext; file oracle\apps\fnd\cp\request\CpContext.class not found
it is not giivng the cp package
please can somebody have idea ,what could be the reason .
thanx in advance
regards
pratapPratap,
Please download the cpcontext files whose package structure is oracle.apps.fnd.cp.request.CpContext
from the google or other search sites or download it from application unix server $JAVA_TOP/oracle/apps/fnd/cp/request/CPContext .
If it is a class file then convert it to java file by using java decompiler.
then plalce the file respective folder by creating folder of this name. e.g. if
the package structure is oracle.apps.fnd.cp.webui the create folders in myproject folder in jdeveloper
oracle, then under oracle folder cretae aapps folder and so on...
Thanks,
Kumar -
Question related to Java Concurrent Program
Hi Friends,
I have a basic question related to Java Concurrent Program in the Oracle application. I would like to know the how Java concurrent program is executed in Oracle applications.Also, want to know where can I find the document for the AOL packages for Java concurrent program. Document for packages like oracle.apps.fnd.cp.request.* , oracle.apps.fnd.util.*.
Please let me know.
-Thanks,
SatyaYou may also check:
Note: 250964.1 - How to Register Sample Java Concurrent Program
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=250964.1
Note: 186301.1 - How to register and execute Java Concurrent Program ?in Oracle Applications R11i?
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=186301.1 -
How to get Report Output in csv format
Hi,
How can i get report Output in csv format, can any one tell me the word used for output type to get output in csv format.
i have used XLS output type but it opens in excel format.
conc.addLayout(appCode,concReqCode,"en-US","US",XLS);
Thanks
BabuHi Babu,
Till now in xmlpublisher there is no method to create file in csv format ,you have to create Excel file and then save it in .csv format.Unless and until ur using BI Publisher in which some work around are possible.
Thanks -
Java Concurrent Program - Output of BI publisher report
Hi,
I have a requirement of a Java Concurrent Program in Oracle apps to print the output of a BI Publisher Report. I need help in the following aspects
1. Setting up my Jdeveloper for writing the Java code
- I have downloaded xdo*,cabo*,jbo*,framework*,util* from $JAVA_TOP to my_classes (C:\JDeveloper\jdevhome\jdev\myclasses)
- However my import statements are not working yet.
2. I had a reference of similar program where I used it for generating PDF file (output of a XML publisher report) from OA Framework page
This is a controller class which was generating the PDF output. Link is given below
https://docs.google.com/leaf?id=0BxunA4-pnNcqNGY5NDNjNDItYjhlMi00ZDNlLTk1ZTctMWY4MjhjNTYwZDdh&hl=en_US
Any help !!!!!!!!!!Hi Hussein,
Helpful Links.. Yes I had studied them before I posted this. But my requirement is bit complex.
Please check the following link
Attachment Print along with xml output - Need help !!!
Thanks,
Neil -
How to customize the Java Concurrent Program(PO Output for Communication)
Hi,
How to customize the Java Concurrent Program(PO Output for Communication)
I need to add the Line level Ship To Address ,Line Notes and Extended Price fields on Java Concurrent Program.
Please any body help/guide me in this regard.Hi,
Changing Java Conc. program for "PO Output for Communication" is difficult.
Actually, if you observe closely, "PO Output for Communication" program uses PO<HEADER/LINES..>_XML views.
So if you could change these views and add your requireed columns to it, you can automatically see your changes in XML data file.
See if the following link will you to get there.. http://chandramatta.blogspot.com/
thanks,
Matt -
How to get report output on screen as well as in spool?. Spool to be mailed
Hi All,
Can any guide the approach for:
Foreground run:
Get report output on screen as well as generate a spool. The content of spool needs to be mailed.
Background run:
we need to generate the spool and mail the spool contents.
Am aware of usage of FMs
1. GET_JOB_RUNTIME_INFO
2. RSTS_GET_ATTRIBUTES
3. CONVERT_OTFSPOOLJOB_2_PDF
4. SO_DOCUMENT_SEND_API1
Regards
RajHi All,
I had solved the issue by having two separate blocks for processing based on mode of execution.
Background:
1. Initiate spool
2. Write the summary
3. Close spool, build PDF and mail the same.
Foreground:
1. Initiate spool
2. Write the summary
3. Close spool, build PDF and mail the same.
Write summary again (for display on screen).
Regards
Raj -
Need to call OAF API from JAVA concurrent program
Hi Gurus,
I am trying invoke an OAF Application method which generate the Batch ID. I am trying the invoke the same from JAVA Concurrent program. Below is teh code used,
package oracle.apps.ego.item.cp;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import oracle.apps.ego.item.common.server.EgoBatchHeader;
import oracle.apps.ego.item.itemimport.server.EgoImportBatchHeaderAMImpl;
import oracle.apps.fnd.cp.request.CpContext;
import oracle.apps.fnd.cp.request.JavaConcurrentProgram;
import oracle.apps.fnd.cp.request.LogFile;
import oracle.apps.fnd.cp.request.OutFile;
import oracle.apps.fnd.cp.request.ReqCompletion;
import oracle.jbo.ApplicationModule;
import oracle.jbo.ApplicationModuleCreateException;
import oracle.jbo.ApplicationModuleHome;
import oracle.jbo.JboContext;
import oracle.jbo.domain.Number;
import oracle.jdbc.internal.OracleCallableStatement;
public class XX_EGO_BATCH_CREATE implements JavaConcurrentProgram {
static LogFile log = null;
public void runProgram(CpContext ctx){
//Obtain the reference to the Output file for Concurrent Prog
OutFile out = ctx.getOutFile();
EgoBatchHeader v_header = new EgoBatchHeader();
//Obtain the reference to the Log file for Concurrent Prog
log = ctx.getLogFile();
log.writeln("Batch Number Creation", 0);
ApplicationModule am = null;
try{
//Write your logic here
log.writeln("Batch Number Creation", 0);
log.writeln("definition of batch num",0);
Number batch_num;
Number ssid = new Number(10000);
String jdbcUrl =
"jdbc:oracle:thin:apps/[email protected]:10201:ARERP4";
ApplicationModule am_Member = null;
log.writeln("Before Calling Create method",0);
am_Member =
create("oracle.apps.ego.item.itemimport.server.EgoImportBatchHeaderAMImpl",
jdbcUrl);
log.writeln("assigning ssid"+ssid,0);
EgoImportBatchHeaderAMImpl bheader = new EgoImportBatchHeaderAMImpl();
log.writeln("bheader object is :"+bheader,0);
log.writeln("calling getBatchObjectForCreate"+bheader,0);
v_header = bheader.getBatchObjectForCreate(ssid);
//System.out.println("v_header is :" + v_head);
log.writeln("calling createBatch"+v_header,0);
batch_num = bheader.createBatch(v_header);
log.writeln("Batch Number is :"+batch_num ,0);
out.writeln("This will be printed to the Output File");
log.writeln("This will be printed to the Log File", 0);
//Request the completion of this Concurrent Prog
//This step will signal the end of execution of your Concurrent Prog
ctx.getReqCompletion().setCompletion(ReqCompletion.NORMAL,"Completed.");
//Handle any exceptional conditions
catch(Exception e){
log.writeln("Exception2 occurred here !!"+e,0);
log.writeln("calling createBatch"+v_header,0);
public static ApplicationModule create(String amDefName,
String jdbcConnStr) throws ApplicationModuleCreateException, Exception {
ApplicationModule am = null;
try {
OracleCallableStatement conn = null;
// Setup the hashtable of JNDI initialization parameters
log.writeln("inside create method .. ",0);
Hashtable env = new Hashtable(2);
env.put(Context.INITIAL_CONTEXT_FACTORY,
JboContext.JBO_CONTEXT_FACTORY);
env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
// Create an JNDI initial context
Context ic;
ic = new InitialContext(env);
// Lookup a home interface (factory) for the AppModule by name
ApplicationModuleHome home =
(ApplicationModuleHome)ic.lookup(amDefName);
if(home==null){
log.writeln("home is null... .",0);
}else{
log.writeln("home is not null"+home,0);
// Create an instance of the AppModule using the home/factory
am = home.create();
if(am!=null){
log.writeln("am is not null"+am,0);
}else{
log.writeln("am is null",0);
// Connect the application module to the database
am.getTransaction().connect(jdbcConnStr);
} catch (NamingException ex) {
log.writeln("NamingException occurred here !!"+ex.getMessage(),0);
ex.printStackTrace();
throw new ApplicationModuleCreateException(ex);
}catch(Exception ex){
log.writeln("Exception occurred here !!"+ex.getMessage(),0);
ex.printStackTrace();
throw new Exception(ex);
return am;
I am not able to call the web server and facing issues. Please let me know if you can help me to get a solution to this.
Thanks in advance
VeerendraHi Zafar,
I got an error saying :
Batch Number Creation
Batch Number Creation
definition of batch num
Before Calling Create method
inside create method ..
home is not nulloracle.jbo.server.ApplicationModuleHomeImpl@11d2572
Jul 9, 2008 5:04:21 AM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
Exception occurred here !!JBO-25002: Definition oracle.apps.ego.item.itemimport.server.EgoImportBatchHeaderAMImpl of type ApplicationModule not found
oracle.jbo.NoDefException: JBO-25002: Definition oracle.apps.ego.item.itemimport.server.EgoImportBatchHeaderAMImpl of type ApplicationModule not found
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:358)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:340)
at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:700)
at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:232)
at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:401)
at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
at oracle.apps.ego.item.cp.XX_EGO_BATCH_CREATE.create(XX_EGO_BATCH_CREATE.java:139)
at oracle.apps.ego.item.cp.XX_EGO_BATCH_CREATE.runProgram(XX_EGO_BATCH_CREATE.java:57)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Exception2 occurred here !!java.lang.Exception: oracle.jbo.NoDefException: JBO-25002: Definition oracle.apps.ego.item.itemimport.server.EgoImportBatchHeaderAMImpl of type ApplicationModule not found
calling [email protected]9c -
How can i get the source code from java concurrent program in R12
Hi 2 all,
How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
Regards,
Zulqarnainuser570667 wrote:
Hi 2 all,
How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
Regards,
ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Error while getting the ORACLE user account for your concurrent request
Hi ,
When I am submitting the Concurrent Program from OAF page Iam getting
Error
Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator.
When we will face this error.
Not able to submit the Request
KrishnaKrishna
Try like this
public int submitCPRequest(String shipmentId) {
System.out.println("into submitCPRequest");
try {
OAApplicationModule am = pageContext.getApplicationModule(webBean) ;
OADBTransaction transaction = am.getOADBTransaction();
Connection conn = transaction.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(conn);
cr.setDeferred();
String applnName = new String("XXAPL"); //Application that contains the concurrent program
System.out.println("ApplName"+ applnName);
String cpName = new String("SHIP_REQ"); //Concurrent program name
System.out.println("Concc Name"+ cpName);
// String cpDesc = new String("Shipping Request"); // concurrent Program description
// Pass the Arguments using vector
// Here i have added my parameter headerId to the vector and passed the
//vector to the concurrent program
Vector cpArgs = new Vector();
cpArgs.addElement(shipmentId);
System.out.println("Args"+ cpArgs);
After this it is going into exception
// Calling the Concurrent Program
int requestId = cr.submitRequest(applnName, cpName, null, null, false, cpArgs);
System.out.println("Req Id"+ requestId);
tx.commit();
return requestId;
catch (SetDeferredException e)
throw new OAException("SetDeferredException " + e.getMessage(),OAException.ERROR);
catch (RequestSubmissionException e) {
System.out.println("Into Exception");
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
}Thanks
AJ -
Dear Techies,
We have registered an Extra Information Type as self service OAF page and did some validations using user hook which are working fine. But for some requests EIT creation page is throwing below errors.
1. Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator.
2. An unexpected situation occurred while executing routine FND_DATA_SECURITY.GET_SECURITY_PREDICATE_HELPER.The cause was: The parameter 'p_object_name' cannot be 'GLOBAL'.
System throws these errors whenever user hook suppose to throw our customized validation messages.Since we are at UAT instance, we are bouncing apache and oacore to get rid of these errors every time they appear. But we cannot bounce once it is moved to production.
Kindly share some ideas to fix these errors as we are very close to Go-Live and we are facing this issue with all EIT's and SIT's.
Thanks and Regards
Dileep Kumar.Hi Mahesh,
Thanks for reply.
I have gone through the link that you have suggested. But our EIT user hook validations doesn't have any code related to submission of concurrent programs. More over our error is not stable. If we bounce the apache and oacore, the system will work fine without unexpected errors for some time. We are not even able to replicate these errors.
Thanks and Regards
Dileep Kumar. -
Issue in Java concurrent program for Digital Signature Stamping
Hi All,
Im calling a Java concurrent program which does digital signature stamping on the PDF report generated.Program able to able to read the PDF file as input and also digital signature stored as file in the application but
ends in error in create signature method , need help in this regard.
Error:
Parameter 0 is Request id of with out Digital signature file
Parameter 1 is employee id of approver
Parameter:0:99203256
Parameter:1:1414603
$$$$ start query fileinfo with callable statment
programName>>>>>>>>BTPOPORPXML
$$$$ Without digital Signature file Name $$$
$/inst_top/finprod/apps/FINPROD_CPNQERPAAPZP10/logs/appl/conc/out/BTPOPORPXML_99203256_1.PDF
PFX File Reading Start
PFX File Reading Ends
PFX File size is: 6460 Byte size is: 6460
Elements present
java.lang.NullPointerException
at
com.lowagie.text.pdf.PdfSignatureAppearance.getAppearance
(Unknown Source)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose
(Unknown Source)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose
(Unknown Source)
at com.lowagie.text.pdf.PdfStamper.close(Unknown
Source)
at
btvl.oracle.apps.po.digsig.BTVLDigSign.runProgram
(BTVLDigSign.java:151)
at oracle.apps.fnd.cp.request.Run.main
(Run.java:157)
Edited by: 999033 on May 16, 2013 7:20 PMHi Charls,
I have successfully implemented at our end in 11i. Pl.try at your end.
v_request_id := FND_REQUEST.SUBMIT_REQUEST (passed your arguments... );
COMMIT;
IF NVL( v_request_id , 0 ) = 0 THEN
DBMS_OUTPUT.PUT_LINE( 'Item Assignment to Organization Program Not Submitted');
p_status := 'FAILURE' ;
p_err_msg := 'ERROR RAISED AFTER SUBMITTING THE IMPORT ITEM ORG.ASSIGNMENT CONCURRENT REQUEST ... ' ;
ELSE
v_finished := FND_CONCURRENT.WAIT_FOR_REQUEST
request_id => v_request_id,
interval => 0,
max_wait => 0,
phase => v_phase,
status => v_status,
dev_phase => v_request_phase,
dev_status => v_request_status,
message => v_message
LOOP
EXIT WHEN ( UPPER(v_request_phase) = 'COMPLETE' OR v_phase = 'C');
END LOOP;
HTH
Sanjay
Maybe you are looking for
-
Recent Chats is not working in Skype 4.3 (Ubuntu 1...
Hi, In Skype 4.3 (Ubuntu 14.04), Recent Chat list is not showing anything in the panel menu. How to resolve this?
-
Sort picking list by storage bin or material in customizing
Hello Gurus, How can I sort picking list by storage bin or material in customizing? thanks very much!
-
Only portion of iTunes library visible on AppleTV via HomeShare
Using up to date versions of iTunes for Windows (running on Windows 8.1 64 bit), Airport Time Capsule, and current Apple TV. Even though Apple TV can connect to Media Library via Home Sharing, only portion of my library is displayed. I have restarted
-
Segment creation for outbound Idocs to non-SAP system
Hi, I need to create a custom idoc for outbound interface to a non-SAP system. Here I need to create segments. So, should I create the fields in the segment with the attributes of fields in non-SAP system or fields attributes should be of SAP system.
-
IDES upgrade from 4.7 to ECC 6.0
Hi, I have windows 32 bit system there I would like to perform an upgrade simulation from 4.7 to ECC 6.0. Can I perform IDES R3 4.7 to ECC Non-Ides upgrade or I have to Upgrade to IDES ecc 6.0? In case of IDES ECC 6.0 I can not see any Upgrade Export