2016-01-11 80 views
0

我正在WL 6.2.0.1上開發兩個應用程序。IBM Worklight 6.2.0.1應用程序中心 - Android安裝失敗

對於Android,當我使用IBM應用程序中心將應用程序安裝到我的Android設備上時。

第一個應用文件大小是5MB,它正在安裝。

第二個應用程序文件大小爲9MB,它沒有被安裝(根本不顯示安裝覆蓋)。該行爲如下:

  1. 點擊圖標安裝
  2. 它顯示加載指示器1秒。
  3. 安裝按鈕被再次激活,沒有任何反應。

這兩個應用都用確切的密鑰簽名並以確切的方式上傳。如果我一邊加載應用程序,它的工作原理和安裝。

我也試圖啓用WAS在App中心日誌,但我唯一的選擇就是(我不認爲這是正確的記錄):

enter image description here

編輯

點擊安裝對APP日誌(安裝成功):

[1/12/16 14:11:49:035 EST] 000000ce MobileService > MobileServices applicationStorageHandler for any secured resource ENTRY 30572 
[1/12/16 14:11:49:035 EST] 000000ce ApplicationSt > ApplicationStorageService ApplicationStorageService ENTRY 30572 null false 
[1/12/16 14:11:49:037 EST] 000000ce ApplicationSt > ApplicationStorageService __retrieve__ ENTRY uri=https://x.x.x.x/applicationcenter/service/application/storage/30572 securityContext=org.apache.wink.server.internal.contexts.SecurityContextImpl_-146742545 httpRequest={Loc=en_US, Locs=(en_US,), User=CN==*********,,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net, RemoteUser=CN==*********,,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net} null 
[1/12/16 14:11:49:037 EST] 000000ce PrincipalHelp > PrincipalHelper getPrincipal ENTRY CN==*********,,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net 
[1/12/16 14:11:49:037 EST] 000000ce PrincipalHelp > PrincipalHelper getPrincipalEntity ENTRY org.apache.openjpa.persistence.EntityManage[email protected] CN==*********,,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net 
[1/12/16 14:11:49:041 EST] 000000ce ApplicationSt > BinaryStorageBaseService retrieveOrInfoImpl ENTRY uri=https://x.x.x.x/applicationcenter/service/application/storage/30572 securityContext=org.apache.wink.server.internal.contexts.SecurityContextImpl_-146742545 httpRequest={Loc=en_US, Locs=(en_US,), User=CN==*********,,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net, RemoteUser=CN=*********,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net} 
[1/12/16 14:11:49:041 EST] 000000ce ApplicationSt 1 BinaryStorageBaseService retrieveOrInfoImpl Specified Range: bytes=unspec-unspec 
[1/12/16 14:11:49:041 EST] 000000ce ApplicationRe > ApplicationResourceHelper getApplicationResource ENTRY 30572 
[1/12/16 14:11:49:041 EST] 000000ce ApplicationRe > ApplicationResourceHelper findStorageRefEntity ENTRY 30572 
[1/12/16 14:11:49:049 EST] 000000ce ApplicationRe > ApplicationResourceHelper getApplicationStorageEntity ENTRY 30523 
[1/12/16 14:11:50:281 EST] 000000ce ApplicationSt 1 BinaryStorageBaseService retrieveOrInfoImpl Final Range: bytes=-1--1 
[1/12/16 14:11:50:281 EST] 000000ce ApplicationSt < BinaryStorageBaseService retrieveOrInfoImpl RETURN [email protected] 

安裝聖arted:

