2016-03-01 95 views
0

我正在使用Maximo Anywhere 7.5.2.0 - 工作执行应用程序Maximo Anywhere在线 - 离线登录问题

问题是,在线 - 离线登录有时会失败。第一次在Ipad上刷新应用程序时,我可以在应用程序中登录在线和离线两种模式。一段时间后,我无法登录。我得到了“您输入的用户名和密码组合无效”错误即使它是正确的凭据。

我在这里附上了日志。

Object {errorMsg: "The user name and password combination that you entered is not valid."} " 
    ---------------------------------------- 
    rejected at Object.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:498:17) 
    at http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:285161 
    at _7c0 (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:273376) 
    at _7ba (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:273240) 
    at _7d8.reject (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:274951) 
    at _7c6 (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:274017) 
    at _7c0 (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:273657) 
    at _7ba (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:273240) 
    at _7d8.reject (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:274951) 
    at AbstractChallengeHandler.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/CustomChallengeHandler.js:98:18) 
    ---------------------------------------- 
Error 
    at Promise.then._7cd.then (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:275189) 
    at declare.loginClickHandler (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/js/platform/handlers/LoginHandler.js:78:4) 
    at null.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/js/platform/ui/control/UserInterface.js:850:47) 
    at HTMLButtonElement.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:285161) 
    at Function.on.emit (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:557950) 
    at null.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/js/platform/ui/control/UserInterface.js:139:12) 
    at HTMLFormElement.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:285161)"_1047 @ dojo.js:2(anonymous function) @ dojo.js:2_142.filter @ dojo.js:2_1055 @ dojo.js:2 
dojo.js:2 Object {responseJSON: Object, status: 401} " 
    ---------------------------------------- 
    rejected at AbstractChallengeHandler.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/CustomChallengeHandler.js:98:18) 
    at http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:285161 
    at onLoginFormResponse (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/worklight/worklight.js:9549:5) 
    at klass.window.WLJSX.Ajax.Request.WLJSX.Class.create.respondToReadyState (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/worklight/worklight.js:1184:28) 
    at klass.window.WLJSX.Ajax.Request.WLJSX.Class.create.onStateChange (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/worklight/worklight.js:1117:9) 
    at XMLHttpRequest.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/worklight/worklight.js:958:20) 
    ---------------------------------------- 
Error 
    at Promise.then._7cd.then (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:275189) 
    at Object.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:400:52) 
    at http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:285161 
    at _7c0 (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:273376) 
    at Promise.then._7cd.then (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:275270) 
    at Object.lang.mixin._realmAuthentication (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:398:4) 
    at Object.<anonymous> (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:343:10) 
    at http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:285161 
    at _7c0 (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:273376) 
    at Promise.then._7cd.then (http://11.11.11.11:0989/MaximoAnywhere/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:2:275270) 

Even the different user with correct credentials not able to login. It is start working only I restarted the server. I faced this issue very often. Kindly advice. 

任何帮助,将不胜感激。 在此先感谢

回答

0

离线登录要求您先前以此用户身份登录。它将这些信息存储在应用程序的localStorage中。如果脱机登录似乎在iOS上突破,这可能是我们已经发现并修复为iFix的已知问题。

您第一次登录时,您必须拥有服务器连接才能最初下载数据并验证您的用户名/密码。

您是使用嵌入式工作灯还是独立工作灯服务器?您应该检查服务器日志,以查看服务器是否实际在运行,而您尝试以第二个用户身份登录。

更新: 我能想到的唯一的事情就是你的worklight服务器无法以某种方式响应最初的WL.Client.connect。要么它太慢,要么可能没有了堆空间。所以,当它的时间来实际尝试和WL.login我们的挑战处理机,即握手失败..

  1. 检查工作灯服务器的堆大小以确保它的足够大
  2. 检查连接超时在我们启动.js文件正在与WL.Client.connect方法一起使用,并且将它变大以查看它是否修复了问题。
+0

我正在使用独立工作灯服务器。登录时出现以下错误,错误:WLTC0017E:由于调用了setRollbackOnly(),资源回滚。 [3/14/16 15:00:00:32:235 MYT] 0000029f webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E:[Servlet错误] - [GadgetAPIervlet]:java.lang.RuntimeException:com。 worklight.gadgets.GadgetRuntimeException:无效的小工具请求格式:/ WorkExecution/iphone/my_custom_auth_request_url。未知的处理程序路径:my_custom_auth_request_url – Ram

+0

未知的处理程序路径通常表示设备和Worklight服务器之间的原始握手失败,如果转到Worklight Console模拟器http:// yourhost:9080/worklightconsole并尝试登录,请执行此操作工作?您的应用程序的iphone版本是否部署到独立工作灯服务器? –

+0

是的。它在Worklight控制台模拟器中工作。但有时我也在模拟器中面临同样的问题。是。我在独立工作灯服务器 – Ram