BC4J commit/rollback transaction

I'm using the following code (copied from the complete UIX BC4J application) to delete a row:
<event name="removeCaractGrupo">
<bc4j:findRootAppModule name="GruposMineriosAppModule">
<bc4j:findViewObject name="ClasseAtualCaractGrupoMinerioView">
<bc4j:findRowByKey>
<bc4j:keyBinding>
<bc4j:selectionKey name="caractGruposData" key="keyCaractGrupo" />
</bc4j:keyBinding>
<bc4j:handlers>
<bc4j:removeRow />
<bc4j:executeQuery/>
</bc4j:handlers>
</bc4j:findRowByKey>
</bc4j:findViewObject>
<bc4j:commit/>
</bc4j:findRootAppModule>
</event>
It works fine but if the row cannot be removed because of a constraint violation the row is still removed from the viewObjectScope and appears again only if I send a <bc4j:rollback/> command.
The question is: is there any approach like a try/catch within the uiXML event handler??
<ui:try>
<contents>
<bc4j:commit/>
</contents>
<ui:catch>
<bc4j:rollback/>
</ui:catch>
</ui:try>
Or do I have to call a Java class method to do this??

There's nothing like <try>/<catch> in the event handler section. It looks like you'd need to replace the commit handler here with handcoded Java that will rollback in case the commit fails.

