Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #43818 All Revisions ] Back to Issue ]
Summary 0043818: Error thrown using Retail API module for Business Partner POST method filling example values
Revision 2020-04-22 11:42 by guillermogil
Steps To Reproduce * go to livebuilds, enter with role The White Valley Group Admin:
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ [^]
* go to Role window, set on main header Is Web Service Enabled for role The White Valley Group Admin
* go to EDL Configuration, create a new record. EDL Process = JSON Based Import Process, Active = yes
* go to tab Output, create a new one with default values (Sequence Number = 10, Output Type = Debug, Active = yes)
* open Postman program (see screenshot), create a new request. Type POST. Url request = https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ws/org.openbravo.retail.api.ImportService/BusinessPartner [^]
* open tab Authorization (Postman) type = Basic Auth, Username and Password for Openbravo livebuilds.
* open tab Body (Postman), set raw button checked, and Text on the drop-down list. Copy and paste that content:

[{"client":"39363B0921BB4293B48383844325E84C","organization":"67839EEFA49E44AC969BD60093FCC899","searchKey":"SNItest SNItest","commercialName":"test","fiscalName":"","description":"Description test","bpCategory":"B1DD8B371643421C987EF1D5B358D5E9","taxID":"","greeting":"Monsieur","currency":"102","birthDay":"1992-01-09","paymentMethod":"45A202BF44884F05B8A1BF741E2063B6","paymentTerms":"D8955F8808A54C63BBF478A6843D834D","priceList":"496CF965DF9744D2A41248392D1DE407","customerConsent":"Y","creditLineLimit":0,"currentBalance":0,"invoiceTerms":"I","locations":[{"address":"102 test street","city":"Barcelona","zipCode":"08028","country":"102","region":"A44A7F2FCFD34CC78DC5546B067CD816"}],"contactInformation":[{"firstName":"Patrik","lastName":"Mils","phone":"65986597","email":"patrik.mils@practicsbs.com"}]}]

* Go to Openbravo livebuilds, with role The White Valley Group Admin, enter to EDL request window, check if the record has been sent here. Otherwise it has been sent to F&B International Group role, change to that role, and create a new request with Postman to make values for that role coincide, fill the request with the following

[{
    "client": "23C59575B9CF467C9620760EB255B389",
    "organization": "0",
    "searchKey": "10001-001",
    "commercialName": "Patrik Mils",
    "fiscalName": "Patrik Mils",
    "description": "Description test",
    "bpCategory": "713643BF6582479BAD2AF21B80836AA2",
    "taxID": "1234569586A",
    "greeting": "Monsieur",
    "currency": "102",
    "birthDay": "1992-01-09",
    "paymentMethod": "A97CFD2AFC234B59BB0A72189BD8FC2A",
    "paymentTerms": "66BA1164A7394344BB9CD1A6ECEED05D",
    "priceList": "AEE66281A08F42B6BC509B8A80A33C29",
    "customerConsent": "Y",
    "creditLineLimit": 0,
    "currentBalance": 0,
    "invoiceTerms": "I",
    "locations": [{
        "address": "102 test street",
        "city": "Barcelona",
        "zipCode": "08028",
        "country": "102",
        "region": "A44A7F2FCFD34CC78DC5546B067CD816"
    }],
    "contactInformation": [{
        "firstName": "Patrik",
        "lastName": "Mils",
        "phone": "65986597",
        "email": "patrik.mils@practicsbs.com"
    }]
}]

* then the error is raised on the corresponding role EDL request window:
"Error while importing an item: class java.lang.String cannot be cast to class org.openbravo.base.structure.BaseOBObject (java.lang.String is in module java.base of loader 'bootstrap'; org.openbravo.base.structure.BaseOBObject is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @6a3aab04)"

* note that for the request we have been using the Swagger UI proposed by Retail API module, just filling the string data with values that match for that role
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/api?urls.primaryName=RetailAPI#/BusinessPartner/Import_BusinessPartner [^]
Revision 2020-04-22 10:09 by santi_lozano
Steps To Reproduce * go to livebuilds, enter with role The White Valley Group Admin:
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ [^]
* go to Role window, set on main header Is Web Service Enabled for role The White Valley Group Admin
* go to EDL Configuration, create a new record. EDL Process = JSON Based Import Process, Active = yes
* go to tab Output, create a new one with default values (Sequence Number = 10, Output Type = Debug, Active = yes)
* open Postman program (see screenshot), create a new request. Type POST. Url request = https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ws/org.openbravo.retail.api.ImportService/BusinessPartner [^]
* open tab Authorization (Postman) type = Basic Auth, Username and Password for Openbravo livebuilds.
* open tab Body (Postman), set raw button checked, and Text on the drop-down list. Copy and paste that content:

