Menu
  • HOME
  • TAGS

MobileFirst Error: Cannot perform this operation on removed entity

Tag: mobilefirst,mobilefirst-server,mobilefirst-studio

I am currently working with an IBM consultant to upgrade our Mobile App from Worklight 5.0.6 to MobileFirst 7. I am deploying locally. I am occasionally getting this error message that prevents me from deploying to the console:

[2015-05-28 11:35:16] Deploying application 'MyGPCMobile' with environment 'iphone' to MobileFirst Server... 
[2015-05-28 11:35:18] Failed to deploy application 'MyGPCMobile' to MobileFirst Server: : Cannot perform this operation on removed entity "com.ibm.worklight.dataaccess.jpa.entity.DifferentialDirectUpdateEntity-com.ibm.worklight.dataaccess.jpa.entity.DifferentialDirectUpdateEntity-117". 

The consultant suggested I post this here to get an answer as to why this keeps occurring.

I've tried the following things: If I delete the app from the console and deploy the first time, it seems to work. Subsequent deploys are subjected to generate the error message.

I've also attempted to delete the server and restart Eclipse which seems to be a work around for a while, but then the error returns.

I've also deleted the derby database directory which also seemed to be a workaround momentarily.

I would like to know what is causing this so that it doesn't continue to happen.

Best How To :

Edit: fix available starting iFix release 7.0.0.0-IF201506021502

This has been identified as a defect:
75848: PI42074 EXCEPTION WHEN DEPLOYING IOS ENVIRONMENT CONTAINING A SKIN

Local workaround is as mentioned in the question.
To receive a fix, please open a PMR (support ticket).

MobileFirst: adapter returned data containing special characters

jquery,twitter-bootstrap,webview,mobilefirst,mobilefirst-adapters

I had similar issue and the problem was the Liberty profile configuration on my Windows 2012 server. The data returned by the SQL adapter was presented in the phone as gibberish (wrong characters). The data wasn't native english of course. I assume your production server is indeed Liberty profile v8.5+....

install MobileFirst 7.0 server (for test and production environment) with IBM Installation Manager

mobilefirst,mobilefirst-server

Only IBM Customers and Business Partners can download the server components. These components can be download from either the IBM Passport Advantage website or the IBM Fix Central website. Download IBM Installation Manager Download the GM version of the release you'd like to install Download the latest iFix version of...

Recommended way to force MobileFirst-CLI to use Java 6?

java,osx,mobilefirst,mobilefirst-cli

The best approach here is to have a simple wrapper script as mentioned previously. This keeps you safe from updates. Also, be sure to remove the PATH setting in "/etc/profile". Its quite simple... In Bash: #!/bin/bash #-------------------------------------------------------------------- # Simple multi-MFP launcher script # Karl Bishop <[email protected]> #-------------------------------------------------------------------- #-- Set specific...

MFP CLI v7.0 cannot build-deploy project initially created with MFP Studio v7.0

mobilefirst,mobilefirst-studio,mobilefirst-cli

Did you make sure to place a .gitkeep file in the java-adapter-folder\lib folder? The folder by default is empty and GIT does not preserve empty folders, and so when downloading this project from GIT the folder will be missing, but it may be required for the build process. Try adding...

Disabling default security using @OAuthSecurity(enabled=false)

mobilefirst,mobilefirst-adapters,mobilefirst-server

Starting MFPF 7.0 there are two authentication models: Classic: as you know it from pre-7.0 versions OAuth-based If your adapter is developed in the Classic way, it continues to work as before. If you want a procedure to have no security defined for it, not even the default internal one...

IBM MobileFirst Plugin should use a background thread

objective-c,cordova,mobilefirst

You cannot do this on your own with the supplied plug-ins. These warnings are issued by iOS but are harmless. We'll take a look, but this is harmless, unless you actually see a real problem (which I doubt right now that you do)....

MobileFirst 7.0 Application Center user management

mobilefirst,mobilefirst-appcenter

