fineract API过帐定期存款帐户不起作用,并且在Fineract文档中也未涉及 - java

邮递员中的fineract Post recurringdepositaccount api响应并显示以下错误消息:

{
    "timestamp": 1568640270686,
    "status": 500,
    "error": "Internal Server Error",
    "exception": "java.lang.NullPointerException",
    "message": null,
    "path": "/fineract-provider/api/v1/recurringdepositaccounts"
}

这是我的请求正文:

{
  "clientId": 67,
  "productId": 6,
  "locale": "en",
  "dateFormat": "dd MMMM yyyy",
  "submittedOnDate": "13 September 2019",
  "depositPeriodFrequencyId":1,
  "depositPeriod":1,
  "recurringFrequencyType":1,
  "recurringFrequency":1,
  "mandatoryRecommendedDepositAmount":1000,
  "isCalendarInherited":false,
  "preClosurePenalApplicable":false,
  "isMandatoryDeposit":true,
   "allowWithdrawal": false,
   "adjustAdvanceTowardsFuturePayments":false
}

参考方案

我可以在https://demo.openmf.org/api-docs/apiLive.htm#rdaccounts找到的文档
(向下滚动至所有GET示例以获取POST部分)指出以下必填字段:

clientId or groupId,
productId,
submittedOnDate,
depositPeriod,
depositPeriodFrequencyId,
recurringFrequency,
recurringFrequencyType,
depositAmount,
isCalendarInherited,
mandatoryRecommendedDepositAmount

其中,您似乎缺少depositAmount

Java-搜索字符串数组中的字符串 - java

在Java中,我们是否有任何方法可以发现特定字符串是字符串数组的一部分。我可以避免出现一个循环。例如String [] array = {"AA","BB","CC" }; string x = "BB" 我想要一个if (some condition to tell wheth…

Java RegEx中的单词边界\ b - java

我在使用\b作为Java Regex中的单词定界符时遇到困难。对于text = "/* sql statement */ INSERT INTO someTable"; Pattern.compile("(?i)\binsert\b");找不到匹配项Pattern insPtrn = Pattern.compile(&…

Java Double与BigDecimal - java

我正在查看一些使用双精度变量来存储(360-359.9998779296875)结果为0.0001220703125的代码。 double变量将其存储为-1.220703125E-4。当我使用BigDecimal时,其存储为0.0001220703125。为什么将它双重存储为-1.220703125E-4? 参考方案 我不会在这里提及精度问题,而只会提及数字…

当回复有时是一个对象有时是一个数组时,如何在使用改造时解析JSON回复? - java

我正在使用Retrofit来获取JSON答复。这是我实施的一部分-@GET("/api/report/list") Observable<Bills> listBill(@Query("employee_id") String employeeID); 而条例草案类是-public static class…

字符串内存分配 - java

哪一个更好System.out.println("hello world"); 要么String s="hello world"; System.out.println(s); 参考方案 对于此简单示例,在内存分配方面没有区别。