=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/validation/ValidatorThread.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/validation/ValidatorThread.java 2014-08-15 07:40:20 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/validation/ValidatorThread.java 2014-09-16 22:33:15 +0000 @@ -56,6 +56,7 @@ import org.hisp.dhis.period.CalendarPeriodType; import org.hisp.dhis.period.Period; import org.hisp.dhis.period.PeriodType; +import org.hisp.dhis.system.util.DebugUtils; import org.hisp.dhis.system.util.MathUtils; /** @@ -87,6 +88,20 @@ @Override public void run() { + try + { + runInternal(); + } + catch ( RuntimeException ex ) + { + log.error( DebugUtils.getStackTrace( ex ) ); + + throw ex; + } + } + + private void runInternal() + { if ( context.getValidationResults().size() < ( ValidationRunType.INTERACTIVE == context.getRunType() ? ValidationRuleService.MAX_INTERACTIVE_ALERTS : ValidationRuleService.MAX_SCHEDULED_ALERTS) ) {