Finaly I got it working, the error was that I added the group name into <!-- Declare the IBM Application Center Console application. --> <application id="appcenterconsole" name="appcenterconsole" location="appcenterconsole.war" type="war"> but correctly is to add here: <!-- Declare the IBM Application Center Services application. --> <application id="applicationcenter" name="applicationcenter" location="applicationcenter.war" type="war"> So...

MobileFirst InstallationManager hangs

mobilefirst,mobilefirst-installation

We were using v1.7 of Installation Manager, installed as adminsitrator. We moved up to v1.8.2.1 installed as our user. It now works. Whether that's a version problem or an ownership problem I can't say....

MobileFirst OAuth and Logout

mobilefirst

With OAuth, logout 'works' differently. See the following user documentation topic (search for "logout"): http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.dev.doc/dev/c_oauth_security_model.html?lang=en The login/logout API: The WLClient login/logout API enables a user to log in to and log out of a specific realm, by updating the server side security state. However, in the new OAuth-based security model,...

Beacon trigger actionPayload available actions?

ibeacon,mobilefirst

If you use as-is the following function in iOSNativeiBeacons/iOSNativeiBeaconsLibrary/WLBeaconsLocationManager.m, then beacon-trigger's actionPayload can either be a local alert or a call to an adapter procedure. The details of adapter call are given next. -(void) fireTriggerAction:(WLBeaconTrigger *)beaconTrigger forWLBeacon:(WLBeacon *)wlBeacon { NSString *branchName = [wlBeacon.customData objectForKey:@"branchName"]; NSString *alertMessage = [beaconTrigger.actionPayload objectForKey:@"alert"]; if(alertMessage...

Is there any way to exclude library folders in worklight build-process?

worklight,mobilefirst

Unfortunately no, the Studio/CLI tools do not provide the ability to not-rebuild certain artifacts in a build process. Each build request will re-request all artifacts and re-generate the resulting .wlapp/native folder. Sounds like a good feature request: developer.ibm.com/mobilefirstplatform/help On a personal note: I would just not use Sencha :-) in...

How to implement “remember me”-like functionality?

mobilefirst

You could do something like this (very rough idea): As part of your authentication flow, if the user has passed the authentication - store in either localStorange or JSONStore a "token" that will basically state that the user has previously logged in. Also save in the server's database using userPrefs...

Error Deploying MobileFirst Server Configuration

mobilefirst,mobilefirst-server