[{"client":"39363B0921BB4293B48383844325E84C","organization":"67839EEFA49E44AC969BD60093FCC899","searchKey":"SNItest SNItest","commercialName":"test","fiscalName":"","description":"Description test","bpCategory":"B1DD8B371643421C987EF1D5B358D5E9","taxID":"","greeting":"Monsieur","currency":"102","birthDay":"1992-01-09","paymentMethod":"45A202BF44884F05B8A1BF741E2063B6","paymentTerms":"D8955F8808A54C63BBF478A6843D834D","priceList":"496CF965DF9744D2A41248392D1DE407","customerConsent":"Y","creditLineLimit":0,"currentBalance":0,"invoiceTerms":"I","locations":[{"address":"102 test street","city":"Barcelona","zipCode":"08028","country":"102","region":"A44A7F2FCFD34CC78DC5546B067CD816"}],"contactInformation":[{"firstName":"Patrik","lastName":"Mils","phone":"65986597","email":"patrik.mils@practicsbs.com"}]}]

* Go to Openbravo livebuilds, with role The White Valley Group Admin, enter to EDL request window, check if the record has been sent here. Otherwise it has been sent to F&B International Group role, change to that role, and create a new request with Postman to make values for that role coincide, fill the request with the following

[
{
"client": "23C59575B9CF467C9620760EB255B389",
"organization": "0",
"searchKey": "10001-001",
"commercialName": "Patrik Mils",
"fiscalName": "Patrik Mils",
"description": "Description test",
"bpCategory": "713643BF6582479BAD2AF21B80836AA2",
"taxID": "1234569586A",
"greeting": "Monsieur",
"currency": "102",
"birthDay": "1992-01-09",
"paymentMethod": "A97CFD2AFC234B59BB0A72189BD8FC2A",
"paymentTerms": "66BA1164A7394344BB9CD1A6ECEED05D",
"priceList": "AEE66281A08F42B6BC509B8A80A33C29",
"customerConsent": "Y",
"creditLineLimit": 0,
"currentBalance": 0,
"invoiceTerms": "I",
"locations": [
{
"address": "102 test street",
"city": "Barcelona",
"zipCode": "08028",
"country": "102",
"region": "A44A7F2FCFD34CC78DC5546B067CD816"
}
],
"contactInformation": [
{
"firstName": "Patrik",
"lastName": "Mils",
"phone": "65986597",
"email": "patrik.mils@practicsbs.com"
}
]
}
]

* then the error is raised on the corresponding role EDL request window:
"Error while importing an item: class java.lang.String cannot be cast to class org.openbravo.base.structure.BaseOBObject (java.lang.String is in module java.base of loader 'bootstrap'; org.openbravo.base.structure.BaseOBObject is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @6a3aab04)"

* note that for the request we have been using the Swagger UI proposed by Retail API module, just filling the string data with values that match for that role
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/api?urls.primaryName=RetailAPI#/BusinessPartner/Import_BusinessPartner [^]
Revision 2020-04-22 10:03 by santi_lozano
Steps To Reproduce * go to livebuilds, enter with role The White Valley Group Admin:
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ [^]
* go to Role window, set on main header Is Web Service Enabled for role The White Valley Group Admin
* go to EDL Configuration, create a new record. EDL Process = JSON Based Import Process, Active = yes
* go to tab Output, create a new one with default values (Sequence Number = 10, Output Type = Debug, Active = yes)
* open Postman program (see screenshot), create a new request. Type POST. Url request = https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ws/org.openbravo.retail.api.ImportService/BusinessPartner [^]
* open tab Authorization (Postman) type = Basic Auth, Username and Password for Openbravo livebuilds.
* open tab Body (Postman), set raw button checked, and Text on the drop-down list. Copy and paste that content:

[{"client":"39363B0921BB4293B48383844325E84C","organization":"67839EEFA49E44AC969BD60093FCC899","searchKey":"SNItest SNItest","commercialName":"test","fiscalName":"","description":"Description test","bpCategory":"B1DD8B371643421C987EF1D5B358D5E9","taxID":"","greeting":"Monsieur","currency":"102","birthDay":"1992-01-09","paymentMethod":"45A202BF44884F05B8A1BF741E2063B6","paymentTerms":"D8955F8808A54C63BBF478A6843D834D","priceList":"496CF965DF9744D2A41248392D1DE407","customerConsent":"Y","creditLineLimit":0,"currentBalance":0,"invoiceTerms":"I","locations":[{"address":"102 test street","city":"Barcelona","zipCode":"08028","country":"102","region":"A44A7F2FCFD34CC78DC5546B067CD816"}],"contactInformation":[{"firstName":"Patrik","lastName":"Mils","phone":"65986597","email":"patrik.mils@practicsbs.com"}]}]

* Go to Openbravo livebuilds, with role The White Valley Group Admin, enter to EDL request window, check if the record has been sent here. Otherwise it has been sent to F&B International Group role, change to that role, and create a new request with Postman to make values for that role coincide, fill the request with the following

