<-----Google Analytics Code Start----> <-----Google Analytics Code Close---->
Skip to content

Green

color

Default screen resolution  Wide screen resolution  Increase font size  Decrease font size  Default font size  Skip to content Default color Pink color Green color Green color
Home arrow Technical Articles arrow Oracle Application Framework arrow Java Concurrent Programs in Oracle
This website has now moved to http://apps2fusion.com





Java Concurrent Programs in Oracle | Print |  E-mail
Written by Anil Passi   
Monday, 04 December 2006
Please find an article that explains basics of a Java Concurrent Programs, with a working example, ciring various features of a Java Concurrent Program.

Why the need for java concurrent program when we can write pl/sql concurrent programs?
Let’s admit PL/SQL is primarily an Oracle database language. What if you wish to do the following seamlessly in a single pl/sql concurrent program:-
Scenario 1.  FTP the file from a server securely, validate and load into apps using an API
Scenario 2.  Connect to a non-oracle database using JDBC, fetch the data, load into Apps Custom tables, validate/transform and interface using API.

For the above scenario (1), yes you may find a way of doing so PL/SQL, but that will be clumsy, as you will write a host program followed by loader, followed by Oracle PL/SQL.
However in case of Java Concurrent Program, you can google on ftp classes, download, put those into your CLASSPATH, and its there to be used.

For scenario(2), in PL/SQL your DBA will need to setup Gateways, which is an infrastructural overhead, and also an overkill for simple requirement just to get data from a SQL*Server.  



What should be the best practice for developing Java Concurrent Program?
Do not try to write massive PL/SQL operations inside java concurrent program directly. For simplicity, call a PL/SQL package procedure/function with parameters from java concurrent program. I tend to use java only where PL/SQL is found to be deficient.



I wish to interface newly created employee records from PeopleSoft regularly, given that this specific PeopleSoft instance is in SQL*Server database, tell me the steps for such point to point interface?
1.
Download free jdbc driver for SQL*Server from this link to an educational site

2. Unzip the jdbc zip file on you server, note down the directory location. You may decide to dump that into $JAVA_TOP, but please do not clutter JAVA_TOP in apps.

3. Open jDeveloper, and ensure that your project has in its CLASSPATH the entire oracle FND Classes. You may need to FTP those classes from $JAVA_TOP/oracle/apps/fnd to your PC.
Although, I vaguely remember that FND Classes come bundled with patch 4573517.
Develop your java concurrent program class xxInterfaceFromPeopleSoft, by implementing class JavaConcurrentProgram

4. Navigate to Application Developer responsibility, Register concurrent program executable xxInterfaceFromPeopleSoft of type java

5. Define concurrent program, and in option field enter the CLASSPATH. See the next step carefully.

6. CLASSPATH...you can either change the CLASSPATH of the Oracle Apps environment or you can override the CLASSPATH per concurrent program. I think the decision will be driven by how many Java Concurrent Programs you plan to develop.
Anyway, in the option field, include the following directories with their absolute path
$JAVA_TOP:apps.zip with path:appsborg.zip:your custom directory where java/jdbc files will be stored.

7. In java concurrent program do this....
Inside main
-->Open JDBC connection to Sql*Server
Note: - You already have a connection object for APPS, given by CpContext.getJDBCConnection()
-->Here lies the beauty, you have now connections to both SQL*Server and Apps in one single program.
-->Get the records into result set.
-->Call the PL/SQL wrapper code, which in turn will use TCA API’s
You can write into Concurrent program log within java concurrent program.


Before I paste a sample java concurrent program, let’s have some important notes:-
1. Can I write into log and output of concurrent program, i.e. equivalent  FND_FILE?
Answer : Yes, you can use logFile.writeln

2. Will I have fnd_global context set in jcp?
Answer: Yes, internally the java classes call fnd_global before passing you the connection object.

3. Is java concurrent program stable?
Answer : Yes, very stable. I have been using this for 4years to do variety of things, ever since it was released in 11.5.8.

