Trying to change center membership for a group with active accounts shows
exception instead of clean error message
------------------------------------------------------------------------------------------------------------------
Key: MIFOS-2809
URL: http://mifosforge.jira.com/browse/MIFOS-2809
Project: mifos
Issue Type: Bug
Components: Groups
Affects Versions: Gazelle C
Reporter: Kay Chau
Priority: Major
repro steps:
On the test server, go to Suarez Group.
Click on Edit Centre Membership, and search for a different center - like
Barangay 05.
Click on it to switch the center.
Click Submit.
Expected:
Red error message at the top indicating you cannot change a center with active
accounts.
Actual:
Following http error
javax.servlet.ServletException: org.mifos.core.MifosRuntimeException:
org.mifos.customers.exceptions.CustomerException:
errors.Customer.hasActiveAccount
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
org.mifos.framework.struts.action.MifosRequestProcessor.processActionPerform(MifosRequestProcessor.java:233)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.mifos.security.util.LoginFilter.doFilter(LoginFilter.java:85)
org.mifos.framework.persistence.DatabaseInitFilter.doFilter(DatabaseInitFilter.java:51)
root cause
org.mifos.core.MifosRuntimeException:
org.mifos.customers.exceptions.CustomerException:
errors.Customer.hasActiveAccount
org.mifos.application.servicefacade.CustomerServiceFacadeWebTier.transferGroupToCenter(CustomerServiceFacadeWebTier.java:544)
org.mifos.customers.group.struts.action.GroupTransferAction.transferToCenter(GroupTransferAction.java:180)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
org.mifos.framework.struts.action.BaseAction.execute(BaseAction.java:105)
org.mifos.framework.struts.action.MifosRequestProcessor.processActionPerform(MifosRequestProcessor.java:204)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.mifos.security.util.LoginFilter.doFilter(LoginFilter.java:85)
org.mifos.framework.persistence.DatabaseInitFilter.doFilter(DatabaseInitFilter.java:51)
root cause
org.mifos.customers.exceptions.CustomerException:
errors.Customer.hasActiveAccount
org.mifos.customers.group.business.GroupBO.validateForActiveAccounts(GroupBO.java:383)
org.mifos.customers.business.service.CustomerServiceImpl.transferGroupTo(CustomerServiceImpl.java:310)
org.mifos.application.servicefacade.CustomerServiceFacadeWebTier.transferGroupToCenter(CustomerServiceFacadeWebTier.java:540)
org.mifos.customers.group.struts.action.GroupTransferAction.transferToCenter(GroupTransferAction.java:180)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
org.mifos.framework.struts.action.BaseAction.execute(BaseAction.java:105)
org.mifos.framework.struts.action.MifosRequestProcessor.processActionPerform(MifosRequestProcessor.java:204)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.mifos.security.util.LoginFilter.doFilter(LoginFilter.java:85)
org.mifos.framework.persistence.DatabaseInitFilter.doFilter(DatabaseInitFilter.java:51)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.
Apache Tomcat/6.0.18
--
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
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues