Error committing 1 master and 2 children in one transaction

I have a master-detail page (where master and detail views are both tables).
If I insert a new master record (without committing it) and I then try to insert two child records I receive
the following error when I commit the transaction:
java.sql.SQLIntegrityConstraintViolationException: ORA-02291: Integriteitsbeperking (PUBLICSUITE.DREXTRL_LANG_DREXTRL_FK1) is geschonden - bovenliggende sleutel is niet gevonden.
ORA-06512: in regel 1
     at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
     at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
     at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
     at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
     at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:944)
     at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
     at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
     at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
     at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:3877)
     at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
     at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:434)
     at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:7779)
     at axi.casemanagement.model.base.CMEntityImpl.doDML(CMEntityImpl.java:62)
     at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6162)
     at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3253)
     at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3061)
     at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2180)
     at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2382)
     at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1565)
     at oracle.adf.model.dcframe.LocalTransactionHandler.commit(LocalTransactionHandler.java:140)
     at oracle.adf.model.dcframe.DataControlFrameImpl.commit(DataControlFrameImpl.java:597)
     at oracle.adfinternal.controller.util.model.DCFrameImpl.commit(DCFrameImpl.java:83)
     at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.resolveTransaction(TaskFlowReturnActivityLogic.java:509)
     at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.execute(TaskFlowReturnActivityLogic.java:114)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:834)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:718)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:491)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:108)
     at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:86)
     at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
     at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
     at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:142)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:274)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:74)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:274)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:74)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:754)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:282)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:149)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(Unknown Source)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Apparently it tries to commit the children before the parent.
This error occurs only if you insert more than one child, if you insert just one everything works fine.
Does anyone have a solution for this?
I use JDeveloper Studio Edition Version 11.1.1.0.2, ADF Faces & Business Components.
Edited by: Gert Leenders on 11-mei-2009 6:50