4. Can I make a Java Concurrent Program end with warning?
Answer: Yes you can, by doing CpContext.getReqCompletion.setCompletion(ReqCompletion.WARNING, pCompletionText)

5. On which server should the class file be deployed?
Answer : On the server where your Concurrent Managers are running, which traditionally is the database server.

Please find the same java concurrent program for interfacing with pseudo PeopleSoft.
The code below contains compiled example for all the above operations.


import java.sql.*;
import oracle.jdbc.driver.OracleCallableStatement;
import oracle.apps.fnd.cp.request.* ;
import java.io.*;
import oracle.apps.fnd.util.*;

/**
 * Demo by Anil Passi for http://oracle.anilpassi.com
 * This class will interface data from a pseudo Peoplsoft SQL Server into APPS
 */


public class xxInterfaceFromPeopleSoft implements JavaConcurrentProgram {
    // Application Short Name
    private String applName;

    // Single CUSTOMER Number for which the process is being run
    private String singleCUSTOMERNumber;
    private String singleCUSTOMERNumberTemp;

    // The order by clause
    private String orderByClauseSQL;

    //File Separator
    private String mFileSeparator;

    //
    private String mControlFilepath;

    // Debug Flag
    private String mDebugFlag;

    // mPeopleSoftServerName fetched from profile
    private String mPeopleSoftServerName;

  //1=Yes,  2=No
  private String errorsEncounteredFlag ;

    CpContext mCtx;

    LogFile logFile;

    OutFile outFile;

    Connection mConn = null;

    ReqCompletion lRC;

    int mRequestStatus = -1; //uninitialized

  //to set the maximum number of records that can be processed
     int max_number_of_records = 99999999;
//    long max_number_of_records = 2;
    public static final String M_SUCCESS = "SUCCESS";

    public static final String M_ERROR = "ERROR";

    public static final String M_WARNING = "WARNING";

    String mProfileValue = " Declare l_value     Varchar2(50); " + " BEGIN "
            + " :1 := FND_PROFILE.VALUE(:2); " + " END;";

    String doesErrorExist = " Declare l_value     Varchar2(50); " + " BEGIN "
            + " :1 := xxPeopleSoftInterfacePkg.does_error_exist; " + " END;";

    String mLastRunDate = " Declare l_value     Varchar2(50); " + " BEGIN "
            + " :1 := xxPeopleSoftInterfacePkg.get_last_run_date(:2); " + " END;";

    String mCaptureIFaceCtrl = " Declare " + " BEGIN "
            + " xxPeopleSoftInterfacePkg.capture_control_record ; "
            + " END;";

    private void registerControlRecord()
  {
        OracleCallableStatement lStmt_ctrl = null;
        try {
      logMessage("Inside registerControlRecord()");
            lStmt_ctrl = (OracleCallableStatement) mConn
                    .prepareCall(mCaptureIFaceCtrl);

            lStmt_ctrl.execute();
            lStmt_ctrl.close();
        } catch (SQLException s) {
            logMessage(
                    "In Caputre Trx registering control record: Exception thrown w/ error message: "
                            + s.getMessage(), "Y");
            lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
            s.printStackTrace();
        }    finally {
            try {
                if (lStmt_ctrl != null)
                    lStmt_ctrl.close();
            } catch (SQLException e) {
            }
        }
  }

    private void logMessage(String str, String lDebugMode) {
        java.util.Date now = new java.util.Date();
        logFile.writeln(now.toString() + ": " + str, LogFile.STATEMENT);
    }

    private void logMessage(String str) {
        java.util.Date now = new java.util.Date();
    logFile.writeln(now.toString() + ": " + str, LogFile.STATEMENT);
    }

