我正在WL 6.2.0.1上开发两个应用程序。
对于Android,当我使用IBM应用程序中心在我的Android设备上安装应用程序时。
首个App文件大小为5MB,并且已安装。
第二个App文件大小为9MB且未安装(根本不显示安装覆盖)。行为如下:
两个应用都使用精确密钥签名,并以精确方式上传。如果我加载了应用程序,它就可以正常运行。
我还尝试启用应用程序中心登录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
当我点击“安装”时,我发现两个应用日志之间没有任何区别,只是其中一个没有开始安装过程。
需要任何额外信息,请告诉我。感谢
答案 0 :(得分:0)
经过调查,我们发现原因在DataPower,因为我们将有效负载限制设置为8MB,导致安装在第二个应用程序上失败,它也出现在iPad上,因为它具有相同的大小。
DataPower Payload限制:8MB
Android apk大小:8.5MB(无法通过Datapower安装)
iPad ipa大小:8.4MB(无法通过Datapower安装)
iPhone ipa大小:7.4MB(通过Datapower成功安装)
如果我尝试通过访问内部IHS服务器并绕过DataPower进行内部安装,则所有安装都有效。
通过增加有效负载限制,我们能够解决问题。