business logic works in debug not in production

Hi,
My business logic moves a data object from one table to another, if it meets a certain criteria. The code is as follows:

List<NotificationToSend> notificationsArray = new ArrayList<NotificationToSend>();NotificationToSend notification = new NotificationToSend();
notification.setDeviceId(data.deviceId);
notification.setCoin(data.coin);
notification.setCriteria(data.criteria);
notification.setValue(data.value);
notification.setDateCreated(data.dateCreated);notificationsArray.add(notification);
Backendless.Data.of(NotificationToSend.class).create(notificationsArray);

This works fine and as expected in debug, however when run in production I get the following error:

2018-06-06 23:16:57,680 | Coderunner | ERROR | Business logic execution has been stopped, due to error: Code: 0 Class: java.lang.NoSuchMethodError Message: com.backendless.IDataStore.create(Ljava/util/List;)V

Previously this exact code worked fine, so nothing has changed on my end. I’m wondering what had changed to make this error now occur.
Mitch

The error does not appear and the code works properly when I change

Backendless.Data.of(NotificationToSend.class).create(notificationsArray);

to

Backendless.Data.of(NotificationToSend.class).save(notification);

So it’s the act of attempting to save an array to the table which is failing (only in production), while saving individual objects is working.

Like I said, previously this was working fine. Has anything changed on your end?

Hi Mitchell,

we are checking the issue

I can not reproduce the issue. What is your application id?

Hi Sergey,

Application ID: 130CA81A-36A3-9479-FFEE-AB623F4D0E00

I just checked and same behaviour is happening. For your reference, code is running in ‘JavaWorkerTimer’ and saving an object to the ‘NotificationToSend’ table.