我首先使用IBM mobile开发移动应用程序,它在我的本地工作正常。现在我将代码迁移到生产环境,安装了WAS和mobile 7.0。当我尝试打开应用程序URL时,我收到以下错误。
[http://dst14lp15.boulder.ibm.com:9080/Thinkmatix/authorization/v1/clients/preview] failure. state: 404, response: The server was unable to process the request from the application. Please try again later.
http://dst14lp15.boulder.ibm.com:9080/Thinkmatix/apps/services/preview/EPSML/common/0/default/worklight/worklight.js Line 5129
[/Thinkmatix/apps/services/api/EPSML/common/heartbeat] failure. state: 404, response: undefined
http://dst14lp15.boulder.ibm.com:9080/Thinkmatix/apps/services/preview/EPSML/common/0/default/worklight/worklight.js Line 5129
以下是我的调试信息
Request [/Thinkmatix/apps/services/api/EPSML/common/heartbeat]
worklight.js (line 5129)
Request [http://dst14lp15.boulder.ibm.com:9080/Thinkmatix/authorization/v1/clients/preview]
worklight.js (line 5129)
Request [http://dst14lp15.boulder.ibm.com:9080/Thinkmatix/authorization/v1/clients/preview]
worklight.js (line 5129)
Client registration failed with error: {"status":404,"responseHeaders":{"X-Powered-By":"Servlet/3.0","Content-Language":"en-US","Content-Length":"0","Connection":"Close","Date":"Thu, 25 Jun 2015 21:13:58 GMT"},"responseText":"","errorCode":"UNEXPECTED_ERROR","errorMsg":"The server was unable to process the request from the application. Please try again later.","invocationContext":null}
worklight.js (line 5129)
Failed to send heartbeat
请查看下面的日志
[6/25/15 20:13:37:166 GMT] 0000008e DMAdapter I com.ibm.ws.ffdc.impl.DMAdapter getAnalysisEngine FFDC1009I: Analysis Engine using data base: /usr/IBM/WebSphere/AppServer/properties/logbr/ffdc/adv/ffdcdb.xml
[6/25/15 20:13:37:193 GMT] 0000008e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_a76ee39e_15.06.25_20.13.37.1424049846352496539608.txt com.ibm.ws.security.token.WSCredentialTokenMapper.createPropagationTokenBeforeAuthenticatedCallerSet 1691
[6/25/15 20:13:37:204 GMT] 0000008e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_a76ee39e_15.06.25_20.13.37.1942014134630567982878.txt com.ibm.ws.security.auth.ContextManagerImpl.getSubjectFromDynaCacheOrOriginatingServer 1919
[6/25/15 20:13:37:216 GMT] 0000008e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_a76ee39e_15.06.25_20.13.37.2068488313294570014924.txt com.ibm.ws.security.auth.ContextManagerImpl.login 3683
[6/25/15 20:13:37:335 GMT] 0000008e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_a76ee39e_15.06.25_20.13.37.2166619601795812867033.txt com.ibm.ws.security.web.WebAuthenticator.validate 2952
[6/25/15 20:13:37:338 GMT] 0000008e RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (404 - Not Found) with message 'null' while processing GET request sent to http://dst14lp15.boulder.ibm.com:9080/Thinkmatix/authorization/v1/clients/preview
[6/30/15 9:21:08:406 GMT] 00000098 LTPAServerObj W SECJ0371W: Validation of the LTPA token failed because the token expired with the following info: Token expiration Date: Tue Jun 30 07:15:00 GMT 2015, current Date: Tue Jun 30 09:21:08 GMT 2015 Token attributes: port=8880, username=user:defaultWIMFileBasedRealm/uid=wasadmin,o=defaultWIMFileBasedRealm, hostname=dst14lp15.boulder.ibm.com.. This warning might indicate expected behavior. Please refer to technote at http://www-01.ibm.com/support/docview.wss?uid=swg21594981.
[6/30/15 9:21:08:412 GMT] 00000098 RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (404 - Not Found) with message 'null' while processing POST request sent to http://dst14lp15.boulder.ibm.com:9080/Thinkmatix/authorization/v1/clients/preview
有关我如何纠正此错误的任何建议。
答案 0 :(得分:0)
我目前的工作假设是:
不仅在非开发环境中删除了预览按钮(正如您在评论中确认的那样),它也是不可用的预览组件。简而言之,QA /生产环境中的应用程序无预览,因此如果您强制在支持的环境中进行预览>预览,我会说它预计会为你“失败”。