Transactional CDI

Vicente Rossello <[email protected]>
Newsgroups gmane.comp.java.openejb.user
Message-ID <CAGKhu1-QBg3bMRWLtSYp6+hZQ6U-mzUg5JQ6WYBDrt-yXJ3cjA__44480.9367110551$1669828082$gmane$org@mail.gmail.com>
Hi,

We are using tomee with JPA and eclipselink implementation, in latest tomee
8.0.

Whenever we have a StackOverflowError (very rare case, fortunately :) ),
the application server is in an inconsistent state, with eclipselink
throwing some random errors, we have to shut the instance down.

I think it is because the transaction is never closed. I can see that the
class org.apache.openejb.cdi.transactional.InterceptorBase only catches
Exception.

...

try {
    policy = getPolicy();
    final Object proceed = ic.proceed();
    policy.commit(); // force commit there to ensure we can catch
synchro exceptions
    return proceed;
} catch (final Exception e) {
    if (illegalStateException == e) {
        throw e;
    }

....


Shouldn't it be Throwable? or at least catch some Error specific classes?
WDYT?


Thanks,
Vicente
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.