Maximo Anywhere

时间:2016-01-07 01:58:11

标签: ibm-mobilefirst maximo-anywhere

我正在使用IBM Maximo Anywhere,而且我是Maximo Anywhere的新手。我从我的eclipse运行Anywhere,并从IBM worklight模拟器测试它。从模拟器我可以登录到Anywhere应用程序,但是当我创建我的应用程序的Ipad环境并将其安装在Ipad上并尝试从Ipad登录时,我的Maximo服务器在同一网络上,应用程序抛出错误而无法登录到任何地方。任何人都可以帮我解决这个问题。我还附加了xcode控制台日志以获取更多信息

*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"} 

1 个答案:

答案 0 :(得分:2)

来自堆栈跟踪的

,我看到了:

  

由于App Transport Security策略,无法加载资源   需要使用安全连接。*&#34;

您似乎尝试通过非安全访问工作灯,但对于iOS应用,您需要访问安全网址。您可能需要使用build.properties设置进行重建:

  

worklight.server.protocol = HTTPS

并确保您的worklight服务器也设置为SSL。