ibm-mobilefirst

Authorization failure calling MobileFirst Adapter

烂漫一生 提交于 2019-12-02 07:24:27
Not sure whether the same issue has been raised before (I tried to comment but was unable to do so - see link below) Anyway, I've just upgraded my development environment to MobileFirst Studio 7.1 and I'm having an issue with the adapters we created in 7.0. The adapters deploy without error but when I try to call WL.Client.invokeProcedure from my browser (I'm just testing as a web app at the moment) I get an error 500 in the browser console. I've tested the adapters using the "Run As ... > Call MobileFirst Adapter" menu option, and they work so this is only related to accessing the adapters

JSONStore difference between 'number' and 'integer' in searchFields

不想你离开。 提交于 2019-12-02 07:14:30
问题 I have a question about JSONStore searchFields. If I use number as the searchFields key and try to find data by WL.JSONStore.find method with 0 as the query, It will hit all data (not filtered). With the integer of the case above works fine. What's the difference between number and integer ? 回答1: JSONStore uses SQLite to persist data, you can read about SQLite Data Types here. The short answer is number will store data as REAL while integer will store data as INTEGER . If you create a

Migrated Iphone Build not connecting to Remote Server

心不动则不痛 提交于 2019-12-02 07:11:13
问题 Migrated worklight 6.1 project to Mobile First 7.1 Using IBM MobileFirst Platform Studio 7.1.0.00-20160801-2314 Build app to work remote Mobile First server by giving correct Server path and Context path. For local server both Android and Iphone builds are working fine but when I build for remote server, only Android build is working. In Iphone build WL.Client.connect is failing with giving error code 403 and for some times 200 Observed below thing by making worklightSettings include="true"

5.0.6 - Changing Adapter domain and port configuration after deploy through configuration - for QA and Testing team in development process

柔情痞子 提交于 2019-12-02 06:43:42
I have seen some questions about dynamic adapter configuration at run-time how to pass domain,port number,username and password from user input to worklight http adapter With a Worklight Adapter can I change the domain and port for a procedure at runtime? but my question is about adapter configuration after deploy on WL server 5.0.6 from external - not at runtime from code. Our scenario is that in our enterprise development and testing process requires the QA and Testing team to change the destination host and port for the adapters from mockup-backend to testing-backend to production-backend

Unable to initialize AdaptersAPI Object in MobileFirst V8.0 adapter which is leading to NullPointerException

夙愿已清 提交于 2019-12-02 06:23:13
问题 I am developing the adapter in MFP V8. Below is my code to validate username and password: import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; import com.ibm.mfp.adapter.api.AdaptersAPI; import com.ibm.mfp.adapter.api.ConfigurationAPI; import com.ibm.mfp.security.checks.base.UserAuthenticationSecurityCheck; import com

Worklight Apps pointing to different Worklight Servers

心不动则不痛 提交于 2019-12-02 05:45:52
I want to distribute my Worklight App via the App Store. The problem is, users will have to point to different Worklight Servers depending on what company they belong to, but I don't want my users to have visibility to the Worklight Server URL or have the ability to change it themselves (meaning I want to set worklightSettings in the application-descriptor.xml to false so "Custom Server URL" does not appear in the settings). So my idea is to initially point all my users to a default Worklight Server (in which they would only connect to the first time the start the app) which would be

Failed to deploy worklight adapter in Worklight

99封情书 提交于 2019-12-02 05:36:27
When deploying the BPM project in a development environment, everything works. However, when trying to move the project to the WAS application server, the adapter deployment fails (.war and .wlapp deployment passes successfully): Failed to deploy adapter 'BPMAdapter.adapter'. : Procedure 'getRest' in adapter 'BPMAdapter' requires security test 'BPMAdapter-securityTest' which is not defined in authenticationConfig.xml. We've verified the security test exists in authenticationConfig.xml, here's the portion of the tests, so it is, in fact present: <securityTests> <customSecurityTest name=

IBM Worklight - Cannot register to event source callback with an existing alias. The alias is already in use for event source

六眼飞鱼酱① 提交于 2019-12-02 04:49:46
I am using IBM Worklight 6.0.0 and testing on iOS 7 device. I have the following js error: Cannot register to event source callback with an existing alias: 'myPush'. The alias is already in use for event source 'PushEventSource'. On device, when I login, logout then login again. (error appear the second time) On the client side, my code is: if (WL.Client.Push){ WL.Client.Push.onReadyToSubscribe = function(){ WL.Logger.debug("onReadyToSubscribe"); WL.Client.Push.registerEventSourceCallback( "myPush", "PushAdapter", "PushEventSource", pushNotificationReceived); if (isPushSubscribed() == false) {

How to Increase Java Heap Space in Worklight Server?

回眸只為那壹抹淺笑 提交于 2019-12-02 04:41:48
I am getting JVM Heap space error in Worklight when tried to deploy Android Application. Failed to deploy the application to Worklight server: InputStream error: java.lang.OutOfMemoryError: Java heap space How to fix this issue. Any Help is appreciated. Idan Adar Not exactly a Worklight issue, but rather an Eclipse issue. See possible solutions at: How to increase Java Heap Size in Eclipse How to increase application heap size in Eclipse? java.lang.OutOfMemoryError: Java heap space Increase JVM max heap size for Eclipse For me the error related to the Heap size of the server, not the heap size

Worklight 6.1 Android Applicaiton renders all views with no widgets

孤街浪徒 提交于 2019-12-02 04:36:28
I've developed a hybrid application using Worklight 6.1 + Dojo 1.8. The application tests out fine using Chrome "Common & Android". When I deploy the device to my Nexus-7 Tablet running 4.3 all of my views appear together, and the dojo widget are simply text content. I reviewd a previous post titled : " Worklight mobile app doesn't load dojo mobile widgets on android 4.x devices " I'm experiencing the same situation, and I also, have followed the steps mentioned in several posting found across the Web. •Make sure to have all dojo required files under www folder... •Uncheck "Provide Library