M2EE error after removing the Administration module
1
I removed the Administration module, and then tried to restart the TEST environment. Then this error occured: 2022-02-08T00:16:13.302619 [APP/PROC/WEB/0] ERROR - M2EE: An error occurred while initializing the Runtime: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.User[System.UserRoles/System.UserRole/Name=$adminRole]","amount":-1,"variables":{"adminRole":"Administrator"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back 2022-02-08T00:16:13.302641 [APP/PROC/WEB/0] ERROR - M2EE: com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.User[System.UserRoles/System.UserRole/Name=$adminRole]","amount":-1,"variables":{"adminRole":"Administrator"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back 2022-02-08T00:16:13.302647 [APP/PROC/WEB/0] at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:299) 2022-02-08T00:16:13.302653 [APP/PROC/WEB/0] Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.User[System.UserRoles/System.UserRole/Name=$adminRole]","amount":-1,"variables":{"adminRole":"Administrator"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back 2022-02-08T00:16:13.302679 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:84) 2022-02-08T00:16:13.302749 [APP/PROC/WEB/0] Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.User[System.UserRoles/System.UserRole/Name=$adminRole]","amount":-1,"variables":{"adminRole":"Administrator"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back 2022-02-08T00:16:13.302768 [APP/PROC/WEB/0] at com.mendix.util.classloading.Runner.withContextClassLoader(Runner.java:23) 2022-02-08T00:16:13.302828 [APP/PROC/WEB/0] Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.User[System.UserRoles/System.UserRole/Name=$adminRole]","amount":-1,"variables":{"adminRole":"Administrator"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back 2022-02-08T00:16:13.302882 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:153) 2022-02-08T00:16:13.302985 [APP/PROC/WEB/0] Caused by: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s): 2022-02-08T00:16:13.303022 [APP/PROC/WEB/0] InternalXPathTextGetRequest (depth = 0): //System.User[System.UserRoles/System.UserRole/Name=$adminRole] 2022-02-08T00:16:13.303065 [APP/PROC/WEB/0] at com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.scala:33) 2022-02-08T00:16:13.303137 [APP/PROC/WEB/0] Caused by: com.mendix.core.CoreRuntimeException: The provided entity id '49' has no corresponding meta object name 2022-02-08T00:16:13.303188 [APP/PROC/WEB/0] at com.mendix.basis.objectmanagement.SchemeManagerImpl.$anonfun$getMetaObject$2(SchemeManagerImpl.scala:199) 2022-02-08T00:16:13.303210 [APP/PROC/WEB/0] at scala.Option.getOrElse(Option.scala:201) 2022-02-08T00:16:13.303261 [APP/PROC/WEB/0] at com.mendix.basis.objectmanagement.SchemeManagerImpl.getMetaObject(SchemeManagerImpl.scala:199) 2022-02-08T00:16:13.303278 [APP/PROC/WEB/0] at com.mendix.basis.objectmanagement.SchemeManagerImpl.getMetaObject(SchemeManagerImpl.scala:31) 2022-02-08T00:16:13.303363 [APP/PROC/WEB/0] at com.mendix.basis.objectmanagement.MendixIdentifier$.of(MendixIdentifier.scala:65) 2022-02-08T00:16:13.303458 [APP/PROC/WEB/0] at com.mendix.basis.component.InternalCore.createMendixIdentifier(InternalCore.scala:50) 2022-02-08T00:16:13.303466 [APP/PROC/WEB/0] at com.mendix.connectionbus.data.InternalDataTable.mapOtherGuidColumn(InternalDataTable.java:351) 2022-02-08T00:16:13.303469 [APP/PROC/WEB/0] at com.mendix.connectionbus.data.InternalDataTable.mapOtherGuids(InternalDataTable.java:337) 2022-02-08T00:16:13.303505 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.ResultCreator.convertIdValuesToIdentifiers(ResultCreator.scala:261) 2022-02-08T00:16:13.303534 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.ResultCreator.recurse$1(ResultCreator.scala:247) 2022-02-08T00:16:13.303618 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.ResultCreator.convertIdAndSetSecurity(ResultCreator.scala:256) 2022-02-08T00:16:13.303631 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.ResultCreator.getResult(ResultCreator.scala:38) 2022-02-08T00:16:13.303644 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.QueryRequestExecutor.execute(QueryRequestExecutor.scala:27) 2022-02-08T00:16:13.303725 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.DataStoreCaller.$anonfun$processOqlGetRequest$1(DataStoreCaller.scala:35) 2022-02-08T00:16:13.303735 [APP/PROC/WEB/0] at scala.Option.map(Option.scala:242) 2022-02-08T00:16:13.303792 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.DataStoreCaller.processOqlGetRequest(DataStoreCaller.scala:32) 2022-02-08T00:16:13.303844 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.DataStoreCaller.$anonfun$getResult$1(DataStoreCaller.scala:26) 2022-02-08T00:16:13.303880 [APP/PROC/WEB/0] at scala.collection.StrictOptimizedIterableOps.flatMap(StrictOptimizedIterableOps.scala:117) 2022-02-08T00:16:13.303910 [APP/PROC/WEB/0] at scala.collection.StrictOptimizedIterableOps.flatMap$(StrictOptimizedIterableOps.scala:104) 2022-02-08T00:16:13.304045 [APP/PROC/WEB/0] at scala.collection.immutable.ArraySeq.flatMap(ArraySeq.scala:35) 2022-02-08T00:16:13.304153 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.DataStoreCaller.getResult(DataStoreCaller.scala:26) 2022-02-08T00:16:13.304184 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.GetRequestHandler.doOtherRequests(GetRequestHandler.scala:68) 2022-02-08T00:16:13.304246 [APP/PROC/WEB/0] at com.mendix.connectionbus.retrieve.GetRequestHandler.doRequest(GetRequestHandler.scala:29) 2022-02-08T00:16:13.304294 [APP/PROC/WEB/0] at com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.scala:28) 2022-02-08T00:16:13.304353 [APP/PROC/WEB/0] at com.mendix.connectionbus.ConnectionBusImplBase.doRequest(ConnectionBusImplBase.java:215) 2022-02-08T00:16:13.304376 [APP/PROC/WEB/0] at com.mendix.basis.action.user.RetrieveXPathRawAction.executeAction(RetrieveXPathRawAction.scala:65) 2022-02-08T00:16:13.304418 [APP/PROC/WEB/0] at com.mendix.basis.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.scala:39) 2022-02-08T00:16:13.304422 [APP/PROC/WEB/0] at com.mendix.basis.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.scala:11) 2022-02-08T00:16:13.304457 [APP/PROC/WEB/0] at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 2022-02-08T00:16:13.304487 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 2022-02-08T00:16:13.304568 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48) 2022-02-08T00:16:13.304580 [APP/PROC/WEB/0] at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.scala:25) 2022-02-08T00:16:13.304592 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.$anonfun$runMonitoredAction$1(CoreActionHandlerImpl.scala:59) 2022-02-08T00:16:13.304620 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionMonitoring$.$anonfun$monitor$1(ActionMonitoring.scala:49) 2022-02-08T00:16:13.304628 [APP/PROC/WEB/0] ERROR: Executing start did not succeed: result: 1, message: An error occurred while initializing the Runtime: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.User[System.UserRoles/System.UserRole/Name=$adminRole]","amount":-1,"variables":{"adminRole":"Administrator"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back, caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.User[System.UserRoles/System.UserRole/Name=$adminRole]","amount":-1,"variables":{"adminRole":"Administrator"},"depth":0,"offset":-1,"sort":{},"type":"RetrieveXPathAction"}', all database changes executed by this action were rolled back 2022-02-08T00:16:13.304676 [APP/PROC/WEB/0] at com.mendix.util.classloading.Runner.withContextClassLoader(Runner.java:19) 2022-02-08T00:16:13.304775 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionMonitoring$.monitor(ActionMonitoring.scala:49) 2022-02-08T00:16:13.305399 [APP/PROC/WEB/0] ERROR: Starting application failed: Application start failed 2022-02-08T00:16:13.305552 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:59) 2022-02-08T00:16:13.305605 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:46) 2022-02-08T00:16:13.305632 [APP/PROC/WEB/0] at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.scala:25) 2022-02-08T00:16:13.305674 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:80) 2022-02-08T00:16:13.305688 [APP/PROC/WEB/0] at com.mendix.util.classloading.Runner.withContextClassLoader(Runner.java:19) 2022-02-08T00:16:13.305918 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:79) 2022-02-08T00:16:13.305952 [APP/PROC/WEB/0] at com.mendix.basis.action.InternalXPathQuery.execute(InternalXPathQuery.scala:30) My own research so far: There was no Administration.Account object in the database before the new version was deployed. I have tried to figure out what “The provided entity id '49' has no corresponding meta object name” means, but don't understand it Does anyone have an idea how to fix thi
asked
Jesper Peterse
3 answers
0
The messsage on the entity id 49 probably refers to a removed table (entity) that was not cleared completely and the record is still in a table that holds a record for all entities in your model.
What happens if you restore the version with the module, will it then start again?
If so then remove the module again and see if the issue will resolve itself locally.
If not it might help to try to start the app with a new empty database and if that works it depends on the data in the app. If this is needed or not (for example because you’re not in production with your app yet). If the data is neede you’ll need some help from support to fix the database error manually.
[UPDATE]
To find the entity id’s in the database that causes the issue (numebr 49) you could try to query the database directly with this query to find the name and id it is linked to:
SELECT b.entity_name, a.short_id mendix from mendixsystem$entityidentifier as a
RIGHT OUTER JOIN mendixsystem$entity as b
ON a.id = b.id
Be aware that this was on old mendix version, names miht have changed or locations so have a look at your db to see if this is still valid.
answered
Erwin 't Hoen
0
If you have demo users set up in your application (set as accounts) then on startup mendix tries to create those accounts.
Since you removed the module, Mendix can’t find the table anymore. might this be the issue?
answered
David Verstricht
0
I tried all the above fixes, but none did the trick. What fixed the problem was going back a few revisions and not removing the Administration.Account module.
Deleting the Administration.Account module in another app gave the same issues, perhaps it gives issues to delete this module