question

sreekant avatar image
sreekant asked

Not getting items list with category

Hi

I am using below method to retrieve items with category with the help of inventory connector. But each time getting failed, onServiceConnectionFailure is called. kindly check the below code.

inventoryConnector().getItemsWithCategories(object :
    ServiceConnector.Callback<List<Item>> {
    override fun onServiceSuccess(result: List<Item>?, status: ResultStatus?) {
        Log.d("SREE", "API_HELPER onServiceSuccess")
    }

    override fun onServiceFailure(status: ResultStatus?) {
        Log.d("SREE", "API_HELPER onServiceFailure")
    }

    override fun onServiceConnectionFailure() {
        Log.d("SREE", "API_HELPER onServiceConnectionFailure")
    }

})


I also tried with below code which was working fine earlier but now giving exception.

inventoryConnector().itemsWithCategories

Now exception getting with above method.

JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 100)

com.ebt.ewmerchantservices W/System.err: android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died

2022-04-11 19:23:59.889 8297-8337/com.ebt.ewmerchantservices W/System.err: at android.os.BinderProxy.transactNative(Native Method)

2022-04-11 19:23:59.889 8297-8337/com.ebt.ewmerchantservices W/System.err: at android.os.BinderProxy.transact(Binder.java:615)

2022-04-11 19:23:59.889 8297-8337/com.ebt.ewmerchantservices W/System.err: at com.clover.sdk.v3.inventory.IInventoryService$Stub$Proxy.getItemsWithCategories(IInventoryService.java:2715)

2022-04-11 19:23:59.889 8297-8337/com.ebt.ewmerchantservices W/System.err: at com.clover.sdk.v3.inventory.InventoryConnector$4.call(InventoryConnector.java:117)

2022-04-11 19:23:59.890 8297-8337/com.ebt.ewmerchantservices W/System.err: at com.clover.sdk.v3.inventory.InventoryConnector$4.call(InventoryConnector.java:115)

2022-04-11 19:23:59.890 8297-8337/com.ebt.ewmerchantservices W/System.err: at com.clover.sdk.v1.ServiceConnector$1.run(ServiceConnector.java:282)

2022-04-11 19:23:59.890 8297-8337/com.ebt.ewmerchantservices W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)

2022-04-11 19:23:59.890 8297-8337/com.ebt.ewmerchantservices W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)

2022-04-11 19:23:59.890 8297-8337/com.ebt.ewmerchantservices W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)

2022-04-11 19:23:59.890 8297-8337/com.ebt.ewmerchantservices W/System.err: at java.lang.Thread.run(Thread.java:761)


Kindly help me to fix this issue.

InventoryClover Station
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community