DeBortoliWines / openerp-java-api

A Java API to connect to OpenERP and manage data using the XMLRPC interface.
Apache License 2.0
38 stars 71 forks source link

Error Response #51

Closed levkar closed 3 years ago

levkar commented 6 years ago

Odoo returns all error messages but library fails to show them properly.

Error Message:

Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.util.Map; at com.debortoliwines.odoo.api.ObjectAdapter.importDataV7(ObjectAdapter.java:635) at com.debortoliwines.odoo.api.ObjectAdapter.importData(ObjectAdapter.java:584)

Fails at this line:

https://github.com/DeBortoliWines/openerp-java-api/blob/eb023faa5c9d322b9c75980bd1803ecde8b7595a/src/main/java/com/odoojava/api/ObjectAdapter.java#L673

flotho commented 6 years ago

Hi @levkar ,

could you precise the way you call the methods. Which version of Odoo do you running, more info would be appreciated. regards