question

sakshi-thakur avatar image
sakshi-thakur asked alexprice commented

Sandbox simulator giving errors

Below is the link to the video for the issue that we are experiencing. https://s3.amazonaws.com/uploads.hipc...

Following is the error message for the same:

05-05 15:46:10.747  29621-29621/? E/CloverService? onBind(CloverService.java:41): binder creation failed
    java.lang.IllegalArgumentException: unable to obtain merchant for account: null
            at com.clover.engine.clover.CloverBinder.<init>(CloverBinder.java:99)
            at com.clover.engine.clover.CloverService.onBind(CloverService.java:38)
            at android.app.ActivityThread.handleBindService(ActivityThread.java:2761)
            at android.app.ActivityThread.access$1700(ActivityThread.java:165)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5400)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
            at dalvik.system.NativeStart.main(Native Method)
05-05 15:46:10.923      535-551/? E/AudioService? handleConfigurationChanged() createInstance IAudioServiceExt fail
05-05 15:46:11.079  29621-29621/? E/linker? load_library(linker.cpp:759): library "libmaliinstr.so" not found
05-05 15:46:11.081  29621-29621/? E/? appName=com.clover.engine, acAppName=com.android.cts.openglperf
05-05 15:46:11.081  29621-29621/? E/? 0
05-05 15:46:11.081  29621-29621/? E/? appName=com.clover.engine, acAppName=com.android.browser
05-05 15:46:11.081  29621-29621/? E/? 0
05-05 15:46:11.707  29621-29644/? E/NativeCrypto? ssl=0x5e1de9b8 cert_verify_callback x509_store_ctx=0x5db36a88 arg=0x0
05-05 15:46:11.707  29621-29644/? E/NativeCrypto? ssl=0x5e1de9b8 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
05-05 15:46:11.714  29621-29652/? E/NativeCrypto? ssl=0x5f3534f0 cert_verify_callback x509_store_ctx=0x5e57fa88 arg=0x0
05-05 15:46:11.714  29621-29652/? E/NativeCrypto? ssl=0x5f3534f0 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
05-05 15:46:12.899  29621-29652/? E/WifiManager? mWifiServiceMessenger == null
05-05 15:46:13.210  29621-29652/? E/AndroidRuntime? FATAL EXCEPTION: IntentService[AppsIntentService]
    java.lang.SecurityException: Access denied to package com.clover.engine
            at com.clover.engine.authenticator.AccountAuthenticator.checkCallerClover(AccountAuthenticator.java:469)
            at com.clover.engine.providers.AppInfoProvider.bulkInsert(AppInfoProvider.java:281)
            at android.content.ContentProvider$Transport.bulkInsert(ContentProvider.java:207)
            at android.content.ContentResolver.bulkInsert(ContentResolver.java:955)
            at com.clover.engine.io.AppsSyncAdapter.updateApps(AppsSyncAdapter.java:241)
            at com.clover.engine.io.AppsIntentService.onHandleIntent(AppsIntentService.java:80)
            at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.os.HandlerThread.run(HandlerThread.java:60)
05-05 15:46:13.328      535-556/? E/AppErrorDialog? Failed to get ILowStorageHandle instance
05-05 15:46:13.517      832-964/? E/TelephonyProvider? iTelephony is null!!!

Hi. I am using genymotion 4.1.1 and when I try to sign into a clover account I get Unfortunately, Clover has stopped. Is there an existing problem that you guys are working on or is there an issue with compatibility? I have tried 8 different computers.

Sandbox
14 comments
10 |2000

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

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

What version of the Clover Services (engine) APK are you using?

0 Likes 0 ·
sakshi-thakur avatar image sakshi-thakur commented ·

It is 1804

0 Likes 0 ·
johnnytapley avatar image johnnytapley commented ·

I can't recreate this error. Have you run the script to point your environment at sandbox, then added your account? Generally I do things in this order:

  1. Provision a new Android emulator (4.4.2)
  2. Install Clover engine
  3. Run the environment script, set to sandbox
  4. Create a Clover account binding within the emulator
  5. Install Clover APKs - app updater (Register, Orders etc.)

What steps are you using?

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

Can you link to the Clover engine APK you installed?

0 Likes 0 ·
Show more comments
sakshi-thakur avatar image
sakshi-thakur answered
10 |2000

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

Jeffrey Blattman avatar image
Jeffrey Blattman answered
10 |2000

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

Jeffrey Blattman avatar image
Jeffrey Blattman answered alexprice commented

This was broken in engine 1804, and will be fixed in the next release which is rolling out tonight (June 13). Please re-download and install engine from the same page (https://www.clover.com/developers/dev...) tomorrow and re-test. Ensure that it's a version newer than 1804.

15 comments
10 |2000

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

Corey avatar image Corey commented ·

@jeff It's June 16th and it still says version 1804 on https://www.clover.com/developers/dev.... I have tried re-downloading and reinstalling. It still produces the crash error when I try to open the clover dashboard or login from Android settings.

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

It's updated to version 1813 now.

0 Likes 0 ·
4leaflabs avatar image 4leaflabs commented ·

I tried the engine version 1813 on both Android 4.2.2 and 4.4.4. Both are giving me the "stopped" error and the engine crashes as I attempt to log in.

Is there some kind of logging or diagnostic information I can provide to help isolate the issue?

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

A logcat of the crash would be useful.

0 Likes 0 ·
4leaflabs avatar image 4leaflabs commented ·

So here's a sample of the logs I pulled from "ddms" Android tool.

06-21 10:19:01.041: E/AndroidRuntime(2231): FATAL EXCEPTION: IntentService[AppsIntentService] 06-21 10:19:01.041: E/AndroidRuntime(2231): java.lang.SecurityException: Access denied to package com.clover.engine 06-21 10:19:01.041: E/AndroidRuntime(2231): at com.clover.engine.authenticator.AccountAuthenticator.checkCallerClover(AccountAuthenticator.java:522) 06-21 10:19:01.041: E/AndroidRuntime(2231): at com.clover.engine.providers.AppInfoProvider.bulkInsert(AppInfoProvider.java:288) 06-21 10:19:01.041: E/AndroidRuntime(2231

0 Likes 0 ·
Show more comments
james-cha avatar image
james-cha Deactivated answered techpay commented

Please download the App Updater and Clover Engine from this location. https://sandbox.dev.clover.com/develo...

Tested with: App Updater: com.clover.appupdater-1100.apk Clover: com.clover.engine-1821.apk

Using this version of the Engine apk. You should not have to run the target environment script.

From there you will need to go into Android Settings and add a Clover account. Login in with your Sandbox Developer account credentials. After that the App Updater should kick in and download rest of the APKs.

Then you should be good to go.

2 comments
10 |2000

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

techpay avatar image techpay commented ·

When you use anything other than 4.2.x nothing parses or works properly. When is clover going to update the platform to run on android 5.x.x & 6.x.x

also we have a few questions please help us with them under techpay.

0 Likes 0 ·
james-cha avatar image james-cha commented ·

Like you said 4.2.x is the version our devices run on. You should develop for API level 17 and 19 depending on devices you would to be on.

0 Likes 0 ·

Welcome to the
Clover Developer Community