How / Where to Catch : oracle.jbo.TooManyObjectsException: JBO-25013

Hi OAF Gurus,
I have read the existing threads on .TooManyObjectsException, but none of them talks about catching this exception.
Note: We don’t want to avoid this exception, we want it get raised. then we want to catch it and process according to our business needs.
Our Requirement : We have to catch this exception and display in a user friendly manner
Question: Where we can catch this exception.?
What we did by far
->TooManyObjectsException is a type of RuntimeException
-> we added try catch(Exception) blocks in the following
try{ commit() } catch(Exception e){}
try{ validate() } catch(Exception e){} // ROW Impl
try{ validateEntity() } catch(Exception e){} //EO Impl
The BIG question : where to put the try/catch block to catch the TooManyObjectsException exception.
(Again: we do not want to avoid this exception, we want to catch it)
Please let me know your suggestions.
Thanks
Chaitanya

Tapash,
That is not the correct thing to say, RuntimeException is a derived class of Exception, so any runtime exception will be caught if you use Exception
Absolutely correct... read my reply carefully... i have written--- For any runtime excetion put a catch block for that runtime exception l... so iot should specially contain that runtime exception ,i,e, oracle.jbo.TooManyObjectsException.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects

    Hi All,
    In one of my menus which contain function on clicking of which we get UI in tabs is erroring out with the below error:
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[-99999 ].
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3132)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2929)
         at OA.jspService(_OA.java:228)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:392)
         at RF.jspService(_RF.java:225)
    Does someone of you have any idea on how this error could be resolved.
    Thanks,
    Amrit

    Hi ,
    This type of error comes when you have extra column marked as Primary key e.g ROWID ,so please check this and simply remove it.
    Thanks
    Pratap

  • Reg : OAException: oracle.jbo.TooManyObjectsException: JBO-25013

    Hi Team,
    Iam getting the following exception in the seeded OAF page.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[10357 394068 ].
    *     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)*
    *     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2537)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1889)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:533)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:421)*
    How to debug the issue.. Please provide your thoughts..
    -Sri

    Sri,
    Hope you have created a Entity Object for DML operation. Cross check whether u have more than one attribute marked as primary key.
    Regards.
    Gyan

  • Custom OAF Page : oracle.jbo.TooManyObjectsException: JBO-25013:

    All,
    Here is my requirement.......
    1) Custom table with columns
    payperiod - PrimaryKey
    end_date - Date
    dept - varchar2
    progYear - Number
    2) Develop custom page to insert the rows into above table
    3) Validations while commiting the changes
    a) if the row is new commit
    b) if the row is already exists throw warning message in a new page with submit & cancel.... if user select submit button then update the row with new values... if user select cancel button revert back to main page...
    I have developed a EO, EO based VO and PG.xml for the above requirement.... but the issue is when user selects CANCEL button I am getting the below error........ based on search over the forums I have tried setting vo.clearCache(); and setting the properties DisableServerSide validation, DisableClientSideValidation to true also did not help...
    Can anyone help in solving this issue....
    Error
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[201101 ].
    Pay Period - Attribute PostPayPeriod in xxpbgcpayrollinterfaceAM.xxpbgcPayrollBlobVO is required
    -----------------------------------------------------------------------------------------------

    Hi,
    *3) Validations while commiting the changes
    a) if the row is new commit
    b) if the row is already exists throw warning message in a new page with submit & cancel.... if user select submit button then update the row with new values... if user select cancel button revert back to main page... *
    use findByPrimaryKey() method for ur requirement. For more Refer Developer Guide.
    Regards,
    Gyan

  • Oracle.jbo.TooManyObjectsException: JBO-25013

    Hello,
    We are using JDeveloper 9.0.3.1 (I know, quite old). The following exception appears from time to time when re-initializing a dialog with a different id:
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[2 7172 113 ].
    at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:568)
    at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:4306)
    at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:3597)
    The exception occurs when executing the query on this ViewObject (line 3 in the sample below):
    ViewObject vo = this.app.getApplicationModule().findViewObject("MyView");
    vo.setWhereClauseParam(0, id);
    vo.executeQuery();
    This data is displayed in a table. No matter which id I use, the first call of this dialog always works.
    The corresponding EntityObject has a primary key consisting of three columns, and due to the data the primary key can indeed be identical from time to time. But I expected that after calling the dialog with a different id the ViewObject is brand new and doesn’t contain any data…
    Any ideas or more information/ code needed? Switching to a new JDeveloper version is almost impossible due to client restrictions.
    Thanks in advance. Regards, Dominik

    Thanks for the really fast answer, but I don't have such a method.

  • Oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the

    I have developerd a OAF and deployed in apps.
    When i am running that page it gives me error
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[0].
    and hides the Lines region.
    when i refresh (F5) the page it work fine .
    i am unable to debug the error.
    could be please help me.
    thanks
    Naresh

    Hi ,
    This type of error comes when you have extra column marked as Primary key e.g ROWID ,so please check this and simply remove it.
    Thanks
    Pratap

  • OAF Exception :oracle.jbo.TooManyObjectsException:Primary Key

    Hi All,
    I am getting the Exception
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key
    I am inserting the same row in Table.
    My PK is col1,col2,col3
    So how to Handle this Exception and throw the User Defined Message that , The Record is available in Table.
    Regards
    Khushal

    Khushal,
    Is any other way to get Solution ?You can try to achieve the same by - Create a VO for the same and in the where pass the value for PK1,PK2,Pk3. Execute the VO, by passing the parameter and if it returns any row. Then it means that there already exists some row with the same value.
    Regards,
    Gyan

  • Oracle.jbo.TooManyObjectsException but validated unique keys?

    11gR1 ADF
    I have some code similar to the code that copies the transient cart to the persistent card from the FOD, and I've receiving the TooManyObjectsException error even though I've validated that the key is unique.
                for(Row tItemRow : tRows) {
                    if((Boolean)tItemRow.getAttribute("trSelected")){
                        System.out.println("Saving selected row where : segment1=" +
                                           tItemRow.getAttribute("Segment1")
                                           + " and notification ID = " +
                                           tItemRow.getAttribute("trNotificationID")
                                           + " and requistionId = " +
                                           tItemRow.getAttribute("RequisitionHeaderId")
                                           + " and messagetype = " + strMessage);
                        ViewObjectImpl reqsApprActionVO =  findVOforTransaction(strMessage,"APPR_ACTION"); /* this retrieves the appropriate VO */
                        Row newOrderItemRow = reqsApprActionVO.createRow();
                        newOrderItemRow.setAttribute("NotificationID", tItemRow.getAttribute("trNotificationID").toString());
                        newOrderItemRow.setAttribute("HeaderId", tItemRow.getAttribute("RequisitionHeaderId"));
                        newOrderItemRow.setAttribute("MessageType", strMessage);
                        newOrderItemRow.setAttribute("ApprovalAction", rowApprTR.getAttribute("trApprovalAction"));
                        newOrderItemRow.setAttribute("Comments", rowApprTR.getAttribute("trComments"));
                        newOrderItemRow.setAttribute("CommentsApprCond", rowApprTR.getAttribute("trCommentsApprCond"));
                        newOrderItemRow.setAttribute("CommentsRevInst", rowApprTR.getAttribute("trCommentsRevInst"));
                        newOrderItemRow.setAttribute("ResponderId", rowApprTR.getAttribute("trResponderId"));
                        newOrderItemRow.setAttribute("ForwardeeId", rowApprTR.getAttribute("trForwardeeId"));
                        reqsApprActionVO.insertRow(newOrderItemRow);
                getDBTransaction().commit();This is in my log
    Saving selected row where : segment1=1000167 and notification ID = 25069 and requistionId = 434 and messagetype = REQAPPRV
    Saving selected row where : segment1=1000168 and notification ID = 25070 and requistionId = 435 and messagetype = REQAPPRV
    ReqPOAppModfuleImpl processReqs exception: oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[25069 434 REQAPPRV ].The table is blank, and with the println's, you can see that the multiple rows being processed are unique.
    Some additional info:
    From the EO
      <Attribute
        Name="NotificationID"
        IsNotNull="true"
        ColumnName="NOTIFICATION_ID"
        SQLType="NUMERIC"
        Type="oracle.jbo.domain.Number"
        ColumnType="NUMBER"
        TableName="CUSTOM.CUST_PO_REQ_APPROVAL_ACTION"
        PrimaryKey="true"/>
      <Attribute
        Name="HeaderId"
        IsNotNull="true"
        ColumnName="HEADER_ID"
        SQLType="NUMERIC"
        Type="oracle.jbo.domain.Number"
        ColumnType="NUMBER"
        TableName="CUSTOM.CUST_PO_REQ_APPROVAL_ACTION"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="22"/>
        </DesignTime>
      </Attribute>
      <Attribute
        Name="MessageType"
        IsNotNull="true"
        Precision="8"
        ColumnName="MESSAGE_TYPE"
        SQLType="VARCHAR"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        TableName="CUSTOM.CUST_PO_REQ_APPROVAL_ACTION"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="8"/>
        </DesignTime>
      </Attribute>
      <Key
        Name="SysC00259495">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="SYS_C00259495"/>
          <Attr Name="_checkCondition" Value='"NOTIFICATION_ID" IS NOT NULL'/>
          <Attr Name="_isCheck" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="customer.ep.reqpo.model.custom.eo.CUSTPoReqApprovalActionEO.NotificationID"/>
        </AttrArray>
      </Key>
      <Key
        Name="SysC00259496">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="SYS_C00259496"/>
          <Attr Name="_checkCondition" Value='"HEADER_ID" IS NOT NULL'/>
          <Attr Name="_isCheck" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="customer.ep.reqpo.model.custom.eo.CUSTPoReqApprovalActionEO.HeaderId"/>
        </AttrArray>
      </Key>
      <Key
        Name="SysC00259497">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="SYS_C00259497"/>
          <Attr Name="_checkCondition" Value='"MESSAGE_TYPE" IS NOT NULL'/>
          <Attr Name="_isCheck" Value="true"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="customer.ep.reqpo.model.custom.eo.CUSTPoReqApprovalActionEO.MessageType"/>
        </AttrArray>
      </Key>
      <Key
        Name="CUSTPoReqApprovalActiPk"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="CUST_PO_REQ_APPROVAL_ACTI_PK"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="customer.ep.reqpo.model.custom.eo.CUSTPoReqApprovalActionEO.NotificationID"/>
          <Item
            Value="customer.ep.reqpo.model.custom.eo.CUSTPoReqApprovalActionEO.HeaderId"/>
          <Item
            Value="customer.ep.reqpo.model.custom.eo.CUSTPoReqApprovalActionEO.MessageType"/>
        </AttrArray>
      </Key>From the VO
      <ViewAttribute
        Name="NotificationID"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="NotificationID"
        EntityUsage="CUSTPoReqApprovalActionEO"
        AliasName="NOTIFICATION_ID"/>
      <ViewAttribute
        Name="HeaderId"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="HeaderId"
        EntityUsage="CUSTPoReqApprovalActionEO"
        AliasName="HEADER_ID"/>
      <ViewAttribute
        Name="MessageType"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="MessageType"
        EntityUsage="CUSTPoReqApprovalActionEO"
        AliasName="MESSAGE_TYPE"/>

    Hi,
    The reason you are getting error, is itself because you are attempting to update primary key.
    Primay key is treated as immutable in case of OAF. Hence one should avoid updating primary key.
    As far as the requirement is considered you should try some alternative approach like using duplicate row when user updates.
    Abdul Wahid

  • Database trigger causes "TooManyObjectsException JBO-25013" in view object

    Hi all,
    I have two tables in a parent - child relationship. Each has it's entity and view object with appropriate associations and links. The parent table has an insert trigger which inserts default rows into the child table when a new parent row is created.
    So the sequence is as follows:
    1) User has view of parent and child tables on one form.
    2) Clicks on parent table row, associated child rows are displayed in child table.
    3) User clicks on Insert button on parent table nav bar.
    4) User enters data and clicks the Commit button on parent table nav bar.
    5) BC4J framework goes off into the JUNavigationBar.actionPerformed() method.
    6) Next thing I see is the error below:
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[2210 ].
    I have confirmed that if I disable the trigger the problem goes away. I also tried clearing the cache on the child table just before the JUNavigationBar.actionPerformed() but it does not help.
    I suspect that the VO gets confused by the rows inserted by the trigger when it reloads the data during the last phases of the commit.
    How do I get around this problem??
    Any suggestions welcome. I'm desperate at this stage!
    Thanks,
    Stefan Mahs
    PS: the stack trace follows:
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the
    primary key oracle.jbo.Key[2210 ].
    at oracle.jbo.server.EntityCache.add(EntityCache.java:371)
    at
    oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1493)
    at
    oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:1955)
    at
    oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1021)
    at
    oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2219)
    at
    oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2149)
    at
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1577)
    at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1429)
    at oracle.jbo.server.QueryCollection.get(QueryCollection.java:966)
    at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2731)
    at
    oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2457)
    at
    oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2321)
    at
    oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2522)
    at
    oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1604)
    at
    oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:3468)
    at
    oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:2952)
    at
    oracle.jbo.server.ViewRowSetIteratorImpl.fireRowUpdated(ViewRowSetIteratorImpl.java:3098)
    at
    oracle.jbo.server.ViewRowSetIteratorImpl.notifyRowUpdated(ViewRowSetIteratorImpl.java:2767)
    at
    oracle.jbo.server.ViewRowSetImpl.notifyRowUpdated(ViewRowSetImpl.java:1113)
    at
    oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(ViewObjectImpl.java:6109)
    at
    oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(ViewObjectImpl.java:6087)
    at
    oracle.jbo.server.ViewObjectImpl.afterRowUpdate(ViewObjectImpl.java:7057)
    at
    oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:7222)
    at
    oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:504)
    at
    oracle.jbo.server.EntityCache.notifyColumnChange(EntityCache.java:534)
    at
    oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:4034)
    at
    oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:442)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:4592)
    at mdh.bc4j.SkusImpl.doDML(SkusImpl.java:1257)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:3658)
    at
    oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2336)
    at
    oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2246)
    at
    oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1541)
    at
    oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1707)
    at
    oracle.jbo.uicli.binding.JUApplication.commitTransaction(JUApplication.java:820)
    at
    oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:350)
    at
    oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:257)
    at
    oracle.jbo.uicli.controls.JUNavigationBar.actionPerformed(JUNavigationBar.java:228)
    at
    mdh.client.sku.JUNavigationBarStateful.actionPerformed(JUNavigationBarStateful.java:72)
    at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at
    javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at
    java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
    at java.awt.Component.processMouseEvent(Component.java:5134)
    at java.awt.Component.processEvent(Component.java:4931)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3639)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    at java.awt.Container.dispatchEventImpl(Container.java:1609)
    at java.awt.Window.dispatchEventImpl(Window.java:1590)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

    Let me know when you have a testcase you can email.- unfortunatelly, we cannot reproduce this behavior by using the FOD/Fussion schema with the BrowseEdit demo application (from the Cue cards), everything works as expected.
    After making an analogue trigger on our working schema, this error behaviour still repeats. But, here is our stack trace, maybe this can help. Note addForAltKey(...) bellow, we have one Alternate key. On the other hand, here is part from "Developer quide":
    Whenever any of the key attribute values change, this rule validates that the new key
    does not belong to any other entity object instance of this entity object class. (It is the
    business-logic tier equivalent of a unique constraint in the database.) If the key is
    found in one of the entity objects, a TooManyObjectsException is thrown. The
    validation check is done both in the entity cache and the database
    - we do not know if it is a problem, but looks like that. Note that problem occurs even if we are inserting the first master record.
    In nay case, here is our stack trace:
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[49 ].
         at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:369)
         at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:726)
         at oracle.jbo.server.EntityCache.add(EntityCache.java:347)
         at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:2266)
         at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2631)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:3995)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2677)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2558)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1788)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:4142)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2824)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2680)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2921)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2339)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:5525)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3416)
         at oracle.jbo.server.ViewRowSetIteratorImpl.fireRowUpdated(ViewRowSetIteratorImpl.java:3602)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRowUpdated(ViewRowSetIteratorImpl.java:3222)
         at oracle.jbo.server.ViewRowSetImpl.notifyRowUpdated(ViewRowSetImpl.java:1670)
         at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(ViewObjectImpl.java:9138)
         at oracle.jbo.server.ViewObjectImpl.notifyRowUpdated(ViewObjectImpl.java:9115)
         at oracle.jbo.server.ViewObjectImpl.afterRowUpdate(ViewObjectImpl.java:10267)
         at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:10484)
         at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1044)
         at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1058)
         at oracle.jbo.server.EntityCache.notifyColumnChange(EntityCache.java:1113)
         at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:6035)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:525)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:6971)
         at com.energosoft.tee.model.entities.TeeTradingTicketEOImpl.doDML(TeeTradingTicketEOImpl.java:87)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:5428)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3129)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2937)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2061)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2263)
    ----------

  • ADF Validations - oracle.jbo.TooManyObjectsException Workaround/HOW TO?

    I am trying to work around an oracle.jbo.TooManyObjectsException I am getting, and I am at my wits end as to how solve this problem. I am new to ADF and JDeveloper, so the answer to this could be very easy. I have a master /detail table relationship which is a one to many. The primary key for the detail record consists of two elements, one derived because of the master detail association, and the second is user selected. However if another record is created with the same user selection, the primary key is violated and an exception is thrown. I would like to validate what the user entered, so that I can show a much more user friendly message instead of a JBO exception. I am not sure where this kind of validation would normally go, or if this can be implemented declaratively. I am really stuck here…
    Eg. MST(mst_id) -> DTL(mst_id, dtl_id) (One to many btw Table MST and DTL, only primary key elements shown)
    Where/How can I validate/ensure that the primary key combination of DTL is unique without throwing an exception first. I am currently trying it at the Entity Object Level. But I have got to be missing something very simple…

    Any ideas... in the hr databse, this would be similar to the relationship between employees and job history... i want to add validation to ensure that two job history records cannot be created with the same start date and employee id... how do i provide validation before the too many objects exception is activated... something like "start date already exists"... maybe jdeveloper has a different implementation paradigm for such a scenario

  • BC4J : oracle.jbo.TooManyObjectsException

    Hi,
    I came across this exception, while doing forward engineering.
    These are the steps I followed :
    1. Create 2 EO :
    -- PE , with 2 attributes : id, name : id as primary key
    -- FE, with 2 attributes : id , name : id as primary key
    2. Create Entity Constraints :
    -- For both the tables, with id as their primary key
    -- Create a Foreign key for FE, which references PE
    3. Create Database Objects
    -- Selected both the EO's, so that the contraints are made
    4. Making Associations, VO and VL, and adding it in the AM data model.
    5. Testing the BC4J
    For some reason, if I try to add more than 1 record in the FE table, it gives oracle.jbo.TooManyObjectsException
    The Jdev. docs says that, this exception is thrown when Entity Object row has a duplicate primary key, but I am not able to find any!!!
    Please help me with this!!
    TIA
    Sandeep

    Raghu,
    Thanks for the response.Your solution had helped me.
    There are a few queries I had while doing forward engineering.
    Taking the same example of PE and FE EOs with attributes as (pid, name) and (fid,name and pid) :
    1. When I create EO's, PK had to be defined.So do I need to "Create Entity Constraints.." for the PK's for both the EO's
    2. Difference between creating a FK reference between the two tables by "Create Entity Constraints.." and Association?
    Could you please paste the steps, that I would need to follow, for this , or alternatively a walkthrough/HOWTO of the same would be helpful.
    TIA,
    Sandeep

  • Getting error oracle.jbo.RowCreateException: JBO-25017:

    Hi,
    I am getting below error when I try to add new line dynamically in the table
    oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for FeedbackInvLineEO.
    Any suggestions plz.This is very urgent..:-(
    How can i achive adding new lines dynamically on the table.I followed same steps as per doc but still i am getting above error :-(

    Hi im getting the same error, even after defining the audit columns.
    can u give me steps of what code was put where exactly? coz im getting this error
    "oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for LoanApplyEO."
    i turned the debugger on and its selecting the query but unable to create the row in the EO. this is urgent, pls suggest me how shd i solve this issue.
    what ive done is something like this-- (this is reqd. to submit data into a table)
    on apply button click.
    ive defined a CO which has
    in ProcessRequest > -----------------------------------------------------------------
    if (!pageContext.isFormSubmission())
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createLoan");
    in ProcessFormRequest > ---------------------------------
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("Apply") != null)
    OAViewObject vo = (OAViewObject)am.findViewObject("LoanApplyVO");
    am.invokeMethod("apply");
    in AM >------------------------------------
    public void createLoan()
    OAViewObject vo = (OAViewObject)getLoanApplyVO();
    if (!vo.isPreparedForExecution())
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    } // end createLoan()
    public void apply()
    this.getOADBTransaction().commit();
    // getTransaction().commit();
    am i missing out something?
    pls. let me know. this is an urgent requirement. pls help.
    Thanks Vikrant

  • Oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-271

    Hi All,
    For the following VO query ,
    select meas_elem_weight from xxg2c_quota_weights_v where org_id = :0 and quota_id = :1 and comp_plan_id =:2
    union
    select 0 meas_elem_weight from dual where not exists (select meas_elem_weight from xxg2c_quota_weights_v where org_id = :0 and quota_id = :1 and comp_plan_id =:2)
    union
    select weighting meas_elem_weight from xxg2c_srp_goal_quotas_all where srp_goal_quota_id = :3
    and quota_id = :1
    and not exists (select meas_elem_weight from xxg2c_quota_weights_v where org_id = :0 and quota_id = :1 and comp_plan_id =:2)
    order by meas_elem_weight
    I am getting the following exception...
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select meas_elem_weight from xxg2c_quota_weights_v where org_id = :0 and quota_id = :1 and comp_plan_id =:2
    union
    select 0 meas_elem_weight from dual where not exists (select meas_elem_weight from xxg2c_quota_weights_v where org_id = :0 and quota_id = :1 and comp_plan_id =:2)
    union
    select weighting meas_elem_weight from xxg2c_srp_goal_quotas_all where srp_goal_quota_id = :3
    and quota_id = :1
    and not exists (select meas_elem_weight from xxg2c_quota_weights_v where org_id = :0 and quota_id = :1 and comp_plan_id =:2)
    order by meas_elem_weight
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    and the method in the corresponding VOImpl.java file is
    public void initWeightList(Integer compPlanId,Integer quotaId,Integer srpGoalQuotaId,int orgId){
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, orgId);
    setWhereClauseParam(1, quotaId);
    setWhereClauseParam(2, compPlanId);
    setWhereClauseParam(3, srpGoalQuotaId);
    executeQuery();
    I am not able to resolve the above mentioned exception.
    Please help
    Thanks
    Chandrika

    Koen,
    The link you sent was very useful. Thanks for that
    Even after changing the parameters,I get the following exception
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select meas_elem_weight from xxg2c_quota_weights_v where org_id = :1 and quota_id = :2 and comp_plan_id =:3
    union
    select 0 meas_elem_weight from dual where not exists (select meas_elem_weight from xxg2c_quota_weights_v where org_id = :4 and quota_id = :5 and comp_plan_id =:6)
    union
    select weighting meas_elem_weight from xxg2c_srp_goal_quotas_all where srp_goal_quota_id = :7
    and quota_id = :8
    and not exists (select meas_elem_weight from xxg2c_quota_weights_v where org_id = :9 and quota_id = :10 and comp_plan_id =:11)
    order by meas_elem_weight
    the corresponding code in VOImpl file is
    public void initWeightList(Integer compPlanId, Integer quotaId,Integer srpGoalQuotaId, int orgId){
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, orgId);
    setWhereClauseParam(1, quotaId);
    setWhereClauseParam(2, compPlanId);
    setWhereClauseParam(3, srpGoalQuotaId);
    executeQuery();
    This is how the AM calls the method in VO
    public void initWeightList(Integer compPlanId, Integer selectedQuotaId, Integer srpGoalQuotaId){
    Xxg2cElementWeightVOImpl elementVO = getXxg2cElementWeightVO1();
    elementVO.initWeightList(compPlanId, selectedQuotaId, srpGoalQuotaId, getOADBTransaction().getOrgId());
    Any idea of whats happening?
    Thanks
    Chandrika

  • Error:  oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation

    Hi all,
    I am trying to extend the supplier address book site creation controller: ByrCrtStCO and loop inside the processFormRequest method through all the operating unit related sites on that page.
    I have the following code:
    package XXXX.oracle.apps.pos.supplier.webui;
    import java.sql.SQLException;
    import java.sql.Types;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OARow;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.pos.supplier.components.server.ByrAddrAMImpl;
    import oracle.apps.pos.supplier.webui.ByrCrtStCO;
    import oracle.apps.pos.supplier.webui.SupplierUtil;
    import oracle.jdbc.OracleCallableStatement;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.Row;
    * @author AO *
    public class xxxpoByrCrtStCO  extends ByrCrtStCO
       //constructor
        public xxxpoByrCrtStCO()
        public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
            //call super to continue the rest of the processing
            super.processFormRequest(oapagecontext, oawebbean);
            //update the supplier site on all records with the vat code
            updateVendorSites(oapagecontext, oawebbean);
        private void updateVendorSites(OAPageContext oapagecontext, OAWebBean oawebbean) {
            OAApplicationModule applicationModule = oapagecontext.getApplicationModule(oawebbean);
            if(oapagecontext.getParameter("applyBtn") != null)
                OAViewObject oaviewobject =  (OAViewObject) applicationModule.findViewObject("CrtSitesVO");           
                  if (oaviewobject != null) {
                                      int count = oaviewobject.getRowCount();
                                      if(oapagecontext.isLoggingEnabled(2))
                                                             oapagecontext.writeDiagnostics(this, (new StringBuilder()).append(" Count: ").append(count).toString(), 2);
                        else {
                            if(oapagecontext.isLoggingEnabled(2))
                                                   oapagecontext.writeDiagnostics(this, (new StringBuilder()).append(" Count: ").append("null").toString(), 2);
    I get the below error:  What could be problem?
    Logout
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select 'N' as select1, substr(:1,1,15) as Site_Name, organization_id, name,:2 as Site_Name_Display from hr_operating_units WHERE mo_global.check_access(organization_id) = 'Y') QRSLT ORDER BY name at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:3001) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1885) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:550) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:438) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:662) ## Detail 0 ## java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1752) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493) at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:688) at oracle.jbo.server.ViewRowSetImpl.getRowCount(ViewRowSetImpl.java:1932) at oracle.jbo.server.ViewObjectImpl.getRowCount(ViewObjectImpl.java:6011) at xxx.oracle.apps.pos.supplier.webui.xxxpoByrCrtStCO.updateVendorSites(xxxpoByrCrtStCO14.java:85) at xxx.oracle.apps.pos.supplier.webui.xxxpoByrCrtStCO.processFormRequest(xxxpoByrCrtStCO.java:46) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:827) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2997) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1885) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:550) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:438) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:662) java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1752) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493) at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:688) at oracle.jbo.server.ViewRowSetImpl.getRowCount(ViewRowSetImpl.java:1932) at oracle.jbo.server.ViewObjectImpl.getRowCount(ViewObjectImpl.java:6011) at xxx.oracle.apps.pos.supplier.webui.xxxpoByrCrtStCO.updateVendorSites(xxxpoByrCrtStCO14.java:85) at xxx.oracle.apps.pos.supplier.webui.xxxpoByrCrtStCO14.processFormRequest(xxxpoByrCrtStCO.java:46) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:827) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2997) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1885) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:550) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:438) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:662) 
    Logout
    Copyright (c) 2006, Oracle. All rights reserved.

    Hi all
    This is the method I used to update the vendor sites.  It takes a list of vendor site IDs retrieved in previous sections and updates one by one.  Note the Super method is invoked before this method and another method not mentioned here is used to retrieve the vendor site IDs from the operating unit the user checked.
         private void updateVendorSites(OAPageContext oapagecontext, OAWebBean oawebbean, HashMap<oracle.jbo.domain.Number, String> updateList ) {
            if(oapagecontext.isLoggingEnabled(2))
                oapagecontext.writeDiagnostics(this, "xxXXXXpoByrCrtStCO - updateVendorSites(OAPageContext, OAWebBean).BEGIN", 2);
                System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites(OAPageContext, OAWebBean).BEGIN" );           
                try {
                // Initalize variables      
                oracle.jbo.domain.Number vendorSiteId = null;
                oracle.jbo.domain.Number orgId = null;
                String vatCode = null;
                // THis is a nested AM, so the view for operating units/sites is not in the root AM.  It is in the ByrAddrAM.
                   // In order to update the tax code on the newly created supplier site, we need to get the AM and VO for the Tax and Reporting Update Tax code page
                ApplicationModule maintainpartytaxprofilesam = oapagecontext.getRootApplicationModule().findApplicationModule("MaintainPartyTaxProfilesAM");
                SearchSuppAcctSitesVOImpl searchsuppacctsitesvoimpl =  (SearchSuppAcctSitesVOImpl) maintainpartytaxprofilesam.findViewObject("SearchSuppAcctSitesVO");             
                Set set = updateList.entrySet();
                Iterator i = set.iterator();           
                while (i.hasNext()) {
                      System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites Inside while" );
                      Map.Entry<oracle.jbo.domain.Number, String> updateCode = (Map.Entry<oracle.jbo.domain.Number, String>) i.next();
                     // Initialize variables used in the loop to ensure no exchange of data between rows.  This is just a precaution.
                     vendorSiteId = null;
                     orgId = null;
                     vatCode = null;
                      System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites before cast org id" );
                     orgId =  updateCode.getKey();
                      System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites before cast vatCode" );
                     vatCode = updateCode.getValue();
                     if(oapagecontext.isLoggingEnabled(2))
                       oapagecontext.writeDiagnostics(this, (new StringBuilder()).append(" OrgId: ").append(orgId).toString(), 2);
                      System.out.println(" OrgId: " + orgId.toString());
                      System.out.println(" vatCode: " + vatCode);
                      // Get the vendor site ID from separate method
                      vendorSiteId = getVendorSiteId(oapagecontext, oawebbean, orgId);
                      // Find the row in the ap_supplier_sites_all table for that vendor Site ID.
                      searchsuppacctsitesvoimpl.executeVOQuery (vendorSiteId);
                      SearchSuppAcctSitesVORowImpl searchsuppacctsitesvorowimpl = (SearchSuppAcctSitesVORowImpl)searchsuppacctsitesvoimpl.first();
                      if(searchsuppacctsitesvorowimpl != null)
                          System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites before set vat code" );
                            searchsuppacctsitesvorowimpl.setVatCode(vatCode);
                    oapagecontext.getApplicationModule(oawebbean).getTransaction().commit();
              catch (OAException oaEx) {          
                throw new OAException(oaEx.getMessage(),  (byte)0);

  • Error in: oracle.jbo.PCollException: JBO-28021

    I have a "jsp" with Bussines Componets and when I want view the data I have a problem, the error is:
    oracle.jbo.PCollException: JBO-28021: Activation error on collection viewRestaurantes, node id 41
         void oracle.jbo.PCollException.throwException(java.lang.Class, java.lang.String, java.lang.Object[], java.lang.Exception)
         oracle.jbo.pcoll.PCollPersistable oracle.jbo.pcoll.PCollNode.activateElemWithId(oracle.jbo.pcoll.PCollection, long)
         oracle.jbo.pcoll.PCollPersistable oracle.jbo.pcoll.PCollNode.activateElemAt(int, oracle.jbo.pcoll.PersistentMarker)
         oracle.jbo.pcoll.PCollPersistable oracle.jbo.pcoll.PCollNode.getElemAt(int)
         oracle.jbo.pcoll.PCollPersistable oracle.jbo.pcoll.PCollNode.objectAt(long)
         oracle.jbo.pcoll.PCollPersistable oracle.jbo.pcoll.PCollNode.objectAt(long)
         oracle.jbo.pcoll.PCollPersistable oracle.jbo.pcoll.PCollection.elementAt(long)
         java.lang.Object oracle.jbo.server.QueryCollection.get(int)
         oracle.jbo.Row oracle.jbo.server.ViewRowSetImpl.getRow(int)
         void oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(int)
         void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
         int oracle.jbo.server.ViewRowSetIteratorImpl.setRangeStart(int)
         int oracle.jbo.server.ViewRowSetImpl.setRangeStart(int)
         int oracle.jbo.server.ViewObjectImpl.setRangeStart(int)
    This error is only visibility when the result set has a lot of records, when I have a few records this error is not visibility.
    I use JDeveloper version 9.0.695 and the code of jsp is:
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page language="java" import="java.lang.*,java.util.*,oracle.jbo.*,oracle.jbo.html.*,oracle.jbo.RowIterator.*" session="true" autoFlush="true" isThreadSafe="true" contentType="text/html; charset=ISO-8859-1" isErrorPage="false" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>
    Vista Restaurantes
    </TITLE>
    </HEAD>
    <BODY>
    <%
    String campos;
    String query;
    String tabla;
    String where="";
    String order="";
    campos="T_RES_PL.RES_PL_NOM,T_RES_PL.RES_PL_ID,T_RES_PL.RES_PL_SITE,T_RES_PL.RES_PL_FEC_TOT,";
    campos+="T_RES_PL.RES_PL_ACC,T_RES_PL.RES_PL_DES,T_RES_PL.RES_PL_SC,T_RES_PL.RES_PL_FEC,";
    campos+="T_RES_PL.RES_PL_VOU,T_RES_PL.RES_PL_AMO,T_RES_PL.RES_PL_TEX,T_RES_PL.RES_PL_VEN,";
    campos+="T_RES_PL.RES_PL_VEN_NOM,T_RES_PL.RES_PL_REF1,";
    campos+="T_RES_PL.RES_PL_REF2,T_RES_PL.RES_PL_REF3,T_RES_PL.RES_PL_CO,T_RES_PL.RES_PL_TOT";
    tabla=" FROM T_RES_PL";
    order=" ORDER BY T_RES_PL.RES_PL_ID";
    // query="SELECT "+campos+tabla+where+order;
    String Rol=(String) session.getAttribute("sRol");
    String sIdRes=(String) session.getAttribute("sIdRes");
    if (!Rol.equals("Administrador")){
    //Si el usuario no es Administrador visualizará los datos correspondientes
    //a su restaurante
    where=" WHERE T_RES_PL.RES_PL_SITE="+sIdRes;
    query="SELECT "+campos+tabla+where+order;
    %>
    <jbo:ApplicationModule id="MypackageModule" configname="mypackage.MypackageModule.MypackageModuleLocal" releasemode="Stateful" />
    <jbo:CreateViewObject appid="MypackageModule" name="viewRestaurantes" >
    <%= query %>
    </jbo:CreateViewObject>
    <jbo:DataSource id="Restaurantes" appid="MypackageModule" viewobject="viewRestaurantes" />
    <%
    String oReg=(String)session.getAttribute("sesReg");
    oReg=((oReg==null || oReg.equals(""))?"0":oReg);
    String oIniS=(String)session.getAttribute("sesIniS");
    oIniS=((oIniS==null || oIniS.equals(""))?"0":oIniS);
    int sesReg=Integer.parseInt(oReg);
    int sesIniS=Integer.parseInt(oIniS);
    String pIni=request.getParameter("Inicio");
    String pCont=request.getParameter("Cont");
    String pIniS=request.getParameter("IniSig");
    String pReg=request.getParameter("Reg");
    String sIni=(pIni==null?"0":(pIni.equals("")?"0":pIni));
    String sCont=(pCont==null?"0":(pCont.equals("")?"0":pCont));
    String sIniS=(pIniS==null?"0":(pIniS.equals("")?"0":pIniS));
    String sReg=(pReg==null?"50":(pReg.equals("")?"50":pReg));
    int Ini=Integer.parseInt(sIni);
    int Cont=Integer.parseInt(sCont);
    int IniS=Integer.parseInt(sIniS);
    int Reg=Integer.parseInt(sReg);
    if (IniS != 0) {
    //Si se han pasado valores se guardarán en la session, para usarlos en el link BACK
    session.setAttribute("sesReg",sReg);
    session.setAttribute("sesIniS",sIniS);
    oReg=(String)session.getAttribute("sesReg");
    oReg=((oReg==null || oReg.equals(""))?"0":oReg);
    oIniS=(String)session.getAttribute("sesIniS");
    oIniS=((oIniS==null || oIniS.equals(""))?"0":oIniS);
    sesIniS=Integer.parseInt(sIniS);
    sesReg=Integer.parseInt(sReg);
    int i=0;
    Row fila;
    RowSet rs=Restaurantes.getRowSet();
    int total=rs.getRowCount();
    int ContFin=Cont; //vble usada para el link anterior.
    Cont=(Ini+Cont > total?total-Ini:Cont);
    rs.setRangeStart(Ini);
    rs.setRangeSize(Cont);
    Enumeration e=rs.enumerateRowsInRange();
    %>
    In line "rs.setRangeStart(Ini);" is the error, why?
    Thank for your responses.

    Cristina:
    Would you please post the entire stack trace including the detail exception? If you don't get the detail exception, you need to get it from the diagnostic console window. Here is an instruction on how to turn on diagnostic.
    http://radio.weblogs.com/0123729/2003/05/01.html
    Thanks.
    Sung

Maybe you are looking for

  • External hard drive not in sync with Mac Book Pro

    I recently upgraded to a Mac Book Pro from my old and trusted ibook G4 but kept my portable external hard drive. With my ibook, my external hard drive's folders were all organised by name but since using my Mac Book Pro, my folders on my hard drive a

  • How to use beans in java application server 8.1?

    i created a bean to use in a jsp page. then i copied the jsp page to "domains/domain1/docroot " directory and the class file to the "domains/domain1/lib/classes" folder. But now i can only access the jsp page the bean is not included in it. how can i

  • BPM Alert - P.O created without purch req

    Hi all, I have an issue where my BPM alert "purchase order lines created without reference to a purch req" sometimes gives me a P.O that was creatd with ref to a P.O. I have raised an OSS note for SAP but I was wondering if anyone else had a similiar

  • Adding additional field (po number) in FBL5N standard report

    Hiya Gurus,                  I have got a requirement to create a custom report similiar to that of FBL5N standard report with and addition of PO number for every line item of the report and customer address at the header level.                I want

  • Open excel sheets in separate windows by clicking link.

    Hi, I have a web page which has a link. When user clicks on the link, a servlet is invoked that creates an excel sheet and opens it in MS-Excel. I used "res.setContentType("application/vnd.ms-excel");" to achieve this. But every time I click the link