0

我正在 WL 6.2.0.1 上开发两个应用程序。

对于 Android,当我使用 IBM 应用程序中心在我的 Android 设备上安装应用程序时。

第一个应用程序文件大小为 5MB,正在安装中。

第二个应用程序文件大小为 9MB,并且未安装(根本不显示安装覆盖)。行为如下:

  1. 点击安装
  2. 它在图标上显示加载指示器 1 秒。
  3. 安装按钮再次激活,没有任何反应。

两个应用程序都使用确切的密钥签名并以确切的方式上传。如果我侧加载应用程序,它可以工作并安装。

我还尝试在 WAS 上启用应用中心日志记录,但我唯一的选择是(我认为这不是正确的日志记录):

在此处输入图像描述

编辑

点击安装 App1 日志(安装成功):

[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.EntityManagerImpl@3eb5fcaf 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 org.apache.wink.common.internal.ResponseImpl@816f72ff

安装开始:

[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 org.apache.openjpa.persistence.EntityManagerImpl@567afade 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 ca.company.MobileBanking@Android 1 true
[1/12/16 14:12:26:528 EST] 000000ce ApplicationHe > ApplicationHelper applicationInstalled ENTRY com.ibm.puremeap.artifacts.InstalledApplication@1052280d
[1/12/16 14:12:26:533 EST] 000000ce DeviceHelper  > DeviceHelper getDeviceEntity ENTRY com.ibm.puremeap.artifacts.Device@4a67fecb
[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\/ca.company.MobileBanking@Android","label":"company Bank Mobile","versionName":"1.0","expkg":"ca.company.MobileBanking@Android","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}]

App2点击安装(失败):

[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 org.apache.openjpa.persistence.EntityManagerImpl@fc7a7dd7 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 org.apache.wink.common.internal.ResponseImpl@9c51d90

当我单击“安装”时,我没有看到两个应用程序日志之间有任何区别,只有其中一个没有开始安装过程。

  1. 我需要在 WAS 配置中查看文件大小下载限制吗?
  2. 如何解决问题?
  3. 是否需要添加 WAS 未向我显示的日志记录级别?

需要任何额外信息,请告诉我。谢谢

4

1 回答 1

0

经过调查,我们发现原因是在DataPower,因为我们将有效负载限制设置为8MB,导致第二个应用程序安装失败,它也出现在iPad上,因为它具有相同的大小。

DataPower 有效负载限制:8MB

Android apk 大小:8.5MB(通过 Datapower 安装失败)

iPad ipa size : 8.4MB (Datapower 安装失败)

iPhone ipa大小:7.4MB(通过Datapower安装成功)

如果我尝试通过访问我们的内部 IHS 服务器并绕过 DataPower 来进行内部安装,那么所有安装都可以正常工作。

通过增加有效负载限制,我们能够解决我们的问题。

于 2016-01-26T14:01:01.093 回答