[
http://mifosforge.jira.com/browse/MIFOS-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kay Chau updated MIFOS-3049:
----------------------------
Assignee: Udai Gupta
Description:
Import transaction of MPESA plugin gives an error
"ArrayIndexOutOfBoundsException" when importing a file that has an external ID
for the Transaction Party Details.
Repro steps:
1. Have loan account with disbursed loan waiting for payment.
2. Copy external # from loan details, e.g. 123456790
3. Put loan id in Transaction Party Details (see attached spreadsheet)
4. with Mpesa plugin in place, try import.
Actual Result:
Get out of bounds exception:
java.lang.ArrayIndexOutOfBoundsException: 1
at ke.co.safaricom.MPesaXlsImporter.parse(MPesaXlsImporter.java:123)
at org.mifos.application.importexport.struts.action.ImportTransactionsAc
tion.upload(ImportTransactionsAction.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio
n.java:274)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:
194)
Expected Result:
Should throw an error message that account cannot be found if the number
doesn't match a mifos ID and an account in the mifos system
was:
Import transaction of MPESA plugin gives an error
"ArrayIndexOutOfBoundsException" when importing a file that has a global ID for
the Transaction Party Details.
Repro steps:
1. Have loan account with disbursed loan waiting for payment.
2. Copy external # from loan details, e.g. 123456790
3. Put loan id in Transaction Party Details (see attached spreadsheet)
4. with Mpesa plugin in place, try import.
Actual Result:
Get out of bounds exception:
java.lang.ArrayIndexOutOfBoundsException: 1
at ke.co.safaricom.MPesaXlsImporter.parse(MPesaXlsImporter.java:123)
at org.mifos.application.importexport.struts.action.ImportTransactionsAc
tion.upload(ImportTransactionsAction.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio
n.java:274)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:
194)
Expected Result:
Need to confer with Kay - when spec for this plugin says Client's National ID
and provides example of 3029149635, is this external ID? 123456790. Please
clarify.
Fix Version/s: Shamim D
Summary: ArrayIndexOutOfBoundsException doing MPesa Import with
external ID (was: ArrayIndexOutOfBoundsException doing MPesa Import with loan
or savings global ID)
Must fix for shamim D
> ArrayIndexOutOfBoundsException doing MPesa Import with external ID
> ------------------------------------------------------------------
>
> Key: MIFOS-3049
> URL: http://mifosforge.jira.com/browse/MIFOS-3049
> Project: mifos
> Issue Type: Bug
> Components: ImportExport
> Affects Versions: Shamim D
> Reporter: jbrewster
> Assignee: Udai Gupta
> Priority: Major
> Fix For: Shamim D
>
> Attachments: example_importB.xls
>
>
> Import transaction of MPESA plugin gives an error
> "ArrayIndexOutOfBoundsException" when importing a file that has an external
> ID for the Transaction Party Details.
> Repro steps:
> 1. Have loan account with disbursed loan waiting for payment.
> 2. Copy external # from loan details, e.g. 123456790
> 3. Put loan id in Transaction Party Details (see attached spreadsheet)
> 4. with Mpesa plugin in place, try import.
> Actual Result:
> Get out of bounds exception:
> java.lang.ArrayIndexOutOfBoundsException: 1
> at ke.co.safaricom.MPesaXlsImporter.parse(MPesaXlsImporter.java:123)
> at
> org.mifos.application.importexport.struts.action.ImportTransactionsAc
> tion.upload(ImportTransactionsAction.java:104)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio
> n.java:274)
> at
> org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:
> 194)
> Expected Result:
> Should throw an error message that account cannot be found if the number
> doesn't match a mifos ID and an account in the mifos system
--
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
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues