"Unable to adapt array to data type" error in the find method in android-sdk

HiMy project has a model product:

class Product {

  private String objectId;
  private String description;
  private Integer likeCount;
  private Boolean isActive;
  private Integer count;
  private Category category;
  private String address;
  private Integer price;
  private String subTitle;
  private String title;
  private List<ProductsImages> images;

The field images is one to many.
I write a business logic event for find method of product.
When i deploy or debug my custom business logic; I receive exception “Unable to adapt array to data type: class my.package.name.model.Category” in android in the method findAsync of product.
But when i delete business logic all find methods are OK.

Thank you in advance.

Hi Mohammad,

please send us your data export and server side code (event handlers) which reproduces the problem to support@backendless.com.
We created internal ticket to investigate this issue (your id is BKNDLSS-12943).

Hi, Mohammed.
We have not received from you any additional info on our support email. So, i tried to reproduce your situation with assumption that class “Category” is simple pojo java class with several fields (on backendless side - it is table).
Then i made beforeFind handler. In handler i made invoke

 BackendlessCollection<Product> listOfProducts = Backendless.Data.of( Product.class ).find();

and all work fine.

Try to check whether all mappings are present in Bootstrap class. Like:
Backendless.Data.mapTableToClass( “Category”, Category.class );

Please give us information about your progress.