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

Similar Messages

  • 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.

  • 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.

  • 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.

  • 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

  • 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

  • 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

  • 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

  • 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

  • Difference Between Phased Migration and Parallel-cutover and which is better considering Roll-back if something unexpected occurs

    Difference Between Phased Migration and Parallel-cutover and whcih is better considering Roll-back if something unexpected occurs
    Regards
    Sumit

    For what application and going from which version to which?
    Chris

  • What happens when an exception occurs at finalize method ?

    What happens when an exception occurs at the time of cleaning objects in finalize methods?
    Will program crashes?

    1.) Why don't you try it? You can simply throw your own exception.
    2.) For this kind of questions the JVM specification is a good resource, for your concrete problem the chapter about finalization might be interested (look for the sentence starting with "If an uncaught exception ...").

  • 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

  • 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 when trying to install iTunes with the version higher than 10.5

    I insall successfully with the iTunes with the version under 10.5. But my iPhone is not supported with those version. So I tried the new versions that are higher than 10.5 but a problem occurred during the installation.
    "An error occurred during the installation of assembly 'Microsoft.VC80.CRT,type="Win32",version=8.0.50727.6195",publicKeyToken="1fc8b3 b9a1e18e3b",processorArchitecture="x86"'
    Please refer to Help ans Support for more information. HRESULT:0x800736FD."
    When I click OK, it rolls back. Then it started to run the rest apps of iTunes.
    Anyone can help me, please!
    Thank in advance!

    Maybe no one can help!

  • 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
              >>
              >>
              >
              

Maybe you are looking for

  • Encoding Technique converting in XSLT Mapping.

    Hi, I have a scenarion File->XI->File. the incoming file has the encoding technique UTF-8. i have to convert it to ISO-8859-1. i'm using an XSLT mapping to do that after which my java mapping gets executed. when i tested this mapping with the source

  • Is there a way to bulk import/edit SMTP Proxy Adresses in Unity Connection 10?

    I'm looking for a way to perform a bulk import of SMTP Proxy Addresses. BAT doesn't seem to have a way to do it.  I have 3,000 users, not looking forward to doing it manually!  Any suggestions? Thanks

  • PLEASE HELP ITS URGENT (PROBLEM IN INCLUDE)

    IF I EXECUTE IN 4.6C ITS NOT GIVIN NY ERROR BUT THE SAME CODE IN 6.0 IS GIVING ERROR IF NOT ( ( text_flag = 'X' AND tcode_level > 0 ) OR              ( text_flag_level0 = 'X' AND                tcode_level      = 0   AND          )    ). ERROR IS: In

  • How to create Video Podcasts?

    I Have heard that Garage band can create video podcast. Is there some tutorial on how to create them?

  • IMac 8,1 Updaten?

    wie kann ich meinen mac auf das neueste Betriebssystem bringen?