2015-06-25 39 views
0

我正在开发一个使用IBM移动的移动应用程序,它在我的local.now中正常工作。我将代码迁移到生产环境,并安装了WAS和移动版7.0。当我尝试打开应用程序url时,我收到下面的错误。MobileFirst应用程序预览失败

[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

您是否已将应用程序部署到生产环境?我的意思是,不仅仅是WAR文件和运行时间,而且您是否也将WLAPP文件部署到生产服务器?我们能否看到显示失败的完整服务器日志? – patbarron

+0

是的应用程序wlapp和适配器部署和主屏幕后才被加载,只有它给这个错误。 –

+0

因此您试图通过单击“预览”在MFP 7服务器上预览您的应用程序?你会得到错误。 –

回答

0

我目前的工作假设是这样的:

它不仅预览按钮是在非开发环境(如您的评论已经证实),这也是预览组件不是可用。简单地说,有没有在一个QA /生产环境中的应用程序的预览所以,如果你是迫使在不支持预览的环境预览,我会说,它预计它是“失败”为你。

+0

好吧现在我该如何测试我的应用程序是否正常工作或不在网络中? –

+0

添加移动Web或桌面浏览器环境。这些是“网络”支持的环境。他们提供要使用的URL。 –

+0

所以你的意思是说,如果我打这个网址http://dst14lp15.boulder.ibm.com:9080/Thinkmatix/apps/services/preview/EPSML/common/1.0/default/index.html它喜欢预览选项它将失败? –

相关问题