[
{
"client": "23C59575B9CF467C9620760EB255B389",
"organization": "0",
"searchKey": "10001-001",
"commercialName": "Patrik Mils",
"fiscalName": "Patrik Mils",
"description": "Description test",
"bpCategory": "713643BF6582479BAD2AF21B80836AA2",
"taxID": "1234569586A",
"greeting": "Monsieur",
"currency": "102",
"birthDay": "1992-01-09",
"paymentMethod": "A97CFD2AFC234B59BB0A72189BD8FC2A",
"paymentTerms": "66BA1164A7394344BB9CD1A6ECEED05D",
"priceList": "AEE66281A08F42B6BC509B8A80A33C29",
"customerConsent": "Y",
"creditLineLimit": 0,
"currentBalance": 0,
"invoiceTerms": "I",
"locations": [
{
"address": "102 test street",
"city": "Barcelona",
"zipCode": "08028",
"country": "102",
"region": "A44A7F2FCFD34CC78DC5546B067CD816"
}
],
"contactInformation": [
{
"firstName": "Patrik",
"lastName": "Mils",
"phone": "65986597",
"email": "patrik.mils@practicsbs.com"
}
]
}
]

* then the error is raised
Error while importing an item: class java.lang.String cannot be cast to class org.openbravo.base.structure.BaseOBObject (java.lang.String is in module java.base of loader 'bootstrap'; org.openbravo.base.structure.BaseOBObject is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @6a3aab04)

* note that for the request we have been using the Swagger UI proposed by Retail API module just filling the string data with values that matches for that role
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/api?urls.primaryName=RetailAPI#/BusinessPartner/Import_BusinessPartner [^]
Revision 2020-04-22 10:03 by santi_lozano
Steps To Reproduce * go to livebuilds, enter with role The White Valley Group Admin:
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ [^]
* go to Role window, set on main header Is Web Service Enabled for role The White Valley Group Admin
* go to EDL Configuration, create a new record. EDL Process = JSON Based Import Process, Active = yes
* go to tab Output, create a new one with default values (Sequence Number = 10, Output Type = Debug, Active = yes)
* open Postman program (see screenshot), create a new request. Type POST. Url request = https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ws/org.openbravo.retail.api.ImportService/BusinessPartner [^]
* open tab Authorization (Postman) type = Basic Auth, Username and Password for Openbravo livebuilds.
* open tab Body (Postman), set raw button checked, and Text on the drop-down list. Copy and paste that content:

[{"client":"39363B0921BB4293B48383844325E84C","organization":"67839EEFA49E44AC969BD60093FCC899","searchKey":"SNItest SNItest","commercialName":"test","fiscalName":"","description":"Description test","bpCategory":"B1DD8B371643421C987EF1D5B358D5E9","taxID":"","greeting":"Monsieur","currency":"102","birthDay":"1992-01-09","paymentMethod":"45A202BF44884F05B8A1BF741E2063B6","paymentTerms":"D8955F8808A54C63BBF478A6843D834D","priceList":"496CF965DF9744D2A41248392D1DE407","customerConsent":"Y","creditLineLimit":0,"currentBalance":0,"invoiceTerms":"I","locations":[{"address":"102 test street","city":"Barcelona","zipCode":"08028","country":"102","region":"A44A7F2FCFD34CC78DC5546B067CD816"}],"contactInformation":[{"firstName":"Patrik","lastName":"Mils","phone":"65986597","email":"patrik.mils@practicsbs.com"}]}]

* Go to Openbravo livebuilds, with role The White Valley Group Admin, enter to EDL request window, check if the record has been sent here. Otherwise it has been sent to F&B International Group role, change to that role, and create a new request with Postman to make values for that role coincide, fill the request with the following

[
{
"client": "23C59575B9CF467C9620760EB255B389",
"organization": "0",
"searchKey": "10001-001",
"commercialName": "Patrik Mils",
"fiscalName": "Patrik Mils",
"description": "Description test",
"bpCategory": "713643BF6582479BAD2AF21B80836AA2",
"taxID": "1234569586A",
"greeting": "Monsieur",
"currency": "102",
"birthDay": "1992-01-09",
"paymentMethod": "A97CFD2AFC234B59BB0A72189BD8FC2A",
"paymentTerms": "66BA1164A7394344BB9CD1A6ECEED05D",
"priceList": "AEE66281A08F42B6BC509B8A80A33C29",
"customerConsent": "Y",
"creditLineLimit": 0,
"currentBalance": 0,
"invoiceTerms": "I",
"locations": [
{
"address": "102 test street",
"city": "Barcelona",
"zipCode": "08028",
"country": "102",
"region": "A44A7F2FCFD34CC78DC5546B067CD816"
}
],
"contactInformation": [
{
"firstName": "Patrik",
"lastName": "Mils",
"phone": "65986597",
"email": "patrik.mils@practicsbs.com"
}
]
}
]

* then the error is raised
Error while importing an item: class java.lang.String cannot be cast to class org.openbravo.base.structure.BaseOBObject (java.lang.String is in module java.base of loader 'bootstrap'; org.openbravo.base.structure.BaseOBObject is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @6a3aab04)

* note that for the request we have been using the Swagger UI proposed by that Retail API module just filling the string data with values that matches for that role
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/api?urls.primaryName=RetailAPI#/BusinessPartner/Import_BusinessPartner [^]


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker