question

jim-patel avatar image
jim-patel asked jim-patel commented

Orders not saving to cloud

When I use the Register app to pay an order, it gets saved to the device, but doesn't show up on clover.com.

I am using an emulator with Android 4.4.4 loaded on it. It has Clover version 1448 running on it. According to the adb logs, there is an exception that happens 6 times during the process that I believe is related to this issue.

11-03 11:37:48.825 901-11216/com.clover.engine W/ContextImpl: Implicit intents with startService are not safe: Intent { act=com.clover.intent.action.SCHEDULED_TASK } android.content.ContextWrapper.startService:494 com.clover.common.merchant.TaskQueueHelper$2.call:292 com.clover.common.merchant.TaskQueueHelper$2.call:263 
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor: sendRequest(TaskExecutor.java:206): Exception while sending request taskId: 129
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor: java.lang.NullPointerException
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.provider.OrdersContract$Summaries.contentUriWithAccount(OrdersContract.java:201)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.engine.providers.OrdersProvider.deleteSummaryByUuid(OrdersProvider.java:1170)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.engine.providers.OrdersProvider.access$1000(OrdersProvider.java:76)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.engine.providers.OrdersProvider$4.deleteByUuid(OrdersProvider.java:1142)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.content.sync.SyncTable.onMutationComplete(SyncTable.java:334)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.content.sync.SyncTask.applyOrAbortMutation(SyncTask.java:333)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.content.sync.SyncTask.resolveFaults(SyncTask.java:229)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.content.sync.SyncTask.syncUpload(SyncTask.java:142)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.content.sync.SyncTask.sync(SyncTask.java:132)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.content.sync.SyncProvider.onPerformSync(SyncProvider.java:255)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.engine.providers.OrdersProvider.onPerformSync(OrdersProvider.java:1180)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.content.sync.SyncProvider.sync(SyncProvider.java:227)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.content.sync.SyncProvider.call(SyncProvider.java:117)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.engine.providers.OrdersProvider.call(OrdersProvider.java:587)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at android.content.ContentResolver.call(ContentResolver.java:1355)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.engine.io.TaskExecutor.sendRequest(TaskExecutor.java:148)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.engine.io.TaskExecutor.processTask(TaskExecutor.java:92)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.engine.io.ScheduledTaskService.processTaskQueue(ScheduledTaskService.java:96)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at com.clover.engine.io.ScheduledTaskService.onHandleIntent(ScheduledTaskService.java:61)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at android.os.Handler.dispatchMessage(Handler.java:102)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at android.os.Looper.loop(Looper.java:136)
11-03 11:37:49.345 901-20021/com.clover.engine E/TaskExecutor:     at android.os.HandlerThread.run(HandlerThread.java:61)
Orders
10 |2000

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

1 Answer

Jacob Abrams avatar image
Jacob Abrams answered jim-patel commented

Yes there is definitely something wrong with our engine not sending the order to our cloud server. It looks like you possibly lost your Clover account somehow? Can you run adb shell dumpsys account, you should see something like this in the output:

  Accounts: 1
    Account {name=Whitaker Business | jacob@clover.com (DEV), type=com.clover.account}

This shows I have one Clover account. If your Clover account is gone you should try running Clover login activity to recreate the account. Use this command to bring up the login activity: adb shell am start -n com.clover.engine/com.clover.engine.authenticator.AuthenticatorActivity. On the other hand if you see that the Clover account is there then we'll have to dig a little more.

1 comment
10 |2000

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

jim-patel avatar image jim-patel commented ·

I worked around this issue by reinstalling an older version of the Clover Engine app so I had been unable to respond until today. The same thing happened, though the exception is being thrown by taskId: 95. I do have a clover account when I run adb shell dumpsys account. It is of type=com.clover.account.

0 Likes 0 ·

Welcome to the
Clover Developer Community