2015-07-11 102 views
0

我无法注册我的android设备到emm。WSO2Emm - 无法注册Android设备

我获得以下错误:

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

我已经使用管理员创建的用户在同治康寿,凭证进行了测试,我可以连接到https://localhost:9443/emm/它。

此外,我禁用了我的防火墙,但我无法注册该设备。

PS:我在开发环境中工作,我已经安装了服务器作为Windows服务,而Android代理我的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: [email protected] attribute=null, token = [email protected] 

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 
+0

什么是Android设备的logcat输出,而您收到错误消息?你可以把它发布吗? – Fatih

+0

@ flock.dux下面是[logcat](https://ceit.aut.ac.ir/~9031020/LogCat_enrollment.txt) – user3806649

+0

看来,设备无法完成对https://192.168的请求.1.157:9443/emm/api/devices/clientkey提供了用户名和密码。是否有防火墙或可能会阻止连接的东西?请尝试通过Android设备的浏览器访问链接 – Fatih

回答

0

最后我发现这个问题。

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