WSO2Emm - 无法注册Android设备

时间:2015-07-11 23:44:32

标签: android wso2 wso2-emm

我无法将我的Android设备注册到emm。

我收到以下错误:

  

身份验证失败:无法继续身份验证。请   联系管理员。

我使用admin在管理控制台中创建了用户,测试了凭据,我可以用它连接到https://localhost:9443/emm/

我也禁用防火墙,但无法注册设备。

PS:我在开发人员环境中工作,我已将服务器安装为Windows服务,并将安卓代理安装到我的Galaxy note 10。

EDIT1:

以下是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: com.android.internal.view.IInputMethodClient$Stub$Proxy@43129a78 attribute=null, token = android.os.BinderProxy@438c5008 

EDIT2:

上述错误是由于自签名证书出错,现在我无法注册该设备。这是image

以下是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

1 个答案:

答案 0 :(得分:0)

最后我发现了问题。

我再次安装服务器并执行步骤here。 问题是在EMM负责之前登录管理控制台。

相关问题