Backendless Support
 
Trying to Reproduce

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:

  1. 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:

  1. 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

Leave a Comment

Comments (4)

photo
1

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

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

to

  1. 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?

photo
1

Hi Mitchell,

we are checking the issue

photo
1

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

photo
1

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.

photo