Creating & submitting holiday with past date fails
--------------------------------------------------

                 Key: MIFOS-4122
                 URL: http://mifosforge.jira.com/browse/MIFOS-4122
             Project: mifos
          Issue Type: Bug
    Affects Versions: Release E - Iteration 11
            Reporter: Wojciech Marchaj


Define a new holiday with past date i.e. 1.1.2009.
Preview & submit. The following exception is thrown:

2010-11-10/13:12:11.596/CET ERROR, 
org.mifos.framework.servlet.UncaughtExceptionHandler, ?, ?, ?, Uncaught 
exception while accessing '/mifos-webapp/previewHoliday.ftl'
org.mifos.service.BusinessRuleException
        at 
org.mifos.application.holiday.business.HolidayBO.validateFromDateAgainstCurrentDate(HolidayBO.java:239)
        at 
org.mifos.application.holiday.business.HolidayBO.validate(HolidayBO.java:233)
        at 
org.mifos.application.holiday.business.service.HolidayServiceImpl.create(HolidayServiceImpl.java:50)
        at 
org.mifos.application.holiday.persistence.HolidayServiceFacadeWebTier.createHoliday(HolidayServiceFacadeWebTier.java:52)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at 
org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:67)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy29.createHoliday(Unknown Source)
        at 
org.mifos.ui.core.controller.PreviewHolidayController.processFormSubmit(PreviewHolidayController.java:89)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:174)
        at 
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:421)
        at 
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:409)
        at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
        at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
        at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
        at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to