Java Concurrent Program .class file location
Hi frnds,
I need to know the .class file location of a java concurrent prog. I know the filename from concurrent program executables and my concurrent program filepath is oracle.apps.xxogl.f04.cp.file. But I dont know where the exact location of the file is. pls help me.
I searched for the same and found the following article in many places which doesnt seem to help me much.
http://geektalkin.blogspot.com/2008/03/oracle-apps-java-concurrent-program.html
pls help. thanks in advance.
Lisan
Hi;
pls file can be found like
/apps_st/appl/bom/12.0.0/patch/115/sql/
Contains SQL*Plus scripts used to upgrade data, and .pkh, .pkb, and .pls scripts to create PL /SQL stored procedures.
Regard
Helios
Similar Messages
-
Java concurrent program class not found Exception in oracle apps
Hi all,
I done java concurrent program as per steps given by oracle.I am getting class not exception when i am submitting that concurrent program.
My java file is under $JAVA_TOP specified folder.Those path from $JAVA_TOP i set in apps (System Adminstrator -->Executable) Execution file path.Can any body have faced this issue?
ThanksAlso go through the metalink Note:250964.1
It goes through the complete process of creating a sample java conc process and implementing it.
--Shiv -
Bursting Java Concurrent Program Class Compiling Error
Hi,
I am trying to compile the Java Class that Tim has provided in his blog to create the Bursting JCP. I am using R12, so that would be XMLP 5.6.3. As far as I can work out the patch that has been developed for the seeded Bursting JCP is not yet available for R12, so I am trying to create one myself from Tim's examples.
I do not pretend to be a Java expert, or even pretend to have more than and very very very basic knowledge of it, so I am hoping someone will be able to tell me why I am getting the following error when I try to compile it:
$ javac XMLPReportBurst.java
XMLPReportBurst.java:220: cannot find symbol
symbol : constructor OADocumentProcessor(java.io.InputStream,java.io.InputStream,java.lang.String)
location: class oracle.apps.xdo.oa.util.OADocumentProcessor
OADocumentProcessor dp = new OADocumentProcessor(ctlFile,fis,"/home/applmgr/tmp");
^
1 error
The Java Class that I am using can be seen below, and the error seems to be occurring at line 220:
package oracle.apps.xdo.oa.cp;
import java.sql.SQLException;
import java.sql.Connection;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import oracle.jdbc.driver.OracleResultSet;
import oracle.jdbc.driver.OraclePreparedStatement;
import oracle.jdbc.driver.OracleCallableStatement;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.util.NameValueType;
import oracle.apps.fnd.util.ParameterList;
import oracle.apps.fnd.cp.request.CpContext;
import oracle.apps.fnd.cp.request.ReqCompletion;
import oracle.apps.fnd.cp.request.LogFile;
import oracle.apps.fnd.cp.request.JavaConcurrentProgram;
import oracle.apps.fnd.cp.request.RemoteFile;
import oracle.apps.xdo.XDOException;
import oracle.apps.xdo.oa.util.OADocumentProcessor;
import oracle.apps.xdo.batch.BurstingListener;
import java.util.Properties;
import java.util.Vector;
public class XMLPReportBurst implements JavaConcurrentProgram, BurstingListener
public static final String RCS_ID=
"$Header: JCP4XMLPublisher.java 115.34 2006/01/09 16:54:58 bgkim noship $";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "oracle.apps.xdo.oa.cp");
// Global Reference to pCpContext
private CpContext ccntxt;
private LogFile lfile;
private boolean debug = false;
private Connection mJConn;
public void runProgram(CpContext pCpContext)
lfile = pCpContext.getLogFile();
lfile.writeln("XML Report Publisher 5.0",0);
ccntxt = pCpContext;
// get the JDBC connection object
mJConn = pCpContext.getJDBCConnection();
// get parameter list object from CpContext
ParameterList lPara = pCpContext.getParameterList();
// get ReqCompletion object from CpContext
ReqCompletion lRC = pCpContext.getReqCompletion();
String Params = null;
int lrequestId = 0;
String ltemplatecode = null;
String lApplShortName = null;
String lLocale = null;
String lDebug = "N";
String lOutFormat = null;
String tmplLang = null;
String tmplTerr = null;
int reqid = pCpContext.getReqDetails().getRequestId();
// Parse Parameters
while (lPara.hasMoreElements())
NameValueType aNVT = lPara.nextParameter();
Params += aNVT.getName() + ":" + aNVT.getValue();
if ( aNVT.getName().equals("ReportRequestID") )
lrequestId = Integer.parseInt(aNVT.getValue());
else if ( aNVT.getName().equals("DebugFlag") )
lDebug = aNVT.getValue();
debug = (lDebug.equals("Y")) ? true : false;
if (debug)
lfile.writeln("Request ID: "+reqid ,1);
lfile.writeln("All Parameters: " + lPara.getString(),1);
lfile.writeln("Report Req ID: "+ lrequestId,1);
lfile.writeln("Debug Flag: " + lDebug,1);
try
lfile.writeln("Updating request description",0);
String lSqls = "update FND_CONCURRENT_REQUESTS " +
"set DESCRIPTION='Bursting ' || " +
" ( select USER_CONCURRENT_PROGRAM_NAME " +
" from FND_CONC_REQ_SUMMARY_V " +
" where request_id= :1 ) " +
"where request_id = :2 ";
OracleCallableStatement lStmt2 =
(OracleCallableStatement)mJConn.prepareCall(lSqls);
lStmt2.setInt(1,lrequestId);
lStmt2.setInt(2,reqid);
lStmt2.execute();
lStmt2.close();
mJConn.commit();
if (debug) lfile.writeln("Updated description",0);
/* Obtain Input xml file from RemoteFile object by lrequestId */
lfile.writeln("Retrieving XML request information",0);
lSqls = "select OUTFILE_NODE_NAME, OUTFILE_NAME from " +
"FND_CONCURRENT_REQUESTS " +
"where request_id= :1";
OraclePreparedStatement lStmt1 =
(OraclePreparedStatement)mJConn.prepareStatement(lSqls);
lStmt1.setInt(1,lrequestId);
OracleResultSet lRslt = (OracleResultSet)lStmt1.executeQuery();
lRslt.next();
String cNode=lRslt.getString(1);
String outf=lRslt.getString(2);
lRslt.close();
lStmt1.close();
if (debug) lfile.writeln("Node Name:" + cNode,1);
lfile.writeln("Preparing parameters",0);
// PDF output file (Outfile of this request)
String outputfilename = pCpContext.getOutFile().getFileName();
if (debug) lfile.writeln(lOutFormat+" output =" + outputfilename, 1);
OutputStream fout = new FileOutputStream(outputfilename);
RemoteFile rf = new RemoteFile (pCpContext, cNode, outf, "TEXT");
String inputfilename = rf.getFile().getAbsolutePath();
if (debug) lfile.writeln("inputfilename =" + inputfilename, 1);
if ( inputfilename == null || inputfilename.equals("") )
lRC.setCompletion(ReqCompletion.ERROR,
"Error has occured. Please check the log file");
// Input stream from XML data file ( Outfile of XML generating request)
InputStream fis = new FileInputStream(inputfilename);
InputStream ctlFile = new FileInputStream("\\home\\applmgr\\InvoiceBatchBurst.xml");
lfile.writeln("Starting burst ...",1);
OADocumentProcessor dp = new OADocumentProcessor(ctlFile,fis,"/home/applmgr/tmp");
lfile.writeln("Bursting initiated ... ",1);
dp.registerListener(this);
lfile.writeln("Listener created ...",1);
Properties prop= new Properties();
lfile.writeln("Properties set ...",1);
prop.put("user-variable:EMAILP","[email protected]");
dp.setConfig(prop);
lfile.writeln("Config set ...",1);
dp.process();
lfile.writeln("Bursting complete",1);
fis.close();
fout.close();
lRC.setCompletion(ReqCompletion.NORMAL, "Request Completed Normal");
catch (SQLException e)
lfile.writeln("--SQLException",1);
//lfile.writeln(e.getMessage(),1);
lfile.writeln(getErrorStack(e),1);
lRC.setCompletion(ReqCompletion.ERROR, e.getMessage());
catch (XDOException e)
lfile.writeln("--XDOException",1);
//lfile.writeln(e.getMessage(),1);
//lfile.writeln(sw.toString(),1);
lfile.writeln(getErrorStack(e),1);
lRC.setCompletion(ReqCompletion.ERROR, e.getMessage());
catch (Exception e)
lfile.writeln("--Exception",1);
lfile.writeln(e.getMessage(),1);
lfile.writeln(getErrorStack(e),1);
lRC.setCompletion(ReqCompletion.ERROR, e.getMessage());
finally
pCpContext.releaseJDBCConnection();
private String getErrorStack(Exception exc) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
try
exc.printStackTrace(pw);
pw.flush();
pw.close();
sw.close();
return sw.toString();
catch (Exception e)
return null;
public void beforeProcess(){
if (debug) lfile.writeln("==============Start of Bursting Process=================",0);
public void afterProcess()
if (debug) lfile.writeln("==============End of Bursting Process=================",0);
public void beforeProcessRequest(int requestIndex)
if (debug)
lfile.writeln(" ========Start of Process Request",0);
lfile.writeln(" Request Index +requestIndex",0);
public void afterProcessRequest(int requestIndex)
if (debug) lfile.writeln(" ========End of Process Request",0);
public void beforeProcessDocument(int requestIndex,int documentIndex)
if (debug){
lfile.writeln(" ========Start of Process Document",0);
lfile.writeln(" Request Index "+requestIndex,0);
lfile.writeln(" Document Index " +documentIndex,0);
public void afterProcessDocument(int requestIndex,int documentIndex,Vector documentOutputs)
if (debug){
lfile.writeln(" ========End of Process Document",0);
lfile.writeln(" Outputs :"+documentOutputs,0);
public void beforeDocumentDelivery(int requestIndex,int documentIndex,String deliveryId)
if (debug){
lfile.writeln(" ========Start of Delivery",0);
lfile.writeln(" Request Index "+requestIndex,0);
lfile.writeln(" Document Index " +documentIndex,0);
lfile.writeln(" DeliveryId " +deliveryId,0);
public void afterDocumentDelivery(int requestIndex,int documentIndex,String deliveryId,Object deliveryObject,Vector attachments)
if (debug){
lfile.writeln(" ========End of Delivery",0);
lfile.writeln(" Attachments : "+attachments,0);
I hope you can help me as this is an on going issue for me that I need to try and get resolved.
I look forward to hearing any suggestions.
Regards,
CjHi,
Yes you have one more field in the Data Definition tab that reads Bursting Control File just after the 3 you mentioned .You can upload the control file here.
However both this functionality and the Bursting Concurrent Program will be available once you have applied the patch for 5.6.3..
I've been looking too for anyone who has a writeup on the the way this Program can be used.As of now I am just following the Read Me available with this Patch.
It has some samples...
Let me know if this helps.
Regards,
Lavina -
Java Concurrent Program not able to access class present under CLASSPATH
We are creating a Java Concurrent Program which is using third party web service. The client classes for the webservice have been placed in a jar file. This jar file has been added to the SYSTEM CLASSPATH. When we try to run the concurrent program it fails with a ClassNotFoundException giving the name of the webervice client. The webservice clients are being used by other java classes from OAF as well. From there it is easily accessible.
The request is being submit using a custom responsibility called RAC Quoting Admin. The user logged in has the corresponding responsibiility. The request is being submitted as a single request and there are no parameters being passed to the request.
Here are the steps that we used to create the Oracle Concurrent Program:
1. First of all we wrote a Java class that implements oracle.apps.fnd.cp.request.JavaConcurrentProgram
rac.oracle.apps.qot.quote.batch.SFDCInterface implements JavaConcurrentProgram
2. The concurrent program has a method called public void runProgram(CpContext pCpContext) which has the logic to be executed.
3. Then we create a concurrent program executable
Path: Concurrent -> Program -> Executable.
Executable: RAC Quoting SFDC Sync Executable
Short Name: RacQotSFDCSyncEx
Application: Quoting
Description: RAC Quoting SFDC Synchronization batch program
Execution Method: Java Concurrent Program
Execution File Name : SFDCInterface
Execution File Path : rac.oracle.apps.qot.quote.batch
4. Create the Concurrent Program
Path: Concurrent -> Program -> Define
Program: RAC Quoting SFDC Sync CP
Short Name: RACQOTSFDCSYNCCP
Application: Quoting
Description: RAC Quoting SFDC batch Synchronization Concurrent Program
Executable: Name - RacQotSFDCSyncEx; Method - Java Concurrent Program
5. This concurrent program is registered with a custom responsibility from which we run this concurrent program.Please post the details of the application release, database version and OS.
We are creating a Java Concurrent Program which is using third party web service. The client classes for the webservice have been placed in a jar file. This jar file has been added to the SYSTEM CLASSPATH. When we try to run the concurrent program it fails with a ClassNotFoundException giving the name of the webervice client. The webservice clients are being used by other java classes from OAF as well. From there it is easily accessible.Please post the contents of the concurrent request log file here. You may also enable trace and submit the request again and post the contents of the log file.
The request is being submit using a custom responsibility called RAC Quoting Admin. The user logged in has the corresponding responsibiility. The request is being submitted as a single request and there are no parameters being passed to the request.
Here are the steps that we used to create the Oracle Concurrent Program:
1. First of all we wrote a Java class that implements oracle.apps.fnd.cp.request.JavaConcurrentProgram
rac.oracle.apps.qot.quote.batch.SFDCInterface implements JavaConcurrentProgram
2. The concurrent program has a method called public void runProgram(CpContext pCpContext) which has the logic to be executed.
3. Then we create a concurrent program executable
Path: Concurrent -> Program -> Executable.
Executable: RAC Quoting SFDC Sync Executable
Short Name: RacQotSFDCSyncEx
Application: Quoting
Description: RAC Quoting SFDC Synchronization batch program
Execution Method: Java Concurrent Program
Execution File Name : SFDCInterface
Execution File Path : rac.oracle.apps.qot.quote.batch
4. Create the Concurrent Program
Path: Concurrent -> Program -> Define
Program: RAC Quoting SFDC Sync CP
Short Name: RACQOTSFDCSYNCCP
Application: Quoting
Description: RAC Quoting SFDC batch Synchronization Concurrent Program
Executable: Name - RacQotSFDCSyncEx; Method - Java Concurrent Program
5. This concurrent program is registered with a custom responsibility from which we run this concurrent program.Have you completed all the steps as per MOS docs? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Program&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
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 -
.class file location of a java concurrent program
Hi frnds,
I need to know the .class file location of a java concurrent prog. I know the filename from concurrent program executables and my concurrent program filepath is oracle.apps.xxogl.f04.cp.file. But I dont know where the exact location of the file is. pls help me.
I searched for the same and found the following article in many places which doesnt seem to help me much.
http://geektalkin.blogspot.com/2008/03/oracle-apps-java-concurrent-program.html
pls help. thanks in advance.
LisanHi Lisan,
Which version are you using? Folder strucure differs for 11i and R12 versions.
All the class files will be placed under the JAVA_TOP folder. From there you have to follow your package structure. Here it is oracle/apps/xxogl/f04/cp/file
HTH,
Syed. -
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 integrate a class with template.java - Java Concurrent Program. 11i
Hello, I have a java class I got from a vendor. This java class needs to run through as concurrent program. As per metalink note *How To Create a Java Concurrent Program? [ID 827563.1]* it says that, we must require template.java to wrap around the custom class. I have done that in the following java code. However, being a new java guy, I really dont know how to connect these two classes and constructor.
Any suggestions about how do I make these classes work in order to run from a concurrent program?
package oracle.apps.fnd.cp.request;
import oracle.apps.fnd.util.*;
import oracle.apps.fnd.cp.request.*;
import java.io.BufferedReader;
import java.io.IOException;
import javax.net.ssl.SSLSocketFactory;
public class cyberBatch implements JavaConcurrentProgram {
// Optionally provide class constructor without any arguments.
// If you provide any arguments to the class constructor then while running the program will fail.
public void runProgram(CpContext pCpContext) {
ReqCompletion lRC = pCpContext.getReqCompletion();
String CompletionText = "";
// This class is to upload files but can be expanded to download files also.
public class SSLFileTransfer {
Properties props =
new Properties(); // stores properties from property file
* SSLFileTransfer(): constructor
public SSLFileTransfer() {
* init(): initialization (load property file)
* @param propsFile properties needed for file transfer
public void init(String propsFile) {
try {
props.load(new BufferedInputStream(new FileInputStream(new File(propsFile))));
} catch (Exception e) {
e.printStackTrace();
System.exit(-1);
* usage()
public static void usage() {
System.out.println("USAGE: java SSLFileTransfer <full path property file name>");
System.exit(-1);
* getFactory(): get factory for authentication
* @throws IOException if exception occurs
private SSLSocketFactory getFactory() throws IOException {
try {
SSLContext ctx;
KeyManagerFactory kmf;
KeyStore ks, ks1;
char[] passphrase =
props.getProperty("passPhrase").toCharArray();
ctx = SSLContext.getInstance("TLS");
kmf = KeyManagerFactory.getInstance("SunX509");
ks = KeyStore.getInstance("PKCS12", "BC");
ks1 = KeyStore.getInstance("JKS");
ks.load(new FileInputStream(props.getProperty("key")),
passphrase);
ks1.load(new FileInputStream(props.getProperty("keyStore")),
passphrase);
kmf.init(ks, passphrase);
TrustManagerFactory tmf =
TrustManagerFactory.getInstance("SunX509");
tmf.init(ks1);
ctx.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
return ctx.getSocketFactory();
} catch (Exception e) {
e.printStackTrace();
throw new IOException(e.getMessage());
* getHost(): Get host from property file
private String getHost() {
return props.getProperty("host", "localhost");
* getPort(): Get port from property file
private int getPort() {
return Integer.parseInt(props.getProperty("port"));
* sendRequest(): Send request (file) to the server
* @param out stream to send the data to the server
* @throws Exception if an error occurs.
private void sendRequest(PrintWriter out) throws Exception {
String path = props.getProperty("path");
out.println("POST " + path + " HTTP/1.0");
final String BOUNDARY = "7d03135102b8";
out.println("Content-Type: multipart/form-data; boundary=" +
BOUNDARY);
String uploadFile = props.getProperty("uploadFile");
String authString =
props.getProperty("bcUserName") + ":" + props.getProperty("bcPassword");
String encodedAuthString =
"Basic " + new sun.misc.BASE64Encoder().encode(authString.getBytes());
out.println("Authorization: " + encodedAuthString);
final String CRLF = "\r\n";
StringBuffer sbuf = new StringBuffer();
sbuf.append("--" + BOUNDARY + CRLF);
sbuf.append("Content-Disposition: form-data; name=\"upfile\"; filename=\"" +
uploadFile + "\"" + CRLF);
sbuf.append("Content-Type: text/plain" + CRLF + CRLF);
FileReader fi = new FileReader(uploadFile);
char[] buf = new char[1024000];
int cnt = fi.read(buf);
sbuf.append(buf, 0, cnt);
sbuf.append(CRLF);
sbuf.append("--" + BOUNDARY + "--" + CRLF);
int sz = sbuf.length();
out.println("Content-Length: " + sz);
out.println();
out.println(sbuf);
out.flush();
// Make sure there were no surprises
if (out.checkError())
System.out.println("SSLFileTransfer: java.io.PrintWriter error");
* readResponse(): reads response from the server
* @param in stream to get the data from the server
* @throws Exception if an error occurs.
private void readResponse(BufferedReader in) throws Exception {
boolean successful = false;
String inputLine;
while ((inputLine = in.readLine()) != null) {
if (inputLine.startsWith("HTTP") &&
inputLine.indexOf("200") >= 0)
successful = true;
System.out.println(inputLine);
System.out.println("UPLOAD FILE " +
(successful ? "SUCCESSFUL" : "FAILED") +
"!!!\n");
* upload(): upload file to server
* @throws Exception if an error occurs.
public void upload() throws Exception {
try {
SSLSocketFactory factory = getFactory();
SSLSocket socket =
(SSLSocket)factory.createSocket(getHost(), getPort());
PrintWriter out =
new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));
BufferedReader in =
new BufferedReader(new InputStreamReader(socket.getInputStream()));
socket.startHandshake();
sendRequest(out);
readResponse(in);
out.close();
in.close();
socket.close();
} catch (Exception e) {
e.printStackTrace();
throw e;
* main(): main method to start file transfer
* @param args command line arguments (property file, see usage())
* @throws Exception if an error occurs.
public static void main(String[] args) throws Exception {
if (args == null || args.length != 1)
usage();
SSLFileTransfer fileXfer = new SSLFileTransfer();
fileXfer.init(args[0]);
fileXfer.upload();
lRC.setCompletion(ReqCompletion.NORMAL,CompletionText) ;
}Thanks,
RI believe the OP is aware of this :) -- Re: Oracle 11i - 11.5.10.2 - and Java
Thanks,
Hussein -
How to Compile & Deploy the Java Concurrent Program File
Hi,
There is a requirement to create the Java Concurrent Program in Oracle eBusiness. I am able to create the Java Concurrent Program file. But unable to do the following things:
1.Since it is custom file, which location I will deploy the file?
2. How to compile the file?
3. In the execution file path and executable file name what should I specify for JCP?
Please guide me.
ThanksPlease see (How to register and execute Java Concurrent Program ?in Oracle Applications R11i ? [ID 186301.1]) for the complete steps (i.e. define concurrent program and add it to the request group, .etc.) -- This is also applicable to R12.
You may also see:
Classpath Setting of Third Party Jar Files in R12 Java Concurrent Program (JCP) [ID 1292694.1]
Integrating Custom Applications with Oracle Applications [ID 176852.1]
Java Concurrent Program FAQ [ID 827575.1]
https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Program&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Issue with class loading - Java concurrent Program
Hi ,
We are facing a strange issue for one of our customer.
Scenario :
We have a Java Concurrent Program (A.java ) which refers another Java class (B.java) , we modified the file B.java for a fix and created a patch. after applying the patch and bouncing the apache ,we found that B.java is loaded the old version of the class file.
We asked them to restart the concurrent manager and related services, still we see that old version of B.java is loaded. (confirmed by adding code throwing exception - throw new Exception from a specific line and found that its not getting thrown at run-time)
Any clue on this?.
Thanks
Joseph GeorgeDeployed this file both tier - Database server tier and Application server tier.
I have face same issue, Concurrent program not picking file application server tier. its picking file from database server tier.
Thanks, Avaneesh -
Class Not found exception in java concurrent program
Hi All,
I done java concurrent program as per steps given by oracle.I am getting class not exception when i am submitting that concurrent program.Can any body have faced this issue?
Thanks
JKAlso go through the metalink Note:250964.1
It goes through the complete process of creating a sample java conc process and implementing it.
--Shiv -
I am currently exploring the creation of Concurrent Programs using Java (non-stored procedure) and am getting the following error in the log file:
java.lang.ClassNotFoundException: com.boeing.java.skims.test.TestJavaConcurrentPrograms
at oracle.apps.fnd.cp.request.Run.main(Compiled Code)
Does anyone know if there exists any documentation for implementing concurrent program executables using the Execution Method: "Java Concurrent Program"?
The documentation on this topic appeared to be non-existent in the "Oracle Applications Developer's Guide.
Does anyone know if there are javadocs that exist for the class defined in $FND_TOP/java/jar/*.jar files?
Thanks,
Gary ArensdorfMore Information:
I found two NOTES on Metalink that have propeled me further in my Quest: 186301.1 & 250964.1
250964.1 is a brief "How to.." that I was able to follow and execute within the Apps thru to successful completion.
What I am really after now is API documentation for the packages/classes under oracle.apps.fnd....
Does anyone know whether this documentation is available from Oracle for their Apps customers?
I could not locate any on Metalink and the most recent version of the Oracle Applications Developer's Guide is date April 2001.
Thanks,
Gary Arensdorf -
Facing error wen running Java Concurrent Program to insert data into table
Hi All,
Its first time I am wrkng on Java Concurrent Programs. I created a java class with the below code:
import oracle.apps.fnd.cp.request.*;
import oracle.apps.iby.scheduler.*;
import java.sql.*;
import java.sql.Statement;
import java.sql.Connection;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.cp.request.CpContext;
import oracle.apps.fnd.cp.request.JavaConcurrentProgram;
import oracle.apps.iby.database.DBWrapper;
import oracle.apps.iby.ecapp.OraPmt;
import oracle.apps.iby.exception.Log;
import oracle.apps.iby.security.SecurityUtil;
//package oracle.apps.ibe.util.key;
//package oracle.apps.iby.scheduler;
// Referenced classes of package oracle.apps.iby.scheduler:
// SchedUtils
public class XXIBE_KeyInsert
implements JavaConcurrentProgram
public XXIBE_KeyInsert()
public void runProgram(CpContext cpcontext)
try{
String s;
oracle.apps.fnd.cp.request.ReqCompletion reqcompletion;
Connection connection;
// s = "iby.scheduler.XXIBE_keyInsert.runProgram";
reqcompletion = cpcontext.getReqCompletion();
connection = null;
OraPmt.init(cpcontext);
Log.debug("Inserting Credit Card key", 1, "XXIBE_KeyInsert.java");
byte abyte0[] = SecurityUtil.getSystemKey();
connection = cpcontext.getJDBCConnection();
Statement st = connection.createStatement();
String sql = "Insert into xxibe_scodes values ("+abyte0+")";
st.executeUpdate(sql);
connection.commit();
st.close();
connection.close();
Log.debug("done", 1, "XXIBE_KeyInsert.java");
reqcompletion.setCompletion(reqcompletion.NORMAL, "Request Completed Normal");
OraPmt.end();
SchedUtils.setSuccess(reqcompletion);
DBWrapper.closeDBConnection(connection);
catch(Exception e){
e.printStackTrace();
//reqcompletion.setCompletion(ReqCompletion.ERROR, e.toString());
I compiled the program and in the java_top/oracle/apps/../.. (in the pkg given). Now the class files and java files are in the said location. I created an executable of type "java concurent Prog" and location same as Package name.
Created a Program and assigned it to the responsibility. Having done this when i run the CP I find it ends with an error msg. The log files show the below exceptions: "java.lang.ClassNotFound Exception".
We are doing it in R12.0.6 and in Unix server. Pls help me where I am missing it. It turned to be an urgent requirement frm my end.
Thanks,
Abhishek.The Exception Stack is :
java.lang.ClassNotFoundException: oracle.apps.iby.scheduler.test.XXIBE_KeyInsert
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at oracle.apps.fnd.cp.request.Run.main(Run.java:152).
Please advice me on how to proceed. -
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 -
"Java Concurrent Program" java.lang.ClassNotFoundException:
I am creating one Concurrent Program Type "Java Concurrent Program",
I followed steps as notes "250964.1"
Deployed the java file to specific Directory in $JAVA_TOP
Bounce the apache.
I am getting this issue?
java.lang.ClassNotFoundException: oracle.apps.fnd.cp.sample.Hello
at java.net.URLClassLoader.findClass(URLClassLoader.java:376)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:442)
at java.lang.ClassLoader.loadClass(ClassLoader.java:502)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
I am not getting this issue OA Framework Classes (CO, AM ....)
Looking for this solution ? This is urgent to me.
Let us know what may be issue?
Thanks, AvaneeshAvaneesh,
What do you mean by "
I am not getting this issue OA Framework Classes (CO, AM ....)"?
Did you test your java code on command line?
--Shiv
Maybe you are looking for
-
Inconsiste​nt Parallel Loop Performanc​e
My original question was can traditional DAQ devices run in parallel loops? I have some extensive data processing and additional automation that would be a lot easier to do in parallel with an acquisition loop rather than cram it all into the acquisi
-
Terminator - Prompt if a process is active before closing window
HI. As the title says: I want to get a prompt in Terminator (a terminal emulator) if I accidentally try to close its window while a process is active inside it. Eg.: If I have vim open inside terminator, and I carelessly press the window manager's cl
-
I am trying to reply or send a email to a email address that has a full stop in the username ie [email protected] When the email sends it drops the surname ie [email protected] I have checked the address from the reply and it is correct even if I typ
-
How to format hard drive with mac air for use on mac and pc
I'm new to MAC and can't make much sence of what has been said to do in other questions. All I want to be able to do is use my 500gb My Passport hard drive on my MAC and other PC's. I have saved all the data that I want to keep on another hard drive
-
Raw vs VARCHAR2 for sys_guid
We are running some tests trying to see if there is an issue with defining our PK columns as RAW and using the sys_guid function as the default. We cannot see any issue with selecting the value, using it in SQL or returning it in a PL/SQL function an