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
什麼是Android設備的logcat輸出,而您收到錯誤消息?你可以把它發佈嗎? – Fatih
@ flock.dux下面是[logcat](https://ceit.aut.ac.ir/~9031020/LogCat_enrollment.txt) – user3806649
看來,設備無法完成對https://192.168的請求.1.157:9443/emm/api/devices/clientkey提供了用戶名和密碼。是否有防火牆或可能會阻止連接的東西?請嘗試通過Android設備的瀏覽器訪問鏈接 – Fatih