WSO2Emm - Unable to register android device

user3806649

I couldn't register my android device to emm.

I get following error:

Authentication Failed: Cannot proceed the authentication. Please contact administrator.

I have created user in managment consol using admin, the credential is tested , I could connect to https://localhost:9443/emm/ with it.

Also I disable my firewall, but I couldn't register the device.

PS: I working in a developer environment, I have installed server as a windows service , and android agent to my galaxy note 10.

Edit1:

Here is the logcat:

07-12 23:21:03.454: D/ServerUtils(20186): Attempt #1 to register
07-12 23:21:03.454: E/(20186): in
07-12 23:21:03.459: I/SurfaceFlinger(2276): id=176 createSurf (1x1),1 flag=4, Buthenticat
07-12 23:21:03.459: D/KeyguardUpdateMonitor(2988): sendKeyguardVisibilityChanged(true)
07-12 23:21:03.459: I/KeyguardUpdateMonitor(2988): visibility is same
07-12 23:21:03.469: W/System.err(20186): java.io.IOException: KeyStore integrity check failed.
07-12 23:21:03.469: W/System.err(20186):    at com.android.org.bouncycastle.jcajce.provider.keystore.bc.BcKeyStoreSpi.engineLoad(BcKeyStoreSpi.java:862)
07-12 23:21:03.469: W/System.err(20186):    at java.security.KeyStore.load(KeyStore.java:589)
07-12 23:21:03.469: W/System.err(20186):    at org.wso2.emm.agent.utils.HTTPConnectorUtils.getCertifiedHttpClient(HTTPConnectorUtils.java:56)
07-12 23:21:03.469: W/System.err(20186):    at org.wso2.emm.agent.utils.HTTPConnectorUtils.postData(HTTPConnectorUtils.java:238)
07-12 23:21:03.469: W/System.err(20186):    at org.wso2.emm.agent.utils.HTTPConnectorUtils.sendWithTimeWait(HTTPConnectorUtils.java:107)
07-12 23:21:03.469: W/System.err(20186):    at org.wso2.emm.agent.utils.HTTPConnectorUtils.getClientKey(HTTPConnectorUtils.java:89)
07-12 23:21:03.469: W/System.err(20186):    at org.wso2.emm.agent.AuthenticationActivity$12.doInBackground(AuthenticationActivity.java:444)
07-12 23:21:03.474: W/System.err(20186):    at org.wso2.emm.agent.AuthenticationActivity$12.doInBackground(AuthenticationActivity.java:1)
07-12 23:21:03.474: W/System.err(20186):    at android.os.AsyncTask$2.call(AsyncTask.java:288)
07-12 23:21:03.474: W/System.err(20186):    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
07-12 23:21:03.474: W/System.err(20186):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
07-12 23:21:03.474: W/System.err(20186):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
07-12 23:21:03.474: W/System.err(20186):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
07-12 23:21:03.474: W/System.err(20186):    at java.lang.Thread.run(Thread.java:841)
07-12 23:21:03.474: E/display(2276): invalid gralloc handle (at 0x0)
07-12 23:21:03.474: V/ServerUtils(20186): 192.168.1.157Posting '{password=123456, username=9031020}' to https://192.168.1.157:9443/emm/api/devices/clientkey
07-12 23:21:03.474: V/ServerUtils(20186): Posting 'password=123456&username=9031020' to https://192.168.1.157:9443/emm/api/devices/clientkey
07-12 23:21:03.474: D/KeyguardUpdateMonitor(2988): sendKeyguardVisibilityChanged(true)
07-12 23:21:03.474: I/KeyguardUpdateMonitor(2988): visibility is same
07-12 23:21:03.474: E/ServerUtils(20186): Failed to register on attempt 1
07-12 23:21:03.474: E/ServerUtils(20186): java.lang.NullPointerException
07-12 23:21:03.474: E/ServerUtils(20186):   at org.wso2.emm.agent.utils.HTTPConnectorUtils.postData(HTTPConnectorUtils.java:279)
07-12 23:21:03.474: E/ServerUtils(20186):   at org.wso2.emm.agent.utils.HTTPConnectorUtils.sendWithTimeWait(HTTPConnectorUtils.java:107)
07-12 23:21:03.474: E/ServerUtils(20186):   at org.wso2.emm.agent.utils.HTTPConnectorUtils.getClientKey(HTTPConnectorUtils.java:89)
07-12 23:21:03.474: E/ServerUtils(20186):   at org.wso2.emm.agent.AuthenticationActivity$12.doInBackground(AuthenticationActivity.java:444)
07-12 23:21:03.474: E/ServerUtils(20186):   at org.wso2.emm.agent.AuthenticationActivity$12.doInBackground(AuthenticationActivity.java:1)
07-12 23:21:03.474: E/ServerUtils(20186):   at android.os.AsyncTask$2.call(AsyncTask.java:288)
07-12 23:21:03.474: E/ServerUtils(20186):   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
07-12 23:21:03.474: E/ServerUtils(20186):   at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
07-12 23:21:03.474: E/ServerUtils(20186):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
07-12 23:21:03.474: E/ServerUtils(20186):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
07-12 23:21:03.474: E/ServerUtils(20186):   at java.lang.Thread.run(Thread.java:841)
07-12 23:21:03.479: D/mali_winsys(20186): new_window_surface returns 0x3000
07-12 23:21:03.484: D/ProgressBar(20186): updateDrawableBounds: left = 0
07-12 23:21:03.484: D/ProgressBar(20186): updateDrawableBounds: top = 0
07-12 23:21:03.484: D/ProgressBar(20186): updateDrawableBounds: right = 96
07-12 23:21:03.484: D/ProgressBar(20186): updateDrawableBounds: bottom = 96
07-12 23:21:03.484: E/EnterpriseContainerManager(2773): ContainerPolicy Service is not yet ready!!!
07-12 23:21:03.484: D/EnterpriseDeviceManager(2773): ContainerId: 0
07-12 23:21:03.484: W/LicenseLogService(2773): log() failed
07-12 23:21:03.489: E/ViewRootImpl(20186): sendUserActionEvent() mView == null
07-12 23:21:03.489: E/display(2276): invalid gralloc handle (at 0x0)
07-12 23:21:03.489: W/InputMethodManagerService(2773): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected] 

Edit2:

The above error was because of mistake in making self-signed certificate, now I couldn't register the device. here is the image!

and below is the logcat:

07-15 01:56:38.857: V/ServerUtils(28027): 192.168.1.157Posting '{password=123456, username=9031020}' to https://192.168.1.157:9443/emm/api/devices/clientkey
07-15 01:56:38.857: V/ServerUtils(28027): Posting 'password=123456&username=9031020' to https://192.168.1.157:9443/emm/api/devices/clientkey
07-15 01:56:38.857: E/EnterpriseContainerManager(2770): ContainerPolicy Service is not yet ready!!!
07-15 01:56:38.857: D/EnterpriseDeviceManager(2770): ContainerId: 0
user3806649

Finally I found the problem.

I install the server again and go through steps here. The problem was login to management consol before EMM consols.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Related Related

HotTag

Archive