    /**
     * A generic method made to return the profile value of the passed profile
     * name.
     */
    private String getProfileValue(String profile) {
        String l_debug_mode = null;
        OracleCallableStatement lStmt = null;

        try {
            lStmt = (OracleCallableStatement) mConn.prepareCall(mProfileValue);
            lStmt.setString(2, profile);
            lStmt.registerOutParameter(1, java.sql.Types.VARCHAR, 0, 255);
            lStmt.execute();
            l_debug_mode = lStmt.getString(1);
            lStmt.close();

            logMessage("Profile '" + profile + "' Value : " + l_debug_mode,
                    mDebugFlag == null ? "Y" : mDebugFlag);

        } catch (SQLException s) {
            logMessage(
                    "FileLoader.getProfileValue(): Exception thrown w/ error message: "
                            + s.getMessage(), "Y");
            lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
            s.printStackTrace();
        } finally {
            try {
                if (lStmt != null)
                    lStmt.close();
            } catch (SQLException e) {
            }
        }
        return (l_debug_mode);
    }


    private String getErrorFlag() {
        String l_error_flag = null;
        OracleCallableStatement lStmt = null;

        try {
            lStmt = (OracleCallableStatement) mConn.prepareCall(doesErrorExist);
            lStmt.registerOutParameter(1, java.sql.Types.VARCHAR, 0, 255);
            lStmt.execute();
            l_error_flag = lStmt.getString(1);
            lStmt.close();
            logMessage("Error API Returned '" + "' Value : " + l_error_flag);

        } catch (SQLException s) {
            logMessage(
                    "Exception thrown in getErrorFlag: "
                            + s.getMessage(), "Y");
            lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
            s.printStackTrace();
        } finally {
            try {
                if (lStmt != null)
                    lStmt.close();
            } catch (SQLException e) {
            }
        }
        return (l_error_flag);
    }


    public String getMessage(String appName, String msgName) {

        if (mCtx != null && mCtx.getResourceStore() != null)
            return (mCtx.getResourceStore().getResourceText(appName, msgName));
        else
            return msgName;
    }


    /**
     * Returns the file separator
     */
    private String getFileSeparator() {
        return (System.getProperty("file.separator"));
    }


    static Connection con = null;
//    static Connection oraConn = null; 

    static String mCaptureCustomer = " Declare " + " BEGIN "
            + " xxPeopleSoftInterfacePkg.manage_Customer(p_CUSTOMER => :1,"
            + " p_peopleSoft_customer_id => :2, "
            + " p_deleted => :3, "
            + " p_name => :4, "
            + " p_parentCustomerName => :5, "
            + " p_type_ => :6"     
      + "); "
            + " END;";


// ####################### Begin manage_Customer #######################
    private void manage_Customer
  (
    String p_CUSTOMER
  , String p_peopleSoft_customer_id
  , String p_deleted
  , String p_name
  , String p_parentCustomerName
  , String p_type_
  )
    {
        String l_debug_mode = null;
        OracleCallableStatement lStmt = null;
                    logMessage("Fetching data for Customerator CUSTOMER=>"
                            + p_CUSTOMER +  "   Deletion Flag=>"+ p_deleted);

        try {
            lStmt = (OracleCallableStatement) mConn
                    .prepareCall(mCaptureCustomer);
            lStmt.setString(1, p_CUSTOMER);
            lStmt.setString(2, p_peopleSoft_customer_id);
            lStmt.setString(3, p_deleted);
            lStmt.setString(4, p_name);
            lStmt.setString(5, p_parentCustomerName);     
            lStmt.setString(6, p_type_);
            lStmt.execute();
            lStmt.close();
        } catch (SQLException s) {
            logMessage(
                    "In Caputre for CUSTOMER=>" + p_CUSTOMER + " Exception thrown w/ error message: "
                            + s.getMessage(), "Y");
      //            lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
            s.printStackTrace();
        }
    finally {
            try {
                if (lStmt != null)
                    lStmt.close();
            } catch (SQLException e) {
            }
        }
    }
// ####################### End manage_Customer #######################



