Preview not working on MobileFirst Platform Foundation Server 7.0 - ibm-mobilefirst

On the MobileFirst Server Platform Foundation 7.0, the Preview is not working in the console. On the Eclipse development side, all is working well.
The error message is the following:
Here is the error in the log:
[4/10/15 12:12:55:267 CEST] 00000027 org.apache.wink.server.internal.RequestProcessor I 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://10.3.20.64:9080/catalogmanagerfull/authorization/v1/clients/preview
The application can use the server without any issue. It's really only the Preview in the console that is not working. The Application Server is a WAS Liberty profile running on Linux.
In a MobileFirst Server V6.3, the same project has no issue.

Preview is not meant to work in a production environment, however the preview button was still there in the GM release of MFPF 7.0.
I think you might have hit APAR PI37266:
MFP OPERATIONS CONSOLE: PREVIEW OF COMMON RESOURCES BUTTON MUST BE
HIDDEN IN PRODUCTION ENVIRONMENT
So, you should update your installation to the latest available 7.0 iFix, whereh the preview button is not longer available.

Related

IBM MobileFirst 8.0 developer toolkit - "JaxRsWebModuleInfoBuilder" and "AnalyticsRESTDataStore" error in start of local WAS Liberty instance

After installing developer toolkit, when I'm trying to start the development server by "run" command. Following errors are consistently being reported by the server.
FFDC1015I: An FFDC Incident has been created: "java.lang.ClassNotFoundException: AnalyticsConsole com.ibm.ws.jaxrs20.server.component.JaxRsWebModuleInfoBuilder 333" at ffdc_16.12.27_20.11.09.0.log
0000006f com.ibm.mfp.server.core.internal.ilmt.MFPILMTLogger E FWLSE0367E: Missing License Report data. Failed to create an ILMT record.
00000065 com.ibm.mobile.analytics.sdk.AnalyticsRESTDataStore E MSAN020E: Non-success response code received in AnalyticsRESTDataStore: 404.
Environment details:
IBM MobileFirst Platform Foundation V8.0
IBM MobileFirst Platform Developer Kit for Windows (Release date
02 September 2016)
OS: Windows 7
The development team is aware of these errors during the startup of the development server. As mentioned in the comments, these are considered of benign nature and should not trouble you.
Of course, you may open a PMR.

No supported platforms were detected to migrate issue with mfpmigrate from mobilefirst 6.3 to 8.0

I tried the migration process of mobilefirst from v6.3 to v8.0. I installed the migration tool. I tried to migrate a sample program in IBM mobilefirst v6.3 to v8.0 using the command mfpmigrate as shown below. Although the input to the command is a v6.3 program, it says that No supported platforms detected.
D:\MobileFirst>mfpmigrate client --in AdapterBasedAuth\apps\DoubleStepAuth --out
MigrationDemo
Error: An error occured during execution of command.
Error: No supported platforms were detected to migrate
Could you please help me resolve the above mentioned problems.
Thanks a lot in advance!
This is expected, as the sample application AdapterBasedAuthenticationHybridProject is not coming with any platforms. You need to first add a supported platform using MobileFirst Studio - iOS, Android etc...

Worklight, Adapter-Based Authentication for Android, app does not exist on the server

Im new to Worklight, Im trying to run the AdapterBasedAuthenticationProject from the tutorial of IBM worklight. Sample here
After deployed the auth-adapter and build the app, this app run ok on the Worklight console. However, when I make the android version and run on virtual machine, I can not get the secret data.
When I click on "Get secret data" button on android, error occurs
[ERROR ] FWLSE0332E: The application AdapterBasedAuthApp for the environment android does not exist on the server. Cannot register this client. [project AdapterBasedAuthenticationProject]
Image here
Looks like you are using JRE 1.8 (Java 8). Note that Worklight does not support Java 8 - downgrade to either Java 6 or 7.
Make sure you have:
Added the Android environment
Deployed the Android environment (right-click on the your-app\android folder and select Run As > Build and Deploy)
Those are crucial steps in order for the server to recognize a request originating from Android
Also, I don't understand what do you mean by "virtual machine", as it is not obvious from the screen shot. It just looks like a resized browser window.
I encountered similar issue today. In my case Java version was not the issue the issue was incorrect wlAppVersion number in wlclient.properties,
make sure it is same as in application-descriptor.xml.

IBM MobileFirst Operations Console does not work with HTTPS

We are unable to use MobileFirst 6.3 Operations Console with HTTPS. I reviewed a couple of links here and installed the last fix pack available for the server side (6.3.0.0-MFPF-Server-IF201504041503.zip).
We are having the same behavior explained in this link:
Unable to use HTTPS for MobileFirst Console 6.3
Need I install another fix or redeploy worklightconsole.war ?
Thanks in advance
You have not installed the last MFP 6.3 ifix as you can see in the messages.log file of your last zipped logs :
[4/15/15 12:00:34:754 ART] 00000012 ht.admin.listeners.WorklightManagementServletContextListener I FWLSE3199I: ========= MobileFirst Administration Services version 6.3.0.00-20141127-1357 started.
When you install a fix you have to do a minimal update of the console applications and the runtime applications with the Server config tools or the installation ant tasks. Otherwise no war files are updated.

Is analytics available with the MobileFirst Platform CLI developer edition?

I have installed the MobileFirst Platform CLI developer edition from https://developer.ibm.com/mobilefirstplatform/install/#clui
I am trying to investigate the analytics of the application, but this doesn't seem to be properly installed from here.
I am able to create a MFP server, start it and access the console. It doesn't have a link to the analytics in the top-right of the console as it does in the developer edition provided by Eclipse. Is this behaviour as expected or is there something missing?
I have tried installing this package twice. I am running on OSX 10.10
In the Liberty servers directory, /Users//.ibm/mobilefirst/6.3.0/server/wlp/usr/servers, I can see the Worklight folder. It has an _analytics.war file in it (which is different from my Eclipse install which has a worklight-analytics.war and worklight-analytics-service.war)
And in the messages.log file, I am getting messages saying that the web application _analytics is available.
But I then a number of messages with
com.worklight.analytics.api.AnalyticsHttpService.sendDataToURL target server response code: 404
Going directly to http://localhost:10080/_analytics responds with an "Authorization failed" message.
Update - Got it working
I uninstalled the dev edition CLI and downloaded the CLI from Passport Advantage and installed it from there. The analytics feature now seems to work. Although the link to it is still not available in the top right of the console.
I don't know if it's a different install package, or an issue on my Mac that I inadvertently resolved, but the analytics feature is now working
The issue here was that the version you originally downloaded was not up-to-date.
This will be corrected soon.
Proper mechanisms will be put in place so that this will not happen again.
Yesterday I downloaded and installed the publically available MobileFirst Platform 6.3 CLI from https://developer.ibm.com/mobilefirstplatform/install/#clui. I created a simple app which connects to the MFP server.
Result: Analytics works without any problem.
So you do not have to buy the product just to use the CLI with analytics.