Transaction roll back exception in setRollbackOnly in stateless bean

Hello All,
Im using WLS 5.1 SP9 on Win2k with Oracle 8.
Flow:
A stateless session bean with container-managed transaction uses
entity beans to insert records into 3 tables, vide:
Primary - CMP,
Secondary - BMP,
Tertiary - CMP
If validation fails on the data thats coming in, error messages are
sent back to the client and the transaction is set to roll back with
the folliwng stmt :
sessionContext.setRollbackOnly();
Now there are 2 problems :
1. Valid data is passed in: Though the operation seems to succeed from
the front end, there aren't any records inserted into the Primary
table. Secondary and Tertiary tables have the right data present in
them.
2. Invalid data is passed in: When the validation fails and the
transaction is set to rollback, the following exceptions are thrown :
Exception during commit of transaction: '1030642768442_27'
weblogic.transaction.RollbackException: Transaction TxC (26691678, xid
= 1030642768442_27, timeout = 60, txState = Rolledback, root = null
has been rolled back.Reason: Unknown
<!-- REST SNIPPED -->
I searched this ng for previous posts on this problema and indeed
found quite a few with the same problem. However, they referred to
this problem as a bug in the earlier service packs of Weblogic such as
4 and 5. I however use SP9, but still get the same problem.
Anybody have any ideas on these problems and possible solutions?
Thanks and regards,
Pavan

The problem seems to be related to the Adapter Engine but not sure about the exact reason. As per the last line of the log, either the channel reference was missing or there was some problem with the related service which could be viewed in visual admin. This could have occurred when the channel is initialized for the use. Restart helped because it may have restarted the related services.
Regards,
Prateek

Similar Messages

  • Remote or transactional roll back exception

    Hi All,
    I have deployed CMP2 entity bean to SUN ONE with Oracle as DB. There is no problem while retrieving/updating values to the table. But throws following
    exception while adding values to the table.
    Exception from the server log is below:
    SEVERE: EJB5071: Some remote or transactional roll back exception occurred
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: Got an unknown ex
    ception.
    NestedException: java.lang.NullPointerException
    at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updatePe
    rsistent(Unknown Source)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerI
    mpl.beforeCompletion(Unknown Source)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.not
    ifyBeforeCompletion(Unknown Source)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.com
    mitBefore(Unknown Source)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.bef
    oreCompletion(Unknown Source)
    at com.sun.ejb.containers.ContainerSynchronization.beforeCompletion(Unkn
    own Source)
    at com.sun.enterprise.distributedtx.J2EETransaction.commit(Unknown Sourc
    e)
    at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(Unk
    nown Source)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.postInvoke(Unknown Source)
    at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.se
    tCountry(ConfigSessionBean_EJBObjectImpl.java:558)
    at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_T
    ie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Un
    known Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unk
    nown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Sou
    rce)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Sourc
    e)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unkn
    own Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(U
    nknown Source)
    at java.lang.Thread.run(Thread.java:536)
    WARNING: CORE3283: stderr: java.lang.NullPointerException
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    sql.generator.UpdateQueryPlan.addConstraint(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    sql.generator.UpdateQueryPlan.addBasetableConstraint(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    sql.generator.UpdateQueryPlan.processStatements(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    sql.generator.UpdateQueryPlan.build(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    model.ClassDesc.getUpdateQueryPlanForUpdate(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    model.ClassDesc.getUpdateQueryPlan(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    SQLStoreManager.executeBatch(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    SQLStateManager.updatePersistent(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.PersistenceManagerImpl.beforeCompletion(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.TransactionImpl.notifyBeforeCompletion(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.TransactionImpl.commitBefore(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
    impl.TransactionImpl.beforeCompletion(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.ejb.containers.ContainerSynchronizati
    on.beforeCompletion(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.enterprise.distributedtx.J2EETransact
    ion.commit(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.enterprise.distributedtx.J2EETransact
    ionManagerOpt.commit(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.complete
    NewTx(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.postInvo
    keTx(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.postInvo
    ke(Unknown Source)
    WARNING: CORE3283: stderr: at com.siptech.pdf.ejb.config.session.ConfigSess
    ionBean_EJBObjectImpl.setCountry(ConfigSessionBean_EJBObjectImpl.java:558)
    WARNING: CORE3283: stderr: at com.siptech.pdf.ejb.config.session._ConfigSes
    sionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServe
    rSC.dispatchToServant(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServe
    rSC.internalDispatch(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServe
    rSC.dispatch(Unknown Source)
    WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.iiop.ORB.process(Un
    known Source)
    WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.iiop.RequestProcess
    or.process(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.corba.ee.internal.iiop.Servic
    ableWrapper.service(Unknown Source)
    WARNING: CORE3283: stderr: at com.iplanet.ias.util.threadpool.FastThreadPoo
    l$ThreadPoolThread.run(Unknown Source)
    WARNING: CORE3283: stderr: at java.lang.Thread.run(Thread.java:536)
    Thanks,
    Muthu.

    Hi Muthu,
    from looking into SQLStateManager.updatePersistent, I doubt that we can run into an NPE here.
    Can you please send us the entire log file? BTW: It would be much easier for me to help you, if I could see line the numbers in the stack trace. Would it be possible for you to get an non
    optimized build and rerun your application?
    Thank you,
    -- markus.

  • Remote or transactional roll back exception occurred

    Hi,
    I am getting this message, anybody could help me?
    SEVERE ( 1166): EJB5071: Some remote or transactional roll back exception occurred
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: Got an unknown exception.
    NestedException: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updatePersistent(SQLStateManager.java:1012)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:1251)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.notifyBeforeCompletion(TransactionImpl.java:1115)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.commitBefore(TransactionImpl.java:743)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.beforeCompletion(TransactionImpl.java:646)
    at com.sun.ejb.containers.ContainerSynchronization.beforeCompletion(ContainerSynchronization.java:105)
    at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:183)
    at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:310)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1786)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1585)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:510)
    at br.com.inttegra.infra.businesslayer.ejb.ControllerBean_EJBObjectImpl.insert(ControllerBean_EJBObjectImpl.java:136)
    at br.com.inttegra.infra.businesslayer.ejb._ControllerBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
    at java.lang.Thread.run(Thread.java:536)

    Hi,
    Please make shure, that your sun-cmp-mappings.xml is correct. The exception in your message just indicates a problem executing a sql statement. Please look into your log file again if you could find another exception trace showing where the IndexOutOfBoundsException happens.
    Thanks,
    -- markus.

  • Transaction roll back exception

    I am getting a transaction rollback exception during a long running query. running
    WL 5.1 and dont think I can use the
    trans-timeout-seconds in the transaction-descriptor section of the weblogic-ejb-jar
    descriptor file. Can anyone advise on if there is another way to do this or does
    5.1 support this?
    thanks
    Gary

    Hi Athhek,
    If I set reply with success then both route node and system error handlers are executed. I get following response metadata
    <con:metadata      xmlns:con="http://www.bea.com/wli/sb/test/config">
    <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">1</tran:response-code>
    </con:metadata>
    and also following error reaches system handler:
    <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-382050</con:errorCode>
    <con:reason>
    Expected active transaction, actual transaction status: Marked Rollback
    </con:reason>
    <con:location>
    <con:path>response-pipeline</con:path>
    </con:location>
    </con:fault>
    When I set reply with error only route node handler is executed but I still get
    <con:metadata      xmlns:con="http://www.bea.com/wli/sb/test/config">
    <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">1</tran:response-code>
    </con:metadata>
    Thank you.

  • Error: [129]: transaction rolled back by an internal error:  [129] transaction rolled back by an internal error: exception 141000274: exception 141000274: TRexUtils/ParallelDispatcher.cpp:275 message not found; $message$=

    Hello Gurus,
    I have a couple of calculation views in HANA and each of them has text fields (like Employee Name, Country Name etc.).
    As part of my project requirement, I have join those two views and get all the fields that exist in them.
    When I am doing so, I am getting a weird error as shown below.
    Error: [129]: transaction rolled back by an internal error:  [129] transaction rolled back by an internal error: exception 141000274: exception 141000274:
    TRexUtils/ParallelDispatcher.cpp:275
    message not found; $message$='TSR HTKD JFSDFM'
    Please check lines: 59,
    Upon, researching further, I could see that the value 'TSR HTKD JFSDFM' is the value in text field of Employee Name.
    I did try to increase the length of the field and change the data types but nothing has worked.
    Could you please help me in getting this one resolved.
    Thanks,
    Raviteja

    Hi,
    I am exactly facing the same issue:
    Error: [129]: transaction rolled back by an internal error:  [129] transaction rolled back by an internal error: exception 141000274:
    But i found a fix :-) .....
    This may be a very late reply but it would help people who desperately searching for an answer for this issue.
    I used CAST function .. The problem is, we are selecting data from table and of course we dont know the size of the data (attribute) @ runtime. We assign the length by looking at the table attr length or view op attr length. But what happens is the junk data which exceeds the limit of the allocated space hence we get this error.
    So i used CAST function to truncate the excess junk values (may be spaces).
    Example:
    I have a ATTR view of date in the format YYYY-MM-DD which means 10 char size.
    In my CALC view I have created date OP column of VARCHAR(10) but I get the above error for no reason. Eventhoug i am 100% sure about my ATTR date would be max of 10 char my CALC view is failing @ runtime.
    So i did a CAST on date as CAST(my_date as varchar(10)) and the magic happend. It works .......
    But you need to be careful in using this because if you use CAST you may lose data. Careful. In my case i dont.
    Somebody from HANA team should look at this issue from SAP and solve this. I am sure it is a serious bug from HANA (eventhough i am using SAP HANA SP09 Rev 92 the most latest as of today !!!!!!!!!! )
    Enjoy....
    Thanks & Regards
    Prakash K

  • Transaction rolled back by an internal error

    Hello
    I am wrting a stored procedure .
    In that i wrote a while loop.
    The Requirement is even though any exception is caught it should continue.
    If ant exception is occured I am getting the error transaction rolled back by an internal error and execution exits.
    But it should continue.
    I am not using any transactions.
    Please help me.

    Hi,
    I am exactly facing the same issue:
    Error: [129]: transaction rolled back by an internal error:  [129] transaction rolled back by an internal error: exception 141000274:
    But i found a fix :-) .....
    This may be a very late reply but it would help people who desperately searching for an answer for this issue.
    I used CAST function .. The problem is, we are selecting data from table and of course we dont know the size of the data (attribute) @ runtime. We assign the length by looking at the table attr length or view op attr length. But what happens is the junk data which exceeds the limit of the allocated space hence we get this error.
    So i used CAST function to truncate the excess junk values (may be spaces).
    Example:
    I have a ATTR view of date in the format YYYY-MM-DD which means 10 char size.
    In my CALC view I have created date OP column of VARCHAR(10) but I get the above error for no reason. Eventhoug i am 100% sure about my ATTR date would be max of 10 char my CALC view is failing @ runtime.
    So i did a CAST on date as CAST(my_date as varchar(10)) and the magic happend. It works .......
    But you need to be careful in using this because if you use CAST you may lose data. Careful. In my case i dont.
    Somebody from HANA team should look at this issue from SAP and solve this. I am sure it is a serious bug from HANA (eventhough i am using SAP HANA SP09 Rev 92 the most latest as of today !!!!!!!!!! )
    Enjoy....
    Thanks & Regards
    Prakash K

  • Websphere 5.0 & JDBC : LocalTransaction rolled-back due to setRollbackOnly.

    Hello,
    I'm using WAS 5.0 & Oracle. I'm getting following error.
    Resource cp_fcatretail_user_A1 rolled back in cleanup of unresolved LocalTransactionContainment.
    LocalTranCoor E WLTC0032E: One or more resources rolled back. An unresolved LocalTransactionContainment had an unresolved action of rollback.
    *5258e643 WebAppTransac E WTRN0043I: LocalTransaction rolled-back due to setRollbackOnly.*
    *[Servlet Error]-[LocalTransaction rolled-back due to setRollbackOnly]: com.ibm.ws.LocalTransaction.RolledbackException*
    at com.ibm.ws.LocalTransaction.LocalTranCoordImpl.cleanup(LocalTranCoordImpl.java:1091)
    Plz help me out.
    Thanks in Advance
    Edited by: PremInd on Dec 27, 2007 2:44 PM

    PremInd wrote:
    No.. I have wriiten all transaction correctly.
    WAS seems to disagree with you.
    I think , this problem related to WAS configuration.Aren't your transactions declarative? That is configuration.
    Please any one have idea, come forward.All you jokers with nothing to say take one step back.
    %

  • Transaction rolled back......soa 11g

    I have a bpel process 1 which calls bpel process 2. Bpel process 2 is a file write. In my instance bpel process 2 is called and the file is written successfully. but bpel process 1 gets errored out with no errors being displayed. The bpel process 1 has a red colour at the point where it invokes the child process. and also a line saying transaction rolled back.
    But there is no error in the child process instance
    Please do suggest me the solution.

    The issue may be due to the transaction timeout, verify the configured timeouts and the processing time of the process B.
    Try increasing Sync Max Time Out and the other timeouts accordingly and test it.
    Refer the below URL for the details of configuring the timeouts.
    http://www.albinsblog.com/2011/11/oracle-soa-11g-configure-transaction_20.html
    Regards
    Albin I

  • C#  TransactionOption.RequiresNew ORA-24761 Transaction Rolled Back

    Hi all,
    I am working on Web service in C# with VS 2005. I am using IIS 5.1, Oracle 10g.
    Problem:
    I used
    [WebMethod(TransactionOption = TransactionOption.RequireNew)]
    [AutoComplete]
    with each Web Method of web service. If something goes wrong inside the web method i use ContextUtil.SetAbort() to abort the transaction else ContextUtil.SetComplete()
    Now after getting some problem while executing a web method, next time when i call any web method oracle terminates the transaction passing error "ORA-24761 : Transaction rolled back". But if again, i try the same call, its got executed with no problem!
    Any kind of help, will be appreciated, its urgent.

    Hello,
    Do you have support with Oracle? If so, I would suggest opening an SR and reference bugs 5410059, 5353967, and 4432906. In some cases not using connection pooling has been a workaround.
    Regards,
    Mark

  • Error 131 Transaction rolled back by lock wait timeout

    Hello all,
    I was trying to run apriori, and then HANA writer in my database.
    Apriori executes directly, and then I configure and try to execute HANA Writer. But it keeps executing for more than half an hour, and then gives the following error: Error 131 Transaction rolled back by lock wait timeout. Lock timeout occurs while waiting TABLE_LOCK of mode EXCLUSIVE.
    Bimal suggested me to reduce the data to be analysed, so then I reduced it to a pretty small part and executed again.
    It gave me the same error after more than 30 minutes waiting executing.
    after having this error, I tried just execute apriori, but with a filter of 5 transactions and than it worked. After that I tried to visualize the results, and got the following error:
    It means that my HANA memory is full?
    I got the view from HANA:
    Regards!
    Error 131 Transaction rolled back by lock wait timeout 

    Hi Jurgen,
    I'm a developper for PAL from Shanghai team.
    Could you please provide some details information about this case:
    -          How many records did you use ?
    -          What’s the value of “MIN_SUPPORT” and “MIN_CONFIDENCE” did you use ?
    The algorithm of apriori will consume much memory when the input data is very large and min_support is low.
    So I suggest you set “MIN_SUPPORT” and “MIN_CONFIDENCE” as 0.9 firstly, check if it can output result.
    Thanks,
    Peng

  • Avoid transaction roll back using exception handler

    Hi everybody!
    I've created a proxy service in OSB using a DB adapter for polling from a database table. I've configured the service to be transactional with same transaction for reponse. The proxy has a route node that routes to a business service created from a db adapter for storing the polled data. Insert table has a db trigger associated wich raises a custom exception in certain cases. I need to catch that exception in the route exception handler to avoid the full transaction to be marked rolled back. For this, I've setup a response with failure action in the handler.
    After testing the service I realized that it's not working as expected as transaction is being rolled back when the trigger raises the exception (so registry is not marked as polled in source table).
    Could anyone explain me which action should be taken to avoid a rollback when handling exception?
    Best regards,
    Daniel.

    Hi Athhek,
    If I set reply with success then both route node and system error handlers are executed. I get following response metadata
    <con:metadata      xmlns:con="http://www.bea.com/wli/sb/test/config">
    <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">1</tran:response-code>
    </con:metadata>
    and also following error reaches system handler:
    <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-382050</con:errorCode>
    <con:reason>
    Expected active transaction, actual transaction status: Marked Rollback
    </con:reason>
    <con:location>
    <con:path>response-pipeline</con:path>
    </con:location>
    </con:fault>
    When I set reply with error only route node handler is executed but I still get
    <con:metadata      xmlns:con="http://www.bea.com/wli/sb/test/config">
    <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">1</tran:response-code>
    </con:metadata>
    Thank you.

  • Transaction rolled back when system exception occurs.

    Hello,
    I understand that when a exception occurs that extends RuntimeException or RemoteException, the current transaction is rolled back. Is that also the case when the system exception is caught and dealt with?
    Julien Martin.

    Hi Julien,
    It depends whether the system exception was ever propagated back to the container. E.g. If the container-managed transaction only spans a single EJB business method and the exception is both thrown AND caught within that business method, then no, the container will not mark the tx for rollback.
    However, take the case where EJBs A and B both have container-managed transactions and tx attribute TX_REQUIRED. If EJB A calls business method foo() on EJB B and foo() throws a system exception, the tx will be marked for rollback by B's container as part of the post-processing of foo(). When control returns to EJB A, the same tx is still active, but it has been marked for rollback. Even if EJB A "eats" the system exception and returns normally, it won't change the disposition of the transaction, so the tx will be rolled back by A's container.
    --ken
    Kenneth Saks
    J2EE SDK Engineering
    SUN Microsystems

  • Transaction roll back

              Dear Everyone,
              What kind of exceptions do the wls container force to roll back a transaction?
              Already a simple NullpointerException does it or it has to be a kind of special
              Exception like EJbException?
              And if I catch that exception I hope it does not roll the transaction back if
              I do not rethrow.
              Thanks for your help.
              Miklos
              

              Dear Deyan,
              Thanks for the answer. Actually an entity creation rolled back even I throw an
              CreateException.
              That is very intersting, and it is not mentioned in the sun documentation.
              Actually I catch the CreateException and rethrow it.
              Any idea why it happens?
              Miklos
              "Deyan D. Bektchiev" <[email protected]> wrote:
              >Miklos,
              >
              >Once the exception crosses the invocation wrapper if it is an instance
              >
              >of RuntimeException (NPE is) or RemoteException (this one is there
              >mostly for backward compatibility with pre-EJB 2.0 spec) the transaction
              >
              >will be marked for rollback so you cannot commit it.
              >If you don't want to roll back the transaction, throw an application
              >
              >exception instead (any other type that inherits from java.lang.Exception).
              >
              >Regards,
              >Dejan
              >
              >Miklos Molnar wrote:
              >
              >>Dear Everyone,
              >>
              >> What kind of exceptions do the wls container force to roll back a transaction?
              >> Already a simple NullpointerException does it or it has to be a kind
              >of special
              >>Exception like EJbException?
              >> And if I catch that exception I hope it does not roll the transaction
              >back if
              >>I do not rethrow.
              >>
              >> Thanks for your help.
              >>
              >> Miklos
              >>
              >>
              >
              

  • Help with frozen process, retry delay and transaction rolled back

    Hi all,
    </br>
    </br>
    Is there a way to create a JPD that will be able to retry a specific logic for several times with <b>delay</b> in between and <b>freeze</b> on the last retry. Also, at the same time, <b>not rollback</b> any database commits?
    </br>
    </br>
    I have tried several ways to approach this but did not work.
    </br>
    </br>
    1) create a JPD with transaction block with start node = "<b>freeze on failure</b>". Set retry count and delay in the transaction block. The outcome is, the JPD freezes, retries correctly, unfreezed properly, <b>but all DB transactions are rolled back</b>
    </br>
    </br>
    2) create a JPD without transaction block, and set start node with "<b>freeze on failure</b>", group the nodes that I would like to perform retry and in the <b>exception path</b> add in the retry count. Use <b>timer</b> in the exception path to introduct the delay. The outcome of this is: JPD freezes, retries correctly, <b>unfreezed INCORRECTLY</b> (when trying to unfreeze this process, it will start at the ontimeout method of the timer and does not start from the beginning of the jpd), DB transactions are commited correctly
    </br>
    </br>
    Any help or suggestions would be much appreciated...
    </br>
    Thanks!
    </br>
    </br>
    Carol

    The issue may be due to the transaction timeout, verify the configured timeouts and the processing time of the process B.
    Try increasing Sync Max Time Out and the other timeouts accordingly and test it.
    Refer the below URL for the details of configuring the timeouts.
    http://www.albinsblog.com/2011/11/oracle-soa-11g-configure-transaction_20.html
    Regards
    Albin I

  • Roll back exceptions

    We just started getting this error message today, and we have not been able to
    reasonable decipher it. I hope someone can help....
    Wed Dec 11 13:51:12 EST 2002:<I> <EJB JAR deployment ./myserver5/CORE/IncentiveProgramManager.jar>
    Transaction: '1039632533713_4121' rolled back due to EJB exception:
    java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl: method setupTransaction(Ljavax/transaction/Transaction;Lweblogic/ejb/internal/MethodInfo;)V
    not found
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.preFinderInvoke(IncentiveProgramBeanHomeImpl.java:193)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.findByPrimaryKey(IncentiveProgramBeanHomeImpl.java:69)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl_ServiceStub.findByPrimaryKey(Compiled
    Code)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBean.updateIncentiveProgram(IncentiveProgramManagerBean.java:1076)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl.updateIncentiveProgram(IncentiveProgramManagerBeanEOImpl.java:158)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl_ServiceStub.updateIncentiveProgram(Compiled
    Code)
    at EditIncentiveProgram.service(EditIncentiveProgram.java:472)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
    Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    Wed Dec 11 13:51:12 EST 2002:<E> <ServletContext-General> Servlet failed with
    Exception
    java.rmi.RemoteException: java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl:
    method setupTransaction(Ljavax/transaction/Transaction;Lweblogic/ejb/internal/MethodInfo;)V
    not found
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.preFinderInvoke(IncentiveProgramBeanHomeImpl.java:193)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.findByPrimaryKey(IncentiveProgramBeanHomeImpl.java:69)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl_ServiceStub.findByPrimaryKey(Compiled
    Code)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBean.updateIncentiveProgram(IncentiveProgramManagerBean.java:1076)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl.updateIncentiveProgram(IncentiveProgramManagerBeanEOImpl.java:158)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl_ServiceStub.updateIncentiveProgram(Compiled
    Code)
    at EditIncentiveProgram.service(EditIncentiveProgram.java:472)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
    Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    ; nested exception is:
    java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl: method
    setupTransaction(Ljavax/transaction/Transaction;Lweblogic/ejb/internal/MethodInfo;)V
    not found
    java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl: method setupTransaction(Ljavax/transaction/Transaction;Lweblogic/ejb/internal/MethodInfo;)V
    not found
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.preFinderInvoke(IncentiveProgramBeanHomeImpl.java:193)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.findByPrimaryKey(IncentiveProgramBeanHomeImpl.java:69)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl_ServiceStub.findByPrimaryKey(Compiled
    Code)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBean.updateIncentiveProgram(IncentiveProgramManagerBean.java:1076)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl.updateIncentiveProgram(IncentiveProgramManagerBeanEOImpl.java:158)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl_ServiceStub.updateIncentiveProgram(Compiled
    Code)
    at EditIncentiveProgram.service(EditIncentiveProgram.java:472)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
    Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    Any help would be much appreciated.
    Jim

    Looks like a classpath mismatch between the version of ejbc used to
    compile the bean and the server which deployed it.
    You must be using 5.1. Newer versions of the server handle this much
    better.
    -- Rob
    Jim Smith wrote:
    We just started getting this error message today, and we have not been able to
    reasonable decipher it. I hope someone can help....
    Wed Dec 11 13:51:12 EST 2002:<I> <EJB JAR deployment ./myserver5/CORE/IncentiveProgramManager.jar>
    Transaction: '1039632533713_4121' rolled back due to EJB exception:
    java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl: method setupTransaction(Ljavax/transaction/Transaction;Lweblogic/ejb/internal/MethodInfo;)V
    not found
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.preFinderInvoke(IncentiveProgramBeanHomeImpl.java:193)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.findByPrimaryKey(IncentiveProgramBeanHomeImpl.java:69)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl_ServiceStub.findByPrimaryKey(Compiled
    Code)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBean.updateIncentiveProgram(IncentiveProgramManagerBean.java:1076)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl.updateIncentiveProgram(IncentiveProgramManagerBeanEOImpl.java:158)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl_ServiceStub.updateIncentiveProgram(Compiled
    Code)
    at EditIncentiveProgram.service(EditIncentiveProgram.java:472)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
    Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    Wed Dec 11 13:51:12 EST 2002:<E> <ServletContext-General> Servlet failed with
    Exception
    java.rmi.RemoteException: java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl:
    method setupTransaction(Ljavax/transaction/Transaction;Lweblogic/ejb/internal/MethodInfo;)V
    not found
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.preFinderInvoke(IncentiveProgramBeanHomeImpl.java:193)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.findByPrimaryKey(IncentiveProgramBeanHomeImpl.java:69)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl_ServiceStub.findByPrimaryKey(Compiled
    Code)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBean.updateIncentiveProgram(IncentiveProgramManagerBean.java:1076)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl.updateIncentiveProgram(IncentiveProgramManagerBeanEOImpl.java:158)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl_ServiceStub.updateIncentiveProgram(Compiled
    Code)
    at EditIncentiveProgram.service(EditIncentiveProgram.java:472)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
    Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    ; nested exception is:
    java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl: method
    setupTransaction(Ljavax/transaction/Transaction;Lweblogic/ejb/internal/MethodInfo;)V
    not found
    java.lang.NoSuchMethodError: weblogic.ejb.internal.EJBHomeImpl: method setupTransaction(Ljavax/transaction/Transaction;Lweblogic/ejb/internal/MethodInfo;)V
    not found
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.preFinderInvoke(IncentiveProgramBeanHomeImpl.java:193)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl.findByPrimaryKey(IncentiveProgramBeanHomeImpl.java:69)
    at com.gmac.incentive.IncentiveProgram.IncentiveProgramBeanHomeImpl_ServiceStub.findByPrimaryKey(Compiled
    Code)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBean.updateIncentiveProgram(IncentiveProgramManagerBean.java:1076)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl.updateIncentiveProgram(IncentiveProgramManagerBeanEOImpl.java:158)
    at com.gmac.incentive.IncentiveProgramManagerEJB.IncentiveProgramManagerBeanEOImpl_ServiceStub.updateIncentiveProgram(Compiled
    Code)
    at EditIncentiveProgram.service(EditIncentiveProgram.java:472)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
    Code)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
    Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    Any help would be much appreciated.
    Jim

Maybe you are looking for

  • How to search for password policy

    Hello, Using DS 5.2: I've created a test policy, dn: cn=Test Policy,ou=People, o=xxx, o=isp. I can apply the policy, I can see the policy in my backup ldifs, but I can't figure out how to search for and display it (and eventually, delete it) either f

  • Re-occuring error message.

    Disclaimer...I am new to Java Programming so I am encountering the normal growing pains. This is a typical example of the problem I have been having. To make matters simplier, I will use this program which worked last night in school. public class Re

  • Moving layers into Group

    I am a web designer and have created a script that puts a browser UI around a Photoshop document. The action places several images and creates several text layers. What I want to do is place all the images then add them into a group called "BROWSER".

  • Is it free to replace a charging cable that quits on u?

    Is it free to replace a charging cable that has stopped working?

  • AE CS4 hangs everytime I open a certain project

    Hi, Im using After Effects CS4 v9.0.2.42 on Windows 7 RC Build 7100 (actually stabler than Vista) and until now everything was just fine. But now, everytime I open up a certain Project, After Effects hangs and Windows 7 gives me the Message: "AferFX.