[
http://mifosforge.jira.com/browse/MIFOS-1880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jbrewster updated MIFOS-1880:
-----------------------------
Status: Verified (was: Resolved)
> Configuration.getInstance() messes up an existing Resultset during lazy
> initialization
> --------------------------------------------------------------------------------------
>
> Key: MIFOS-1880
> URL: http://mifosforge.jira.com/browse/MIFOS-1880
> Project: mifos
> Issue Type: Bug
> Components: Configuration
> Affects Versions: Release 1.0
> Environment: Platform: All, OS: All
> Reporter: pbiligi
> Assignee: Van Mittal-Henkle
> Fix For: Gazelle Backlog
>
> Attachments: config-initialization-stktrace.txt,
> FeePersistenceGetUpdatedFeesForCustomersTest.java,
> FeePersistenceGetUpdatedFeesForCustomersTest.java
>
>
> When Configuration is getting initialized, it picks up the default currency
> using AccountingRules.getMifosCurrency(), which is actually a database call.
> If this process is done when an active ResultSet exists due to a just-executed
> query, the ConfigManager code overwrites this ResultSet. I'm seeing this error
> when I call FeePersistence.getUpdatedFeesForCustomer() which uses the
> MoneyCompositeUserType when generating the result.
> This is the call stack:
> Configuration.getInstance()
> Configuration.initialize()
> ConfigurationInitializer().initialize()
> ConfigurationInitializer().createSystemConfiguration()
> AccountingRules.getMifosCurrency()
> I'll be attaching a test case which uses
> FeePersistence.getUpdatedFeesForCustomer() to reproduce this bug. Also
> find stack trace attached.
--
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
------------------------------------------------------------------------------
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues