我正在使用Maximo Anywhere 7.5.2(工作执行应用程序)。我在MAP的.properties文件中进行了必要的更改。我需要在地图(在线)中看到一些位置,我在MAM中添加了一些位置数据(Lat,Long)但在设备中无法获得相同的位置。
日志:
2016-01-22 10:46:51.400 WorkExecution[1689:755353] got show busy call
2016-01-22 10:46:51.401 WorkExecution[1689:755353] showing busy indicator
2016-01-22 10:46:51.401 WorkExecution[1689:755353] WARN: Loading message showed by application = true
2016-01-22 10:46:51.403 WorkExecution[1689:755353] WARN: Show View WorkExecution.MapView
2016-01-22 10:46:51.404 WorkExecution[1689:755353] WLReachability Flag Status: -R ------- networkStatusForFlags
2016-01-22 10:46:51.407 WorkExecution[1689:755353] [TIMER] Create Resources:WorkExecution.MapView: 9ms
2016-01-22 10:46:51.407 WorkExecution[1689:755353] [TRACE] [MapHandler] added listener, count 1
2016-01-22 10:46:51.407 WorkExecution[1689:755353] [TRACE] MapHandler setCurrentMarker
2016-01-22 10:46:51.408 WorkExecution[1689:755353] asked to hide busy indicator
2016-01-22 10:46:51.432 WorkExecution[1689:755353] got managebusy call busystate=false, busy window visible=true
2016-01-22 10:46:51.432 WorkExecution[1689:755695] [DEBUG] [NONE] establishSSLClientAuth
2016-01-22 10:46:51.433 WorkExecution[1689:755353] taking down busy window
2016-01-22 10:46:51.433 WorkExecution[1689:755353] WARN: Loading message hidden by application = true
2016-01-22 10:46:51.433 WorkExecution[1689:755353] WARN: Loading message hidden
2016-01-22 10:46:51.437 WorkExecution[1689:755353] [DEBUG] [WORKLIGHT] -[NotificationEx loadingStop:] in NotificationEx.m:150 :: Loading stop
2016-01-22 10:46:51.444 WorkExecution[1689:755353] THREAD WARNING: ['NotificationEx'] took '11.097900' ms. Plugin should use a background thread.
2016-01-22 10:46:51.461 WorkExecution[1689:755353] [WARN] [USER_CERT_AUTH] +[WLUserAuthManager getCertificateIdentifier] in WLUserAuthManager.m:68 :: Certificate Identifier Key: com.worklight.userenrollment.certificate:com.WorkExecution
2016-01-22 10:46:51.472 WorkExecution[1689:755353] THREAD WARNING: ['UserAuth'] took '11.177979' ms. Plugin should use a background thread.
2016-01-22 10:46:51.494 WorkExecution[1689:755695] [DEBUG] [NONE] establishSSLClientAuth isCertificateExists: false
2016-01-22 10:46:51.569 WorkExecution[1689:755353] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:196 :: Request Success
2016-01-22 10:46:51.571 WorkExecution[1689:755353] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:197 :: Response Status Code : 200
2016-01-22 10:46:51.574 WorkExecution[1689:755353] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFinished:] in WLAFHTTPClientWrapper.m:198 :: Response Content : /*-secure-
{"userInfo":{"wl_directUpdateRealm":{"userId":"null","attributes":{},"isUserAuthenticated":1,"displayName":"null","deviceId":"null"},"CustomAuthenticationRealm":{"isSuccessful":true,"userId":"maxadmin","attributes":{"Cookie":"JSESSIONID=0000-SkE1FAXWL8ftNRYI9N1xmN:-1; Path=\/; HttpOnly","AuthenticationDate":"Fri Jan 22 10:46:04 MYT 2016"},"isUserAuthenticated":1,"displayName":null,"deviceId":"maxadmin"},"wl_authenticityRealm":{"userId":null,"attributes":{},"isUserAuthenticated":0,"displayName":null,"deviceId":null},"wl_remoteDisableRealm":{"userId":"null","attributes":{},"isUserAuthenticated":1,"displayName":"null","deviceId":"null"},"wl_antiXSRFRealm":{"userId":"c41pcfh3e92rspokaktj2be62i","attributes":{},"isUserAuthenticated":1,"displayName":"c41pcfh3e92rspokaktj2be62i","deviceId":"c41pcfh3e92rspokaktj2be62i"},"wl_deviceAutoProvisioningRealm":{"userId":null,"attributes":{},"isUserAuthenticated":0,"displayName":null,"deviceId":null},"wl_deviceNoProvisioningRealm":{"userId":"0F2EE785-4184-4BC2-8C76-3B7CE840F38D","attributes":{"mobileClientData":"com.worklight.core.auth.ext.MobileClientData@dfd2569f"},"isUserAuthenticated":1,"displayName":"0F2EE785-4184-4BC2-8C76-3B7CE840F38D","deviceId":"0F2EE785-4184-4BC2-8C76-3B7CE840F38D"},"myserver":{"userId":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1","attributes":{},"isUserAuthenticated":1,"displayName":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1","deviceId":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1"},"wl_anonymousUserRealm":{"userId":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1","attributes":{},"isUserAuthenticated":1,"displayName":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1","deviceId":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1"}},"userPrefs":{},"gadgetProps":{"ENVIRONMENT":"iphone"}}*/
2016-01-22 10:46:51.679 WorkExecution[1689:755353] [TRACE] [CustomChallangeHandler.isCustomResponse] false
2016-01-22 10:46:51.680 WorkExecution[1689:755353] No matching configurations found from the server. Defaulting to local configuration
2016-01-22 10:46:51.680 WorkExecution[1689:755353] [TIMER] [COMM] Fetching device for connectivity: 549ms
2016-01-22 10:46:51.681 WorkExecution[1689:755695] [DEBUG] [NONE] response [/apps/services/api/WorkExecution/iphone/init] success: /*-secure-
{"userInfo":{"wl_directUpdateRealm":{"userId":"null","attributes":{},"isUserAuthenticated":1,"displayName":"null","deviceId":"null"},"CustomAuthenticationRealm":{"isSuccessful":true,"userId":"maxadmin","attributes":{"Cookie":"JSESSIONID=0000-SkE1FAXWL8ftNRYI9N1xmN:-1; Path=\/; HttpOnly","AuthenticationDate":"Fri Jan 22 10:46:04 MYT 2016"},"isUserAuthenticated":1,"displayName":null,"deviceId":"maxadmin"},"wl_authenticityRealm":{"userId":null,"attributes":{},"isUserAuthenticated":0,"displayName":null,"deviceId":null},"wl_remoteDisableRealm":{"userId":"null","attributes":{},"isUserAuthenticated":1,"displayName":"null","deviceId":"null"},"wl_antiXSRFRealm":{"userId":"c41pcfh3e92rspokaktj2be62i","attributes":{},"isUserAuthenticated":1,"displayName":"c41pcfh3e92rspokaktj2be62i","deviceId":"c41pcfh3e92rspokaktj2be62i"},"wl_deviceAutoProvisioningRealm":{"userId":null,"attributes":{},"isUserAuthenticated":0,"displayName":null,"deviceId":null},"wl_deviceNoProvisioningRealm":{"userId":"0F2EE785-4184-4BC2-8C76-3B7CE840F38D","attributes":{"mobileClientData":"com.worklight.core.auth.ext.MobileClientData@dfd2569f"},"isUserAuthenticated":1,"displayName":"0F2EE785-4184-4BC2-8C76-3B7CE840F38D","deviceId":"0F2EE785-4184-4BC2-8C76-3B7CE840F38D"},"myserver":{"userId":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1","attributes":{},"isUserAuthenticated":1,"displayName":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1","deviceId":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1"},"wl_anonymousUserRealm":{"userId":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1","attributes":{},"isUserAuthenticated":1,"displayName":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1","deviceId":"fcd2bad6-4ca1-4d40-9e02-ea3f23ec61c1"}},"userPrefs":{},"gadgetProps":{"ENVIRONMENT":"iphone"}}*/
2016-01-22 10:46:51.691 WorkExecution[1689:755742] [DEBUG] [NONE] wlclient connect success
2016-01-22 10:46:51.737 WorkExecution[1689:755353] [TIMER] PersistenceManager - add - Adding data into jsonstore - PlatformViewQueryResource: 65ms
2016-01-22 10:46:51.746 WorkExecution[1689:755353] [TIMER] PersistenceManager _findRecordsOnStore: (ignore if querybase exists)PlatformViewQueryResource queryBase: null query: [{"__tempId":1453430764565}]: 8ms
2016-01-22 10:46:51.747 WorkExecution[1689:755353] [TIMER] _JsonInMemoryFindMixin - _arrayFilter: 1ms
2016-01-22 10:46:51.747 WorkExecution[1689:755353] [TIMER] PersistenceManager - _filterExactMatchesIfNeeded: 1ms
2016-01-22 10:46:52.357 WorkExecution[1689:755353] [TRACE] [MapHandler] showmap
2016-01-22 10:46:52.358 WorkExecution[1689:755353] [TRACE] [platform.map.MapFactoryHelper] providerUrl is blank, trying to find a localMapUrl...
2016-01-22 10:46:52.358 WorkExecution[1689:755353] [TRACE] [platform.map.MapFactoryHelper] localMapUrl found: Manhattan.tpk
2016-01-22 10:46:52.358 WorkExecution[1689:755353] [TRACE] [platform.map.MapFactory] creating new map platform.map.EsriMap
2016-01-22 10:46:52.434 WorkExecution[1689:755353] [platform.map.MapFactory] Found bridgeConstructor
2016-01-22 10:46:52.435 WorkExecution[1689:755353] [TRACE] [platform.map.EsriMap] bridgeConstructor: {"specificParameters":{"id":"aw16755748","adjustToTop":"true","iosMapAccessMethod":"useDocumentsFolder","layoutInsertAt":"map","localMapUrl":"Manhattan.tpk","artifactId":"WorkExecution.MapView_esri_true","provider":"esri","workOfflineResource":"workOrder","currentLocationMessage":"Current Location"}}
2016-01-22 10:46:52.435 WorkExecution[1689:755353] [TRACE] [platform.map.nativeBridge.NativeBridgeHelper] Sending request using
2016-01-22 10:46:52.435 WorkExecution[1689:755353] [TRACE] [platform.map.nativeBridge.NativeBridgeHelper] mapType: esri
2016-01-22 10:46:52.435 WorkExecution[1689:755353] [TRACE] [platform.map.nativeBridge.NativeBridgeHelper] action: bridgeConstructor
2016-01-22 10:46:52.435 WorkExecution[1689:755353] [TRACE] [platform.map.nativeBridge.NativeBridgeHelper] method do NOT have cache
2016-01-22 10:46:52.435 WorkExecution[1689:755353] [TRACE] [platform.map.nativeBridge.NativeBridgeHelper] deferred found!
2016-01-22 10:46:52.436 WorkExecution[1689:755353] [TRACE] [platform.map.MapPlugin] entering sendRequest...
2016-01-22 10:46:52.436 WorkExecution[1689:755353] [TRACE] [platform.map.MapPlugin] deferred is: [object Deferred]
2016-01-22 10:46:52.436 WorkExecution[1689:755353] [TRACE] [platform.map.MapPlugin] method is: [bridgeConstructor]
2016-01-22 10:46:52.436 WorkExecution[1689:755353] [TRACE] [platform.map.MapPlugin] action is: [esri:bridgeConstructor]
2016-01-22 10:46:52.436 WorkExecution[1689:755353] [TRACE] [platform.map.MapPlugin] parameters is: [object Object]
2016-01-22 10:46:52.437 WorkExecution[1689:755353] [TRACE] [platform.map.MapPlugin] Calling MapPlugin with deferred object
2016-01-22 10:46:52.438 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin respondsToSelector:]:26:super does not have a selector to esri:bridgeConstructor:
2016-01-22 10:46:52.438 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin respondsToSelector:]:33:Found a map selector for esri:bridgeConstructor:
2016-01-22 10:46:52.438 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin methodSignatureForSelector:]:49:Unable to find signature for selector esri:bridgeConstructor:
2016-01-22 10:46:52.438 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin methodSignatureForSelector:]:50:Try to forward invocation
2016-01-22 10:46:52.439 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:92:Processing forward invocation
2016-01-22 10:46:52.439 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:93:Invocation signature: <NSMethodSignature: 0x15541cd0>
2016-01-22 10:46:52.439 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:102:MainThread - command.callbackId: MapPlugin27923582
2016-01-22 10:46:52.439 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:112:Receiving cordova request esri:bridgeConstructor:
2016-01-22 10:46:52.440 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:113:MapType is: esri
2016-01-22 10:46:52.440 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:114:Method selector is: bridgeConstructor:
2016-01-22 10:46:52.440 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:115:BackgroundThread - command.callbackId: MapPlugin27923582
2016-01-22 10:46:52.440 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:118:Begin applying the license of esri map
2016-01-22 10:46:52.444 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:125:End of applying the license of esri map
2016-01-22 10:46:52.924 WorkExecution[1689:755353] DEBUG: -[ISIMapPlugin forwardInvocation:]:180:EsriMap instance created
2016-01-22 10:46:52.925 WorkExecution[1689:755353] DEBUG: -[ISIEsriMap loadSpecificParameters:]:114:map params {
adjustToTop = true;
artifactId = "WorkExecution.MapView_esri_true";
currentLocationMessage = "Current Location";
id = aw16755748;
iosMapAccessMethod = useDocumentsFolder;
layoutInsertAt = map;
localMapUrl = "Manhattan.tpk";
provider = esri;
workOfflineResource = workOrder;
}
2016-01-22 10:46:52.926 WorkExecution[1689:755353] DEBUG: -[ISIEsriMap loadSpecificParameters:]:129:path resolved to load /var/mobile/Containers/Data/Application/1E7497A1-72B5-410C-A1E3-A35995D725AB/Documents/Manhattan.tpk
2016-01-22 10:46:52.928 WorkExecution[1689:755353] DEBUG: -[ISIEsriMap loadSpecificParameters:]:132:tiledlayer loaded? 0
2016-01-22 10:46:52.928 WorkExecution[1689:755353] DEBUG: -[ISIEsriMap loadSpecificParameters:]:133:error on the tiledlayer? Cache at path '/var/mobile/Containers/Data/Application/1E7497A1-72B5-410C-A1E3-A35995D725AB/Documents/Manhattan.tpk' not found.
2016-01-22 10:46:52.928 WorkExecution[1689:755353] DEBUG: -[ISIEsriMap loadSpecificParameters:]:136:The map file /var/mobile/Containers/Data/Application/1E7497A1-72B5-410C-A1E3-A35995D725AB/Documents/Manhattan.tpk for this view is not available.
2016-01-22 10:46:52.935 WorkExecution[1689:755353] THREAD WARNING: ['MapPlugin'] took '496.894043' ms. Plugin should use a background thread.
2016-01-22 10:46:52.951 WorkExecution[1689:755353] WARN: [platform.map.MapPlugin] failed to resolve, error message: [object Object]
2016-01-22 10:46:52.952 WorkExecution[1689:755353] [TRACE] [platform.map.MapFactory] [object Object]
2016-01-22 10:46:52.952 WorkExecution[1689:755353] [TRACE] IN Image watch: HIDING
2016-01-22 10:46:52.952 WorkExecution[1689:755353] === Global promise rejection handling ===
2016-01-22 10:46:52.953 WorkExecution[1689:755353] === handled: true
2016-01-22 10:46:52.954 WorkExecution[1689:755353] Hiding the "Loading..." message in 8 seconds
2016-01-22 10:46:52.954 WorkExecution[1689:755353] === Global promise rejection handling ===
2016-01-22 10:46:52.954 WorkExecution[1689:755353] === handled: true
2016-01-22 10:46:52.955 WorkExecution[1689:755353] Hiding the "Loading..." message in 8 seconds
2016-01-22 10:46:53.668 WorkExecution[1689:755517] [DEBUG] [NONE] Piggybacking event transmission
2016-01-22 10:46:53.671 WorkExecution[1689:755695] [DEBUG] [NONE] Flush called
2016-01-22 10:47:00.939 WorkExecution[1689:755353] WARN: Loading message hidden by application = true
2016-01-22 10:47:00.939 WorkExecution[1689:755353] WARN: Loading message hidden
2016-01-22 10:47:00.940 WorkExecution[1689:755353] WARN: Loading message hidden by application = true
2016-01-22 10:47:00.940 WorkExecution[1689:755353] WARN: Loading message hidden
请帮忙。提前谢谢。
答案 0 :(得分:0)
您的设备上需要.tpk文件在正确的位置,您可以查看设备的其中一项是您放置tpk的地方,
编辑app.xml并使用移动设备上的地图文件的位置和名称更新属性localMapUrl =“file://folder_structure/map_file_name.tpk”。例如:localMapUrl =“file://mnt/sdcard/basemaps/Manhattan.tpk”文件夹/ mnt / sdcard是任何Android应用程序都可以访问的公用文件夹。
例如在设备上你把你的tpk部分放在/basemaps/Manhatton.tpk
答案 1 :(得分:0)
您需要在设备上使用tpk文件,请按照7.5.2链接进行操作 http://www-01.ibm.com/support/knowledgecenter/SSPJLC_7.5.2/com.ibm.si.mpl.doc_7.5.2/maps/t_configure_map_apps.html?lang=en
从maximoanywhere_home \ MaximoAnywhere \ apps \ WorkExecution \ artifact目录中,编辑app.xml并更新地图控件的属性。如果启用了Anywhere Administration应用程序,也可以使用Anywhere Administration应用程序更新该属性。 对于离线地图,请使用移动设备上TPK文件的位置和名称更新LocalMapUrl属性。此外,对于iOS设备,请更新iosMapAccessMethod属性以使用Documents文件夹或捆绑包。 对于Android设备,这是androidLocalMapUrl =“file://folder_path/map_file_name.tpk”。 对于iOS设备,这是iosLocalMapUrl =“file://folder_path/map_file_name.tpk”。您还必须输入useDocumentsFolder或useBundle作为iosMapAccessMethod属性。 对于在线地图,请设置providerUrl属性。该值可以是任何有效的ArcGIS磁贴服务。如果未设置providerUrl属性,则使用用户定义的TPK文件。
答案 2 :(得分:0)