Re: Transaction error dont reach onRuntimeException(Page page, RuntimeException e) method

2009-11-20 Thread Fernando Wermus
Igor, My exception is thrown at @Override protected void onEndRequest() { when I commit the transaction. I reviewed that is not wrapped with a WicketRuntimeException, actually I got a TransientObjectException. On Tue, Nov 10, 2009 at 5:16 PM, Igor Vaynberg

Re: Transaction error dont reach onRuntimeException(Page page, RuntimeException e) method

2009-11-20 Thread Igor Vaynberg
hrm, throwing an exception from onendrequest may be too late for it to be picked up by onruntimeexception, you may have to do that yourself. -igor On Fri, Nov 20, 2009 at 4:45 PM, Fernando Wermus fernando.wer...@gmail.com wrote: I forgot to mention that I persist some entities in onfinish

Transaction error dont reach onRuntimeException(Page page, RuntimeException e) method

2009-11-10 Thread Fernando Wermus
Hi all, I am testing transactionability in a site which I am developing. I got to roll back the app in case of a Hibernate DataException, but I couldnt reach my custom request cycle method onRutimeException @Override public Page onRuntimeException(Page page, RuntimeException e) Why is this?

Re: Transaction error dont reach onRuntimeException(Page page, RuntimeException e) method

2009-11-10 Thread Igor Vaynberg
where is your exception is thrown from? also, check that its not being wrapped in another exception such as a WicketRuntimeException. -igor On Tue, Nov 10, 2009 at 9:57 AM, Fernando Wermus fernando.wer...@gmail.com wrote: Hi all,    I am testing transactionability in a site which I am