2016-01-07 78 views
0

我使用的是IBM Maximo Anywhere,而我是Maximo Anywhere的新手。我从eclipse中运行Anywhere并从IBM worklight模拟器进行测试。从模拟器我可以登录Anywhere应用程序,但是当我创建我的应用程序的Ipad环境并将其安装在Ipad上并尝试从Ipad登录时,我的Maximo服务器位于同一网络上,应用程序出错并且无法登录到任何地方。任何人都可以帮助我解决这个问题。我还从堆栈跟踪附着在Xcode控制台日志的详细信息Maximo Anywhere

*2016-01-06 17:31:07.741 WorkExecution[626:200217] WARN: [HANDLER] calling 
platform.handlers.LoginHandler.loginClickHandler* 

*2016-01-06 17:31:07.741 WorkExecution[626:200217] WARN: Loading message 
showed by application = true* 

*2016-01-06 17:31:07.745 WorkExecution[626:200217] [TRACE] 
UserAuthenticationManager - _localAuthentication - vigneshv* 

*2016-01-06 17:31:07.746 WorkExecution[626:200217] [TRACE] [DATA] 
Initializing user profile store with credentials* 

*2016-01-06 17:31:07.746 WorkExecution[626:200217] [TRACE] list of 
previousLoggedUsers: undefined* 

*2016-01-06 17:31:07.746 WorkExecution[626:200217] [TRACE] user was NOT 
successfully authenticated* 

*2016-01-06 17:31:07.746 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.747 WorkExecution[626:200217] === handled: false* 

