[
http://mifosforge.jira.com/browse/MIFOS-2648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=69693#comment-69693
]
Rebecca Scott commented on MIFOS-2648:
--------------------------------------
tbd-archive
> Your Settings NPE caused by Preferred Locale
> --------------------------------------------
>
> Key: MIFOS-2648
> URL: http://mifosforge.jira.com/browse/MIFOS-2648
> Project: mifos
> Issue Type: Bug
> Components: Personnel
> Affects Versions: Release 1.4
> Environment: any
> Reporter: Sam Birney
> Assignee: Jeff Brewster
> Labels: almajmoua
>
> Hi Sam,
> Regarding the NPE when some users click on "Your Settings", I was indeed
> able to repro this problem locally using the clue you provided about the
> preferred locale. When I inspected personnel table for the new non-loan
> officer I had just created which encountered this NPE, the
> preferred_locale value was 46. This number is inflated and likely due
> to issue MIFOS-2534. I then reproduced the same error on an admin user
> by changing the admin user's preferred locale value to 46. So the
> issue isn't specific to role, but instead due to newer users picking up
> values that have invalid preferred locales.
> One workaround that I verified is to simply update the preferred_locale
> values for all new users to some valid value like '1'. Once those
> values are updated, the user should be able to go to Your Settings.
> I'll post this information and repro steps in issue 2534 once I can
> access Jira again.
> Thanks,
> Jeff
> From: Sam Birney [mailto:[email protected]]
> I haven't been able to repro the group loan issue on my local test
> server, but I have for the "your preferences" stack trace. I tried but
> was not able to repro this on the ci.mifos test server.
> The page loaded fine when logged in as admin, but got the exception when
> logged as a non-loan-officer user who is assigned to a branch office.
> We don't have any customizations now, so it seems like it must be
> something related to the data or configuration.
> SessionUtils.setAttribute(MasterConstants.LANGUAGE,
> getNameForBusinessActivityEntity(preferredLocale,
> localeId), request);
> Since this line is the one triggering the exception, I suspect it may be
> related to the issue that so many duplicate languages appear:
> http://mifosforge.jira.com/browse/MIFOS-2534
> <http://mifosforge.jira.com/browse/MIFOS-2534>
> java.lang.NullPointerException
> org.mifos.application.master.MessageLookup.lookup(MessageLookup.java:97)
> org.mifos.application.master.persistence.MasterPersistence.retrieveMaste
> rEntities(MasterPersistence.java:212)
> org.mifos.application.master.business.service.MasterDataService.retrieve
> MasterEntities(MasterDataService.java:102)
> org.mifos.application.personnel.struts.action.PersonnelSettingsAction.ge
> tNameForBusinessActivityEntity(PersonnelSettingsAction.java:176)
> org.mifos.application.personnel.struts.action.PersonnelSettingsAction.se
> tDetailsData(PersonnelSettingsAction.java:215)
> org.mifos.application.personnel.struts.action.PersonnelSettingsAction.ge
> t(PersonnelSettingsAction.java:84)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.j
> ava:274)
> org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194
> )
> org.mifos.framework.struts.action.BaseAction.execute(BaseAction.java:94)
> org.mifos.framework.struts.action.MifosRequestProcessor.processActionPer
> form(MifosRequestProcessor.java:203)
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
> 224)
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.mifos.framework.security.util.LoginFilter.doFilter(LoginFilter.java:
> 85)
> org.mifos.framework.persistence.DatabaseInitFilter.doFilter(DatabaseInit
> Filter.java:51)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://mifosforge.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues