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