Steps To Reproduce | 0. The situation can be emulated executing the following script:
insert into ad_module
(ad_module_id,
ad_client_id, ad_org_id , createdby , updatedby ,
name , version , description , javapackage)
values
('D0D3E67E47664CEAB9AA81F712DB9C22',
'0', '0' , '0', '0',
'Old masterdata fr' , '1.0.100',
'will be merged' , 'org.openbravo.france.old');
insert into ad_module
(ad_module_id,
ad_client_id, ad_org_id , createdby , updatedby ,
name , version , description , javapackage)
values
('5C4060A3E6CC4A32ADED3252ACD79E82',
'0', '0' , '0', '0',
'Master Data France - Payment Methods' , '1.0.100',
'will merge' , 'org.openbravo.france.paymentmethods');
update ad_system_info set last_dbupdate = now();
1. As system admin, in Module Management window, Scan for updates
-> OK: Note and update in Master Data France - Payment Methods is found
2. Click on Install Updates Now
-> ERROR:
2022-03-25 07:55:40,438 [http-nio-8080-exec-1] ERROR org.openbravo.erpCommon.ad_forms.ModuleManagement
- org.openbravo.base.exception.OBException: org.codehaus.jettison.json.JSONException: JSONObject["dependencies"]
is not a JSONArray.
org.openbravo.base.exception.OBException: org.openbravo.base.exception.OBException: org.codehaus.jettison.json.JSONException:
JSONObject["dependencies"] is not a JSONArray.
at org.openbravo.service.centralrepository.ModuleInstallDetail.fromJson(ModuleInstallDetail.java:64)
~[classes/:?]
at org.openbravo.erpCommon.modules.VersionUtility.checkRemote(VersionUtility.java:679) ~[classes/:?]
at org.openbravo.erpCommon.modules.ImportModule.checkDependenciesId(ImportModule.java:298) ~[classes/:?]
at org.openbravo.erpCommon.ad_forms.ModuleManagement.printPageInstall1(ModuleManagement.java:1226) [classes/:?]
at org.openbravo.erpCommon.ad_forms.ModuleManagement.doPost(ModuleManagement.java:204) [classes/:?]
...
Caused by: org.openbravo.base.exception.OBException: org.codehaus.jettison.json.JSONException: JSONObject["dependencies"]
is not a JSONArray.
at org.openbravo.service.centralrepository.Module.fromJson(Module.java:116) ~[classes/:?]
at org.openbravo.service.centralrepository.Module.fromJson(Module.java:125) ~[classes/:?]
at org.openbravo.service.centralrepository.ModuleInstallDetail.fromJson(ModuleInstallDetail.java:58)
~[classes/:?]
... 49 more
|