*2016-01-06 17:31:07.747 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.747 WorkExecution[626:200217] ERROR: {"textMsg":"Your 
user name and password could not be validated. Connect to the server and 
try again."}* 

*2016-01-06 17:31:07.748 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.748 WorkExecution[626:200217] === handled: false* 

*2016-01-06 17:31:07.748 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.749 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.749 WorkExecution[626:200217] === handled: true* 

*2016-01-06 17:31:07.749 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.749 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.749 WorkExecution[626:200217] === handled: false* 

*2016-01-06 17:31:07.749 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.750 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.750 WorkExecution[626:200217] === handled: false* 

*2016-01-06 17:31:07.750 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.751 WorkExecution[626:200217] [TRACE] 
[_realmAuthentication] Authenticating user vigneshv* 

*2016-01-06 17:31:07.751 WorkExecution[626:200217] [TRACE] 
ServerAuthenticationProvider.login* 

*2016-01-06 17:31:07.751 WorkExecution[626:200217] [TRACE] 
CustomChallengeHandler login calling submitLoginForm* 

*2016-01-06 17:31:07.752 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.752 WorkExecution[626:200217] === handled: true* 

*2016-01-06 17:31:07.752 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.754 WorkExecution[626:200217] [TIMER] _StoreProvider - 
wlJsonStoreProvider - closeAll: 55ms* 

*2016-01-06 17:31:07.759 WorkExecution[626:201158] [DEBUG] [NONE] Request 
[login]* 

*2016-01-06 17:31:07.763 WorkExecution[626:201158] [DEBUG] 
[WL_AFHTTPCLIENTWRAPPER_PACKAGE] +[WLAFHTTPClientWrapper requestWithURL:] 
in WLAFHTTPClientWrapper.m:38 :: Request url is 

http://myIPAddress:10080/MaximoAnywhere/apps/services/api/WorkExecution/ipad/my_custom_auth_request_url 
<http://myIPAddress:10080/MaximoAnywhere/apps/services/api/WorkExecution/ipad/my_custom_auth_request_url>* 

*2016-01-06 17:31:07.768 WorkExecution[626:201158] [DEBUG] 
[WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper start] in 
WLAFHTTPClientWrapper.m:183 :: Starting the request with URL 

http://myIPAddress:10080/MaximoAnywhere/apps/services/api/WorkExecution/ipad/my_custom_auth_request_url 
<http://myIPAddress:10080/MaximoAnywhere/apps/services/api/WorkExecution/ipad/my_custom_auth_request_url>* 

*2016-01-06 17:31:07.780 WorkExecution[626:200217] [DEBUG] 
[WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper 
requestFailed:error:] in WLAFHTTPClientWrapper.m:215 :: Request Failed* 

*2016-01-06 17:31:07.782 WorkExecution[626:200217] [DEBUG] 
[WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper 
requestFailed:error:] in WLAFHTTPClientWrapper.m:216 :: Response Status 
Code : 0* 

*2016-01-06 17:31:07.786 WorkExecution[626:200217] [DEBUG] 
[WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper 
requestFailed:error:] in WLAFHTTPClientWrapper.m:217 :: Response Error : 
The resource could not be loaded because the App Transport Security policy 
requires the use of a secure connection.* 

*2016-01-06 17:31:07.798 WorkExecution[626:200217] [TRACE] 
CustomChallengeHandler.sendLogin* 

*2016-01-06 17:31:07.798 WorkExecution[626:200217] [TRACE] 
[CustomChallangeHandler.isCustomResponse] false - no response or no JSON 
response* 

*2016-01-06 17:31:07.798 WorkExecution[626:200217] WARN: 
[_realmAuthentication] Invalid server credentials for user vigneshv* 

*2016-01-06 17:31:07.798 WorkExecution[626:200217] WARN: Loading message 
showed by application = true* 

*2016-01-06 17:31:07.799 WorkExecution[626:200217] WARN: Cancel processing 
requested* 

*2016-01-06 17:31:07.799 WorkExecution[626:200217] [TRACE] Closing local 
storage* 

*2016-01-06 17:31:07.800 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.800 WorkExecution[626:200217] === handled: true* 

*2016-01-06 17:31:07.800 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.800 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.800 WorkExecution[626:200217] === handled: false* 

*2016-01-06 17:31:07.800 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.801 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.801 WorkExecution[626:200217] === handled: true* 

*2016-01-06 17:31:07.802 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.802 WorkExecution[626:200217] === Global promise 
rejection handling ===* 

*2016-01-06 17:31:07.803 WorkExecution[626:200217] === handled: false* 

*2016-01-06 17:31:07.803 WorkExecution[626:200217] Hiding the "Loading..." 
message in 8 seconds* 

*2016-01-06 17:31:07.806 WorkExecution[626:200217] [TIMER] _StoreProvider - 
wlJsonStoreProvider - closeAll: 9ms* 

*2016-01-06 17:31:07.806 WorkExecution[626:200217] [TRACE] User 
successfully logged out* 

*2016-01-06 17:31:07.807 WorkExecution[626:200217] [TIMER] 
UserAuthenticationManager - logout: 10ms* 

*2016-01-06 17:31:07.807 WorkExecution[626:200217] WARN: Loading message 
hidden by application = true* 

*2016-01-06 17:31:07.807 WorkExecution[626:200217] WARN: Loading message 
hidden* 

*2016-01-06 17:31:07.807 WorkExecution[626:200217] [DEBUG] [WORKLIGHT] 
-[NotificationEx loadingStop:] in NotificationEx.m:150 :: Loading stop* 

2016-01-06 17:31:08.802 WorkExecution[626:200217] ERROR: {"errorMsg":"The 
user name and password combination that you entered is not valid."} 

2016-01-06 17:31:08.810 WorkExecution[626:200217] ERROR: 
{"responseJSON":{"oslcError":"null oslcError","oslcMaxUserURL":"null 
oslcMaxUserURL"},"status":"null status"} 
+0

您是否通过WIFI连接到Maximo服务器?该网络是否允许无限制地连接到Maximo服务器,或者至少在您需要访问的端口上连接?我假设你从桌面连接硬连线和iPad是不同的连接方法。 – Sun

回答

1

,我看到:

资源无法加载,因为应用程序传输安全政策 需要使用的*“

看起来你试图通过非安全访问工作灯,但是对于iOS应用程序,你将需要访问安全URL。您可能需要使用build.properties进行重建setti NG:

worklight.server.protocol = HTTPS

,并确保您的工作灯服务器设置为SSL也。

+0

或者,如果这是在开发中,您可以简单地禁用ATS:https://developer.ibm.com/mobilefirstplatform/2015/09/09/ats-and-bitcode-in-ios9/ –

+0

还有一个Maximo Anywhere适用于7521的iFix,您可以请求和下载,这些更改使Idan建议您启用iOS 9以使用非安全MobileFirst服务器。 –

相关问题