ibm-mobilefirst

Worklight 6.1 JPA errors in log: can not start application

允我心安 提交于 2019-12-11 18:55:19
问题 I have WL 6.1 Studio (on the top RAD 9.0.1) + WAS Liberty Profile 8.5.5.1 + WL 6.1 + Derby DB. At some point in time I started receiving errors and my WL application failed to start, from WAS log it seems that problem with JPA (or JPA classes loading conflict)? What can I check to fix it? Below is the relevant fragment from the log file (application fails to start) [4/1/14 12:29:56:077 VET] 00000020 com.ibm.ws.kernel.feature.internal.FeatureManager A CWWKF0011I: The server server1 is ready to

WL.Client.connect sending request

爷,独闯天下 提交于 2019-12-11 18:33:04
问题 I have two questions. First question: what is the difference between the request D/wl.request (16655): WLRequestSender.run in WLRequestSender.java:40 :: Sending request http://mywebseal:80/worklight/authorization/v1/clients/instance and request D/HttpPostRequestSender (3235): WLHybridRequestSender.run in WLHybridRequestSender.java:42 :: Sending request http://mywebseal:80/worklight/apps/services/api/<appname>/Android/init I'm implementing hybrid app that uses a login form through a reverse

Worklight 6.1 - error on sending notification to android device on real server

人走茶凉 提交于 2019-12-11 18:25:40
问题 I'm trying to send notification to android device. On my Worklight Studio I have succeeded to make subscription + notification. When I trying to do it on real worklight server(on liberty), I have succeeded to make subscription , but I can't send notification. I'm trying to send notification on browser like that: http://serverIp:9080/worklighttime/dev/invoke?adapter=PushAdapter&procedure=submitNotification&parameters=[%27user%27,%27text message%27] At the adapter I added: <procedure name=

IBM Worklight - “getSkinName is not defined”

好久不见. 提交于 2019-12-11 18:16:30
问题 I am trying to define a new android.tablet skin. I am testing with a Nexus 7 running KitKat. I did this: Added the Skin updated getSkinName() function I can see in LogCat the function getSkinName() being called However, there is a confusing message: "default" skin will be used, because skin named android.tablet was not found. Add a skin or change android/js/skinLoader.js to return existing skin. Am I missing something? 04-01 17:03:32.969: D/CordovaNetworkManager(4481): Connection Type: wifi

How to display a Google Map on Worklight App

允我心安 提交于 2019-12-11 18:09:18
问题 I have the following files in Worklight. I want to load the map on the worklight app. It is visible in the "Design" view but neither on simulator nor on emulator. Kindly help. //index.html <div id="pagePort"></div> //page1.html <script src="js/page1.js"></script> <div id="content"> <button type="button" onclick="loadPage5();">Click</button> </div> //page1.js function loadPage5() { var pagepath="page5.html"; pagesHistory.push("page1.html"); $("#pagePort").load(pagepath,function(){WL.Logger

Invoking a worklight adaptor from a stand alone java program

让人想犯罪 __ 提交于 2019-12-11 17:58:39
问题 I can invoke the worklight adaptor procedure in my machine by using the below URL. http://192.168.1.101:10080/AdaptorUI/dev/invoke?adapter=MySQLAdaptor&procedure=procedure1&parameters=[] Now, i want to invoke this from a java program. Code goes like this, try { URL myURL = new URL("http://192.168.1.101:10080/AdaptorUI /dev/invoke?adapter=MySQLAdaptor&procedure=procedure1&parameters=[]"); URLConnection myURLConnection = myURL.openConnection(); myURLConnection.connect(); } catch

INVALID_MODIFICATION_ERR windows phone

丶灬走出姿态 提交于 2019-12-11 17:01:24
问题 I have a problem with plugin org-apache-cordova-file on Windows Phone. I'm trying to download and save a pdf from server. It's downloading it, but windows doesn't save this file. I received a error code 9 (INVALID_MODIFICATION_ERR). I turn on all capabilities which was necessary for file storage. Maybe someone have any idea how to solve this problem? Edit:// I installed app on Android with same code and it works fine on this platform. I think there could be problem with some permissions to

IBM Worklight 6.0 - How to manipulate Cordova.js file?

谁都会走 提交于 2019-12-11 16:49:28
问题 I am having this same problem but when I try to change the cordova.js file within my Android environment, the file is being rewritten during build. Is there a way to permanently delete the last block of code? 回答1: You cannot alter the Cordova files. The "cordova_plugins.json" 404 error you're seeing is harmless and will not affect your application in any way. Newer Cordova releases no longer show this error. In a future Worklight release the bundled Cordova will be upgraded as well and this

IBM Worklight - Keep me logged in feature

天涯浪子 提交于 2019-12-11 16:36:27
问题 I am developing a mobile application using Worklight, in which when a user signs in after authentication he should not sign in again and again. Could you please tell me how to keep the user logged in? 回答1: Check out the 'Form based authentication in hybrid applications' project in the Getting Started page: http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#GS_security 回答2: There is also another feature of Worklight called 'heartbeat' which keeps your session alive by

Worklight 6.2 - Broadcast notification not being sent

非 Y 不嫁゛ 提交于 2019-12-11 16:18:20
问题 We are trying to run the sample app for push notifications with some modification to get it to send out a broadcast notification, but it is not getting sent. We have modified the PushBackendEmulator code as well. The emulator invokes the submitBroadCastNotification procedure successfully and the following result is returned: Server response :: / -secure-{"result":"Notification sent to all users","isSuccessful":true} / However, it appears the WL.Server.sendMessage method is not sending the