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.
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).