    public void openConection() {
      logMessage( "In  openConection()");
        try {
      logMessage( "Before Loading Driver com.microsoft.jdbc.sqlserver.SQLServerDriver");   
            Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
      logMessage( "After Loading Driver com.microsoft.jdbc.sqlserver.SQLServerDriver");         
      logMessage( "Attempting to connect to " + mPeopleSoftServerName);
     
            con = DriverManager
                    .getConnection("jdbc:microsoft:sqlserver://" + mPeopleSoftServerName + ":1433;User=pplsoft_apps;Password=guestpeoplesoft");
      //Use the default port for PeopleSoft SQL*Server 1433
      logMessage( "After con assigned from getConnection(jdbc:microsoft:sqlserver://" + mPeopleSoftServerName + ":1433;User=pplsoft_apps;Password=*****");

        } catch (java.lang.ClassNotFoundException e) {
            logMessage("openConection() ClassNotFoundException: " + e);
        } catch (SQLException ex) {
            logMessage("openConection() SQLException: " + ex);
        }
    }

    public void closeSQLServerConnection() {
        try {
      logMessage( "In  closeSQLServerConnection().......closing JDBC Connection");
      if (con != null)
      {
      logMessage( "Con is not null");
        con.close();
      logMessage( "Con Closed Successfully");       
      }
      else
        logMessage( "Connection object was null, hence skipping close");
        } catch (SQLException ex) {
            logMessage("SQLException: " + ex);
        }
    catch (Exception ex) {
            logMessage("Exception in closeSQLServerConnection() : " + ex);
        }   
    }

    /**
     * Method that returns the date when this interface ran the last time
     */
    private Date getLastRunDate() {
        String l_debug_mode = null;
        CallableStatement lStmt = null;
    Date lastRunDate = null;
        try {
            lStmt = (CallableStatement) mConn.prepareCall(mLastRunDate);
            lStmt.setString(2, singleCUSTOMERNumberTemp);
            lStmt.registerOutParameter(1, Types.DATE);
            lStmt.execute();
            lastRunDate  = lStmt.getDate(1);
            lStmt.close();
            logMessage("getLastDate is returning : " + lastRunDate , "Y");

        } catch (SQLException s) {
            logMessage(
                    "getLastRunDate(): Exception thrown w/ error message: "
                            + s.getMessage(), "Y");
            lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
            s.printStackTrace();
        } finally {
            try {
                if (lStmt != null)
                    lStmt.close();
            } catch (SQLException e) {
            }
        }
        return (lastRunDate);
    }


    private void processPeopleSoftCustomerRecords() {
        int number_of_recs = 0;
 Date lastRunDate = getLastRunDate();
//############# Begin Customerator #############    
        try {
            {

                PreparedStatement stmt = con.prepareStatement("SELECT CUSTOMER_NUMBER ,Customer_id ,deleted_flag ,CustomerName ,Parent_Customer_name FROM   pplapps.PeopleSoftCustomerView WHERE ModifiedWhen >= ?" + singleCUSTOMERNumber + orderByClauseSQL );

        stmt.setDate(1,lastRunDate);

                ResultSet rst = stmt.executeQuery();

                while (rst.next()) {
                    number_of_recs++;
                    if (number_of_recs == max_number_of_records)
                        break;

                manage_Customer(
         rst.getString(1), rst.getString(2)
        ,rst.getString(3), rst.getString(4)
        ,rst.getString(5), "" /*We do not have any value for Customer
                               * Type_ from peoplesoft*/
        );
                }
                stmt.close();
                rst.close();
            }
      mConn.commit();
        } catch (SQLException ex) {
            logMessage("SQLException: " + ex);
        }
    catch (Exception ex) {
            logMessage("Exception:: " + ex);
        }
   
        closeSQLServerConnection();


    }


    /**
     * Concurrent Processing provides an interface 'JavaConcurrentProgram' with
     * abstract method runProgram().
   * It is within this method that we load the SQL*Server Driver for
   * TCA Customers.
   * All the inserts/updates in APPS will be done using various TCA PL/SQL
   * APIs within xxPeopleSoftInterfacePkg
     */
    public void runProgram(CpContext pCpContext) {
        applName = "MSC"; 
        String l_file_path = null;
        String l_msc_top = null;
        mCtx = pCpContext;

        //get handle on request completion object for reporting status
        lRC = pCpContext.getReqCompletion();

        // assign logfile
        logFile = pCpContext.getLogFile();

        // assign outfile
        outFile = pCpContext.getOutFile();

        // get the JDBC connection object
        mConn = pCpContext.getJDBCConnection();

        // assign fileseparator
        mFileSeparator = getFileSeparator();

        //get debug mode
        mDebugFlag = getProfileValue("XX_ENABLE_DEBUG_MODE");

        //get Pubs server name
        mPeopleSoftServerName = getProfileValue("XX_PEOPLESOFT_SERVER_NAME");

        l_file_path = ((new File(outFile.getFileName())).getParent() == null ? ""
                : (new File(outFile.getFileName())).getParent());

        // get parameter list object from CpContext
        ParameterList lPara = pCpContext.getParameterList();
    while(lPara.hasMoreElements())
    {
     NameValueType aNVT = lPara.nextParameter() ;
     //Currently using only one Parameter, else we need to use aNVT.getName
     singleCUSTOMERNumber = aNVT.getValue() ;
     singleCUSTOMERNumberTemp = singleCUSTOMERNumber ;
    }

    if (!(singleCUSTOMERNumber == null || singleCUSTOMERNumber == ""))
      singleCUSTOMERNumber = " and CUSTOMER = " + singleCUSTOMERNumber ;

    orderByClauseSQL = " order by ModifiedWhen, ID " ;

    logMessage("singleCUSTOMERNumber=>"+ singleCUSTOMERNumber );
   
    /** openConection() Opens the connection to SQL Server Database*/
    openConection() ;
    logMessage("Before Calling processPeopleSoftCustomerRecords()");
        processPeopleSoftCustomerRecords();
    logMessage("After Calling processPeopleSoftCustomerRecords()");
    logMessage("singleCUSTOMERNumber=>" + singleCUSTOMERNumber );
    //The control record will be registered only when the CUSTOMER passed in is NULL
    if (singleCUSTOMERNumber == null || singleCUSTOMERNumber == "")
    {
      logMessage("singleCUSTOMERNumber=>" + singleCUSTOMERNumber );   
      registerControlRecord() ;
    }
        try
    {
            // get OutFile object from CpContext
            OutFile lOF = pCpContext.getOutFile();
      errorsEncounteredFlag = getErrorFlag() ;
      if (errorsEncounteredFlag.equals("1"))
                  setCompletion(ReqCompletion.WARNING, "Request Encountered some errors");
      else
      {
            outFile.writeln("No Errors Encountered.");
                  setCompletion(ReqCompletion.NORMAL, "Request Completed Normal");
      }
     
        } catch (Exception e) {
            setCompletion(ReqCompletion.ERROR, e.toString());
        } finally {
            pCpContext.releaseJDBCConnection();
        }       
    }
    /**
     * Sets the request completion status based on proper precedence. ERROR >
     * WARNING > NORMAL
     *
     * @param pStatus
     *            Status of the request.
     * @param pCompletionText
     *            Request's completion text.
     */
    public void setCompletion(int pStatus, String pCompletionText) {
        if ((pStatus == ReqCompletion.ERROR)
                || ((pStatus == ReqCompletion.WARNING) && (mRequestStatus != ReqCompletion.ERROR))
                || ((pStatus == ReqCompletion.NORMAL)
                        && (mRequestStatus != ReqCompletion.WARNING) && (mRequestStatus != ReqCompletion.ERROR))) {
            mRequestStatus = pStatus;
            lRC.setCompletion(pStatus, pCompletionText);
        }
    } 
}

Comments (24)add
...
written by Runa Shrivastava , December 17, 2006
Anil,
I am trying to do something similar as the sample code above. The code would be a great help . Thanks!