John,
We've actually read the subsection 34.8 titled "Controlling Entity Posting Order to Avoid Constraint Violations” but since
we use standard BC functionality and we insert the master before the children we assume that the ADF BC Framework we do the insertion in the right order.
Also because we have a “Composed” association we don’t need to override the postChanges() method in order to
controls the order for saving the entities (regarding the documentation).
*Due to the fact that it works fine if we just insert one child it seems to me that it’s more like a Bug.*
If we indicate the association as “Composite” in JDeveloper then we receive the following error:
SEVERE: Server Exception during PPR, #1
oracle.jbo.InvalidOwnerException: JBO-25030: Kan entiteit met eigenaarsrechten niet vinden of ongeldig maken: detailentiteit ExterneRolTaal, rijsleutel oracle.jbo.Key[4195 null ].
     at oracle.jbo.server.EntityImpl.internalCreate(EntityImpl.java:1048)
     at oracle.jbo.server.EntityImpl.create(EntityImpl.java:811)
     at axi.casemanagement.model.base.CMEntityImpl.create(CMEntityImpl.java:17)
     at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:921)
     at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1109)
     at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:412)
     at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:429)
     at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:4453)
     at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1686)
     at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2194)
     at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2235)
     at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:2216)
     at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:9008)
     at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1227)
     at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2126)
     at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:697)
     at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:392)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:159)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:143)
     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.sun.el.parser.AstValue.invoke(AstValue.java:157)
     at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
     at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:136)
     at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:140)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:834)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:718)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:491)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:108)
     at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:86)
     at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
     at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
     at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:142)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:274)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:74)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:274)
     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:74)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:754)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:282)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:149)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(Unknown Source)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Similar Messages

  • Control multiple updates and queries within one transaction in JPA

    Hi,
    I have a question regarding control multiple updates and queries within one transaction. We are using EclipseLink 2.3.1. With below code, will I be able to:
    - have all insert, update, select queries committed in one transaction;
    - queryGetBalance will return the latest OrgBalance after update;
    - if one fails, everything rolls back.
    Thanks!
    Jeffrey
    PS: I realized that I cannot use em.getTransaction().begin() and em.getTransaction().commit(), since I am using JTA.
    =============
    @PersistenceContext(unitName="Test")
    EntityManager em;
    em.setFlushMode(FlushModeType.COMMIT);
    newTransaction.setAmount(1000);
    newTransaction.setType("check");
    em.persist(newTransaction);
    orgAudit.setUpdateUser("Joe")
    orgAudit.setupUpdateTime(time);
    em.merge(orgAudit);
    Query queryUpdateBalance = em.createQuery("update OrgBalance o set o.balance = o.balance + :amount where orgId = :myOrgId");
    queryUpdateBalance.setParameter("amount", 1000);
    queryUpdateBalance.setParameter("myOrgId", 1234);
    Query queryGetBalance = em.createQuery("select OrgBalance o where o.orgId = :myOrgId");
    queryGetBalance.setHint("javax.persistence.cache.storeMode", CacheStoreMode.REFRESH);
    queryGetBalance.setHint("javax.persistence.cache.retrieveMode", CacheRetrieveMode.BYPASS);
    queryGetBalance.getResultList();
    em.flush();
    Edited by: JeffreyW on Dec 12, 2011 10:34 AM

    Yes, the operation will be in a single transaction, assuming you are using a JTA managed SessionBean and the code is part of a SessionBean method.

  • Installing RCU 11.1.1.6 Getting error Unknown Master and Work Repository

    Hi All,
    While installing RCU 11.1.1.6 I am getting error "unknown Master and Work Repository"
    could any one please tell me the solution for this
    Thanks
    Kumar

    make sure you have selected right option under 'select component'.
    If you want only OIM.
    click on (+) sign of Identity Management and then tick the Oracle Identity Manager option.

  • BUG: Adding a new parent with multiple children in one transaction

    Technology scope: JDeveloper Studio Edition Version 11.1.1.0.2, ADF Business Components.
    If you have a master-detail page (where master and detail views are both updateable tables) and you insert
    a new master record (without committing it) and you continue with inserting two or more child records you’ll receive
    the following error when I commit the transaction:
    java.sql.SQLIntegrityConstraintViolationException: ORA-02291: Integriteitsbeperking (PUBLICSUITE.DREXTRL_LANG_DREXTRL_FK1) is geschonden - bovenliggende sleutel is niet gevonden.
    ORA-06512: in regel 1
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:944)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:3877)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:434)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:7779)
    at axi.casemanagement.model.base.CMEntityImpl.doDML(CMEntityImpl.java:62)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6162)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3253)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3061)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2180)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2382)
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1565)
    at oracle.adf.model.dcframe.LocalTransactionHandler.commit(LocalTransactionHandler.java:140)
    at oracle.adf.model.dcframe.DataControlFrameImpl.commit(DataControlFrameImpl.java:597)
    at oracle.adfinternal.controller.util.model.DCFrameImpl.commit(DCFrameImpl.java:83)
    at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.resolveTransaction(TaskFlowReturnActivityLogic.java:509)
    at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.execute(TaskFlowReturnActivityLogic.java:114)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:834)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:718)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:491)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:108)
    at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:86)
    at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:142)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:274)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:74)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:274)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:74)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:754)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:282)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:149)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Important notes:
    - This error occurs only if you insert multiple children, if you insert just one child in the same transaction everything works fine.
    - We have tested this application directly via "Run" BC application module and there everything works fine just like it hast to be.
    - Because we have a “Composed” association we don’t need to override the postChanges() method in order to controls the order for saving the entities (regarding the documentation).
    - Related to thread: http://forums.oracle.com/forums/thread.jspa?threadID=897936&tstart=30

    Gert,
    I think Frank's suggestion was that you file the test case with Oracle Support (Metalink) ;)
    John

  • Master & detail table in one transaction

    Experts,
    I am useing 11g 11.1.1.4 and ADF BC, I have thought about this question quite for a while.
    I have a master & detail constructure in one page, master as af:form and detail as af: table.
    The master is 'booking' table (booking_id, create_date, create_user, user_contact) ,
    and detail is 'booking_line' table ( booking_id, booking_det_id, booking_weight, booking_volume, booking_type)
    According to my customer, user have to enter the master and detail data in one transaction and once user clicked the 'Submit booking' (actually is 'commit' operation),
    the system need to check at least one detail line have been entered by user, otherwise the error message issued and return back to the current page. how this one can be done? Thanks!

    Thanks a lot M.Jabr!
    I have used your suggestion as follwoing:
    public String cb3_action() {
    BindingContext bindingctx = BindingContext.getCurrent();
    BindingContainer bindings = null;
    bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = null;
    //access the iterator by its ID value in the PageDef file.
    dciter = bindingsImpl.findIteratorBinding("BookingDetOlVO1Iterator");
    ViewObject vo= dciter.getViewObject();
    long rowsCount= vo.getEstimatedRowCount();
    if (rowsCount > 0) {
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty())
    return null;
    return "BookingDone";
    } else {
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Please enter at least one Booking Detail line");
    context.addMessage(null, msg);
    return null;
    but there is another propblem after testing, I found if user just click the 'createInsert' operation in detail table. but without enter any values for some required fields, then can still - return "BookingDone"; that's means the required validation are skipped. any suggestion?

  • Error while drag and drop in OAWD transaction

    Hi Expert,
    One of my user is trying to attach a document through Drag and Drop in OAWD transaction after he attaches a document and when he cancels on the cancel button he is getting the following error:
    Crtical error during Archiving: Archiving Directory cannot be created. The Archiving procedure will be aborted.
    Please help to resolve this issue.
    Thanks in advance.

    Hi Babu Nair, how did you solve this issue?
    Rgds,
    Nanie

  • MySQL Sytax error with master and detail pages

    Master and Detail pages.
    I get an SQL error when I click on an Item in the Master
    page.
    “You have an error in your SQL syntax; check the manual
    that corresponds to your MySQL server version for the right syntax
    to use near 'ID = 16 LIMIT 0, 10' at line 1 “
    If I try to open the detail page I get
    “You have an error in your SQL syntax; check the manual
    that corresponds to your MySQL server version for the right syntax
    to use near 'ID = -1 LIMIT 0, 10' at line 1 “
    I created this pair by simply clicking on Insert/data object/
    master detail page.
    I have tried this various ways, but always get the same
    result.
    Is there a bug in CS3?

    Sorry I have solved it myself.
    I had accidentally put a space in a table header in the mySQL
    data bank.
    All works well now.

  • What is error code 603 and how does one fix it?

    What is error code 603, please, regarding add-on installation?  (The error codes page says for "error 6xx" to contact the Exchange online forum for assistance..)  It is a "failed online license check" for an add-on that is a free add-on listed on the Adobe Add-ons page as compatible with PS CS6, CC, and CC 2014, as well as all three versions of a bunch of other apps.  It is a Flypaper app, which looks to have been reworked to be compatible with the new 2014 apps.  Since Flypaper apps come from reliable source, I'm not sure what the error means, and I'm certainly not sure how to remedy this.  (The original Russell Brown Paper Textures Pro works fine on PS CC but isn't compatible with 2014.)
    I am running Win 7 64-bit.
    Thanks.
    Gail
    p.s.  numbers of other extensions still don't download  to PS 2014, so maybe this is also waiting for an Adobe fix??

    The add-on in question is called "Flypaper Select" (by Flypaper Textures).
    This morning, when I sent  the question, it was on last page of the free PS
    add-on list and showed the add-on as compatible with all three latest PS
    versions.  Tonight, when I click on the add-on in "my add-ons" list, it now
    shows compatibility only with PS6 and CC, and  I can no longer even find it
    in the big add-ons list.  I will try to send screen shot of "my add-ons" to
    the address you listed.  It is also below.
    Thanks for your help.  I have been finding many add-ons change from day to
    day, and many won't show up in Extensions window even though the desktop CC
    app says they have been installed.  I assume I am not the only person with
    these problems.
    Gail

  • Insert Master and Detail in the same transaction

    I have 2 view objects : Students and Enrollments.
    Connecting those view objects, there is one view link :
    Cardinality : 1..* (One student can enroll several courses).
    This link is exposed in "Students" view object by the property "getEnrollments" and in "Enrollments" view object, by the property "getStudent".
    I am try to insert records first in Student table, and Enrollment table in the same transaction.
    The primary key for Student table is generatade by a sequence (database trigger)
    My code is :
    StudentListImpl studentView = getStudentList();
    StudentListRowImpl studentRow = (StudentListRowImpl) studentView.createRow();
    studentRow.setFirstname(student.getFirstName());
    studentRow.setLastname(student.getLastName());
    studentRow.setDatebirth(student.getDateBirth());
    studentRow.setStatusid("A");
    studentView.insertRow(studentRow);
    EnrollmentListRowImpl enrollmentRow = (EnrollmentListRowImpl) studentRow.getEnrollments().createRow();
    enrollmentRow.setCourseid("C-100");
    studentRow.getEnrollments().insertRow(enrollmentRow);
    The generated Student ID is not being retrieved by ADF and set up in Enrollment view object. So, database is firing foreign key violation (in Enrollment table - No student ID provided)
    How can achieve this goal? Insert in DETAIL table with the key generated for the PARENT table?

    Yes, ID attribute in Student EO is DBSequence.
    If I insert only Student it works. But when I try to insert an Enrollment for that just created Student (same transaction), the Student ID is not assigned to Enrollment EO.
    The code I use to insert Enrollment is :
    EnrollmentListRowImpl enrollmentRow = (EnrollmentListRowImpl) studentRow.getEnrollments().createRow();
    enrollmentRow.setCourseid("C-100");
    My question is :
    Since I am creating a new Enrollment row using view link acessors in Student VO (getEnrollments), will the Student ID (just generated by sequence) be automatically assigned to Enrollment VO?
    I am totally lost about this (inserting master and detail in same transaction) and I can't find documentation on this topic.

  • Insert data into two related tables in one transaction

    Hi all,
    I’ve got problem with developing functionality.
    Background:
    I’ve got two tables: OFFER_HEADER and OFFER_CONTENT
    For now, user has to insert and commit the OFFER_HEADER(single-row view), then content becomes reachable and OFFER_CONTENT(multi-row view) can be filled. It is being done by choosing record from PRODUCTS form and inserting values into OFFER_CONTENT. Product data can be modified on the CONTENT form canvas.
    My goal:
    I know that is not convenient way to implement the functionality. I want to insert all the data(header and content) in one transaction. What is the best way to do it?
    Thanks in advance,
    Best Regards,
    Bartek

    1. User is on the OFFER_CONTENT canvasOk
    2. User presses ‘+’ buttonOk
    3. On the screen is displayer PRODUCT list
    4. User set focus on desired product
    5. Using popup menu user choose ‘Add’ option
    6. PRODUCT list is being closedSo, the functionlatity is like a LoV?
    7. OFFER_CONTENT is being shown with set of information from the productOk, you would either take the values directly from the fields of the PRODUCT-list and copy them into the OFFER_CONTENT-fields, or you just get something like the PRODUCT-ID from your PRODUCT-list and use a SELECT to read the product-details into the OFFER_CONTENT-block
    8. User can then manually change desired elements of the recordOk.
    So, where do you have the need to do an INSERT in your scenario?

  • Error committing transaction in Stored Proc call - prev solns not working

    Hi All,
    Our process invokes a DB adapter to fetch the response from the table for our request via Stored Procedure call but facing the below issue. Its a synchronous process. Stored Procedure is present inside the Package and we are calling the Stored procedure using that Package.
    What we did is created a DB datasource of XA type and tried to call the Stored Proc but it was giving a problem “ORA-24777: use of non-migratable database link not allowed” and hence according to this thread Using DB links in Stored proc call in DB adapter 11G SOA we have modified the datasource as non-XA type.
    While we do that, we could see that Stored Proc is called and the response is present in the reply payload inside the flow trace. But the instance is getting faulted and the error is “Error committing transaction:; nested exception is: javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source.”
    We have tried the properties of global transaction support as one phase commit, emulate two phase commit and logging last resource but error remains the same.
    Database from which we are getting the response is of version "Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production". Will the database link error arises even if we connect to Oracle Database?
    Please could you advise me solutions to resolve this issue.
    Thanks in advance.

    You are using Non-XA because it means (among all others) that the commit issue can be handle by the DB as well.
    The Emulate Two Phase property imitating the XA transaction in that way, that it allows you to manage a local db transaction.
    You can stay with XA connection, but then you will have to use "AUTONOMOUS_TRANSACTION pragma" in your procedure.
    Enter the following link to find good explanation about all of your questions:
    http://docs.oracle.com/cd/E15523_01/integration.1111/e10231/adptr_db.htm#BGBIHCIJ
    Arik

  • Import master and transaction data

    Hallo,
    I need the information, how I can import master and transaction data.
    I fellow the introductions from SAP.Help (see Link), but the Programm UPB_DATA_IMPORT
    is failed. (See point 3 in Link):
    http://help.sap.com/saphelp_nw04/helpdata/en/7a/6d313f8815d036e10000000a114084/frameset.htm
    If I want to try point 3. The error massage.
    “Program UPB_DATA_IMPORT does not exist Message no. DS017”
    will result.
    What I can do? Who can me say why I haven’t the Programm UPB_DATA_IMPORT?
    What is wrong?
    Please help me.I need Data to make a demo planning
    thanks

    Hi,
    There is a set of objects in business content (check under SAP DEMO in business content). You can activate some or all of these demo objects (for example demo cubes).
    There are programs which you can then execute to create the datafiles which can then be loaded to these demo cubes.
    " Start report RSO_BC_FILES_IN_BDS (Transaction SE 38), specify the required (Demo) InfoObject/InfoCube and choose the "Start BDN" button. The system will display all (generally one) CSV files which were supplied with the InfoObject/InfoCube. You can either export this CSV file into a local directory or you can write it directly onto the application server. For loading, proceed as described under section 1. " --- from OSS note 370397

  • I am trying to export a video I have made in FCP 10.0.8 to Youtube or to a master file and I keep on getting an error -50, or "error exporting master file at frame 20074" Any ideas?

    Having used FCExpress for a while I decided to give FC Pro X a trial, I created my first video with it, exported to youtube and it worked fine.  I am now trying to export my second video to youtube and I get an error -50 which means absolutely nothing.  Not being defeated that easy I tried exporting to a mster file using the H.264 codec and I get an error "exporting master file at frame 20074" - again another useless error.  It takes at least 10 minutes to get to this error after the rendering has started, it gets about 12% in.  Any ideas where to start - I am seriously at the point of giving up with Final Cut Pro X simply on the basis of it being more trouble than its worth - I am just glad I did not pay for it yet...
    Any help would be much appreciated.
    Gerry

    Hi Russ,
    Thanks for your response. I am not an experienced user of FC or other video editing software but if its that hit and miss I think I will go to the trouble of finding some better software - I have a busy enough life as is, I don;t want to get into second guessing what a software problem might be!
    I have just successfully exported my video to a master file using one of the Apple codec options so it looks like it could be to do with the H.264 codec.  I am wondering if Apples Compressor software would solve this problem - the only way to try this it to buy it, there is not trial for the compressor app.  Any ideas?
    Thanks
    Gerry

  • I encountered an error in the Payment Wizard screen as I was creating an Outgoing Payment for petty cash expenses. On the "Recommendation Report" screen, I clicked "Non-Included Trans." and saw that one of the vendors (Vendor Code: WILCO) has the followi

    Hello,
    I encountered an error in the Payment Wizard screen as I was creating an Outgoing Payment for petty cash expenses. On the “Recommendation Report” screen, I clicked “Non-Included Trans.” and saw that one of the vendors (Vendor Code: WILCO) has the following error:
    “The document amount is greater than the max. amount allowed in the payment methods linked to the BP”
    Upon checking, the “PCF-W” Payment Method linked to WILCO does not have any restrictions, nor does WILCO have any credit/commitment limit set. I have also appropriately defined the Dummy Business Partner Bank (under Payment Terms) as well as checked the “Included” box for PCF-W on the Payment Run-Payment Methods screen.
    Could anyone please help me on this?
    Salamat,
    Cat

    PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
    If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!!

  • VFX3 ERROR:Enter a Name and City for one-time account postings (F5 266)

    Dear Colleagues.
    Finance are teying to release a billing doc to Finance on VFX3 and getting the error below.Is it something not maintained correctly somewhere (Customer Master,etc)?
    All help greatly appreciated,
    PAPJ1
    Error Log
                 0010056707 000000 Document 0010056707 saved (no accounting document generated)
                 0010056707 000000 Enter a name and city for one-time account postings
                Technical data
                    Tech. data details
                     Client
                     Group Number
                     Sales Document Number                  0010056707
                     Item Number of the SD Document         000000
                     Schedule Line Number                   0266
                     Counter in Control Tables              00
                     Message Identification                 F5
                     System Message Number                  266
                     Output Type                            E
                     Message Variable 01
                     Message Variable 02
                     Message Variable 03
                     Message Variable 04
                     Group Type

    Hi.
    The system logic is the following:
    In the master record of your one-time account, there is a field called
    'Reference account group'. The field status settings of the account
    group entered here are relevant for the one time vendor screen.
    Please note that even if the fields are changed from mandatory to
    optional if the NAME and CITY of the One Time Vendor is not filled, the
    system will still prompt the Error Message F5266.
    If you do not enter the name and city you will receive error F5266.
    The system logic here is to make sure that the name and the city being
    keyed-in properly for the Executive Information System reportings.
    Please note that it is hard-coded in the system.
    Check the following notes
    604312
    587806
    548834
    513748
    512360
    Also if you are using any bapi to post the document, you can  resolve the issue pass-in 'Name', City and Region field values in BAPI while creating the billing document.
    I hope I could be of assistance.
    Kind Regards,
    Fernando Evangelista

Maybe you are looking for

  • Inserting xml data in a MYSQL database

    Hi, I would like to know how i can insert data from an xml file into a MYSQL database using a java program, I currently have a program which retrieves an xml record and i need to insert the information between the tags into a table in MYSQL..please h

  • Adobe Flash Player 11 Won't Install Mac OS X 10.8.5

    I attempted to install the FlashPlayer 11 update today and the installer crashes during the installation.  I am using Mac OS X 10.8.5 and Safari 6.0.5.  I have tried to uninstall and reinstall a fresh installation of FlashPlayer but with the same end

  • Problem while creating followup to a Service Request

    Hi, I am trying to create a followUp to a service request. The problem is, it is not displaying all the followup transactions in popup. When I checked the configuration "Copy Control for Business Transactions", I am able to see more than I see in the

  • How can I make a image like this one? (image in description)

    Hi guys I need to know how can I make a image like this one http://img31.imageshack.us/img31/2710/69823211.gif I need step by step instructions please. How can I animate it like that? Whats the font? Tell me everything please.

  • Low ping yet online gaming performs poorly

    This has always been an issue with my BT ADSL connection. On paper it looks perfect for gaming; a solid ~23ms ping to UK servers (FastPath) with practically no jitter, a constant 4.5/0.25 mbps throughput yet online gaming (Xbox Live) shows way more l