Similar Messages

  • Establishing commit-rollback mechanism in a transaction

    Hi,
    If there are more than one tables that records to be inserted into and more then one record for some tables, is it possible to establish commit rollback mechanism?
    It must be used repeater action for some tables because of more than one records to be inserted.
    I'm trying to establish commit rollback mechanism for all inserts for oracle database.
    Is it possible?
    Thanks.

    Hi,
    with the standard SQLQuery it is not possible. Sam has develop some custom action blocks with this
    functionality. Take a look on this link [Installing the SAP MII v12.1 JTA JDBC Custom Action Blocks.|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10bfa608-103b-2c10-6399-e41044c3363e]
    BR
    Pedro

  • PeopleCode - commit/rollback subprogram without committing or rolling back the data in the main program

    Hi,
    Is there a way in PeopleSoft/PeopleCode to do some database transactions in a subprogram (peoplecode function or method in Application Package) and commit that transaction without committing the things that are happening in the main program?
    you can compare it with a "autonomous_transaction" ( http://docs.oracle.com/cd/B19306_01/appdev.102/b14261/autonotransaction_pragma.htm ) / ( http://oracle-base.com/articles/misc/autonomous-transactions.php )
    or with what is happening in the database when using "GetNextNumberWithGapsCommit"
    or what happens when you turn on the logging in PeopleTools > Integration Broker > Integration Setup > Routingyou put a button on a page and write some PeopleCode on the FieldChange
    you first do a update statement with sqlexec
    you call the webservice (data is inserted in the PSIBLOGDATA and PSIBLOGINFO and committed)
    you generate a "Error" in PeopleCode
    => result: the update from the sqlexec is not committed, but the logging data (PSIBLOGDATA and PSIBLOGINFO) IS committed
    Kind regards, Bart

    Hi,
    Please take a look at the javadoc for the following BC4J API:
    ApplicationModule.passivateStateForUndo(String, byte[], int)
    ApplicationModule.activateStateForUndo(String, int)
    These APIs may not however be used to manage a DB savepoint -- they assume that all state is managed by the BC4J transaction.
    Hope this helps,
    JR

  • Commit/Rollback in Stored Procedures

    I'm just confused about how this setup works. I understand that ODP.NET is in autocommit mode by default, and any INSERT, UPDATE, or DELETE commands are committed automatically. If they fail for any reason, obviously the row(s) are not modified.
    But how about sprocs? Do they autocommit as well? If so how are rollbacks handled? Do I need to explicitly create a transaction and commit/rollback? Is it best practice to commit/rollback in the .NET transaction or in the sproc itself?
    As you can see, I'm just really looking for info on how these two interact. Any info you can provide will be extremely helpful.
    Thanks!

    Hello,
    When ODP.NET is operating in auto-commit mode (the default as you note) this applies to PL/SQL calls as well.
    I am of the opinion that the client should be in charge of a transaction and I do not commit/rollback inside PL/SQL code (unless of course I am writing PL/SQL that is the client of other PL/SQL code).
    Here's a bit from Tom Kyte on the subject:
    http://tkyte.blogspot.com/2007/03/dreaded-others-then-null-strikes-again.html
    Just search for the text "Who control the commit?" on that page.
    Regards,
    Mark

  • Commit / RollBack

    Hi,
    I want to execute 2 or more database operation in one transcation with commit/rollback mechanism.
    Below is my code,
    How can i make it has commit /rollback (in one transaction).
    Thanks.
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/SAPXXXDB");
    Connection con1 = ds.getConnection();
    Connection con2 = ds.getConnection();
    PreparedStatement pstm1 =con1.prepareStatement("insert into ZTABLE1(...)Values(...)";
    PreparedStatement pstm2 =con2.prepareStatement("insert into ZTABLE2(...)Values(...)";
    pstm1.executeUpdate();
    pstm2.executeUpdate();
    con1.close();
    con2.close();

    Hi Cemil Bozlagan ,
    When a connection is created, it is in auto-commit mode. This means that each individual SQL statement is treated as a transaction and is automatically committed right after it is executed.
    The way to allow two or more statements to be grouped into a transaction is to disable auto-commit mode by using Connection object.
    con.setAutoCommit(false);
    Once auto-commit mode is disabled, no query statements are committed until you call the method commit explicitly. All statements executed after the previous call to the method commit are included in the current transaction and committed together as a unit.
    Have a look
    PreparedStatement pstm1 =con1.prepareStatement("insert into ZTABLE1(...)Values(...)";
    PreparedStatement pstm2 =con2.prepareStatement("insert into ZTABLE2(...)Values(...)";
    pstm1.executeUpdate();
    pstm2.executeUpdate();
    con.commit();
    con.setAutoCommit(true);
    To roll back the transaction based on ur requirement u can use
    con.rollback()
    Regards,
    srikanth

  • Forms Level commit/rollback on different environment.

    Hello everyone,
    I would like to share and seek suggestion on the following case.
    I have a posting form F1 which on saving, post 2 transactions let say Credit and Debit. On a form level key-commit, all posting code is written. Now I enter some data and press save button on the form. System will
    Post Trans 1
    Post Trans 2
    If no error, then commit;
    Now let say Trans 1 was successful, Trans 2 was unsuccessful, but as both were not successful (due to known reason) therefore, system does not commit any transactions and display me the error message. OK but transaction were not rollback.
    Now remaining on same form, I make 2 other transactions
    Post Trans 3
    Post Trans 4
    Now both the transactions were successful and system commit the form. BUT, system post 3 transactions Trans 1, Trans 3 and Trans 4.
    Now the main problem is here that I have 2 environments server (different machines), A and B. The same case is replicated on server A but the same case is not able to replicate on server B. On Server A system post 3 transaction but on Server B system post only 2 transaction correctly. I have tried many times with same scenario.
    What could be the setting that on server B, the Trans 1 is rollback but on Server A Trans 1 is not rollback? I AM USING SAME FORM and place same version on both the environment

    Would you mind explain a little bit more? By now I have not the faintest clue what you mean (except something like: A does not work when B is C on the server D when E is F).
    1.) Please mention the versions you are using (FULL Forms AND Database Versions e.g. Database 10.2.0.5 and Forms 10.1.2.3).
    2.) What kind of Servers are "Server A" and "Server B"?!? File Servers where your fmx files are located?!? Database Servers? Application Servers?
    3.) Is it possible to post the code you are using? You might have a bug in your code but except the information that it doesn't work as desired you didn't give us much to work with.
    If you post your code please format it proper with tags so we don't get eye cancer by reading 20000 lines of unformatted code ;).
    cheers                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Can not commit distributed transaction

    Hi
    We get error "can not commit distributed transaction" during
    commit the transaction in which we have create NEW entities.
    Update-transactions on existing enitites work correct.
    Our problem is probably due to seauences for object IDs: we are using oracle native sequences:
    <sequence name="SeqErrRecObj" strategy="nontransactional" factory-class="native(Sequence=BUYING.SEQ_ERRRECOBJ)"/>
    As soon we use strategy="nontransactional" in managed environment,
    we get "can not commit distributed transaction" error by creating new instance.
    Switching to strategy="transactional" seems to eleminate this problem.
    I did not found any hint in about this in documentation.
    Can some one confirm our assumption that using nontransactional oracle sequences in manageg (WebLogic 9.2) environment
    is responsible for "can not commit distributed transaction" error and "strategy=transactional" is the right solution.
    Probably we are completely wrong and tehre is some other explanation for this error ?
    kind regards
    Andre Teshler

    Hi Andre,
    It sounds like you have not configured a non-transactional datasource. See section "4.2.1. Managed and XA DataSources" in the <kodo>/docs/jdo/pdf/manual.pdf. Connection is for the managed datasource and Connection2 for the non-transactional.
    David Ezzio

  • How to avoid the Commit/Rollback dialog box

    I've a JClient app with two frames wich relate to the same appllication module with the same connection (I need it because I want a single commit).
    I start the first frame,then I click a button to start the second frame, I insert data in the second one and I see the commit/rollback buttons in both navebars enabled.
    When I close the secod frame, without committing (because I want to commit at the end of the whole process) I receive the Commit/Rollback dialog box.
    How can I solve that problem ?
    TIA
    Tullio

    Remove or conditionalize the code in generated Form/Frame.java class that binds a WindowListener to the Frame like:
        addWindowListener(new WindowAdapter()
            public void windowClosing(WindowEvent e)
              _popupTransactionDialog();
              JUApplication juApp = panelBinding.getApplication();
              if (juApp != null)
                juApp.release();
              System.exit(0);
      }You may either conditionlize the above windowClosing method or the code in generated method
    private void _popupTransactionDialog()

  • BEA-010026 Exception occurred during commit of transaction Xid...

    Srs,
    Does anyone know how can i change the IP address bellow ? is there any file with this configuration ? ( i dont know so well weblogic )
    This is a unkown IP (10.26.71.28) and probably for this reason, the following error appears:
    <Mar 31, 2010 1:53:48 PM BRT> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Xid=BEA1-012A4C55A4FA8C6F67D0(13881631),Status=Rolling Back. [Reason=javax.transaction.SystemException: SubCoordinator 'AdminServer+*10.26.71.28*:7001+tdws_domain+t3+' not available],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=167,seconds left=55,XAServerResourceInfo[JMS_ADMLoggingStore]=(ServerResourceInfo[JMS_ADMLoggingStore]=(state=rolledback,assigned=adm_managed_server),xar=JMS_ADMLoggingStore,re-Registered = false),XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=new,assigned=AdminServer),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@15d1298,re-Registered = false),SCInfo[tdws_domain+AdminServer]=(state=rolling-back),SCInfo[adm+adm_managed_server]=(state=rolledback),properties=({weblogic.jdbc=t3://*10.26.71.28*:8080, START_AND_END_THREAD_EQUAL=false}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=adm_managed_server+146.250.132.247:7001+adm+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl, JMS_ADMLoggingStore},NonXAResources={})],CoordinatorURL=adm_managed_server+146.250.132.247:7001+adm+t3+): javax.transaction.SystemException: SubCoordinator 'AdminServer+*10.26.71.28*:7001+tdws_domain+t3+' not available
    at weblogic.transaction.internal.TransactionImpl.abort(TransactionImpl.java:1045)
    at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:173)
    at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:163)
    at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1202)
    at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2007)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:257)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:228)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:430)
    at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:333)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:298)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2698)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2610)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    --------------- nested within: ------------------
    weblogic.transaction.RollbackException: SubCoordinator 'AdminServer+10.26.71.28:7001+tdws_domain+t3+' not available - with nested exception:
    [javax.transaction.SystemException: SubCoordinator 'AdminServer+10.26.71.28:7001+tdws_domain+t3+' not available]
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1687)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:311)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:228)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:430)
    at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:333)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:298)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2698)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2610)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Thanks,
    Claudio
    Edited by: user1098890 on 31/03/2010 12:35

    Did anyone ever find an answer to this? I have the same problem.

  • Exception occurred during commit of transaction Name

    Hi,
    I am getting following error while updating a Table through the application.
    I am running the application on welogic 9.2.. I have added new Constants to the the existing methods and i am trying to update the database table row with this new constant. It works fine if i use the existing constants in from the constant file.
    *<Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB com.mfizac.oe.session.so.SOServiceBean.completeRoutes(com.mfizac.framework.data.DataMap)],Xid=BEA1-00F6B94908E2407590E1(1552254),Status=Rolled back. [Reason=weblogic.utils.NestedRuntimeException: Error in beforeCompletion],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=AdminServer),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@221fc5,re-Registered = false),SCInfo[mfizac+AdminServer]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.mfizac.oe.session.so.SOServiceBean.completeRoutes(com.mfizac.framework.data.DataMap)], weblogic.jdbc=t3://192.9.200.122:7001}),local properties=({modifiedListeners=[weblogic.ejb.container.internal.TxManager$TxListener@1cc7bf]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+192.9.200.122:7001+mfizac+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl, WLStore_mfizac_JMSMessageStore},NonXAResources={})],CoordinatorURL=AdminServer+192.9.200.122:7001+mfizac+t3+): weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb.container.internal.TxManager$TxListener@1cc7bf*
    Error in beforeCompletion
    *     at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1809)*
    *     at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:331)*
    *     at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227)*
    *     at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:546)*
    *     at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)*
    *     at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:381)*
    *     at com.mfizac.oe.session.so.SOService_mfkez4_EOImpl.completeRoutes(SOService_mfkez4_EOImpl.java:1573)*
    *     at com.mfizac.oe.session.so.SOService_mfkez4_EOImpl_WLSkel.invoke(Unknown Source)*
    *     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)*
    *     at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)*
    *     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)*
    *     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)*
    *     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)*
    *     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)*
    *     at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)*
    *     at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)*
    *     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)*
    *     at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)*
    *.>*
    Any help would be greatly appriciated.
    Thanks,
    Ven
    Edited by: user1545630 on Jan 12, 2010 1:21 PM
    Edited by: user1545630 on Jan 12, 2010 1:23 PM
    Edited by: user1545630 on Jan 12, 2010 1:26 PM
    Edited by: user1545630 on Jan 12, 2010 1:39 PM

    Hi,
    I am getting following error while updating a Table through the application.
    I am running the application on welogic 9.2.. I have added new Constants to the the existing methods and i am trying to update the database table row with this new constant. It works fine if i use the existing constants in from the constant file.
    *<Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB com.mfizac.oe.session.so.SOServiceBean.completeRoutes(com.mfizac.framework.data.DataMap)],Xid=BEA1-00F6B94908E2407590E1(1552254),Status=Rolled back. [Reason=weblogic.utils.NestedRuntimeException: Error in beforeCompletion],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=AdminServer),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@221fc5,re-Registered = false),SCInfo[mfizac+AdminServer]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.mfizac.oe.session.so.SOServiceBean.completeRoutes(com.mfizac.framework.data.DataMap)], weblogic.jdbc=t3://192.9.200.122:7001}),local properties=({modifiedListeners=[weblogic.ejb.container.internal.TxManager$TxListener@1cc7bf]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+192.9.200.122:7001+mfizac+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl, WLStore_mfizac_JMSMessageStore},NonXAResources={})],CoordinatorURL=AdminServer+192.9.200.122:7001+mfizac+t3+): weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb.container.internal.TxManager$TxListener@1cc7bf*
    Error in beforeCompletion
    *     at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1809)*
    *     at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:331)*
    *     at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227)*
    *     at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:546)*
    *     at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)*
    *     at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:381)*
    *     at com.mfizac.oe.session.so.SOService_mfkez4_EOImpl.completeRoutes(SOService_mfkez4_EOImpl.java:1573)*
    *     at com.mfizac.oe.session.so.SOService_mfkez4_EOImpl_WLSkel.invoke(Unknown Source)*
    *     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)*
    *     at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)*
    *     at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)*
    *     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)*
    *     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)*
    *     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)*
    *     at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)*
    *     at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)*
    *     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)*
    *     at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)*
    *.>*
    Any help would be greatly appriciated.
    Thanks,
    Ven
    Edited by: user1545630 on Jan 12, 2010 1:21 PM
    Edited by: user1545630 on Jan 12, 2010 1:23 PM
    Edited by: user1545630 on Jan 12, 2010 1:26 PM
    Edited by: user1545630 on Jan 12, 2010 1:39 PM

  • Getting error 'root transaction wanted to commit, but transaction aborted'

    We have a module in our project, which reads data from XML file and merges the data into the database. This merging at one end happens to a SQL Server 2005/SQL Server 2000 datbase. At the other end it happens to a Oracle database. We have a portal application developed in ASP.NET from where, we merge the data.
    When the data to be merged is very huge, we get this message. 'The root transaction wanted to commit, but transaction aborted'. Right now we are getting this message, when we try to merge data on to a oracle database.
    But this problem is very intermittent. It happens only when there is huge amount of data to be inserted to one table.
    As i have mentioned in my post, we use Windows server 2003 operation system with service pack 2. This error does not come when we do the same operation with service pack 1.
    So is it OS dependent?

    Please find the details of the log file.
    DMS_CORE_DAL_DBERROR
    at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    at CoreServices.DAL.DataManager.ExecuteNonQueryProc(DBConnection foConn, String fProcName, DOList foParamDOList)
    *** ORA-02291: integrity constraint (ADVTVS.FK_JCARD_JCARD_LAB) violated - parent key not found
    ORA-06512: at "ADVTVS.PKG_SYNC_MERGE_TRNS_SERVICE", line 318
    ORA-06512: at line 1 ---
    Server stack trace:
    at CoreServices.Pipeline.TransactionPipeline.Process(IPipelineable& foPipeLineDataObject, PipelineOperation fiPipelineOprn)
    at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
    Exception rethrown at [0]:
    at DataSync.MergeData.MergeDataManager.Merge(Int32 fiDealerId)
    at Client.DataSync.cmdMerge_Click(Object sender, EventArgs e)
    DATASYNC_MERGE
    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
    at System.EnterpriseServices.Thunk.Callback.DoCallback(Object otp, IMessage msg, IntPtr ctx, Boolean fIsAutoDone, MemberInfo mb, Boolean bHasGit)
    at System.EnterpriseServices.ServicedComponentProxy.CrossCtxInvoke(IMessage reqMsg)
    at System.EnterpriseServices.ServicedComponentProxy.Invoke(IMessage request)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at CoreServices.Pipeline.TransactionPipeline.Process(IPipelineable& foPipeLineDataObject, PipelineOperation fiPipelineOprn)
    at DataSync.MergeData.MergeDataManager.Merge(Int32 fiDealerId) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
    at System.EnterpriseServices.Thunk.Callback.DoCallback(Object otp, IMessage msg, IntPtr ctx, Boolean fIsAutoDone, MemberInfo mb, Boolean bHasGit)
    at System.EnterpriseServices.ServicedComponentProxy.CrossCtxInvoke(IMessage reqMsg)
    at System.EnterpriseServices.ServicedComponentProxy.Invoke(IMessage request)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at CoreServices.Pipeline.TransactionPipeline.Process(IPipelineable& foPipeLineDataObject, PipelineOperation fiPipelineOprn)
    at DataSync.MergeData.MergeDataManager.Merge(Int32 fiDealerId)
    *** The root transaction wanted to commit, but transaction aborted ---
    The ORA codes are ORA-02291 and ORA-06512.
    We are not getting any of these errors, when we merge same data from Windows 2003 server SP1. But if we execute it from SP2, we are getting this error.
    Are there any hotfixes provided by MS to fix this problem.

  • Root transaction wanted to commit, but transaction aborted

    Our client is getting error when trying to do bulk insert into one of the tables. Oracle version is 10g. The error says Root transaction wanted to commit, but transaction aborted. Client is using Windows server 2003 service pack 2.
    This error is not appearing when the application is accessed from Windows server 2003 service pack 1. All other application settings are similar.
    We have a module in our project, which reads data from XML file and merges the data into the database. We have a portal application developed in ASP.NET from where, we merge the data into oracle database.
    When the data to be merged is very huge, we get this message. 'The root transaction wanted to commit, but transaction aborted'.
    But this problem is very intermittent. It happens only when there is huge amount of data to be inserted to one table.
    As i have mentioned in my post, we use Windows server 2003 operation system with service pack 2. This error does not come when we do the same operation with service pack 1.
    So is it OS dependent?
    Edited by: user8662578 on Jul 29, 2009 8:34 PM

    Our client is getting error when trying to do bulk insert into one of the tables. Oracle version is 10g. The error says Root transaction wanted to commit, but transaction aborted. Client is using Windows server 2003 service pack 2.
    This error is not appearing when the application is accessed from Windows server 2003 service pack 1. All other application settings are similar.
    We have a module in our project, which reads data from XML file and merges the data into the database. We have a portal application developed in ASP.NET from where, we merge the data into oracle database.
    When the data to be merged is very huge, we get this message. 'The root transaction wanted to commit, but transaction aborted'.
    But this problem is very intermittent. It happens only when there is huge amount of data to be inserted to one table.
    As i have mentioned in my post, we use Windows server 2003 operation system with service pack 2. This error does not come when we do the same operation with service pack 1.
    So is it OS dependent?
    Edited by: user8662578 on Jul 29, 2009 8:34 PM

  • Unable to commit a transaction Using Oracle

    Hi all,
    I have created a JDBC System using the following link.
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/082484173ae045ab8dad8a41d33da3/frameset.htm
    The JDBC Datasource is working absolutely fine , in my database actually autocommit is off , so i need to commit a transaction explicity , when i try using connection.commit() , it gives me the following eroor
    Commit not possible , xadatasource.
    Can any one provide the reason for this , and what is the alternative for the Same.
    Points will be rewarded for helpful answers
    Regards
    Sara

    Hi Sara,
    Are you using XADatasource ?I think it is an issue (http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources)with that
    try using this
    DataSource Type :-ConnectionPoolDataSource
    ClassName:-oracle.jdbc.pool.OracleConnectionPoolDataSource
    just restart the service and use it in your code.
    Thanks
    Pankaj

  • Exception during commit of transaction in wli when using oracle database

    I have configured oracle Database instead of pointbase in wli 9.2
    While getting the response through callback in wli process (from Worklist console)this errror is coming "Exception occurred during commit of transaction ".
    What should I do to remove this error??
    Stack trace is
    <Jan 6, 2007 5:19:59 PM CST> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transac
    tion Xid=BEA1-012806F477B49C8F6264(7312912),Status=Rolled back. [Reason=weblogic.utils.NestedRuntime
    Exception: Error in beforeCompletion],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=
    0,seconds left=60,XAServerResourceInfo[WLStore_oracle1domain_cgJMSStore]=(ServerResourceInfo[WLStore
    oracle1domaincgJMSStore]=(state=rolledback,assigned=AdminServer),xar=WLStore_oracle1domain_cgJMSSt
    ore1269044,re-Registered = false),XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(Ser
    verResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=AdminServer),xar
    =weblogic.jdbc.wrapper.JTSXAResourceImpl@14c0a31,re-Registered = false),SCInfo[oracle1domain+AdminSe
    rver]=(state=rolledback),properties=({weblogic.jdbc=t3://199.81.36.226:7001}),local properties=({mod
    ifiedListeners=[weblogic.ejb.container.internal.TxManager$TxListener@1442c7b], class com.bea.wli.bpm
    .runtime.JpdContainer$TxnListener1168125300187=com.bea.wli.bpm.runtime.JpdContainer$TxnListener@1313
    24d}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+199.8
    1.36.226:7001+oracle1domain+t3+, XAResources={WLStore_oracle1domain_cgJMSStore, WLStore_oracle1domai
    n_WseeFileStore, WLStore_oracle1domain__WLS_AdminServer, weblogic.jdbc.wrapper.JTSXAResourceImpl},No
    nXAResources={})],CoordinatorURL=AdminServer+199.81.36.226:7001+oracle1domain+t3+): weblogic.transac
    tion.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb.container.intern
    al.TxManager$TxListener@1442c7b
    Error in beforeCompletion
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java
    :1782)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.
    java:331)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:463)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:3953)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4467)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    .>

    Did you get a solution to this problem ?I am seeing similar exceptions intermittently .
    Thanks,
    Meena.

  • Commit/Rollback on Tab pages

    I have three tab pages
    1st tab page called master_detal_page. It is base block bound to tables.
    2nd tab page called Keyword_page. It is not bound to the table.
    3rd tab page called Exit_page. It will popup dialog box ask for save the changes. commit,rollback,exit_form on trigger when-page-change.
    I encountered problems that I was unabled ROLLBACK or COMMIT the change I made on 1st or 2nd pages. When I refresh tab pages always display back to orginal records.
    Please help me with any technical to solve it. Thanks
    Trigger: WHEN-TAB-PAGE-CHANGED
    DECLARE
    v_result VARCHAR2(30);
    BEGIN
    IF :SYSTEM.TAB_NEW_PAGE= 'EXIT_PAGE' THEN
    v_result := FUNCTION_DISPLAY_MSG_BOX('Do you want to
    save changes before existing');
    IF v_result = 'YES' THEN
    COMMIT;
    GO_BLOCK('BLK_1ST_PAGE');
    ELSIF v_result = 'NO' THEN
    ROLLBACK;
    GO_BLOCK('BLK_1ST_PAGE');
    ELSE
    EXIT_FORM(NO_VALIDATE);
    END IF;
    END;

    what is the error you got? go to menu/display error to see if any.
    Then it likely you got saving issue with your master-detail block.
    can you save with only master block data? but cannot save if both blocks have new data?
    if yes, then you may add when-validate-record trigger to master and detail blocks, with code forms_ddl('post');
    then see it makes difference.

Maybe you are looking for

  • JTA and XA, Mqueue

    Trying to get XA to work with Oracle and Ibm mqueue series. I'm not having much luck. Lot's of problems and lack of info? We want Mqueue to be the TM and oracle to be the resource? There seems to be no docs on how to make oracle a XA resource and und

  • TS1347 hi, I'd like to know how do i get my "Hotmail Contacts" from my iphone to my macbookpro, can you help me?

    I haven't been able to transfer those contacts. I tried via ICloud, but it doesn't transfer them all... I need the Hotmail and Exchange contacts, so again... Could you help me?

  • Installing Windows from an external optical drive?

    My superdrive recently died, and I replaced it with an external drive that's been able to read and burn everything I need it to without a problem, including using it to install Snow Leopard. I tried to use it to install Windows (Vista Home Premium, i

  • .mov Files not working in Mac but working on Windows

    I use a Kodak 10MP digital camera to click. I use it to shoot some videos too. I had some videos taken earlier on the camera and used to view them on windows. Just bought a Macbook a few days ago, and all those videos worked fine (transfered using an

  • Album artwork on itunes

    Hey guys, So i'm new to all this ipod/itunes stuff \nd i havnt been doing bad by myself. I have one question that no one can seem to answer for me so hopefully someone on here can... Ive brought myself a new ipod 8gb nano to go with my new laptop..i