I have 2 questions:
1. On which location should we usually keep a custom java class. Should we define in a new package or keep it under the apps package. I dont see any standards mentioned for custom java files. Your java class is not under any package currently.
2. I am planning to send an email to a predefined group informing about any failure of the concurrent request. Should I be writing a java sendmail class or call in pl/sql procedure from java using sendmail.
...
written by Runa Shrivastava , December 17, 2006
Anil,
I am trying to do something similar as the sample code above. The code would be a great help . Thanks!

I have 2 questions:
1. On which location should we usually keep a custom java class. Should we define in a new package or keep it under the apps package. I dont see any standards mentioned for custom java files. Your java class is not under any package currently.
2. I am planning to send an email to a predefined group informing about any failure of the concurrent request. Should I be writing a java sendmail class or call in pl/sql procedure from java using sendmail.
...
written by ajay singh , December 29, 2006
hai anil
my name is ajay singh i m from mumbai .i m new for oracle apps technical . i want more information ab this and also want to do the project .
can you guide me
...
written by ajay singh , December 29, 2006
hai anil
my name is ajay singh i m from mumbai .i m new for oracle apps technical . i want more information ab this and also want to do the project .
can you guide me
...
written by Suresh , December 30, 2006
thank u very much for ur informative website it is very helpfull to me and i have few clarifications as listed below in the OA frame work plss help me in this
1.How to insert the data in to the tables by oa frames?
2. How to register the frame designed in the OA Framework in to apps?
3. How to see and personalize the Frames already exiasting in the apps these are the three big Question Marks for me in the OA Framework,
i request u plsss help me in this issues plsssss.... i know u ill help me... thankssssss MY MAil : s_l_babu@Yahoo.co.in plsss send me the mail
...
written by Suresh , December 30, 2006
thank u very much for ur informative website it is very helpfull to me and i have few clarifications as listed below in the OA frame work plss help me in this
1.How to insert the data in to the tables by oa frames?
2. How to register the frame designed in the OA Framework in to apps?
3. How to see and personalize the Frames already exiasting in the apps these are the three big Question Marks for me in the OA Framework,
i request u plsss help me in this issues plsssss.... i know u ill help me... thankssssss MY MAil : s_l_babu@Yahoo.co.in plsss send me the mail
...
written by Runa Shrivastava , January 30, 2007
Hi Anil,

I did not thank you for your quick response to my queries.
I was checking up your other articles and you are doing a great job with this site here!!

Thank You.

Runa
...
written by kumar , April 05, 2007
Hi Anil,

I liked this site very much. The articles here are great and worth reading
...
written by kumar , April 05, 2007
Hi Anil,

I liked this site very much. The articles here are great and worth reading
...
written by Pritosh , May 13, 2007
Is there any API documentation available on
import oracle.apps.fnd.cp.request.* ;
import oracle.apps.fnd.util.*;
...
written by Anil Passi , May 14, 2007
Hi

Indeed there is documentation plus the java doc from OAF-jDeveloper[download the patch]. You can also look at sample programs in metalink and more importantly code for some of the seeded java concurrent programs delivered by Oracle.

If you have any specific questions on those APIs, then please feel free to ask

Thanks,
Anil Passi
...
written by Anil Passi , June 28, 2007
Thanks Rehan
...
written by Dan Hildreth , August 09, 2007
We tried ............

6. CLASSPATH...you can either change the CLASSPATH of the Oracle Apps environment or you can override the CLASSPATH per concurrent program. I think the decision will be driven by how many Java Concurrent Programs you plan to develop.
Anyway, in the option field, include the following directories with their absolute path
$JAVA_TOP:apps.zip with path:appsborg.zip:your custom directory where java/jdbc files will be stored.

We got...................
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/fnd/cp/request/Run

Any ideas?

...
written by venkats , September 12, 2007
Hi Anil,
Thanks a lot for your wonderful articles.
I learned a lot from this blog.
It would be great if you can put some articles on JSP customization in apps as well
That would be really helpful
thanks
...
written by jkjk , September 13, 2007
Hi Dan,
I have the same issue... I am in a Catch-22 situation. No matter what I put in the "Options" text field, even any gibberish, I get the same error - Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/fnd/cp/request/Run. When I leave the "Options" field blank I get java.lang.ClassNotFoundException: .

Anil, do you have any suggestions?

-----------------------------------------------------------------------
We tried ............

6. CLASSPATH...you can either change the CLASSPATH of the Oracle Apps environment or you can override the CLASSPATH per concurrent program. I think the decision will be driven by how many Java Concurrent Programs you plan to develop.
Anyway, in the option field, include the following directories with their absolute path
$JAVA_TOP:apps.zip with path:appsborg.zip:your custom directory where java/jdbc files will be stored.

We got...................
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/fnd/cp/request/Run

Any ideas?

Where will be the normal place where Oracle keeps the source code(.java) files for Java Concurrent programs ?
written by Hariram , October 18, 2007
If i want to see the source code of the java file which they used to develop the java concurrrent program, where would it be.
any standard path they would be in ?
Exception in thread "main" java.lang.NoClassDefFoundError
written by Sanket , January 08, 2008
I too followed your instructions on setting the classpath and received the same error as Dan and JkJk...

On analyzing I realized that Oracle Apps while executing the Java Concurrent Program is converting all periods "." to slashes "/" and hence it can not resolve anything. You must be having some work around. Can you please guide me as to how can I over-come this issue?

Thanks.

-Sanket
Exception in thread "main" java.lang.NoClassDefFoundError - Answer
written by Sanket , January 08, 2008
In the OPTIONS write the following

-classpath full_path_to_$AU_TOP/appsborg.zip:full_path_to_ur_directory/ur_classes.jar:full_path_to_ur_directory/ur_classes.zip

It is working GREAT now. :-D

Thanks.

-Sanket
...
written by Anil Passi , January 08, 2008
Thats right Sanket. You need to be using absolute path.
Although it becomes a real pain when environment gets cloned from production, as the absolute path must replaced again

Thanks
Anil Passi
On API Documentation again ...
written by Rehan Yusuf , January 19, 2008
hello Anil,

Coming back the API documentation bit, i was trying to make a JCP which submits another programatically. But I'm challenged by the documentation available on the seeded classes (ex. oracle.apps.fnd.cp.request.ConcurrentRequest). So, I raised a SAR with oracle to check availability on the documentation and I've been there isn't any.
I see a lot of potential for reusing some of the seeded classes in our custom programs, but the developer would be hampered by the lack of Javadoc for these classes.
Any thoughts around this ?

regards,
Rehan Yusuf
...
written by Anil Passi , January 19, 2008
It is debatable whether Oracle should provide documentation for java classes.
Unfortunately they dont.

However you can also decompile the java class using jad

Thanks,
Anil Passi
Documentation
written by Satish P , January 26, 2008
Hi Anil,

Great website!! you are going great help to the Oracle apps community for spreading knowledge. I have a question realted to this article. I am trying to find the documentation which outlines the tecnical details regarding Java concurrent program. Alos,want to know where can I get the documentation for all the AOL packages for Java concurrent programs.

-Thanks again,
Satya
Java concurrent program
written by Mad , February 26, 2008
I want to modify 'PoGenerateDocumentCP.class' which is registered as java concurrent program
.This is a first customisation we are doing on java concurrent program. Could you please send me steps implement after modifying this program. Should i change name of this program and copy under custom top retaining original path. Could you send steps for this customisation.
Java Concurrent program : UnsupportedClassVersionError
written by Hanumesh , March 07, 2008
Hi Anil,

I am new to Oracle Apps, i tried to Register a Sample Java Concurrent Program which Prints "Hello World" in Output file and Log file.
I registered the Java Class file successfully, when i tried to run the Program from Apps frontend its completing with error i found following Exceptions in Log file of the Request.
I have compiled the Java Program in JDK 1.5_0_7

What steps i need to take to resolve this problem ?

java.lang.UnsupportedClassVersionError: oracle/apps/fnd/gems/Hello (Unsupported major.minor version 49.0)
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)


Thanks in Advance,

You must be logged in to a comment. Please register if you do not have an account yet.

busy