[1/12/16 14:12:26:457 EST] 000000ce MobileService > MobileServices deviceHandler ENTRY 
[1/12/16 14:12:26:461 EST] 000000ce SearchAndList > DeviceService applicationTracker ENTRY f8d88de1366f815c 
[1/12/16 14:12:26:461 EST] 000000ce SearchAndList > InstallationTrackingService InstallationTrackingService ENTRY f8d88de1366f815c 
[1/12/16 14:12:26:461 EST] 000000ce DeviceHelper > DeviceHelper getDevice(deviceID) ENTRY f8d88de1366f815c 
[1/12/16 14:12:26:462 EST] 000000ce DeviceHelper > DeviceHelper findDevice(deviceID) ENTRY f8d88de1366f815c 
[1/12/16 14:12:26:462 EST] 000000ce DeviceHelper > DeviceHelper findDevice(deviceID,activeOnly) ENTRY f8d88de1366f815c true 
[1/12/16 14:12:26:462 EST] 000000ce DeviceHelper > DeviceHelper findDeviceEntity ENTRY f8d88de1366f815c true 
[1/12/16 14:12:26:462 EST] 000000ce DeviceHelper > DeviceHelper getDeviceEntities ENTRY f8d88de1366f815c true 
[1/12/16 14:12:26:477 EST] 000000ce SearchAndList > InstallationTrackingService __create__ ENTRY uri=https://x.x.x.x/applicationcenter/service/device/f8d88de1366f815c/package securityContext=org.apache.wink.server.internal.contexts.SecurityContextImpl_-1579924706 {"pkg":"ca.company.App2","version":"1","to_update":"Y"} 
[1/12/16 14:12:26:477 EST] 000000ce PrincipalHelp > PrincipalHelper getPrincipal ENTRY CN=*******,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net 
[1/12/16 14:12:26:478 EST] 000000ce PrincipalHelp > PrincipalHelper getPrincipalEntity ENTRY [email protected] CN==*******,,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net 
[1/12/16 14:12:26:481 EST] 000000ce SearchAndList > InstallationTrackingService create ENTRY {"to_update":"Y","pkg":"ca.company.MobileBanking","version":"1"} INSTALLED uri=https://10.205.44.97:443/applicationcenter/service/device/f8d88de1366f815c/package 
[1/12/16 14:12:26:481 EST] 000000ce SearchAndList > InstallationTrackingService fromJsonObject ENTRY {"to_update":"Y","pkg":"ca.company.MobileBanking","version":"1"} INSTALLED 
[1/12/16 14:12:26:481 EST] 000000ce DeviceHelper > DeviceHelper getDevice(deviceID) ENTRY f8d88de1366f815c 
[1/12/16 14:12:26:481 EST] 000000ce DeviceHelper > DeviceHelper findDevice(deviceID) ENTRY f8d88de1366f815c 
[1/12/16 14:12:26:481 EST] 000000ce DeviceHelper > DeviceHelper findDevice(deviceID,activeOnly) ENTRY f8d88de1366f815c true 
[1/12/16 14:12:26:481 EST] 000000ce DeviceHelper > DeviceHelper findDeviceEntity ENTRY f8d88de1366f815c true 
[1/12/16 14:12:26:481 EST] 000000ce DeviceHelper > DeviceHelper getDeviceEntities ENTRY f8d88de1366f815c true 
[1/12/16 14:12:26:485 EST] 000000ce ApplicationHe > ApplicationHelper getApplication ENTRY [email protected] 1 true 
[1/12/16 14:12:26:528 EST] 000000ce ApplicationHe > ApplicationHelper applicationInstalled ENTRY [email protected] 
[1/12/16 14:12:26:533 EST] 000000ce DeviceHelper > DeviceHelper getDeviceEntity ENTRY [email protected] 
[1/12/16 14:12:26:533 EST] 000000ce DeviceHelper > DeviceHelper findDeviceEntity ENTRY f8d88de1366f815c false 
[1/12/16 14:12:26:533 EST] 000000ce DeviceHelper > DeviceHelper getDeviceEntities ENTRY f8d88de1366f815c false 
[1/12/16 14:12:26:555 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.host=mobile-dev.company.ca in webapp context. 
[1/12/16 14:12:26:556 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.port=443 in webapp context. 
[1/12/16 14:12:26:556 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.protocol=https in webapp context. 
[1/12/16 14:12:26:557 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.host=mobile-dev.company.ca in webapp context. 
[1/12/16 14:12:26:558 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.port=443 in webapp context. 
[1/12/16 14:12:26:558 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.protocol=https in webapp context. 
[1/12/16 14:12:26:560 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.host=mobile-dev.company.ca in webapp context. 
[1/12/16 14:12:26:561 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.port=443 in webapp context. 
[1/12/16 14:12:26:562 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.protocol=https in webapp context. 
[1/12/16 14:12:26:563 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.host=mobile-dev.company.ca in webapp context. 
[1/12/16 14:12:26:564 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.port=443 in webapp context. 
[1/12/16 14:12:26:565 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.protocol=https in webapp context. 
[1/12/16 14:12:26:565 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.host=mobile-dev.company.ca in webapp context. 
[1/12/16 14:12:26:566 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.port=443 in webapp context. 
[1/12/16 14:12:26:566 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.protocol=https in webapp context. 
[1/12/16 14:12:26:567 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.host=mobile-dev.company.ca in webapp context. 
[1/12/16 14:12:26:568 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.port=443 in webapp context. 
[1/12/16 14:12:26:568 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.protocol=https in webapp context. 
[1/12/16 14:12:26:569 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.host=mobile-dev.company.ca in webapp context. 
[1/12/16 14:12:26:570 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.port=443 in webapp context. 
[1/12/16 14:12:26:571 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.protocol=https in webapp context. 
[1/12/16 14:12:26:572 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.host=mobile-dev.company.ca in webapp context. 
[1/12/16 14:12:26:572 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.port=443 in webapp context. 
[1/12/16 14:12:26:573 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.protocol=https in webapp context. 
[1/12/16 14:12:26:573 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.host=mobile-dev.company.ca in webapp context. 
[1/12/16 14:12:26:574 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.port=443 in webapp context. 
[1/12/16 14:12:26:575 EST] 000000ce PureMeapBaseU 2 Found property ibm.appcenter.proxy.protocol=https in webapp context. 
[1/12/16 14:12:26:575 EST] 000000ce SearchAndList 3 InstallationTrackingService create Response: [{"avg_rating_all_versions":0.0,"avg_rating":0.0,"os":"Android","author_display":"uid=********,o=defaultWIMFileBasedRealm","link":"https:\/\/mobile-dev.company.ca:443\/applicationcenter\/service\/directory\/Android\/ca.company.MobileBanking\/1","to_update":"Y","nb_rating_all_versions":0.0,"pkg":"ca.company.MobileBanking","latest_version_link":"https:\/\/mobile-dev.company.ca:443\/applicationcenter\/service\/directory\/[email protected]","label":"company Bank Mobile","versionName":"1.0","expkg":"[email protected]","url":[{"id":"30572","link":"https:\/\/mobile-dev.company.ca:443\/applicationcenter\/service\/application\/storage\/30572","value":"application\/storage\/30572","filename":"MobileBanking-Android.apk","derived":"N","rel":"apk","cid":"30523","size":5276642},{"id":"30573","link":"https:\/\/mobile-dev.company.ca:443\/applicationcenter\/service\/icons\/application\/storage\/30573","value":"icons\/application\/storage\/30573","filename":"","derived":"Y","rel":"icon_hdpi","cid":"30524","size":8362},{"id":"30574","link":"https:\/\/mobile-dev.company.ca:443\/applicationcenter\/service\/icons\/application\/storage\/30574","value":"icons\/application\/storage\/30574","filename":"","derived":"Y","rel":"icon","cid":"30525","size":8362},{"id":"30575","link":"https:\/\/mobile-dev.company.ca:443\/applicationcenter\/service\/icons\/application\/storage\/30575","value":"icons\/application\/storage\/30575","filename":"","derived":"Y","rel":"icon_ldpi","cid":"30526","size":8362},{"id":"30576","link":"https:\/\/mobile-dev.company.ca:443\/applicationcenter\/service\/icons\/application\/storage\/30576","value":"icons\/application\/storage\/30576","filename":"","derived":"Y","rel":"icon_xhdpi","cid":"30527","size":8362},{"id":"30577","link":"https:\/\/mobile-dev.company.ca:443\/applicationcenter\/service\/icons\/application\/storage\/30577","value":"icons\/application\/storage\/30577","filename":"","derived":"Y","rel":"icon_mdpi","cid":"30528","size":8362}],"version":"1","versions":[{"is_rtw_instr":"N","is_active":"Y","updated":"2016-01-08T15:28:31.186Z","description":"Mobile Banking Android","link":"https:\/\/mobile-dev.company.ca:443\/applicationcenter\/service\/directory\/Android\/ca.company.MobileBanking\/1","is_ready_prod":"Y","label":"company Bank Mobile","versionName":"1.0","nb_rating":0.0,"version":"1"}],"author":"uid=********,o=defaultWIMFileBasedRealm","created":"2016-01-12T19:12:26.528Z","updated":"2016-01-12T19:12:26.528Z","description":"Mobile Banking Android","popularity_all_versions":26.0,"creation_time":1452625946528,"nb_rating":0.0,"popularity":26.0}] 

應用2點擊安裝(失敗):

[1/12/16 14:04:13:554 EST] 000000cb MobileService > MobileServices applicationStorageHandler for any secured resource ENTRY 30681 
[1/12/16 14:04:13:554 EST] 000000cb ApplicationSt > ApplicationStorageService ApplicationStorageService ENTRY 30681 null false 
[1/12/16 14:04:13:556 EST] 000000cb ApplicationSt > ApplicationStorageService __retrieve__ ENTRY uri=https://x.x.x.x/applicationcenter/service/application/storage/30681 securityContext=org.apache.wink.server.internal.contexts.SecurityContextImpl_587347446 httpRequest={Loc=en_US, Locs=(en_US,), User=CN=xxxxxx,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net, RemoteUser=CN=xxxxxx,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net} null 
[1/12/16 14:04:13:556 EST] 000000cb PrincipalHelp > PrincipalHelper getPrincipal ENTRY CN=xxxxxx,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net 
[1/12/16 14:04:13:557 EST] 000000cb PrincipalHelp > PrincipalHelper getPrincipalEntity ENTRY [email protected] CN=xxxxxx,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net 
[1/12/16 14:04:13:561 EST] 000000cb ApplicationSt > BinaryStorageBaseService retrieveOrInfoImpl ENTRY uri=https://x.x.x.x/applicationcenter/service/application/storage/30681 securityContext=org.apache.wink.server.internal.contexts.SecurityContextImpl_587347446 httpRequest={Loc=en_US, Locs=(en_US,), User=CN=xxxxxx,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net, RemoteUser=CN=xxxxxx,OU=CDN,OU=MFC_Users,DC=americas,DC=company,DC=net} 
[1/12/16 14:04:13:561 EST] 000000cb ApplicationSt 1 BinaryStorageBaseService retrieveOrInfoImpl Specified Range: bytes=unspec-unspec 
[1/12/16 14:04:13:561 EST] 000000cb ApplicationRe > ApplicationResourceHelper getApplicationResource ENTRY 30681 
[1/12/16 14:04:13:561 EST] 000000cb ApplicationRe > ApplicationResourceHelper findStorageRefEntity ENTRY 30681 
[1/12/16 14:04:13:570 EST] 000000cb ApplicationRe > ApplicationResourceHelper getApplicationStorageEntity ENTRY 30631 
[1/12/16 14:04:15:193 EST] 000000cb ApplicationSt 1 BinaryStorageBaseService retrieveOrInfoImpl Final Range: bytes=-1--1 
[1/12/16 14:04:15:193 EST] 000000cb ApplicationSt < BinaryStorageBaseService retrieveOrInfoImpl RETURN [email protected] 

我沒有看到兩個應用程序日誌之間有什麼區別,當我點擊「安裝」,只是其中之一是沒有得到開始安裝過程。

  1. 是否有一個文件大小下載限制,我需要看看在 了配置?
  2. 如何解決此問題?
  3. 是否有我需要添加的日誌記錄級別,WAS沒有向我顯示 ?

任何需要的額外信息,請讓我知道。謝謝

+0

沒有文件大小限制。 啓用以下跟蹤「com.ibm.puremeap。* = all」 –

+0

謝謝Vivin,我用日誌更新了我的問題。 –

+0

這兩個應用程序的包ID是什麼?我看到「ca.company.MobileBanking」。另一個是什麼? –

回答

0

經過調查,我們發現原因在於DataPower,因爲我們將有效負載限制設置爲8MB,導致安裝在第二個應用程序上失敗,它也出現在iPad上,因爲它具有相同的大小。

DataPower的有效載荷限制:8MB

的Android APK大小:8.5MB(失敗通過DataPower的安裝)

iPad的IPA大小:8。4MB(未能通過DataPower的安裝)

iPhone IPA大小:7.4MB(成功通過DataPower的安裝)

如果我試圖通過訪問我們的內部IHS服務器內部安裝並繞過了DataPower,所有安裝工作。

通過增加負載限制,我們能夠解決我們的問題。

相關問題