Cal plsql pkg from Java concurrent program

Hi,
I try to execute one plsql pkg inside a java concurrent pgm.plsql code executed from view output i got the out put.Bt my status Shows ERROR.
this is my code
try{
System.out.println("transation type inside try block "+deptno);
CallableStatement cs=con.prepareCall("{call XX_ANE_DEPT2_PKG.XX_ANE_DEPT2_PRC(?,?,?)}");
cs.setString(1,null);
cs.setString(2,null);
cs.setString(3,deptno);
cs.execute();
con.commit();
cs.close();
//LF.writeln("Generating Programs for Application : " + transactionType, LogFile.STATEMENT);
//OF.writeln( " Available Concurrent Programs for Application " +transactionType );
catch(SQLException ex){
lRC.setCompletion(ReqCompletion.ERROR, ex.toString());
finally
pCpContext.releaseJDBCConnection();
I dont knw why the status is error any one pls help.If it is wrong method any one pls give a sample pgm to cal a PKG in concurrent pgm.
pls help
Edited by: aneeshmathew on Dec 28, 2010 4:49 AM
Edited by: aneeshmathew on Dec 28, 2010 4:49 AM

Are you able run this concurrent program from form application.? if it erroring out there what error you are getting.
Thanks

Similar Messages

  • 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,
    Zulqarnain

    user570667 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

  • 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
    Veerendra

    Hi 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

  • PL/SQL log messages are not printing from Java concurrent program

    Hi,
    I have a strange issue while submitting the Java concurrent program through PL/SQL.
    I have a PL/SQL concurrent program which will invoke the Java concurrent program inside the package by use of "FND_GLOBAL.SUBMIT_REQUEST". It worked and submitted successfully. From that Java concurrent program we are calling some other PL/SQL packages and printing some log messages over there. But problem here is the request is only printing the Java log messages in view log but not the PL/SQL log messages.  But if I submit the Java concurrent program directly from SRS form at that it is printing both Java and PL/SQL log messages.
    I am just wondering how the log messages has not printed. Please provide your inputs to solve this problem.
    Thanks
    Suriya

    I'm adding log messages in the package body , but these messages are not printing after completion of concurrent prog.
    Any suggestions.
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Data Test :');Do you have COMMIT in your code?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=%27FND_FILE.PUT_LINE%27+AND+commit&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to run another concurrent from Java Concurrent Program?

    Hi,
    I have one Java Concurrent Program in ebs R12.
    I need to run another Java Concurrent Program when first finished.
    I can not find a way to start another request from JCP.
    Thanks,
    ms

    Hi ,
    this is an example code to check the OS before running the command :
    try{
    int ch;
    Process proc ;
    Runtime r=Runtime.getRuntime();
    StringBuffer sbuf = new StringBuffer();
    String dir = new String();
    String osname = System.getProperty("os.name");
    if(osname.equals("Windows NT") )
    proc = r.exec("cmd /c dir");
    if(osname.startsWith("Linux") )
    proc = r.exec("df -k");
    InputStream is = proc.getInputStream();
    while((ch=is.read() ) != -1)
    sbuf.append((char)ch);
    is.close();
    dir = sbuf.toString();
    System.out.println(dir );
    }catch(Exception e){ System.out.println(e.getMessage());}
    bye
    Taha

  • Error finding/creating AM from Java Concurrent Program

    Hi All,
    Here is what I am attempting to do in a Java concurrent program
    --------------- Code Start - Error description in the code snippet comments ---------------
    public void runProgram(CpContext pCpContext)
    DBTransactionImpl mDBTransactionImpl
    = new DBTransactionImpl(pCpContext.getJDBCConnection());
    OAApplicationModule am = null;
    // At this point I tried to call various methods on DBTransactionImpl
    // And each method call, causes the CP to error with a different exception
    // Calling findApplicationModule() causes the following exception
    // java.lang.NullPointerException
    // at oracle.jbo.server.DBTransactionImpl.findApplicationModule(DBTransactionImpl.java:4840)
    // at xxicon.oracle.apps.xbol.pa.cp.XXIconImportUnitsFrmXls.runProgram(XXIconImportUnitsFrmXls.java:101)
    // at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    am = mDBTransactionImpl.findApplicationModule(IMPORT_UNITS_AM_INS);
    // Calling createApplicationModule() causes the following exception
    // java.lang.NullPointerException
    // at oracle.jbo.server.DBTransactionImpl.createApplicationModule(DBTransactionImpl.java:4954)
    // at xxicon.oracle.apps.xbol.pa.cp.XXIconImportUnitsFrmXls.runProgram(XXIconImportUnitsFrmXls.java:109)
    // at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    am = mDBTrx.createApplicationModule( IMPORT_UNITS_AM_INS
         ,IMPORT_UNITS_AM_DEF);
    // Calling isConnected() causes the following exception
    // java.lang.NullPointerException
    // at oracle.jbo.server.DBTransactionImpl.isConnected(DBTransactionImpl.java:4335)
    // at xxicon.oracle.apps.xbol.pa.cp.XXIconImportUnitsFrmXls.runProgram(XXIconImportUnitsFrmXls.java:65)
    // at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    if (mDBTransactionImpl.isConnected())
    // Log the fact that DBTrx is connected
    --------------- Code End - Error description in the code snippet comments ---------------
    Would someone be kind enough to tell me what is it that I am doing wrong here?
    Thanks a ton!
    KH
    Message was edited by: Kiran
    kiran.k.hegde

    Kiran,
    How did you convert/cast the CpContext into an AppsContext to supply to createRootAM?
    Would you maybe share some more code?
    Update
    No need for that, a simple
    public void runProgram( CpContext ctx )
    String amName;
    String methodName;
    OAApplicationModuleFactory amF = new OAApplicationModuleFactory();
    OAApplicationModule am = amF.createRootOAApplicationModule( ctx, amName );
    am.invokeMethod( methodName );
    will do...
    Message was edited by:
    TyskJohan

  • Calling Web service from Java Concurrent Program

    Hi,
    I created a Java concurrent program and created executable. Here is my code.
        public void runProgram(CpContext ctx) {
            String value = "Java Concurrent Program Testing";
            Hello hell = new Hello();
            String returnValue = hell.testURL(value);
            if(returnValue.equalsIgnoreCase("TRUE")){
                ctx.getLogFile().writeln("-- Java Concurrent Program Testing --", 0);
                ctx.getOutFile().writeln("-- Java Concurrent Program Testing --");
                ctx.getReqCompletion().setCompletion(ReqCompletion.NORMAL, "");
            else{
                ctx.getLogFile().writeln("-- Hello World! --", 0);
                ctx.getOutFile().writeln("-- Hello World! --");
                ctx.getReqCompletion().setCompletion(ReqCompletion.NORMAL, "");
        }testURL() call the web service and get the response. but when I am selecting View Output option I am always geting out put as
    -- Hello World! --I tested the logic of calling web service. It giving me out put "true". Here is my Web service calling code
        public String testURL(String Value){
            HttpURLConnection httpConn = null;
            ByteArrayOutputStream bout = null;
            String setWebServiceURLResponse = "";
            String responseString="";
            String outputString = "";
            try{
                httpConn = getHttpConnection();
                bout = new ByteArrayOutputStream();
                String xmlInput = soapBodyStart +
                "<ns1:getTestURL>\n" +
                "            <ns1:URL>"+Value+"</ns1:URL>\n" +
                "        </ns1:getTestURL>"+
                soapBodyEnd;
                byte[] buffer = new byte[xmlInput.length()];
                buffer = xmlInput.getBytes();
                bout.write(buffer);
                byte[] b = bout.toByteArray();
                httpConn = setHttpConnectionRequest(b,httpConn);
                //Read the response.
                InputStreamReader isr = new InputStreamReader(httpConn.getInputStream());
                BufferedReader in = new BufferedReader(isr);
                //Write the SOAP message response to a String.
                while ((responseString = in.readLine()) != null) {
                    outputString = outputString + responseString;
                //Parse the String output to a org.w3c.dom.Document and be able to reach every node with the org.w3c.dom API.
                Document document = parseXmlFile(outputString);
                String formattedSOAPResponse = formatXML(outputString);
                System.out.println("Formatted response = \n" +formattedSOAPResponse);
                //NodeList nodes = document.getElementsByTagName("setWebServiceURLResponse");
                //NodeList nodes = document.getElementsByTagName("getTestURLResponse");
                 NodeList nodes = document.getElementsByTagName("ns0:getTestURLResponse");
                int len = nodes.getLength();
                System.out.println("Inside testURL Node Lenght  = "+ len);
                for(int s=0; s<nodes.getLength() ; s++){
                    Node authenticateResultNode = nodes.item(s);
                    if(authenticateResultNode.getNodeType() == Node.ELEMENT_NODE){
                        Element authenticateResultElement = (Element)authenticateResultNode;
                        //NodeList authenticateResultValueNode = authenticateResultElement.getElementsByTagName("ns0:return");
                        //NodeList authenticateResultValueNode = authenticateResultElement.getElementsByTagName("return");
                         NodeList authenticateResultValueNode = authenticateResultElement.getElementsByTagName("ns0:return");
                        Element authenticateResultValue = (Element)authenticateResultValueNode.item(0);
                        NodeList textFNList = authenticateResultValue.getChildNodes();
                        //System.out.println("Authenticate Result : " + ((Node)textFNList.item(0)).getNodeValue().trim());
                         setWebServiceURLResponse = ((Node)textFNList.item(0)).getNodeValue();
                         //System.out.println("Authenticate Response in getAuthenticate method : " + authenticateresponse);
                    }//end of if clause
                }//end of for loop with s var
                System.out.println("Inside setWebServcieURLToFile response = " + setWebServiceURLResponse);
            catch(Exception e){
                e.printStackTrace();
            return setWebServiceURLResponse;
        }Where I am going wrong ?
    Regards,
    Ajay Sharma

    sample code:
    static string url = "http://my.webservice.url"; ---------------> The actual web service URL
    Call = new Call(url); --------------------------------------------------> The call object used by JAX-RPC
    Object[] params = new Object[]{param1, param2};---------> build the call parameters
    Boolean/Integer/Whatever result = call.invoke("method name", params);------>call the invoke method to get the result

  • How to call a BPEL process from Oracle Apps Java Concurrent program

    Hello,
    I need to trigger a BPEL process from Oracle Apps. Can anybody tell me how to do that? I have two triggering option--
    1. On button click from a Form 6i screen
    2. Using Java Concurrent program.
    Thanks in advance.
    Debkanta

    I am not sure how concurrent program works, but may be one of the way might work out, let me know if Java Concurrent Program works a bit different way
    - [if async] Through concurrent program, you can insert message token to db or aq, and BPEL can be instantiated from there
    or
    - If it supports pure java call, then you can look at multiple documents (e.g. http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Tutorial7-InvokingBPELProcesses.pdf) to invoke your process
    - You can also use oracle db utility to invoke soap operation and get the result back
    HTH,
    Chintan

  • Invoke Java Concurrent program from PL/ SQL

    Hi Experts,
    I 've a requirement to invoke a Java Concurrent program form PL/ SQL. I 've defined default values for some of the parameters in the Java Concurrent program definition and some parameters do not have a default value. I would like to provide only the mandatory attributes that do not have a default value set from my PL/ SQL code. Can you please suggest how this can be achieved?
    I tried giving null for those attributes. But, the java program takes a "" value instead of the default values. Any inputs here will be immensely helpful.
    Thanks,
    Ganapathi

    Updating the correct format to be used for reference:
    The correct format is:
    fnd_request.submit_request(
    application => 'PDT_CODE',
    program => 'PGM_NAME', --program IN varchar2 default NULL,
    start_time=> SYSDATE, --start_time IN varchar2 default NULL,
    sub_request => FALSE, --sub_request IN boolean default FALSE
    argument1 => rowdata,
    argument2 => xxx
    Note: the parameter name should be "argument1...n" (and not the actual argument name).
    But I noticed that for parameters that are missed out, the default values still do not take effect. Can anyone please confirm this behavior?
    Thanks,
    Ganapathi

  • 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

  • Java Concurrent Program Errors out

    Hi All,
    Request you to help me in this issue as this is on high priority.
    we have registered a Java Concurrent Program Named Genus Merge Two P45 Pdf's which gives the output in pdf format.
    The concurrent program errors out showing the log as follows :
    GENUS Custom: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    GEN_MERGE_TWO_PDFS module: Genus Merge Two P45 Pdf's
    Current system time is 10-MAR-2010 07:10:43
    Exception in static block of jtf.cache.appsimpl.AppsCacheLogger. Stack trace is: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1509)
         at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:362)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:210)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:169)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1201)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1044)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1013)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:980)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:967)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:593)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:570)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:292)
         at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1002)
         at oracle.apps.jtf.cache.ArchitectureWrapper.createAppsContextWithDBCFile(ArchitectureWrapper.java:143)
         at oracle.apps.jtf.cache.ArchitectureWrapper.createDefaultAppsContext(ArchitectureWrapper.java:107)
         at oracle.apps.jtf.cache.ArchitectureWrapper.createAppsContext(ArchitectureWrapper.java:96)
         at oracle.apps.jtf.cache.appsimpl.AppsCacheLogger.<clinit>(AppsCacheLogger.java:43)
         at oracle.apps.jtf.cache.appsimpl.AppsCacheEnvironment.getCacheLogger(AppsCacheEnvironment.java:67)
         at oracle.apps.jtf.cache.CacheManager.initCache(CacheManager.java:711)
         at oracle.apps.jtf.cache.CacheManager.<clinit>(CacheManager.java:378)
         at oracle.apps.fnd.cache.Cache.setCacheFullName(Cache.java:228)
         at oracle.apps.fnd.cache.Cache.initCache(Cache.java:114)
         at oracle.apps.fnd.cache.Cache.<init>(Cache.java:89)
         at oracle.apps.fnd.cache.AppsCache.<init>(AppsCache.java:86)
         at oracle.apps.fnd.cache.AolCaches.getCache(AolCaches.java:155)
         at oracle.apps.fnd.profiles.Profiles.<clinit>(Profiles.java:241)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.init(ExtendedProfileStore.java:498)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.<init>(ExtendedProfileStore.java:119)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.apps.fnd.common.AppsContext.instantiateProfileStore(AppsContext.java:3959)
         at oracle.apps.fnd.common.AppsContext.makeProfileStore(AppsContext.java:780)
         at oracle.apps.fnd.common.Context.setProfileStore(Context.java:767)
         at oracle.apps.fnd.common.Context.setProfileStore(Context.java:749)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:564)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:292)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
    Caused by: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1321)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:1062)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:752)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:297)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1720)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2306)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2243)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2101)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1910)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1754)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1767)
         at oracle.apps.fnd.common.Context.getJDBCConnection(Context.java:1453)
         at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:168)
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1500)
         ... 44 more
    Caused by: java.lang.AbstractMethodError: oracle.sql.LnxLibThin.lnxnuc([BILjava/lang/String;)Ljava/lang/String;
         at oracle.sql.NUMBER.toInt(NUMBER.java:414)
         at oracle.jdbc.dbaccess.DBConversion.NumberBytesToInt(DBConversion.java:2959)
         at oracle.jdbc.driver.OracleStatement.getIntValue(OracleStatement.java:4596)
         at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:536)
         at oracle.apps.fnd.security.ConnectionManager.setClientData(ConnectionManager.java:1497)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1446)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1325)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:884)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:962)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:780)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:246)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1308)
         ... 57 more
    Exception in static block of jtf.cache.CacheManager. Stack trace is: oracle.apps.jtf.base.resources.FrameworkException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.jtf.cache.CacheManager.initCache(CacheManager.java:718)
         at oracle.apps.jtf.cache.CacheManager.<clinit>(CacheManager.java:378)
         at oracle.apps.fnd.cache.Cache.setCacheFullName(Cache.java:228)
         at oracle.apps.fnd.cache.Cache.initCache(Cache.java:114)
         at oracle.apps.fnd.cache.Cache.<init>(Cache.java:89)
         at oracle.apps.fnd.cache.AppsCache.<init>(AppsCache.java:86)
         at oracle.apps.fnd.cache.AolCaches.getCache(AolCaches.java:155)
         at oracle.apps.fnd.profiles.Profiles.<clinit>(Profiles.java:241)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.init(ExtendedProfileStore.java:498)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.<init>(ExtendedProfileStore.java:119)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.apps.fnd.common.AppsContext.instantiateProfileStore(AppsContext.java:3959)
         at oracle.apps.fnd.common.AppsContext.makeProfileStore(AppsContext.java:780)
         at oracle.apps.fnd.common.Context.setProfileStore(Context.java:767)
         at oracle.apps.fnd.common.Context.setProfileStore(Context.java:749)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:564)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:292)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
    Caused by: oracle.apps.jtf.base.resources.FrameworkException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)
         at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)
         at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)
         ... 24 more
    Exception in thread "main" oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1321)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:1062)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:752)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:297)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1720)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2306)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2243)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2101)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2481)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2416)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2397)
         at oracle.apps.fnd.common.ProfileCache.getProfileObject(ProfileCache.java:110)
         at oracle.apps.fnd.common.NativeProfileStore.getSpecificProfileFromDB(NativeProfileStore.java:375)
         at oracle.apps.fnd.common.NativeProfileStore.getProfile(NativeProfileStore.java:314)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1201)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1044)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1013)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:980)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:967)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:570)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:593)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:570)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:292)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
         at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
    Caused by: java.lang.AbstractMethodError: oracle.sql.LnxLibThin.lnxnuc([BILjava/lang/String;)Ljava/lang/String;
         at oracle.sql.NUMBER.toInt(NUMBER.java:414)
         at oracle.jdbc.dbaccess.DBConversion.NumberBytesToInt(DBConversion.java:2959)
         at oracle.jdbc.driver.OracleStatement.getIntValue(OracleStatement.java:4596)
         at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:536)
         at oracle.apps.fnd.security.ConnectionManager.setClientData(ConnectionManager.java:1497)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1446)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1325)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:884)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:962)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:780)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:246)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1308)
         ... 26 more
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    oracle.apps.genus.utils.MergePdfs
    Program exited with status 1
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 10-MAR-2010 07:10:47
    ---------------------------------------------------------------------------

    Hi,
    FYI,
    I am not sure about this error,
    Use the following links, hope it may solve your problem,
    http://oracleappstechnology.blogspot.com/2007/09/oracleappsfndcommonpoolexception.html
    http://www.appsdbatechstuff.com/2008/06/java-workflow-mailer-does-not-startup.html
    http://it.toolbox.com/wiki/index.php/Oracle_Apps_-JavaConcurrent_Program
    Io exception: The Network Adapter could not establish the connection
    Regards,
    Hari

  • 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 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

  • 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?
    Thanks

    Also go through the metalink Note:250964.1
    It goes through the complete process of creating a sample java conc process and implementing it.
    --Shiv                                                                                                                                                                                                                                                                                                                   

  • Java Concurrent Program issue

    Hello,
    I am fairly new the Java Concurrent Programs concept. I was just trying a simple Hello World example but I cannot seem to run it from the operating system. Here is my Hello World java program I created using Jdeveloper:
    package 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, "");
    It compiles fine in Jdev generating the class file. Here is what I did :
    1) Created directory under $JAVA_TOP as follows :
    mkdir $JAVA_TOP/oracle/apps/fnd/cp/sample
    2) moved the Hello.java file there under sample directory
    3) compiled java file using avac $JAVA_TOP/oracle/apps/fnd/cp/sample/Hello.java ( It compiles fine generating the class file )
    4) Now I wanted to test running it : I tried using jre command first as I saw in other posts but this is not working :
    jre -Ddbcfile=$FND_TOP/secure/k021kp-6180_r115dev1.dbc -Drequest.outfile=/export/home/sqadri/outfile oracle.apps.fnd.cp.request.Run oracle.apps.fnd.cp.sample.Hello
    Error :
    ksh: jre: not found
    Then I tried using the other way I saw on posts which is using the java command :
    java -cp $AF_CLASSPATH -Ddbcfile=$FND_TOP/secure/k021kp-6180_r115dev1.dbc -Drequest.outfile=/export/home/sqadri/outfile oracle.apps.fnd.cp.request.Run oracle.apps.fnd.cp.sample.Hello
    This gives me the following error :
    java.lang.NoClassDefFoundError: oracle/apps/fnd/cp/sample/Hello (wrong name: oracle/apps/fnd/cp/request/Hello)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Can anyone tell me what I am doing wrong ? I have tried everything even tried ftp the class file from my local but I get the same error. Any help would be appreciated.
    Thanks

    Ajay,
    Yes you are right. I did not register my java program yet in the concurrent programs.
    I thought I could test it out from the operating system command line before registering it. But looking at your document you sent me it seems I have to do all the steps i.e. define concurrent program etc before I can test it from the operating system. If that's the case then what's the use of trying to test it via operating system using
    java -cp $AF_CLASSPATH -Ddbcfile=$FND_TOP/secure/k021kp-6180_r115dev1.dbc -Drequest.outfile=/export/home/sqadri/outfile oracle.apps.fnd.cp.request.Run oracle.apps.fnd.cp.sample.Hello
    Thanks
    Syed

Maybe you are looking for