About the error message: /home/worklight/.worklight/server-configuration-tool/Configuration_MobileFirst_7‌​/MobileFirst_7.xml:71: The element , is missing. A default user cannot be created for this server. This happens if your Liberty is configured for LDAP. In that case, the server configuration tool is not able to add a user (it can add users if Liberty has a...

MobileFirst Error: Cannot perform this operation on removed entity

mobilefirst,mobilefirst-server,mobilefirst-studio

Edit: fix available starting iFix release 7.0.0.0-IF201506021502 This has been identified as a defect: 75848: PI42074 EXCEPTION WHEN DEPLOYING IOS ENVIRONMENT CONTAINING A SKIN Local workaround is as mentioned in the question. To receive a fix, please open a PMR (support ticket)....

MFP Server: Specifying a particular interface on a multi-homed host

mobilefirst-server

During the startup of the runtimes "localhost" is always used for the JMX connection. It is a defect, an APAR will be created.

How to invoke Java adapter procedure from JS adapter procedure in MobileFirst Platform 7.0?

worklight,mobilefirst,worklight-adapters,mobilefirst-adapters

In general the new RESTful JAX-RS (Java-based) adapters in version 7.0 operate independently of the old JavaScript-style adapters. I'm not aware of an in-process API to call them, so you would have to call them like any other RESTful service using WL.Server.invokeHttp (i.e. like how you might typically do this...

MobileFirst Hybrid App. Change mainFile to a subdirectory

mobilefirst

The answer is no. The mainFile value must be the index.html that is placed in the common folder. Changing this value (which we would actually love to remove it from application-descriptor.xml so you won't ever see it and be able to touch it) is unsupported. The only other option for...

IBM Security Access Manager Integration with MobileFirst 6.3

mobilefirst,isam

Read the help for this product: http://www-01.ibm.com/support/docview.wss?uid=swg24034222 The integration package includes sample applications and adapter to validate successful HTTP header or LTPA token integration, single sign-on to backend data sources using Worklight Adapters, OAuth authentication, context/risk-based access, Device Single Sign-On and MobileFirst Platform Foundation generated Certificate Authentication. The sample applications...

MobileFirst Platform native iOS app building have error while building .wlapp

ios,ant,mobilefirst

Sorry For the Wrong answer first. You were using the wrong code to generate the .wlapp file the ant script is below. <project default="change"> <target name="change"> <taskdef resource="com/worklight/ant/defaults.properties"> <classpath> <pathelement location="worklight-ant-builder.jar"/> </classpath> </taskdef> <native-app-builder sourceFolder="C:\Workspace\Test\apps\Test" DestinationFolder="bin" worklightServerHost="http://111.111.111.111:10080"> </native-app-builder>...

MobileFirst 7.0.0 application on Windows Phone 8.1 error from Weinre

windows-phone-8.1,mobilefirst,weinre

With a new fresh application all worked fine. The investigation with console logs showed that the error came from WL.Client.connect() call. Anyway I deleted windowsphone8 enviroment, re-created and worked now it works. Also the line connectOnStartup: false, was commended I've reenabled but I don't think this was the problem.

MobileFirst 7.0 App giving “ERROR itms-90035” on submission to apple app store

ios,mobilefirst

This is happening due to recent changes Apple has done. To fix it: remove (do not delete) the buildtime.sh file from the target configuration in Xcode (in Build Phases > Copy Bundle Resources). Read the following for more information: Recent changes to Apple’s app submission review process IBM Worklight/MobileFirst 6.x/7.0...

How to get MobileFirst 6.3 server for free for the purpose of learning

mobilefirst,mobilefirst-server

No. As you mentioned, the server component is not free and you must purchase it from IBM. This is really not a question for Stack Overflow....

Mobilefirst 7.0 soapadapter fails calling no argument operatio

soap,mobilefirst,mobilefirst-adapters

I examined the WSDL that you've provided and for the recuperaVariabili service the input parameter is defined as: <element name="recuperaVariabili"> <complexType/> </element> I believe that the empty complexType is what confuses that adapter generator as it might expect some elements/attributes to be defined for that complex type. I must say...

IBM MobileFirst/Worklight JSON

json,soap,mobilefirst,mobilefirst-adapters

Yes all the responses from Worklight adapter will be converted to JSON before reaching the Client device (Mobile,Web browser,etc) To understand the structure and working of adapters more clearly just read the link below Overview of worklight Adapters Next why Json always than XML ? JSON has several advantages...

Cannot compile Java adapter using adapter-builder task (ANT) in MFP v7

java,ant,mobilefirst,mobilefirst-adapters

You are correct that the JEE library is missing. Could it be that you did not declare it in the Ant task? See this user documentation topic: Building applications and adapters > Building an adapter building a Java adapter without libs <path id="my.path"> <pathelement path="/opt/IBM/Worklight/WorklightServer/worklight-jee-library.jar"/> </path> <adapter-builder folder="adapterRootFolder" destinationfolder="destination-folder" classpathref="my.path"/>...

Any way to write Ant Script to enter multiple input from directory and run them in parallel

ant,mobilefirst

Its got fixed. I used below code to complete the objective. <target name="build-adapter-parallel"> <for param="check" parallel="true"> <path> <dirset dir="/Users/admin/Documents/workspace1/MyTime/adapters" includes="*"/> </path> <sequential> <echo> value of @{check}</echo> <adapter-builder folder="@{check}" destinationfolder="/Users/admin/Documents/workspace1/MyTime/bin" classpathref="base.path"/> </sequential> </for> </target> ...

MobileFirst 7.0 Server stuck “Deploying” when trying to deploy a .wlapp file to Tomcat

mobilefirst,mobilefirst-server,mobilefirst-console

Finally this issue was solved by setting max_allowed_packet = 30M and binlog_format = mixed in mysql's my.cnf file....

IBM MobileFirst 7.0 Server : No runtime environment deployed in this server

mobilefirst,mobilefirst-server

The cause to the failure may be due to an ssoExpiredLoginContextsCleanupTask error which can cause the server to not load: Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB...

More on PUT HTTP Adapter in MobileFirst Platform

mobilefirst,mobilefirst-adapters

I think you are confusing how you invoke/test the adapter, with what verb it uses on the back-end system it is calling. You are testing/invoking it using GET, but the adapter is then calling your backend system - http://kenatibm.cloudant.com/backendsystem - using PUT. This is broadly the same explanation as Dave...

Preview Mode on Production Server

mobilefirst,mobilefirst-studio

There is no more Preview mode in a production environment, however there was a bug in the initial release of v7.0 where the preview button was still available while the underlying code is no longer there. Make sure you to apply the latest iFix release to your server installation. It...

IBM MobileFirst Platform ClassPath error during installation

mobilefirst,mobilefirst-server

Generally it means that the worklight-jee-library.jar shared library referenced in the server.xml (in each MFP runtime application) is not found. Check the path of this library in the server.xml and that the jar file is present in this path.

MobileFirst OAuth Logout, cached OAuth indentity

mobilefirst

The logout is completed by calling WLAuthorizationManager.obtainAuthorizationHeader(); // no parameters My error was in thinking we could selectively be removed from a single Realm, instead we in effect remove our entire OAuth token....

MobileFirst Operation Analytics Console - Not linked to MobileFirst Admin Operational Console

mobilefirst,mobilefirst-server,mobilefirst-analytics

You don't mention what version of MobileFirst Platform Foundation you are using - for purposes of this answer, I am assuming 7.0. The way you set the JNDI properties on WAS is illustrated here. If you are in the "Environment entries for Web modules" section, you're in the right place...

How to use time delay in MobileFirst adapters

timer,delay,mobilefirst,mobilefirst-adapters

You can't do this in the adapter logic, but you can do this in the client logic... Add the required delay implementation in the adapter procedure request's success callback function so that it won't get processed right away, if that's what you really want to do (which would be strange,...

Mobile First - How to segmentate logs depending on the session

worklight,mobilefirst,java.util.logging,websphere-liberty,mobilefirst-server

This is not related to MobileFirst but to the underlying application server that handles the logs creation. AFAIK not WebSphere full profile nor WebSphere Liberty profile provide the ability to separate logs based on their contents. What you could do is create your own tool/script that will go over the...

Read parameters from worklight.properties in html pages

worklight,mobilefirst

Make use of adpaters in this Scenario. Have an HTTP adapter. In that use the adaptername.js file to create variable and assign your URL. Have a procedure which send these values to your client side. At the start of the application try to connect to your adapter and try to...

MobileFirst app build - failed creating temporary directory to build adapter

ant,mobilefirst

This problem was caused by referencing nonexistent adapter. I removed one of deprecated adapters from the project but forget to edit build.xml file.

Unable to Resolve PKIX Path Building Failed

https,certificate,mobilefirst,mobilefirst-adapters

The instructions you've followed are incorrect when using MobileFirst Platform. Follow the steps described in this user documentation topic (for Worklight 6.2, but valid for MFPF 6.3 and above as well). Do not export the certificate from a browser because this action adds browser metadata and other artifacts which shouldn't...

How to run a timer in the Background

mobilefirst,worklight-runtime

It is not possible in MobileFirst Platform Foundation, and in general, to have an application uninstall itself. At the very least you could write a service in Android to do the timer, but not in iOS (maybe only in iOS 8 with app extensions), but still - your scenario is...

Read adapter procedure requestTimeoutInSeconds from worklight.properties file

worklight,mobilefirst,worklight-adapters,mobilefirst-adapters

That is indeed one of the parameters that you cannot 'externalize' to worklight.properties in order to read its value from a variable. You can submit a feature request here: http://developer.ibm.com/mobilefirstplatform/help...