Hi All,

Let us assume that I have the following information:

Center name : Test center.
Group name : Test Group.
Client name:Test client.

Description:If i try to change the group membership of a client to the same
group,i am getting an error.The error looks like as shown below:
Solution:Instead of getting an error,it will be nice to see a user friendly
message for the end user if i try to change the status to the same group.

*type* Exception report

*message*

*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*

*exception*

javax.servlet.ServletException: java.lang.ClassCastException:
org.mifos.customers.business.CustomerBO_$$_javassist_6 cannot be cast
to org.mifos.customers.group.business.GroupBO
        
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
        
org.mifos.framework.struts.action.MifosRequestProcessor.processActionPerform(MifosRequestProcessor.java:231)
        
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.servlet.filters.MifosLogFilter.doFilter(MifosLogFilter.java:67)
        
org.mifos.framework.persistence.DatabaseInitFilter.doFilter(DatabaseInitFilter.java:51)

*root cause*

java.lang.ClassCastException:
org.mifos.customers.business.CustomerBO_$$_javassist_6 cannot be cast
to org.mifos.customers.group.business.GroupBO
        
org.mifos.customers.business.service.CustomerServiceImpl.transferClientTo(CustomerServiceImpl.java:927)
        
org.mifos.application.servicefacade.CustomerServiceFacadeWebTier.transferClientToGroup(CustomerServiceFacadeWebTier.java:895)
        
org.mifos.customers.client.struts.action.ClientTransferAction.updateParent(ClientTransferAction.java:135)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        java.lang.reflect.Method.invoke(Method.java:616)
        
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:140)
        
org.mifos.framework.struts.action.MifosRequestProcessor.processActionPerform(MifosRequestProcessor.java:202)
        
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.servlet.filters.MifosLogFilter.doFilter(MifosLogFilter.java:67)
        
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.28 logs.*
Description of mifos:
Mifos version:Mifos 1.6
Database:Mysql 5.45
Browser:Mozilla.



Thanks
Regards,
Lokesh S Sajjan
+919480200836
------------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-users

Reply via email to