GetCurrentRow error in innerTable.

In innerTable pass parameter current record to next page.
When use click wrong Outer in inner pass null.
Example: User click create new record button for master then this master is currenct correct process user should click create detail of this master but they not create detail for this master , they click create new detail for another master then they click cancel button in cancel button in Cancel button have following coding
OAViewObject fundVo = (OAViewObject) am.findViewObject(
"FaoBudFundSrcsTempVO1");
fundVo.getCurrentRow().remove(); // Show error this line
Then it error because they click add detail from another master not currect master.
Can you help me to solve this problem.
Thank you very much.

getCurrentRow would not retrieve rows unless you set a row as a Current row. Please check your logic under this light.
Thanks

Similar Messages

  • Error while creating a new entity row for testEO

    Hi All,
    I have a 1st page where I enter the employeeNumber and that particular parameter should get displayed in the 2nd page when I click on the "SubmitButton".I am moving to the 2nd page using pageContext.forwardImmediately.I am passing my parameter with this URL.But, I am getting "Error while creating a new entity row for testEO" in my code before i enter anything in " employeeNumber " field in the 1st page.
    My CO code is:
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package xxfc.oracle.apps.test.OAProject1.webui;
    import com.sun.java.util.collections.HashMap;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.jbo.Row;
    import xxfc.oracle.apps.test.OAProject1.server.testVOImpl;
    * Controller for ...
    public class testCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am =(OAApplicationModule) pageContext.getApplicationModule(webBean);
    testVOImpl vo1 = (testVOImpl)am.findViewObject("testVO1");
    vo1.executeQuery();
    Row r = vo1.first();
    System.out.println("**************Error in the below Line**********************");
    Row row = vo1.createRow();
    vo1.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am =(OAApplicationModule) pageContext.getApplicationModule(webBean);
    OAViewObject vo1 = (OAViewObject)am.findViewObject("testVO1");
    if(!vo1.isPreparedForExecution())
    vo1.executeQuery();
    Row row = vo1.getCurrentRow();
    am.getOADBTransaction().commit();
    String strEvent = pageContext.getParameter(EVENT_PARAM);
    if (strEvent.equals("update"))
    String custId = pageContext.getParameter("CustID");
    pageContext.putParameter("CstID",custId);
    HashMap hashMap = new HashMap();
    hashMap.put("CustomerId",custId);
    am.getOADBTransaction().commit();
    pageContext.forwardImmediately("OA.jsp?page=/xxfc/oracle/apps/test/OAProject1/webui/popupPG&CustID=custId",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hashMap, //hashmap
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES
    thanks,
    Akshata

    Hi Niranjana,
    It did not work I am getting the same error.does the WHO column order in the table matters? My WHO columns are in the below order:
    LAST_UPDATE_DATE
    LAST_UPDATED_BY
    LAST_UPDATE_LOGIN
    CREATION_DATE
    CREATED_BY
    my error is:
    oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for testEO.
    It appears on the top of my page as a message.
    Thanks,
    Akshata
    Edited by: Akshata on Mar 15, 2012 12:29 AM

  • Stale data error while deleting a record

    Hi
    My design of this development is as follow...
    1. Search Page in which users give some search criteria and results will be displayed in the results region on the same page. For each results record I have two buttons like 'Update' and 'Delete' so that users can delete the record or can update the record. For update i created a one more page where users can able to edit and save the data. I have two AM one for Search Page and one for Update Page.
    Please find more details below.
    intfEO  based on PO_REQUISITIONS_INTERFACE_ALL
    errorEO  based on PO_INTERFACE_ERRORS
    updateEO based on PO_REQUISITIONS_INTERFACE_ALL
    VOs
    intfVO based on intfEO and errorEO
    updateVO based on updateEO
    AM
    intfAM based on intfVO
    updateAM based on updateVO
    Pages
    searchPG based on intfAM
    updatePG based on updateAM
    Suppose I have one record in interface table with corresponding error record in error table.When users given the search criteria and hit enter they found a record. It means i have one record in the interface having one error record in the error table and both tables have same transaction id (primary key). So here user first try to update the record and it is working. After update he try to delete a record then I am getting below error. Please note that I am not getting this error when if i directly delete the record with out doing any update before delete. When ever users click on update icon then update PG will open and when users click on Apply button then data is getting updated in the database and page will forward to the search page.
    Unable to perform transaction on the record.
    Cause: The record contains stale data. The record has been modified by another user.
    Action: Cancel the transaction and re-query the record to get the new data.
    My UpdatePage Controller
    /*===========================================================================+
    |   Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA    |
    |                         All rights reserved.                              |
    +===========================================================================+
    |  HISTORY                                                                  |
    +===========================================================================*/
    package powl.oracle.apps.xxpowl.po.requisition.webui;
    import com.sun.java.util.collections.HashMap;
    import com.sun.rowset.internal.Row;
    import java.io.Serializable;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageDateFieldBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    //import oracle.apps.fnd.oam.diagnostics.report.Row;
    import oracle.apps.icx.por.common.webui.ClientUtil;
    import powl.oracle.apps.xxpowl.po.requisition.server.xxpowlPOReqIntfUpdateAMImpl;
    import powl.oracle.apps.xxpowl.po.requisition.server.xxpowlPOReqIntfUpdateEOVOImpl;
    * Controller for ...
    public class xxpowlPOReqIntfAllUpdatePageCO extends OAControllerImpl
      public static final String RCS_ID="$Header$";
      public static final boolean RCS_ID_RECORDED =
            VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
       * Layout and page setup logic for a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
         xxpowlPOReqIntfUpdateAMImpl am = (xxpowlPOReqIntfUpdateAMImpl)pageContext.getApplicationModule(webBean);
          xxpowlPOReqIntfUpdateEOVOImpl UpdateVO =(xxpowlPOReqIntfUpdateEOVOImpl)am.findViewObject("xxpowlPOReqIntfUpdateEOVOImpl");
          String newvalue = (String)pageContext.getSessionValue("testValue");     
          System.out.println("Transaction ID from processRequest UpdateCO from testValue field:"+newvalue);
          String transactionid = pageContext.getParameter("HashmapTransacitonid");
          System.out.println("Transaction ID from processRequest Hash Map in UpdateCO :"+transactionid);
          String errorcolumn = pageContext.getParameter("HashmapErrorcolumn");
          System.out.println("Error Column Name from processRequest Hash Map in UpdateCO :"+errorcolumn);
          String errormsg = pageContext.getParameter("HashmapErrormessage");
          System.out.println("Error Message from processRequest Hash Map in UpdateCO :"+errormsg);
          String readyonly = pageContext.getParameter("HashmapReadonly");
          System.out.println("Read Only value from processRequest Hash Map in UpdateCO :"+readyonly);
          if (transactionid !=null & !"".equals(transactionid)) { 
         /* Passing below four parameters to the Update Page */
          Serializable amParams[] = new Serializable[]{transactionid,readyonly,errorcolumn,errormsg} ;
          pageContext.getRootApplicationModule().invokeMethod("executexxpowlPOReqIntfUpdateEOVO", amParams);
       * Procedure to handle form submissions for form elements in
       * a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);      
         OAApplicationModule am = pageContext.getApplicationModule(webBean);
          if (pageContext.getParameter("ApplyButton") != null)
            System.out.println("Inside ApplyButton method in UpdatePageCO");
            OAViewObject vo = (OAViewObject)am.findViewObject("xxpowlPOReqIntfUpdateEOVO");
            String transactionid = pageContext.getParameter("HashmapTransacitonid");
            System.out.println("Transaction ID from processFormRequest Hash Map in UpdateCO-ApplyButton method :"+transactionid);
            am.invokeMethod("apply");
              pageContext.forwardImmediately("OA.jsp?page=/powl/oracle/apps/xxpowl/po/requisition/webui/xxpowlPOReqIntfAllPG",
                                                     null,
                                                     OAWebBeanConstants.KEEP_MENU_CONTEXT,
                                                     null,
                                                     null,
                                                     true,
                                                     OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
           else if (pageContext.getParameter("CancelButton") != null)
            am.invokeMethod("rollback");
            pageContext.forwardImmediately("OA.jsp?page=/powl/oracle/apps/xxpowl/po/requisition/webui/xxpowlPOReqIntfAllPG",
                                                   null,
                                                   OAWebBeanConstants.KEEP_MENU_CONTEXT,
                                                   null,
                                                   null,
                                                   true,
                                                   OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    UpdatePageAMImpl.java
    package powl.oracle.apps.xxpowl.po.requisition.server;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OARow;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.inv.appsphor.order.server.XxapOrderHeaderVOImpl;
    import oracle.jbo.Transaction;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class xxpowlPOReqIntfUpdateAMImpl extends OAApplicationModuleImpl {
        /**This is the default constructor (do not remove)
        public xxpowlPOReqIntfUpdateAMImpl() {
        /**Container's getter for xxpowlPOReqIntfUpdateEOVO
        public xxpowlPOReqIntfUpdateEOVOImpl getxxpowlPOReqIntfUpdateEOVO() {
            return (xxpowlPOReqIntfUpdateEOVOImpl)findViewObject("xxpowlPOReqIntfUpdateEOVO");
        /**Sample main for debugging Business Components code using the tester.
        public static void main(String[] args) {
            launchTester("powl.oracle.apps.xxpowl.po.requisition.server", /* package name */
          "xxpowlPOReqIntfUpdateAMLocal" /* Configuration Name */);
    /*  // Added by 
        public void execute_update_query(String TransactionID) {
        xxpowlPOReqIntfUpdateEOVOImpl vo = getxxpowlPOReqIntfUpdateEOVO();
        vo.initQuery(TransactionID);
    // Added by  , this will not call bec changed the logic and so now the update button enabled on search results page
    // and this method will not called
    public void pageInEditMode (String transactionID, String readOnlyFlag, String ErrorColumn,
                                                                           String ErrorMessage)
        System.out.println("Transaction Id from pageInEditMode in UpdatePGAMImpl.java: "+transactionID);
        System.out.println("xxReadOnly from pageInEditMode in UpdatePGAMImpl.java: "+readOnlyFlag);
        // Get the VO
        xxpowlPOReqIntfUpdateEOVOImpl updateVO = getxxpowlPOReqIntfUpdateEOVO();
        //Remove the where clause that was added in the previous run
        updateVO.setWhereClause(null);
        //Remove the bind parameters that were added in the previous run.
        updateVO.setWhereClauseParams(null);
        //Add where clause
        // updateVO.addWhereClause(" TRANSACTION_ID = :1 ");
        //Bind transactionid to the where clause.
         // updateVO.setWhereClauseParam(1, transactionID); // this will not work bec it will start with zero from from 1
          updateVO.setWhereClauseParam(0, transactionID);
        //Execute the query.
        updateVO.executeQuery();
        xxpowlPOReqIntfUpdateEOVORowImpl currentRow = (xxpowlPOReqIntfUpdateEOVORowImpl)updateVO.next();
        // Assiging the transient varaibles
        currentRow.setxxErrorMessage(ErrorMessage);
        currentRow.setxxErrorColumn(ErrorColumn);
        if ("N".equals(readOnlyFlag))
              /* Make the attribute to 'False so that all fields will be displayed in Edit Mode because we used this
               xxReadOnly as SPEL  */
               currentRow.setxxReadOnly(Boolean.FALSE);
       public void executexxpowlPOReqIntfUpdateEOVO(String transactionID, String xxReadyOnly, String ErrorColumn,
                                                                                              String ErrorMessage)
           System.out.println("Transaction Id from executexxpowlPOReqIntfUpdateEOVO in UpdatePGAMImpl.java: "+transactionID);
           System.out.println("xxReadOnly from executexxpowlPOReqIntfUpdateEOVO in UpdatePGAMImpl.java: "+xxReadyOnly);
           System.out.println("Error Message from executexxpowlPOReqIntfUpdateEOVO in UpdatePGAMImpl.java: "+ErrorColumn);
           System.out.println("Error Column from executexxpowlPOReqIntfUpdateEOVO in UpdatePGAMImpl.java: "+ErrorMessage);
         // Get the VO
         xxpowlPOReqIntfUpdateEOVOImpl updateVO = getxxpowlPOReqIntfUpdateEOVO();
         //xxpowlPOReqIntfUpdateEOVORowImpl updaterowVO = xxpowlPOReqIntfUpdateEOVO();
       //not working
       //    OARow row = (OARow)updateVO.getCurrentRow();
       //    row.setAttribute("xxReadOnly", Boolean.TRUE);
    // updateVO.putTransientValue('XXXXX',x);
         //Remove the where clause that was added in the previous run
         updateVO.setWhereClause(null);
         //Remove the bind parameters that were added in the previous run.
         updateVO.setWhereClauseParams(null);
         //Add where clause
         // updateVO.addWhereClause(" TRANSACTION_ID = :1 ");
         //Bind transactionid to the where clause.
          // updateVO.setWhereClauseParam(1, transactionID); // this will not work bec it will start with zero from from 1
           updateVO.setWhereClauseParam(0, transactionID);
        // updateVO.setWhereClauseParam(1, ErorrColumn); 
         //Execute the query.
         updateVO.executeQuery();
         /* We want the page should be read only initially so after executing the VO with above command
            and if you use next() it will go to the first record among the
            fetched records. If you want to iterate for all the records then use iterator */
            /* Using Iterator
             while(updateVO.hasNext()) {  // this will check after execute Query above command if it has any rows
              xxpowlPOReqIntfUpdateEOVORowImpl currentRow = (xxpowlPOReqIntfUpdateEOVORowImpl)updateVO.next();
              /* above line next() will take the control of the first record */
          /*     currentRow.setxxErrorMessage(ErrorMessage);
                 currentRow.setxxErrorColumn(ErrorColumn);
               if ("Y".equals(xxReadyOnly))
                      currentRow.setxxReadOnly(Boolean.TRUE);                 
             } // this while loop will loop till end of all the fetched records
         xxpowlPOReqIntfUpdateEOVORowImpl currentRow = (xxpowlPOReqIntfUpdateEOVORowImpl)updateVO.next();
      // Assiging the transient varaibles
      currentRow.setxxErrorMessage(ErrorMessage);
      currentRow.setxxErrorColumn(ErrorColumn);
        /* Make the attribute to 'TRUE' so that all fields will be displayed as READ ONLY because we used this
           xxReadOnly as SPEL
           if ("Y".equals(xxReadyOnly))
                  currentRow.setxxReadOnly(Boolean.TRUE);            
      //Added by  and this methiod will get called from UpdatePG Process Form Request controller  
         public void rollback()
           Transaction txn = getTransaction();
           if (txn.isDirty())
             txn.rollback();
        public void apply()
            //OAViewObject vo1 = (OAViewObject)getxxpowlPOReqIntfUpdateEOVO();
            //Number chargeAccountID = vo1.get
          getTransaction().commit();      
          OAViewObject vo = (OAViewObject)getxxpowlPOReqIntfUpdateEOVO();
          if (!vo.isPreparedForExecution())
           vo.executeQuery();
    SearchPG AM
    package powl.oracle.apps.xxpowl.po.requisition.server;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.Transaction;
    import oracle.jbo.domain.Number;
    import powl.oracle.apps.xxpowl.po.requisition.lov.server.xxpowlErrosLovVOImpl;
    import powl.oracle.apps.xxpowl.po.requisition.lov.server.xxpowlInterfaceSouceCodeLovVOImpl;
    import powl.oracle.apps.xxpowl.po.requisition.lov.server.xxpowlItemSegment1LovVOImpl;
    import powl.oracle.apps.xxpowl.po.requisition.lov.server.xxpowlOrgLovVOImpl;
    import powl.oracle.apps.xxpowl.po.requisition.lov.server.xxpowlReferenceNumberLovVOImpl;
    import powl.oracle.apps.xxpowl.po.requisition.lov.server.xxpowlRequestIdLovVOImpl;
    import powl.oracle.apps.xxpowl.po.requisition.lov.server.xxpowlRequisitionTypeLovVOImpl;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class xxpowlPOReqIntfAllAMImpl extends OAApplicationModuleImpl {
        /**This is the default constructor (do not remove)
        public xxpowlPOReqIntfAllAMImpl() {
        /**Container's getter for xxpowlPOReqIntfAllVO
        public xxpowlPOReqIntfAllVOImpl getxxpowlPOReqIntfAllVO() {
            return (xxpowlPOReqIntfAllVOImpl)findViewObject("xxpowlPOReqIntfAllVO");
        /**Sample main for debugging Business Components code using the tester.
        public static void main(String[] args) {
            launchTester("powl.oracle.apps.xxpowl.po.requisition.server", /* package name */
          "xxpowlPOReqIntfAllAMLocal" /* Configuration Name */);
        /**Container's getter for xxpowlRequestIdLovVO
        public xxpowlRequestIdLovVOImpl getxxpowlRequestIdLovVO() {
            return (xxpowlRequestIdLovVOImpl)findViewObject("xxpowlRequestIdLovVO");
        /**Container's getter for xxpowlErrosLovVO
        public xxpowlErrosLovVOImpl getxxpowlErrosLovVO() {
            return (xxpowlErrosLovVOImpl)findViewObject("xxpowlErrosLovVO");
        /**Container's getter for xxpowlOrgLovVO
        public xxpowlOrgLovVOImpl getxxpowlOrgLovVO() {
            return (xxpowlOrgLovVOImpl)findViewObject("xxpowlOrgLovVO");
      //Start Adding by Lokesh
      //This method wil get invoked from the search results page Process Request
       public void rollbackItem()
         Transaction txn = getTransaction();
         if (txn.isDirty())
           txn.rollback();
      //This method will invoked from Controller page when user click Yes on delete confirmtion page from Search Results Page
       public void deleteItem(String trasnsactionID)
         Number rowToDelete = new Number(Integer.parseInt(trasnsactionID));      
         OAViewObject vo = (OAViewObject)getxxpowlPOReqIntfAllVO();
         xxpowlPOReqIntfAllVORowImpl row = null;
         int fetchedRowCount = vo.getFetchedRowCount();
       //  System.out.print(fetchedRowCount);
         System.out.println("No of row fetched on delete method :"+fetchedRowCount);
         RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");
           System.out.println("1 :");
         if (fetchedRowCount > 0)
             System.out.println("2 :");
           deleteIter.setRangeStart(0);
             System.out.println("3 :");
           deleteIter.setRangeSize(fetchedRowCount);
             System.out.println("4 :");
           for (int i = 0; i < fetchedRowCount; i++)
               System.out.println("5 :");
             row = (xxpowlPOReqIntfAllVORowImpl)deleteIter.getRowAtRangeIndex(i);
               System.out.println("6 :");
             Number PK = row.getTransactionId();
               System.out.println("7 :");
             if (PK.compareTo(rowToDelete) == 0)
                 System.out.println("8 :");
               row.remove();
                 System.out.println("9 :");
               getTransaction().commit();
                 System.out.println("10 :");
               break;
                 //System.out.println("11 :");
           System.out.println("11 :");
         deleteIter.closeRowSetIterator();
           System.out.println("12 :");
        /**Container's getter for xxpowlInterfaceSouceCodeLovVO
        public xxpowlInterfaceSouceCodeLovVOImpl getxxpowlInterfaceSouceCodeLovVO() {
            return (xxpowlInterfaceSouceCodeLovVOImpl)findViewObject("xxpowlInterfaceSouceCodeLovVO");
        /**Container's getter for xxpowlRequisitionTypeLovVO
        public xxpowlRequisitionTypeLovVOImpl getxxpowlRequisitionTypeLovVO() {
            return (xxpowlRequisitionTypeLovVOImpl)findViewObject("xxpowlRequisitionTypeLovVO");
        /**Container's getter for xxpowlReferenceNumberLovVO
        public xxpowlReferenceNumberLovVOImpl getxxpowlReferenceNumberLovVO() {
            return (xxpowlReferenceNumberLovVOImpl)findViewObject("xxpowlReferenceNumberLovVO");
        /**Container's getter for xxpowlItemSegment1LovVO
        public xxpowlItemSegment1LovVOImpl getxxpowlItemSegment1LovVO() {
            return (xxpowlItemSegment1LovVOImpl)findViewObject("xxpowlItemSegment1LovVO");
    Search Page Controller
    /*===========================================================================+
    |   Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA    |
    |                         All rights reserved.                              |
    +===========================================================================+
    |  HISTORY                                                                  |
    +===========================================================================*/
    package powl.oracle.apps.xxpowl.po.requisition.webui;
    import com.sun.java.util.collections.HashMap;
    //import com.sun.java.util.collections.Hashtable;
    import java.util.Hashtable;
    //import java.util.HashMap;
    import java.io.Serializable;
    import javax.servlet.jsp.PageContext;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    * Controller for ...
    public class xxpowlPOReqIntfAllSearchPageCO extends OAControllerImpl
      public static final String RCS_ID="$Header$";
      public static final boolean RCS_ID_RECORDED =
            VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
       * Layout and page setup logic for a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
        //Added by Lokesh
          OAApplicationModule am = pageContext.getApplicationModule(webBean);
         if (TransactionUnitHelper.isTransactionUnitInProgress(pageContext, "updateRecord", false)) {
               am.invokeMethod("rollbackItem");
               TransactionUnitHelper.endTransactionUnit(pageContext, "updateRecord");
       * Procedure to handle form submissions for form elements in
       * a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
             String userClicked = pageContext.getParameter("event");
             System.out.println("Event from processFormRequest in SearchPageCO :"+userClicked);
           System.out.println("Parametere Names are :- \t" + pageContext.getParameter("UpdateImage"));
           System.out.println("Parametere Names are :- \t" + pageContext.getParameter("event"));
         if (pageContext.getParameter("event") != null &&
             pageContext.getParameter("event").equalsIgnoreCase("Update")) { 
             String ReqTransactionId=(String)pageContext.getParameter("transacitonidParam");
             String errorcolumn=(String)pageContext.getParameter("errorcolumnParam");
             String errormsg=(String)pageContext.getParameter("errormessageParam");
             String readyonly="Y"; //(String)pageContext.getParameter("readonlyParam");
             System.out.println("Requisition Transaction Id  : "+ReqTransactionId);
             System.out.println("Error Column  : "+errorcolumn);
             System.out.println("Error Message  : "+errormsg);
             System.out.println("Read Only  : "+readyonly);
             HashMap params = new HashMap(4);
             params.put("HashmapTransacitonid",ReqTransactionId);
             params.put("HashmapErrorcolumn",errorcolumn);
             params.put("HashmapErrormessage",errormsg);
             params.put("HashmapReadonly",readyonly);
             pageContext.putSessionValue("testValue",ReqTransactionId);
             //System.out.println("Transaction Id passing through HashMap :- \t" + ReqTransactionId);
             pageContext.setForwardURL("OA.jsp?page=/powl/oracle/apps/xxpowl/po/requisition/webui/xxpowlPOReqIntfAllUpdatePG",
                                        null,
                                        OAWebBeanConstants.KEEP_MENU_CONTEXT,
                                        null,
                                        params,
                                        true,
                                        OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
                                        OAWebBeanConstants.IGNORE_MESSAGES) ;   
    else if (pageContext.getParameter("event") != null &&
             pageContext.getParameter("event").equalsIgnoreCase("Delete")) {   
        System.out.println("Inside Delete method in SearchCO");
        String deleteTransactionID=(String)pageContext.getParameter("deleteTransactionIDParam");
        System.out.println("Transaction Id in Delete Method :- \t" + deleteTransactionID);
      //  deleteTransactionID ="";  //Makeing Null because dont want to show the transaction id bec users dont know about it
        //MessageToken[] tokens = { new MessageToken("MESSAGE_NAME", deleteTransactionID) };
        MessageToken[] tokens = { new MessageToken("MESSAGE_NAME", "") };
        OAException mainMessage = new OAException("FND", "FND_MESSAGE_DELETE_WARNING", tokens);
        OADialogPage dialogPage = new OADialogPage(OAException.WARNING,mainMessage, null, "", "");
        String yes = pageContext.getMessage("AK", "FWK_TBX_T_YES", null);
        String no = pageContext.getMessage("AK", "FWK_TBX_T_NO", null);
        dialogPage.setOkButtonItemName("DeleteYesButton");
        dialogPage.setOkButtonToPost(true);
        dialogPage.setNoButtonToPost(true);
        dialogPage.setPostToCallingPage(true);
        dialogPage.setOkButtonLabel(yes);
        dialogPage.setNoButtonLabel(no);
        Hashtable formParams = new Hashtable(1);
        formParams.put("transactionIdDeleted", deleteTransactionID);
        dialogPage.setFormP

    Hi friend ,
    In Search page i didn't do any update. and also search page is not a problem it's working fine. create page only the problem. In this page only throwing Stale data error exception.
    Please give me more suggestion.
    Thanks in advance,

  • Error while selecting entity

    Hi
    I keep getting the "JBO-26080: Error while selecting entity for Units" error. Below is the query in my View Object. If I remove the Units(Enitty) from the query it works fine but I need to have that in the query. This error occurs only when I do "Reset" on the screen which in turn calls "getSearchProgramView().getCurrentRow().refresh(Row.REFRESH_WITH_DB_FORGET_CHANGES);"
    Can some one explain how to get rid of this problem? When I run the query in TOAD it works fine.
    SELECT Programs.PROGRAM_ID,
    Programs.CATEGORY,
    Programs.NAME,
    Programs.PROGRAM_COORDINATOR_ID,
    Programs.PROGRAM_ASSISTANT_ID,
    Programs.MANAGING_UNIT_ABBR,
    Programs.CREATED_BY,
    Programs.CREATED_DATE,
    Programs.LAST_UPDATED_BY,
    Programs.LAST_UPDATED_DATE,
    Persons.PERSON_ID,
    Persons.USER_NAME,
    Persons.FIRST_NAME,
    Persons.LAST_NAME,
    Persons1.PERSON_ID AS PERSON_ID1,
    Persons1.USER_NAME AS USER_NAME1,
    Persons1.FIRST_NAME AS FIRST_NAME1,
    Persons1.LAST_NAME AS LAST_NAME1,
    Categories.NAME AS NAME2,
    Categories.CODE AS CODE1,
    Units.DESCRIPTION,
    Units.CODE
    FROM PROGRAMS Programs, PERSONS Persons, PERSONS Persons1, CATEGORIES Categories, UNITS Units
    WHERE ((Programs.PROGRAM_COORDINATOR_ID = Persons.PERSON_ID(+))
    AND (Programs.PROGRAM_ASSISTANT_ID = Persons1.PERSON_ID(+))
    AND (Programs.CATEGORY = Categories.CODE(+))
    AND (Programs.MANAGING_UNIT_ABBR = Units.CODE(+)))
    Thanks

    Hi,
    for those who have encountered the same problem as me, you should check that the table name sql query is of the form Name_Schema.Name_Table.
    For this right click on the entity in the workspace> edit entity> Database Objects> Schema Objects and add the schema name before table name( Name_Schema.Name_Table).
    thanks,

  • Master detail new line error

    Hi all, Can anyone help me with this problem?
    I have created a master detail table but have had problems with adding new detail lines.
    The detail region contains an advanced table with an addTableRow bean set in the footer. I wish to navigate to a new page when the ‘add new row’ button is selected so I have set the ‘insert rows automatically’ property to false. I have been able to capture the event in my controller and call the new page and then access the application module, however I do not seem to be able to set a property in the new child line from an attribute in the parent line.
    //in my AM I have called…
    public void CreateLine()
    //get child vo that is to have line added
    DoiLinesVOImpl vo = (DoiLinesVOImpl) getDoiLinesVO1();
    if (!vo.isExecuted()) vo.executeQuery();
    //find parent vo to determine which questionId the line relates to
    OAViewObject hvo = (OAViewObject)findViewObject("DoiDecQuestionsVO1");
    OARow hRow = (OARow)hvo.getCurrentRow();
    Number sid = (Number) hRow.getAttribute("QuestionId ");
    System.out.println ( " qid= " + qid );
    if ( vo != null)
    vo.setMaxFetchSize(0);
    Row vRow = vo.createRow();
    vo.insertRow(vRow);
    vRow.setAttribute("QuestionId",qid);
    vRow.setNewRowState(Row.STATUS_INITIALIZED);
    Initially the page was running, however it was only ever showing the id for the first line, regardless of which child table I was select add new line on. Now the new page errors and when I click on exception details the page does not show any error details
    Can anyone see anything wrong with the code in the AM or have any suggestions as to what else may be wrong. Is it actually possible to do what I am trying to do? My aim is to have a table of questions and then a table region under the detail region of each question. Either no lines, one line or multiple lines can be added under each questions details. The questions may have slightly different required fields so I would like to navigate to a new page and then back to the main page when save is selected.
    Any insights into what I am doing wrong or how I might achive my requirement would be very much appreciated.
    Mike.

    Ok, I have now got the page to stop erroring.
    I have created a new VO instance of the child EO in the application module and used the new vo in the seperate create page attributes, however when I query the current row against the parent vo I am still getting the value from the first line, not the selected parent line.
    mike.

  • Getting Error:::oracle.jbo.domain.Date cannot be cast to java.lang.String

    Hi Friends,
    I have simple req'.
    i have one date filed in OAF page...if user has change the date filed..means if he incresed by 2 days..then i need to call one procedure..if not no need to call....
    first am picking that date field to by uusing prepared stmt and putting in to one variable..like below
    try {
    ps1 = am.getOADBTransaction().getJdbcConnection().prepareStatement("SELECT -------");
    ResultSet rs2 = ps1.executeQuery();
    while (rs2.next()) {
    schDate = rs2.getString(1);//storing the value
    } catch (Exception e) {
    throw OAException.wrapperException(e);
    Next..am picking the current value like this(user can change the value) like below...
    OAViewObject viewObj = (OAViewObject)am.findViewObject("simpleVO");
    String currSchDate = (String)viewObj.getCurrentRow().getAttribute("iDate");
    java.text.SimpleDateFormat dtFormat = new java.text.SimpleDateFormat ("MM/dd/yyyy");
    StringBuilder date = new StringBuilder(dtFormat.format(currSchDate));
    Then am comparing the values like below..
    if (schDate.equals(date)) {
    String outParamValue = "";
    String secondOutParamValue = "";
    but am geting the below error
    ## Detail 0 ##
    java.lang.ClassCastException: oracle.jbo.domain.Date cannot be cast to java.lang.String
         at xxuss.oracle.apps.abc.webui.xxPGCO15.processFormRequest(xxGCO15.java:594)
    Appriciate any help...its very urgent
    Regards
    Harry

    Instead of :
    String currSchDate = (String)viewObj.getCurrentRow().getAttribute("iDate");Try
    String currSchDate = viewObj.getCurrentRow().getAttribute("iDate").toString();
    -Anand

  • Error loading ejb application

    hi am geting blue ring turn turning when deploying my application and it showing a word downloading
    *** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    "C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\bin\startWebLogic.cmd"
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_jdev1112\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\oracle\MIDDLE~1\patch_jdev1112\profiles\default\native;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\oracle\MIDDLE~1\JDK160~1\jre\bin;C:\oracle\MIDDLE~1\JDK160~1\bin;C:\forms;C:\product\11.2.0\dbhome_1\bin;C:\product\11.2.0\dbhome_1;C:\DevSuiteHome_1\BIN;C:\DevSuiteHome_1\jlib;C:\Program Files\PHP;C:\Program Files\PC Connectivity Solution\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared;C:\Program Files\Common Files\DivX Shared;c:\Program Files\Java\jdk1.6.0_21\bin;C:\product\11.2.0\dbhome_1\BIN;C:\DevSuiteHome_1;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared;C:\mywls;C:\mydomain\base_domain\bin;C:\Program Files\Java\jre6\bin\client;C:\Program Files\Java\jre6\bin;C:\Program Files\Java\jdk1.6.0_21\jre\bin;C:\Program Files\Java\jdk1.6.0_21\bin;C:\Program Files\Java\jdk1.6.0_21;C:\Program Files\Java\jre6;C:\DevSuiteHome_1\forms;C:\DevSuiteHome_1\cgenf61\admin;C:\DevSuiteHome_1\forms;C:\forms\sms_code.pll;C:\mywls\wlserver\bin;C:\Java\jdk1.6.0_21;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
    Starting WLS with line:
    C:\oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\DOCUME~1\Desmond\LOCALS~1\Temp\trustStore7001298024248775005.jks -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1 -Djrockit.optfile=C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\oracle\store\gmds -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\oracle\MIDDLE~1\patch_jdev1112\profiles\default\sysext_manifest_classpath weblogic.Server
    <16 Dec 2011 6:48:52 PM> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <16 Dec 2011 6:48:52 PM> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <16 Dec 2011 6:48:53 PM> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems Inc.>
    <16 Dec 2011 6:48:53 PM> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <16 Dec 2011 6:48:54 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <16 Dec 2011 6:48:54 PM> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <16 Dec 2011 6:48:54 PM> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <16 Dec 2011 6:48:54 PM> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00234. Log messages will continue to be logged in C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <16 Dec 2011 6:48:54 PM> <Notice> <Log Management> <BEA-170019> <The server log file C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <16 Dec 2011 6:48:58 PM> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <16 Dec 2011 6:49:01 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <16 Dec 2011 6:49:02 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <MessageLocalizationHelper> <getLocalizedMessage> The resource for bundle "oracle.jrf.i18n.MBeanMessageBundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets" cannot be found.
    <16 Dec 2011 6:49:08 PM> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <16 Dec 2011 6:49:08 PM> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00231. Log messages will continue to be logged in C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <16 Dec 2011 6:49:08 PM> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <16 Dec 2011 6:49:09 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <16 Dec 2011 6:49:09 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrust.jks.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\oracle\MIDDLE~1\JDK160~1\jre\lib\security\cacerts.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 127.0.0.1:7102 for protocols iiops, t3s, ldaps, https.>
    <16 Dec 2011 6:49:09 PM> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <16 Dec 2011 6:49:09 PM> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <16 Dec 2011 6:49:09 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <16 Dec 2011 6:49:09 PM> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    IntegratedWebLogicServer startup time: 18437 ms.
    IntegratedWebLogicServer started.
    [Running application HR_EJB_JPA on Server Instance IntegratedWebLogicServer...]
    [06:49:10 PM] EJB Module ModelEJB.jar recognized in project Model.jpr
    [06:49:10 PM] Web Module ViewControllerWebApp.war recognized in project ViewController.jpr
    [06:49:10 PM] ---- Deployment started. ----
    [06:49:10 PM] Target platform is (Weblogic 10.3).
    [06:49:11 PM] Retrieving existing application information
    [06:49:11 PM] Running dependency analysis...
    [06:49:11 PM] Deploying 3 profiles...
    [06:49:11 PM] Wrote Web Application Module to C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\HR_EJB_JPA\ViewControllerWebApp.war
    [06:49:11 PM] Wrote EJB Module to C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\HR_EJB_JPA\ModelEJB.jar
    [06:49:12 PM] WARNING: Connection Hr has no password. Hr-jdbc.xml file not generated for connection Hr.
    [06:49:12 PM] Wrote Enterprise Application Module to C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\HR_EJB_JPA
    [06:49:12 PM] Deploying Application...
    <16 Dec 2011 6:49:14 PM> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.util.List oracle.model.HRFacade.getEmployeesFindBySal(java.lang.Object)' in EJB 'HRFacade' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'HRFacade' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
    [06:49:25 PM] Application Deployed Successfully.
    [06:49:25 PM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [06:49:25 PM] http://127.0.0.1:7101/HR_EJB_JPA-ViewController-context-root
    [06:49:25 PM] Elapsed time for deployment: 15 seconds
    [06:49:25 PM] ---- Deployment finished. ----
    Run startup time: 14734 ms.
    [Application HR_EJB_JPA deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://127.0.0.1:7101/HR_EJB_JPA-ViewController-context-root/faces/MainHr.jsf
    <ViewHandlerImpl> <_checkTimestamp> Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    <16 Dec 2011 6:49:34 PM> <Notice> <EclipseLink> <BEA-2005000> <2011-12-16 18:49:34.327--ServerSession(24287119)--EclipseLink, version: Eclipse Persistence Services - 2.1.3.v20110304-r9073>
    <16 Dec 2011 6:49:34 PM> <Notice> <EclipseLink> <BEA-2005000> <2011-12-16 18:49:34.327--ServerSession(24287119)--Server: 10.3.5.0>
    <16 Dec 2011 6:49:35 PM> <Alert> <EclipseLink> <BEA-2005000> <2011-12-16 18:49:35.187--ServerSession(24287119)--Local Exception Stack:
    Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Cannot acquire data source [java:/app/jdbc/jdbc/HrDS].
    Internal Exception: javax.naming.NameNotFoundException: While trying to look up /app/jdbc/jdbc/HrDS in /app/ejb/ModelEJB.jar#HRFacade.; remaining name '/app/jdbc/jdbc/HrDS'
         at org.eclipse.persistence.exceptions.ValidationException.cannotAcquireDataSource(ValidationException.java:466)
         at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:116)
         at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
         at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
         at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:579)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:228)
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:389)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:164)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:221)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:209)
         at weblogic.deployment.TransactionalEntityManagerProxyImpl.newPersistenceContext(TransactionalEntityManagerProxyImpl.java:65)
         at weblogic.deployment.BasePersistenceContextProxyImpl.getPersistenceContext(BasePersistenceContextProxyImpl.java:170)
         at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:101)
         at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:77)
         at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:87)
         at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:18)
         at $Proxy141.createQuery(Unknown Source)
         at oracle.model.HRFacadeBean.queryByRange(HRFacadeBean.java:25)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy151.queryByRange(Unknown Source)
         at oracle.model.HRFacade_mg5i94_HRFacadeLocalImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
         at oracle.model.HRFacade_mg5i94_HRFacadeLocalImpl.queryByRange(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.adfinternal.model.adapter.bean.BeanDCUtils.invokeMethod(BeanDCUtils.java:730)
         at oracle.adf.model.adapter.bean.provider.BeanDataCollection.invokeMethod(BeanDataCollection.java:351)
         at oracle.adf.model.adapter.bean.jpa.JPQLBeanDataCollection.invokeMethodHandlerSize(JPQLBeanDataCollection.java:187)
         at oracle.adf.model.adapter.bean.provider.BeanDataCollection.getEstimatedRowCount(BeanDataCollection.java:377)
         at oracle.adf.model.adapter.bean.provider.BeanDataCollection.init(BeanDataCollection.java:170)
         at oracle.adf.model.adapter.bean.jpa.JPQLBeanDataCollection.init(JPQLBeanDataCollection.java:112)
         at oracle.adf.model.adapter.bean.provider.BeanDataCollection.<init>(BeanDataCollection.java:119)
         at oracle.adf.model.adapter.bean.jpa.JPQLBeanDataCollection.<init>(JPQLBeanDataCollection.java:60)
         at oracle.adf.model.adapter.bean.jpa.JPQLDataFilterHandler.invoke(JPQLDataFilterHandler.java:62)
         at oracle.adf.model.adapter.bean.DataFilterHandler.invokeAccessor(DataFilterHandler.java:141)
         at oracle.adf.model.adapter.bean.BeanFilterableDataControl.invokeAccessor(BeanFilterableDataControl.java:78)
         at oracle.adf.model.bean.DCBeanDataControl.invokeAccessor(DCBeanDataControl.java:487)
         at oracle.adf.model.bean.DCDataVO$DCVOAccessorCollectionAdapter.getDataProvider(DCDataVO.java:2508)
         at oracle.adf.model.bean.DCDataVO$DCBaseAccessorCollectionAdapter.refreshIterator(DCDataVO.java:2291)
         at oracle.adf.model.bean.DCDataVO$DCVOAccessorCollectionAdapter.refreshIterator(DCDataVO.java:2410)
         at oracle.adf.model.bean.DCDataVO.executeQueryForCollection(DCDataVO.java:507)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1227)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1078)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2775)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2752)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1581)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3556)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:10196)
         at oracle.adf.model.binding.DCIteratorBinding.internalGetCurrentRowInBinding(DCIteratorBinding.java:2317)
         at oracle.jbo.uicli.binding.JUIteratorBinding.internalGetCurrentRowInBinding(JUIteratorBinding.java:526)
         at oracle.adf.model.binding.DCIteratorBinding.getCurrentRow(DCIteratorBinding.java:2262)
         at oracle.adf.model.binding.DCControlBinding.getCurrentRow(DCControlBinding.java:387)
         at oracle.jbo.uicli.binding.JUControlBinding.getCurrentRow(JUControlBinding.java:98)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetRow(JUCtrlValueBinding.java:1374)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1729)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1826)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isUpdateable(JUCtrlValueBinding.java:2722)
         at oracle.adfinternal.view.faces.model.AdfELResolver._isReadOnly(AdfELResolver.java:126)
         at oracle.adfinternal.view.faces.model.AdfELResolver.isReadOnly(AdfELResolver.java:142)
         at oracle.adfinternal.view.faces.model.AdfELResolverProxy.isReadOnly(AdfELResolverProxy.java:78)
         at com.sun.faces.el.DemuxCompositeELResolver._isReadOnly(DemuxCompositeELResolver.java:293)
         at com.sun.faces.el.DemuxCompositeELResolver.isReadOnly(DemuxCompositeELResolver.java:322)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at com.sun.faces.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:120)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:406)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:510)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1088)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:50)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1604)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1523)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:420)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:208)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.access$600(ShowDetailItemRenderer.java:37)
         at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:640)

    i delete folder DefaultDomain i even delete from folder system11.1.2.1.38.60.81, but still geting this log error but this time i was ask to enter weblogic password which i did
    [Waiting for the domain to finish building...]
    [09:44:49 AM] Creating Integrated Weblogic domain...
    [09:45:52 AM] Extending Integrated Weblogic domain...
    [09:47:13 AM] Integrated Weblogic domain processing completed successfully.
    *** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    "C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\bin\startWebLogic.cmd"
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_jdev1112\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\oracle\MIDDLE~1\patch_jdev1112\profiles\default\native;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\oracle\MIDDLE~1\JDK160~1\jre\bin;C:\oracle\MIDDLE~1\JDK160~1\bin;C:\forms;C:\product\11.2.0\dbhome_1\bin;C:\product\11.2.0\dbhome_1;C:\DevSuiteHome_1\BIN;C:\DevSuiteHome_1\jlib;C:\Program Files\PHP;C:\Program Files\PC Connectivity Solution\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared;C:\Program Files\Common Files\DivX Shared;c:\Program Files\Java\jdk1.6.0_21\bin;C:\product\11.2.0\dbhome_1\BIN;C:\DevSuiteHome_1;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared;C:\mywls;C:\mydomain\base_domain\bin;C:\Program Files\Java\jre6\bin\client;C:\Program Files\Java\jre6\bin;C:\Program Files\Java\jdk1.6.0_21\jre\bin;C:\Program Files\Java\jdk1.6.0_21\bin;C:\Program Files\Java\jdk1.6.0_21;C:\Program Files\Java\jre6;C:\DevSuiteHome_1\forms;C:\DevSuiteHome_1\cgenf61\admin;C:\DevSuiteHome_1\forms;C:\forms\sms_code.pll;C:\mywls\wlserver\bin;C:\Java\jdk1.6.0_21;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    Starting WLS with line:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
    C:\oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\DOCUME~1\Desmond\LOCALS~1\Temp\trustStore1168903124970580046.jks -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1 -Djrockit.optfile=C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\DOCUME~1\Desmond\APPLIC~1\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\oracle\store\gmds -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\oracle\MIDDLE~1\patch_jdev1112\profiles\default\sysext_manifest_classpath weblogic.Server
    <17 Dec 2011 9:47:18 AM> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <17 Dec 2011 9:47:19 AM> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <17 Dec 2011 9:47:19 AM> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems Inc.>
    <17 Dec 2011 9:47:19 AM> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <17 Dec 2011 9:47:21 AM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <17 Dec 2011 9:47:21 AM> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <17 Dec 2011 9:47:21 AM> <Notice> <Log Management> <BEA-170019> <The server log file C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    WARNING: Could not set file permissions for wallet at C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\config\fmwconfig\bootstrap\cwallet.sso
    WARNING: Could not set file permissions for wallet at C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\config\fmwconfig\bootstrap\cwallet.sso
    <17 Dec 2011 9:47:29 AM> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <MessageLocalizationHelper> <getLocalizedMessage> The resource for bundle "oracle.jrf.i18n.MBeanMessageBundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets" cannot be found.
    <17 Dec 2011 9:47:41 AM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <17 Dec 2011 9:47:41 AM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <17 Dec 2011 9:48:21 AM> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <17 Dec 2011 9:48:22 AM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <17 Dec 2011 9:48:22 AM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <17 Dec 2011 9:48:22 AM> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.>
    <17 Dec 2011 9:48:22 AM> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrust.jks.>
    <17 Dec 2011 9:48:22 AM> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\oracle\MIDDLE~1\JDK160~1\jre\lib\security\cacerts.>
    <17 Dec 2011 9:48:22 AM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <17 Dec 2011 9:48:22 AM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <17 Dec 2011 9:48:22 AM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <17 Dec 2011 9:48:22 AM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <17 Dec 2011 9:48:23 AM> <Warning> <Server> <BEA-002611> <Hostname "madimad-b533821", maps to multiple IP addresses: 192.168.5.33, 41.3.120.64>
    <17 Dec 2011 9:48:23 AM> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[2]" is now listening on 127.0.0.1:7102 for protocols iiops, t3s, ldaps, https.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 192.168.5.33:7102 for protocols iiops, t3s, ldaps, https.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.5.33:7101 for protocols iiop, t3, ldap, snmp, http.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 41.3.120.64:7101 for protocols iiop, t3, ldap, snmp, http.>
    <17 Dec 2011 9:48:23 AM> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 41.3.120.64:7102 for protocols iiops, t3s, ldaps, https.>
    <17 Dec 2011 9:48:23 AM> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <17 Dec 2011 9:48:23 AM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <17 Dec 2011 9:48:23 AM> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    [Running application HR_EJB_JPA on Server Instance IntegratedWebLogicServer...]
    IntegratedWebLogicServer startup time: 70094 ms.
    IntegratedWebLogicServer started.
    [09:48:25 AM] **** Warning: Application HR_EJB_JPA may have been left deployed on the server. Undeploy it from the admin console.
    [09:48:28 AM] EJB Module ModelEJB.jar recognized in project Model.jpr
    [09:48:28 AM] Web Module ViewControllerWebApp.war recognized in project ViewController.jpr
    [09:48:28 AM] ---- Deployment started. ----
    [09:48:28 AM] Target platform is (Weblogic 10.3).
    [09:48:30 AM] Retrieving existing application information
    [09:48:30 AM] Running dependency analysis...
    [09:48:31 AM] Deploying 3 profiles...
    [09:48:32 AM] Wrote Web Application Module to C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\HR_EJB_JPA\ViewControllerWebApp.war
    [09:48:32 AM] Wrote EJB Module to C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\HR_EJB_JPA\ModelEJB.jar
    [09:48:33 AM] Wrote Enterprise Application Module to C:\Documents and Settings\Desmond\Application Data\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\HR_EJB_JPA
    [09:48:33 AM] Deploying Application...
    <17 Dec 2011 9:48:37 AM> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.util.List oracle.model.HRFacade.getEmployeesFindBySal(java.lang.Object)' in EJB 'HRFacade' contains a parameter of type: 'java.lang.Object' which is not Serializable. Though the EJB 'HRFacade' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
    <17 Dec 2011 9:48:37 AM> <Warning> <EJB> <BEA-010202> <Call-by-reference is not enabled for the EJB 'HRFacade'. The server will have better performance if it is enabled. To enable call-by-reference, set the enable-call-by-reference element to True in the weblogic-ejb-jar.xml deployment descriptor or corresponding annotation for this EJB.>
    <17 Dec 2011 9:48:41 AM> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1324144113562' for task '0'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:362)
         at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:227)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:541)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:175)
         Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: hrDS is already bound
         at weblogic.jdbc.common.internal.RmiDataSource.start(RmiDataSource.java:413)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:136)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:97)
         at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:359)
         at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:227)
         Truncated. see log file for complete stacktrace
    >
    <17 Dec 2011 9:48:41 AM> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'HR_EJB_JPA'.>
    <17 Dec 2011 9:48:41 AM> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'HR_EJB_JPA'.>
    <17 Dec 2011 9:48:41 AM> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
         at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:362)
         at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:227)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:541)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:175)
         Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: hrDS is already bound
         at weblogic.jdbc.common.internal.RmiDataSource.start(RmiDataSource.java:413)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:136)
         at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:97)
         at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:359)
         at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:227)
         Truncated. see log file for complete stacktrace
    >
    [09:48:41 AM] Deployment cancelled.
    [09:48:41 AM] ---- Deployment incomplete ----.
    [09:48:41 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application HR_EJB_JPA due to error deploying to IntegratedWebLogicServer.
    [Application HR_EJB_JPA stopped and undeployed from Server Instance IntegratedWebLogicServer]
    Edited by: user603350 on 2011/12/17 10:50 AM
    Edited by: user603350 on 2011/12/17 11:07 AM

  • Error while uploading files into FND_LOBS table

    Hi All,
    Hope you are all well!!
    I am new to OAF.Developing a standard upload page.
    Getting the below error when i am trying to uploading the file in to FND_LOBS table.
    *"Error - Attribute FileId in xxsymuploadAM.xxsymuploadVO is required"*
    The page was opening successfully but when trying to submit the file into fnd_lobs table getting the error.
    For this i have created AM, EO and EO based VO.
    Her is my code--------------------
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package xxsymupload.oracle.apps.fnd.upload.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.OAException;
    import oracle.jbo.Row;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageFileUploadBean;
    import oracle.apps.fnd.framework.webui.OADataBoundValueViewObject;
    * Controller for ...
    public class xxsymupload1CO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am=pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("xxsymuploadVO");
    if (!vo.isPreparedForExecution())
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    row.setAttribute("FileFormat","IGNORE");
    row.setAttribute("UploadDate", am.getOADBTransaction().getCurrentDBDate());
    row.setAttribute("ProgramName", "xxsymUpload");
    OAMessageFileUploadBean uploadBean = (OAMessageFileUploadBean)webBean.findChildRecursive("fileUpload");
    OADataBoundValueViewObject displayNameBoundValue = new OADataBoundValueViewObject(uploadBean, "FileData");
    uploadBean.setAttributeValue(DOWNLOAD_FILE_NAME,displayNameBoundValue);
    OADataBoundValueViewObject contentBoundValue = new OADataBoundValueViewObject(uploadBean, "FileContentType");
    uploadBean.setAttributeValue(FILE_CONTENT_TYPE, contentBoundValue);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("cancelButton") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.getTransaction().rollback();
    pageContext.forwardImmediately("OA.jsp?OAFunc=OAHOMEPAGE",null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null,false,OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    else if (pageContext.getParameter("submitButton") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.getTransaction().commit();
    OAViewObject vo = (OAViewObject)am.findViewObject("xxsymuploadVO");
    oracle.jbo.domain.Number fileId = (oracle.jbo.domain.Number)vo.getCurrentRow().getAttribute("FileId");
    String fileUpload = (String)vo.getCurrentRow().getAttribute("FileName");
    OAException confirmMessage = new OAException("File "+fileUpload+" uploaded succesfully with ID "+fileId+".",OAException.CONFIRMATION);
    pageContext.putDialogMessage(confirmMessage);
    pageContext.forwardImmediately("OA.jsp?page=/xxsymupload/oracle/apps/fnd/upload/webui/xxsymuploadPG",null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    Appreciate quick response!!
    Thanks,
    Sateesh

    In EO Impl java, set the file id and other mandatory fields, something like below. You can also search OAF forum for more details.
    public void create(AttributeList attributelist)
    super.create(attributelist);
    try
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)getOADBTransaction();
    String s = "select fnd_lobs_s.nextval from dual";
    ViewObject viewobject = oadbtransactionimpl.createViewObjectFromQueryStmt(s);
    Number number;
    Row row;
    for(number = null; viewobject.hasNext(); number = (Number)row.getAttribute(0))
    row = viewobject.next();
    if(number != null)
    setFileId(number);
    setFileFormat("text");
    setUploadDate(oadbtransactionimpl.getCurrentDBDate());
    } else
    throw new OAException("AK", "AK_CANNOT_GET_FILEID");
    viewobject.remove();
    catch(Exception exception)
    throw new OAException("AK", "AK_FND_LOBS_NOT_CREATED", exception);
    Thanks
    Shree

  • Null Error in Displaying a value through view attribute

    I just want to display a value through message styled text bean from view attribute .
    For that i use the code in PR:
    But it gives null error: Please any one help me.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("StaffInfoVO1");
    if(vo!=null)
    OARow row = (OARow)vo.getCurrentRow();
    System.out.println("vo is not null");
    String str1 = row.getAttribute("FullName").toString();
    OAMessageStyledTextBean stext1 = (OAMessageStyledTextBean)webBean.findChildRecursive("RFStaffName");
    stext1.setText(str1);
    While getattribute("FullName") executed it gives null error. Why?
    how to rectify?

    Hai,
    I can execute the query in toad which returns 1 row of data. It is not null rows.
    But my vo object, why it is not executed. Returning null. I dont know.. Too many hours i spent.
    VO query:
    select distinct papf.person_id,papf.FULL_NAME,
    papf.EMPLOYEE_NUMBER,
    papf.EMAIL_ADDRESS,
    papf.WORK_TELEPHONE,
    hla.COUNTRY,
    sysdate,
    pap.NAME,
    haou.NAMe department,
    ood.ORGANIZATION_NAME
    from
    per_all_people_f papf,
    per_all_assignments_f paaf,
    per_all_positions pap,
    per_jobs pj,
    per_grades pg,
    per_person_types ppt,
    hr_all_organization_units haou,
    hr_locations_all hla,
    org_organization_definitions ood
    where
    papf.PERSON_TYPE_ID=ppt.PERSON_TYPE_ID and
    papf.PERSON_ID=paaf.PERSON_ID and
    paaf.POSITION_ID=pap.POSITION_ID and
    paaf.JOB_ID=pj.JOB_ID and
    paaf.BUSINESS_GROUP_ID=haou.BUSINESS_GROUP_ID and
    papf.person_type_id=13 and
    haou.business_group_id=202 and
    haou.NAME like '%Global%Sales%' and
    papf.FULL_NAME like '%Stand%' and
    paaf.LOCATION_ID=hla.LOCATION_ID and
    paaf.ORGANIZATION_ID=ood.ORGANIZATION_ID and
    sysdate between papf.EFFECTIVE_START_DATE and papf.EFFECTIVE_END_DATE and
    sysdate between paaf.EFFECTIVE_START_DATE and paaf.EFFECTIVE_END_DATE
    Help Me.
    Thanks & Regards

  • JBO-26048 error after insert delete commit

    Using JDeveloper 10.1.2 running local OC4J against Oracle 9i database
    * JBO-26048: Constraint "APPLREFLTR_PK" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO DCSAT_APPL_REF_LETTER(APPLICANT_ID,LETTER_ID,LETTER_INF,CREATED_BY,CREATED_DATE,UPDATED_BY,UPDATED_DATE) VALUES (:1,:2,:3,:4,:5,:6,:7) RETURNING APPLICANT_ID INTO :8; END;".
    * ORA-00001: unique constraint (APPTRACK.APPLREFLTR_PK) violated ORA-06512: at line 1
    This was working yesterday??? I was so close then spent a day trying to track down what broke. I tried changing the database primary key to deferrable, which just changed the error message to one that said I had too many primary keys.
    Basically the following code inserts a blank row into the view object. It then looks for an existing record, if found row.remove() is called on the found row. I then update the primary key in the current record from data on the form. (The primary key is set as a dbsequence, but there isn't a trigger to set it.) then commit. I was thinking that it was the chronological order bit that is listed in the latest ADF documentation. The thing is, this did work. A case of turning off the computer, removing all class files, rebuilding the tables and running the app - now broken...
    I would appreciate ideas on where to troubleshoot, or help on how to troubleshoot this one.
    Thanks,
    Ken
    I am uploading files into an ORDSYS.ORDDOC datatype following example 3 from Steve Muench's weblog. Here is the code in my DataActionForward:
    <code>
    public class UploadReferenceLettersAction extends DataForwardAction {
    protected void processUpdateModel(DataActionContext actionContext) {
    System.out.println("*** UploadReferenceLettersAction.processUpdateModel() ***");
    super.processUpdateModel(actionContext);
    if (!(handlingEvents(actionContext))) {
    /* Create a blank record in the model and set it as the current row - only the first time in. */
    BindingContext bc = actionContext.getBindingContext();
    DCDataControl dc = bc.findDataControl("ApptrackModuleDataControl");
    ApptrackModule service = (ApptrackModule)dc.getDataProvider();
    service.insertRowRefLetterView();
    protected void findForward(DataActionContext actionContext) throws Exception {
    System.out.println("*** UploadReferenceLettersAction.findForward() ***");
    /* Try to catch errors instead of the default error handler. */
    try {
    List events = actionContext.getEvents();
    if (events != null && events.size() > 0) {
    ListIterator li = events.listIterator();
    while (li.hasNext()) {
    System.out.println("UploadApplicantResumeAction.findForward()- event : " + li.next().toString());
    } catch (Exception e) {
    System.out.println(e.getMessage() );
    // e.printStackTrace(System.out);
    super.findForward(actionContext);
    public void onCommit( DataActionContext ctx ) {
    System.out.println("*** UploadReferenceLettersAction.onCommit() ***");
    /* Get LetterId from the form
    DCBindingContainer bindings = ctx.getBindingContainer();
    DCControlBinding binding;
    binding = bindings.findCtrlBinding("LetterId");
    String letterId = (binding != null) ? binding.toString() : "";
    DBSequence letterID = new DBSequence(letterId);
    /* get applicantId */
    HttpSession session = ctx.getHttpServletRequest().getSession();
    String applicantId = "" + (String)session.getAttribute("applicantid");
    DBSequence applicantID = new DBSequence(applicantId);
    /* Remove and existing record with applicantId and letterId */
    BindingContext bctx = ctx.getBindingContext();
    DCDataControl dc = bctx.findDataControl("ApptrackModuleDataControl");
    ApptrackModule service = (ApptrackModule)dc.getDataProvider();
    // service.deleteRefLetterByApplicantidLetterid(applicantId, letterId); // passing values as Strings
    service.deleteRefLetterByApplicantidLetterid(applicantId); // passing values as Strings
    /* Update the currentRow */
    System.out.println("UploadReferenceLettersAction.onCommit() - applicantId = " + applicantId);
    // System.out.println("UploadReferenceLettersAction.onCommit() - letterId = " + letterId);
    DCBindingContainer bc = ctx.getBindingContainer();
    DCIteratorBinding iter = bc.findIteratorBinding("ApplRefLetterView1Iterator");
    Row r = iter.getCurrentRow();
    r.setAttribute("ApplicantId",applicantID); // Setting value that is of type DBSequence
    // r.setAttribute("LetterId",letterID); // Setting value that is of type DBSequence
    /* Commit the transaction */
    System.out.println("UploadReferenceLettersAction.onCommit() - Saving upload starting");
    if (ctx.getEventActionBinding() != null) {
    ctx.getEventActionBinding().doIt();
    System.out.println("UploadReferenceLettersAction.onCommit() - Saving upload complete");
    ctx.setActionForward(ctx.getActionMapping().findForward("success"));
    public void onRollback(DataActionContext ctx) {
    System.out.println("*** UploadReferenceLettersAction.onRollback() ***");
    ctx.setActionForward(ctx.getActionMapping().findForward("Edit"));
    if (ctx.getEventActionBinding() != null) {
    ctx.getEventActionBinding().doIt();
    protected boolean handlingEvents(DataActionContext ctx) {
    List events = ctx.getEvents();
    return (events != null) && (events.size() > 0);
    </code>
    In my ApplicationModule, I have the following methods for adding and deleting code:
    <code>
    public void insertRowRefLetterView() {
    ViewObject vo = getApplRefLetterView1();
    Row aRow = vo.createRow();
    vo.insertRow(aRow);
    vo.setCurrentRow(aRow);
    public void deleteRefLetterByApplicantidLetterid(String applicantId) {
    Key k = new Key(new Object[] { new DBSequence(applicantId) });
    System.out.println("ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - key = " + k.toStringFormat(false));
    ViewObject vo = getApplRefLetterView1();
    Row[] r = vo.findByKey(k, 1);
    if (r.length < 1) {
    System.out.println("ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - No key to delete");
    } else {
    System.out.println("ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - Found key to delete");
    Row rowFound = r[0];
    String appId = rowFound.getAttribute("ApplicantId").toString();
    System.out.println("ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - appId = " + appId);
    rowFound.remove();
    return;
    </code>

    I ran again with the -Djbo.debugoutput=console
    There was one line that didn't seem right:
    EntityCache:add WARNING - new row key matches a removed row
    Shortly after this, I get the primary key violation.
    *** UploadReferenceLettersAction.onCommit() ***
    ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - key = 00010000000132
    ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - Found key to delete
    ApptrackModuleImpl.deleteRefLetterByApplicantidLetterid(applicantId) - appId = 2
    [472] OracleSQLBuilder Executing Select on: DCSAT_APPL_REF_LETTER (true)
    [473] Built select: 'SELECT APPLICANT_ID, LETTER_ID, LETTER_INF, CREATED_BY, CREATED_DATE, UPDATED_BY, UPDATED_DATE FROM DCSAT_APPL_REF_LETTER ApplRefLetter'
    [474] Executing LOCK...SELECT APPLICANT_ID, LETTER_ID, LETTER_INF, CREATED_BY, CREATED_DATE, UPDATED_BY, UPDATED_DATE FROM DCSAT_APPL_REF_LETTER ApplRefLetter WHERE APPLICANT_ID=:1 FOR UPDATE NOWAIT
    [475] QueryCollection: afterRemove(1)
    [476] ViewRowCache: removeReference, vr id = 6
    [477] Delete [DeleteEvent: ApplRefLetterView1 rowIndex=1 countB4=2 count=1 rmvFromTab=true]
    UploadReferenceLettersAction.onCommit() - applicantId = 2
    UploadReferenceLettersAction.onCommit() - Saving upload starting
    [478] EntityCache:add WARNING - new row key matches a removed row
    [479] [UpdateEvent: ApplRefLetterView1 rowIndex=0 attrIndices=0]
    [480] OracleSQLBuilder: SAVEPOINT 'BO_SP'
    [481] [UpdateEvent: ApplRefLetterView1 rowIndex=0 attrIndices=5]
    [482] [UpdateEvent: ApplRefLetterView1 rowIndex=0 attrIndices=6]
    [483] OracleSQLBuilder Executing, Lock 1 DML on: DCSAT_APPL_REF_LETTER (Insert)
    [484] INSERT buf ApplRefLetter>#i SQLStmtBufLen: 480, actual=178
    [485] BEGIN INSERT INTO DCSAT_APPL_REF_LETTER(APPLICANT_ID,LETTER_ID,LETTER_INF,CREATED_BY,CREATED_DATE,UPDATED_BY,UPDATED_DATE) VALUES (:1,:2,:3,:4,:5,:6,:7) RETURNING APPLICANT_ID INTO :8; END;
    [486] OracleSQLBuilderImpl.doEntityDML failed...
    [487] X/Open SQL State is: 23000
    [488] java.sql.SQLException: ORA-00001: unique constraint (APPTRACK.APPLREFLTR_PK) violated
    ORA-06512: at line 1
    Thanks! Ken

  • Error in Update of atributte ORDSYS.ORDDOC

    Dear Friends,
    Somebody can help me, I have the following problem, when my program tries To make the Update of an Attribute "ESCRITO" of type ordsys.orddoc in table "LYT"."movimiento" (to see down) of a data base Oracle 9,0,1,0,0, using the method:
    void cmdImportarAP(ActionEvent e)
    try{
    Row rw = mov.getCurrentRow();
    File fichero = new File(escritos+"*"+rw.getAttribute("Id")+".doc");
    OrdDocDomain docu = (OrdDocDomain) rw.getAttribute("Escrito");
    if (docu != null){
    throw new Exception("Ya hay un documento en la DB");
    JFileChooser elector = new JFileChooser();
    elector.setDialogTitle("Importar desde:");
    elector.setName(fichero.toString());
    elector.setSelectedFile(fichero);
    int resultado = elector.showOpenDialog(null);
    if(resultado == JFileChooser.APPROVE_OPTION) {
    docu = new OrdDocDomain();
    docu.setContentSource(new OrdFileSource( elector.getSelectedFile().getAbsolutePath()));
    rw.setAttribute("Escrito",docu);
    amod.getTransaction().commit();
    } catch (Exception ex) {
    app.reportException(null,ex);
    I get this exception
    (oracle.jbo.DMLException) JBO-26041: Failed to post data to database during "Update": SQL Statement "JBO-29000: Unexpected exception caught: java.sql.SQLException, msg=ORA-00600: código de error interno, argumentos: [qxidmaclob], [], [], [], [], [], [], []
    ORA-06512: en "SYS.DBMS_LOB", lÃnea 492
    ORA-06512: en lÃnea 1
    CREATE TABLE "LYT"."MOVIMIENTO" ("ID" NUMBER(15) NOT NULL, "PROCESO"
    NUMBER(10), "HECHO" VARCHAR2(15 byte), "FECHA" DATE, "RESPONSABLE"
    VARCHAR2(10 byte), "FOJA" VARCHAR2(10 byte), "AGENDA"
    VARCHAR2(15 byte), "ESCRITO" "ORDSYS"."ORDDOC",
    CONSTRAINT "MOVIMIENTOPROCESO" FOREIGN KEY("PROCESO")
    REFERENCES "LYT"."PROCESO"("ID"),
    CONSTRAINT "MOVIMIENTORESPONSABLE" FOREIGN KEY("RESPONSABLE")
    REFERENCES "LYT"."MIEMBRO"("ID"),
    CONSTRAINT "PKMOVIMIENTO" PRIMARY KEY("ID")
    USING INDEX
    TABLESPACE "LYTTABLAS"
    STORAGE ( INITIAL 64K NEXT 0K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    PCTFREE 10 INITRANS 2 MAXTRANS 255)
    TABLESPACE "LYTTABLAS" PCTFREE 10 PCTUSED 40 INITRANS 1
    MAXTRANS 255
    STORAGE ( INITIAL 64K NEXT 0K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    LOGGING LOB("ESCRITO"."COMMENTS") STORE AS ( TABLESPACE "LYTTABLAS"
    STORAGE ( INITIAL 64K NEXT 0K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    ENABLE
    STORAGE IN ROW
    NOCACHE CHUNK 4096 PCTVERSION 10) LOB("ESCRITO"."SOURCE"."LOCALDATA")
    STORE AS ( TABLESPACE "LYTTABLAS"
    STORAGE ( INITIAL 64K NEXT 0K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    ENABLE
    STORAGE IN ROW
    NOCACHE CHUNK 4096 PCTVERSION 10)

    I'd suggest you do a simple test.
    1. create a table in your database:
    create table docs (id number(10), mov ordsys.orddoc);
    2. write a simple BC4J app that just uploads a document to the "mov" column.
    I suspect that ORDSYS.ORDDOC does not work well with your non-English database. This simple test can test whether that's the case.
    regards,
    Richard

  • Tab Page Errors out after migration to new instance

    Hi All,
    Tab Pages are running well in test instance but when I migrate it to dev instance then
    On click of a particular tab that page errors out.
    ERROR STACK
    ## Detail 0 ##
    java.lang.NullPointerException
         at exl.oracle.apps.per.eexit.webui.EmployeeUpdateCO.processRequest(EmployeeUpdateCO.java:228)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanConta
    [2096]:UNEXPECTED:[fnd.framework.webui.OAPageErrorHandler]:inerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2336)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1735)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:595)
    java.lang.NullPointerException
         at exl.oracle.apps.per.eexit.webui.EmployeeUpdateCO.processRequest(EmployeeUpdateCO.java:228)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2336)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1735)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:595)
    In PR in EmployeeUpdateCO
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String requestParams = pageContext.getParameter("partyNumber");
    if ("AlreadyDeleted".equals(requestParams))
    System.out.println("Above through already deleted Employee Exception");
    OAViewObject disVO = (OAViewObject)am.findViewObject("DisabledPVO1");
    if(disVO !=null)
    disVO.first();
    disVO.getCurrentRow().setAttribute("XXDisabled", Boolean.TRUE);
    //throw new OAException("This Employee has already been deleted. Please click on Home Link to come out from this page.", OAException.ERROR) ;
    //EXL_EEXIT_ALREADY_DEL//on 20.10.09
    throw new OAException("EXL","EXL_EEXIT_ALREADY_DEL");
    String employeeNumber = pageContext.getParameter("partyNumber");
    if (employeeNumber !=null)
    OAViewObject disVO = (OAViewObject)am.findViewObject("DisabledPVO1");
    if(disVO !=null)
    disVO.first();
    disVO.getCurrentRow().setAttribute("XXDisabled", Boolean.TRUE);
    //throw new OAException("Employee Resignation has been reversed sucessfully", OAException.CONFIRMATION);
    throw new OAException("EXL","EXL_EEXIT_RESIGN_REV");
    else
    System.out.println("In the else condition of EmployeeCO");
    System.out.println("Before disabling Reinitiate Button");
    OAViewObject disvotest = (OAViewObject)am.findViewObject("testVO1");//(XXJADisabledPVO1);
    System.out.println("Value of testVO1"+disvotest);
    if(disvotest != null)
    disvotest.first();
    //System.out.println("before falsing");
    disvotest.getCurrentRow().setAttribute("testnew", Boolean.TRUE);//erroring out here....
    //System.out.println("after falsing");
    System.out.println("After disabling Reinitiate Button");
    if (!pageContext.isFormSubmission())
    am.invokeMethod("initQuery", null);
    am.invokeMethod("InitUpdateLov", null);
    am.invokeMethod("renderJAPage");
    am.invokeMethod("renderSupPage");
    System.out.println("Calling New Method");
    am.invokeMethod("XXrenderSupPage");
    am.invokeMethod("disabledRadioButton");
    am.invokeMethod("disabledNoticeRadioButton");
    String UserId = pageContext.getEmployeeId()+"";
    String AUserId = pageContext.getUserId()+"";
    System.out.println("Anil EmployeeID is "+UserId);
    System.out.println("Anil EmployeeID1 is "+AUserId);
    Serializable[] personid = {UserId};
    // Commented on 27 May
    String userId = (String)am.invokeMethod("getEmployeeNumber", personid);
    String userName= pageContext.getUserName();
    System.out.println("USER NAMe is "+userName);
    System.out.println("userId in CO is "+userId);
    Serializable[] params = {userId};
    System.out.println("calling LOV in UpdateCO");
    am.invokeMethod("XXhandleMyLovUpdateEvent", params);
    System.out.println("Method Called in UpdateCO");
    // end here 09 june
    //end here code of Radio Button
    //==> //OAViewObject vo = (OAViewObject)am.findViewObject("EmployeeEOVO1");
    //am.invokeMethod("test");
    OAViewObject vo = (OAViewObject)am.findViewObject("EmpUpdateEOVO1");
    System.out.println("ROw COUNT IN EMPLOYEEUPDATE CO IS "+vo.getFetchedRowCount());
    if (vo != null && vo.getFetchedRowCount()>0)
    System.out.println("InsidePR of RADIO BUTTON");
    // vo.reset(); //New line added
    // vo.next(); //new line added
    OARow row = (OARow)vo.getCurrentRow();
    String email = row.getAttribute("NoticePayBuyoutFlag")+"";
    String email1 = row.getAttribute("JoiningBonusFlag")+"";
    String email2 = row.getAttribute("RelocationBonusFlag")+"";
    String email3 = row.getAttribute("ServiceAgreementFlag")+"";
    String email4 = row.getAttribute("NoticePayAdjustedPl")+"";
    String email5 = row.getAttribute("NoticePayWithoutAdjustedPl")+"";
    System.out.println("RADIO BUTTON VALUE IS "+email);
    System.out.println("RADIO BUTTON VALUE IS "+email1);
    System.out.println("RADIO BUTTON VALUE IS "+email2);
    System.out.println("RADIO BUTTON VALUE IS "+email3);
    System.out.println("RADIO BUTTON VALUE IS "+email4);
    System.out.println("RADIO BUTTON VALUE IS "+email5);
    row.setAttribute("NoticePayBuyoutFlag","NW");
    row.setAttribute("JoiningBonusFlag","NW");
    row.setAttribute("RelocationBonusFlag","NW");
    row.setAttribute("ServiceAgreementFlag","NW");
    row.setAttribute("NoticePayAdjustedPl","NW");
    row.setAttribute("NoticePayWithoutAdjustedPl","NW");
    Thanks,
    Sombit...

    OAViewObject disvotest = (OAViewObject)am.findViewObject("testVO1");
    System.out.println("Value of testVO1"+disvotest);
    if(disvotest != null)
    if(disvotest.getFetchedRowCount()>0)
    disvotest.first();
    disvotest.getCurrentRow().setAttribute("testnew", Boolean.TRUE);
    Also double check VO should have this VO Attribute.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • OAF - Missing In or Out Parameter at Index Error

    Hello,
    Here below is my requirement
    I have developed a custom OAF page which queries a list of suppliers from a custom table. I have a button at the bottom of the table which. when clicked should query the SEEDED supplier page (this page is same as the supplier page accessed from the Payables Manager responsibility -> Suppliers -> Supplier Entry/Inquiry -> query any supplier -> the first page that shows up is the QuickUpdatePG). I want to pass parameters to this seeded QuickUpdatePG page with the values selected in my custom OAF Page. I am using SetForwardURL with little luck. Here below is the code I have tried to use and this code is in the CO of my custom page (ProcessFormRequest)
    -- The below code works but doesn't query the supplier in the destination page
    pageContext.setForwardURL(
    "POS_HT_SP_B_QUK_UPD" //"AP_APXVDMVD"
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,h
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    StringBuffer whereclause = new StringBuffer(100);
    OAViewObject suppview = (OAViewObject)am.findViewObject("SuppSummVO");
    SuppSummVOImpl suppvo = (SuppSummVOImpl)am.getSuppSummVO1();
    SuppSummVORowImpl suppvorow = (SuppSummVORowImpl)suppvo.getCurrentRow();
    whereclause.append( "1=1 and Vendor_name="+"'"vorow.getSupplierName()"'");
    whereclause.append(" and segment1 = "+"'"vorow.getSupplierNumber()"'");
    suppvo.setWhereClause(whereclause.toString());
    System.out.println ("Query is "+suppvo.getQuery());
    suppvo.executeQuery();
    suppvo.createRow();
    suppvo.setCurrentRow(suppvorow);
    -- I searched forums and also the OAF Dev Guide and have tried this code below. This raises the error as "Missing IN or OUT parameter at index:: 2" I am unable to find a fix for this
    pageContext.setForwardURL(
    "POS_HT_SP_B_QUK_UPD" //"AP_APXVDMVD"
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,h
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    Vector parameters = new Vector (1);
    int bindCount = 0;
    int clauseCount = 0;
    OAViewObject suppliervo = (OAViewObject)am.getVendorsVO1();
    suppliervo.setWhereClauseParams(null);
    StringBuffer whereclause = new StringBuffer(100);
    whereclause.append("Vendor_id = :");
    whereclause.append(++bindCount);
    parameters.addElement(vorow.getVendorId());
    clauseCount++;
    suppliervo.setWhereClause(whereclause.toString());
    if (bindCount > 0){
    Object[] params = new Object[1];
    params.toString();
    parameters.copyInto(params);
    System.out.println("value again is "+parameters.get(0));
    suppliervo.setWhereClauseParams(params);
    } else {
    System.out.println("");
    suppliervo.executeQuery();
    The seeded page takes 1 parameter (Vendor ID) to query the details. I am passing the details of Vendor ID using Vector and setWhereClauseParams. The where clause of the page is as below
    select co1, col2, col3.....from po_vendors pv, ap_awt_groups aag,
    ap_awt_groups pay_aag
    , rcv_routing_headers rcpt
    , fnd_currencies_tl fct
    , fnd_currencies_tl pay
    , fnd_lookup_values pay_group
    , ap_terms_tl terms
    , po_vendors parent
    , per_employees_current_x emp
    , hz_parties hp
    , AP_INCOME_TAX_TYPES aptt
    , per_all_people_f papf
    where pv.vendor_id = :1
    and pv.party_id = hp.party_id
    and pv.parent_vendor_id = parent.vendor_id
    and pv.awt_group_id = aag.group_id
    and pv.pay_awt_group_id = pay_aag.group_id
    and pv.RECEIVING_ROUTING_ID = rcpt.ROUTING_HEADER_ID(+)
    and fct.language = userenv('lang')
    and pay.language (+)= userenv('lang')
    and pv.invoice_currency_code = fct.currency_code
    and pv.payment_currency_code = pay.currency_code
    and
    pv.pay_group_lookup_code = pay_group.lookup_code
    and pay_group.lookup_type (+)='PAY GROUP'
    and pay_group.language (+)=userenv('lang')
    and pv.terms_id = terms.term_id
    and terms.language = userenv('LANG')
    and terms.enabled_flag ='Y'
    and pv.employee_id = emp.employee_id
    and pv.employee_id = papf.person_id
    and pv.type_1099 = aptt.income_tax_type (+)) QRSLT WHERE (Vendor_id = :1)
    My doubt is should the :1 have the actual value passed or is the query built righly. At the end of this query is the error that says "java.sql.SQLException: Missing IN or OUT parameter at index:: 2"
    Any help is highly appreciated.
    Please let me know if any additional information is needed to have a better idea about the issue I am facing.
    Thanks,
    Sudhamsu

    Hi Sudhamsu,
    This error is coming becoz ur using same bind variable :1 in the VO query.
    extend the VO and use different bind variabale like (:1,:2);
    and pass the parameters using setWhereClauseParames in CO..it will fix the issue.
    Thanks
    GK

  • Inconsistent Update error: JBO: 25014.  Help Needed from Jdev team

    Hi,
    ***Please help me in solving this issue. urgent!!!. Thanks.***
    I need to know how can i Update after i browse throw a rowset
    and set the row attributes. Simple posting the changes and
    commit is giving me following error.
    I am getting JBO:25014 when i try to update a detail table for
    selected number of rows.
    I have a JSP page which allows the user to select either at
    master level or detail level using Radio Button and
    2 Text fields, one for date and other for comments at master
    level. This will appear mandatorily.
    In detail level, Number of rows which will be dynamically
    populated. If this level is selected, and say 5 lines are
    displayed, I will be having 5 text fields for dates and 5 text
    fields for comments. Upon submit, I pass these text fields
    values as params and receive in JSP page as String arrays in a
    seperate validation page .
    At the database end, I have Order Master table and Lines detail
    table.
    For some records in Order table, I am able to update records in
    both the tables. But for certain records in Order table, I am
    unable to update the detail table and throws me a JBO:25014
    error: : Another user has changed the row with primary key
    oracle.jbo.Key
    This record is very similar to other records and i am unable to
    update this record from sql*plus.
    In the validation Page, where i receive the parameters, I use
    View objects for Orders and Details, executeQuery for selected
    Order. Then I use Row Iterator for each of the view objects, in
    between the row iterator tags, I set the row attributes with the
    individual lines values if Libe level is selected or the common
    header date and comments value to all lines.
    Then i post changes and commit.
    The code is below for the way I update lines records.
    <jbo:DataSource id="ds"
    appid="LivePoheaders.LivePoheadersAppModule"
    viewobject="MyPOLinesView"/>
    <jbo:RowsetIterate datasource="ds" >
    <%
    //trying to get a row object
    rowln = ds.getRowSet().getCurrentRow();
    // formatting my date input to a valid string
    lnDateStr = PohdrFcastYear+"-"+PohdrFcastMon+"-"+PohdrFcastDay;
    out.println(PohdrComments);
    out.println("Header date" + lnDateStr);
    formatter.applyPattern("yyyy-MMM-dd");
    tempDate = formatter.parse(lnDateStr);
    formatter.applyPattern("yyyy-MM-dd");
    lnDateStr = formatter.format(tempDate);
    lnVenFcastDate = new oracle.jbo.domain.Date(lnDateStr);
    // setting the two attributes with input values
    rowln.setAttribute("VendorForecastDate", lnVenFcastDate);
    rowln.setAttribute("VendorComments",PohdrComments);
    }catch( Exception e)
    currErrorStatus = err.putErrorDesc(e.getMessage());
    err.setCurrentErrorStatus(currErrorStatus);
    %>
    <jbo:RollBack appid="LivePoheaders.LivePoheadersAppModule"/>
    <%
    throw new oracle.jbo.JboException(e);
    %>
    </jbo:RowsetIterate>
    <%
    try
    %>
    <P> <b>Posting Changes ...</b> </P>
    <jbo:PostChanges appid="LivePoheaders.LivePoheadersAppModule"/>
    <P> <b>Committing Changes...</b> </P>
    <jbo:Commit appid="LivePoheaders.LivePoheadersAppModule"/>
    <P> <b>Commit Successful...</b> </P>
    <%
    currErrorStatus = "-1";
    err.setCurrentErrorStatus(currErrorStatus);
    }catch( Exception e)
    currErrorStatus = err.putErrorDesc(e.getMessage());
    err.setCurrentErrorStatus(currErrorStatus);
    %>
    <jbo:RollBack appid="LivePoheaders.LivePoheadersAppModule"/>
    <%
    throw new oracle.jbo.JboException(e);
    %>

    From the JDeveloper 3.2.3 online documentation:
    JBO-25014: RowInconsistentException
    Cause: Comparison of the cached entity failed with the values in
    the database for that entity. This could happen when another
    user or operation has committed modifications to the same entity-
    row in the database. This exception can also be thrown if the
    equals() method on one of the domain-type attributes in the
    entity fails.
    Action: Choose from the following options:
    --Verify that another user or operation has not modified the
    same row in the database. If this entity has attributes of a
    domain type verify that the equals() method on these domains do
    not fail when comparing the existing cached value with the newly
    fetched value.
    --For any attributes/columns that are updated by the database,
    modify the entity attribute definition by selecting Refresh
    after update on the Attribute Settings page of the Entity Object
    Wizard.
    --Use view.executeQuery() frequently, especially after any
    operations that result in data being changed.

  • JBO-35007 error after custom navigation

    I have a SearchPersons page that has a Search Form and table for displaying results and Information About Person for displaying data about single person.
    When there is many results, data is displayed in the same page, later user can access Information About Person page via commandLink in table. Other story is when query returns one result- navigation rule navigates directly to Information About Person page. I have created SearchPersonsBean for handling these two different situations.
    The problem is when I try to go back from Information About Person page to SearchPersons page by clicking back button and try to use Search again, I get “JBO-35007: Row currency has changed since the user interface was rendered. The expected row....“. Also I need to have this person’s information in my result table, but I get it just after I get the JBO-35007 error.
    When I am removing my if (items == 1) statement from SearchPersonsBean, I get usal behaviuor – even if search returns one person result is displayed in the same page.
    So the problem is deffinetly in this if (items == 1) statement, but I don’t know how to fix this. Any kind of help would be greatly appreciated.
    Here is my code
    Simplified view of SearchPersons page:
    <af:panelBox>
    <!--Search parameter imputs-->
    <af:commandButton id="searchButton"
    actionListener="#{bindings.ExecuteWithParams.execute}"
    action="#{searchPersonBean.searchAction}"/>
    </af:panelBox>
    <af:table binding="#{searchPersonBean.resultTable}"
    rendered="#{adfFacesContext.postback}"
    value="#{bindings.SearchPersons.collectionModel}" var="row"
    rows="#{bindings.SearchPersons.rangeSize}"
    first="#{bindings.SearchPersons.rangeStart}" width="70%">
    <af:column headerText="#{lbl['personSearchResults.personalNumberLabel']}"
    sortProperty="PrsId" sortable="true">
    <af:commandLink action="view"
    actionListener="#{bindings.ExecutePersonInfoWithParams.execute}">
    <af:setActionListener from="#{'search'}"
    to="#{userStateBean.returnNavigationRule}"/>
    </af:commandLink>
    <<!--Other columns-->
    </af:table>
    PageDef:
    <executables>
    <iterator id="SearchPersonsIterator" RangeSize="10"
    Binds="SearchPersons" DataControl="AppModuleDataControl"
    RefreshCondition="${adfFacesContext.postback == false}"
    Refresh="renderModelIfNeeded"/>
    <variableIterator id="variables">
         <!—Search persons criterias->
    </variableIterator>
    <iterator id="PersonInformationIterator" Binds="PersonInformation"
    RangeSize="10" DataControl="AppModuleDataControl"
    RefreshCondition="${adfFacesContext.postback == false}"
    Refresh="renderModelIfNeeded"/>
    </executables>
    <bindings>
    <table id="SearchPersons" IterBinding="SearchPersonsIterator">
    <AttrNames>
    <!--atributes-->
    </AttrNames>
    </table>
    <action id="ExecuteWithParams" IterBinding="SearchPersonsIterator"
         <!—This action executes view query-->
    </action>
    <action IterBinding="PersonInformationIterator" id="ExecutePersonInfoWithParams"
    InstanceName="AppModuleDataControl.PersonInformation"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="95">
    <NamedData NDName="PersonCode" NDValue="${row.PrsCode}"
    NDType="oracle.jbo.domain.Number"/>
    </action>
    </bindings>
    </pageDefinition>
    SearchPersonsBean:
    public class SearchPersonBean {
    private Integer personCode = null;
    private CoreTable resultTable = null;
    public String searchAction() {
    // -- default outcome
    String ACTION_OUTCOME = NavigationResults.SUCCESS.outcome;
    DCIteratorBinding interatorBinding =
    (DCIteratorBinding) getBindings().get("SearchPersonsIterator");
    long items = interatorBinding.getEstimatedRowCount();
    if (items == 1) {
    interatorBinding.setCurrentRowIndexInRange(1);
    Row firstRow = interatorBinding.getCurrentRow();
    personCode = (Integer) firstRow.getAttribute("PrsCode");
    OperationBinding executePersonInfo =
    getBindings().getOperationBinding(
    "ExecutePersonInfoWithParams");
    executePersonInfo.getParamsMap().put("PersonCode", personCode);
    executePersonInfo.execute();
    // -- set return action (on Cancel)
    UserState.assignReturnNavigationRule("search");
    ACTION_OUTCOME = NavigationResults.VIEW.outcome;
    // -- reset table's range navigator possition
    getResultTable().setFirst(0);
    return ACTION_OUTCOME;
    //~--- get methods --------------------------------------------------------
    private BindingContainer getBindings() {
    BindingContainer bindings =
    (BindingContainer) JSFUtils.resolveExpression("#{bindings}");
    return bindings;
    public Integer getPersonCode() {return personCode;}
    public void setPersonCode(Integer personCode) {this.personCode = personCode;}
    public void setResultTable(CoreTable resultTable) {this.resultTable = resultTable;}
    public CoreTable getResultTable() {return resultTable;}
    }

    I have removed elements that are not involved in createing this error.
    My pageDef now looks like:
    <executables>
    <iterator id="SearchPersonsIterator" RangeSize="10"
    Binds="SearchPersons" DataControl="AppModuleDataControl"
    RefreshCondition="${adfFacesContext.postback == false}"
    Refresh="renderModelIfNeeded"/>
    <variableIterator id="variables">
    <!—Search persons criterias->
    </variableIterator>
    </executables>
    <bindings>
    <table id="SearchPersons" IterBinding="SearchPersonsIterator">
    <AttrNames>
    <!--atributes-->
    </AttrNames>
    </table>
    <action id="ExecuteWithParams" IterBinding="SearchPersonsIterator"
    <!—This action executes view query--> </action>
    </bindings>
    And my cusom bean:
    public class SearchPersonBean {
    private Integer personCode = null;
    private CoreTable resultTable = null;
    public String searchAction() {
    // -- default outcome
    String ACTION_OUTCOME = NavigationResults.SUCCESS.outcome;
    DCIteratorBinding interatorBinding =
    (DCIteratorBinding) getBindings().get("SearchPersonsIterator");
    long items = interatorBinding.getEstimatedRowCount();
    if (items == 1) {
    // -- set return action (on Cancel)
    UserState.assignReturnNavigationRule("search");
    ACTION_OUTCOME = NavigationResults.VIEW.outcome;
    // -- reset table's range navigator possition
    getResultTable().setFirst(0);
    return ACTION_OUTCOME;
    I feel that the problem is because the data in the result table is not created, when after search there is only one result and bean navigates straight to Information About Persons page. After I go back with back button, there is no result dispalyed in my result table and when I refresh the page - JBO-35007 pops.
    I have no idea how to force the result to be displayed before navigation to Information About Persons

Maybe you are looking for