Defining a new client fee causes error "Currency must not be null"
------------------------------------------------------------------
Key: MIFOS-2675
URL: http://mifosforge.jira.com/browse/MIFOS-2675
Project: mifos
Issue Type: Bug
Components: Fee
Reporter: Keith Pierce
Priority: Blocker
When attempting to define a new fee, Mifos displays the error "Currency must
not be null". This blocks testing of all testing of fees from the GUI.
To replicate the problem:
1. Use HEAD revision of Mifos (as of the date of this issue).
2. Log in as mifos.
3. admin > define new fees
4. Enter data for a client fee, press "preview"
5. Press "submit"
6. Observe exception:
SEVERE: Servlet.service() for servlet Controller threw exception
java.lang.NullPointerException: Currency must not be null
at
org.mifos.framework.util.helpers.Money.checkCurrencyNotNull(Money.java:271)
at org.mifos.framework.util.helpers.Money.<init>(Money.java:90)
at org.mifos.framework.util.helpers.Money.<init>(Money.java:86)
at
org.mifos.application.fees.struts.action.FeeAction.createOneTimeFee(FeeAction.java:291)
at
org.mifos.application.fees.struts.action.FeeAction.createFee(FeeAction.java:269)
at
org.mifos.application.fees.struts.action.FeeAction.create(FeeAction.java:138)
...
This blocks any attempt to create a new client fee for testing.
Preliminary analysis:
1. Revision 16459 modified feesCreate.jsp so that the user no longer can pick a
currency for the fee unless multicurrency is enabled. Apparently it is not by
default. This causes the GUI to send a null value for the fee's currency to the
application (FeeAction.java) which raises the exception.
2. Mifos roadmap for Currency Denominated Loan Products
(http://www.mifos.org/knowledge/functional-specifications/account-creation/currency-denominated-loan-products/?searchterm=multicurrency)
states that multi-currency will not be supported for client fees, but only
loan fees. But it appears that this jsp page will allow the user to select
another currency for client fees if multi-currency is enabled.
--
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
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues