MobileFirst application preview failure

1k Views Asked by At

I am developing an mobile application using IBM mobile first and it works fine in my local.now I migrated the code to production environment with WAS and mobile first 7.0 installed. when I try to open the application url i am getting the below error.

[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

And below is my debug info

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

please find the logs below

[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

Any suggestions as how I can rectify this error.

1

There are 1 best solutions below

10
On

My current working assumption is this:

It's not only that the preview button is removed in a non-development environment (as you have confirmed in the comments), it's also the preview component that is not available. Simply put, there is no preview of applications in a QA/production environment and so if you are forcing a preview in an environment that does not support preview, I would say it is Expected that it is "failing" for you.