Run Time error while starting application - An error has occurred while handling the request

0
I have created a new app in mendix modeler 5.3.1 and getting the below error during runtime. An error has occurred while handling the request. [User 'Anonymous_0f463c83-e764-4d2c-a0f0-4256dbb4fd90' with session id '652b406d-64b5-4f09-8bcc-5258cd2d876c' and roles 'Administrator'] com.mendix.core.CoreRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"amount":0,"sort":{"RequestNo":"asc"},"offset":0,"type":"RetrieveXPathAction","depth":0,"xpath":"//MyFirstModule.Request[id=\"2\"]"}', all database changes executed by this action were rolled back     at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:216) Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"amount":0,"sort":{"RequestNo":"asc"},"offset":0,"type":"RetrieveXPathAction","depth":0,"xpath":"//MyFirstModule.Request[id=\"2\"]"}', all database changes executed by this action were rolled back     at com.mendix.core.actionmanagement.CoreAction.processErrorState(SourceFile:342) Caused by: com.mendix.connectionbus.ConnectionBusRuntimeException: An exception has occurred for the following request(s):      ej (depth = 0): //MyFirstModule.Request[id="2"]     at com.mendix.m.a(SourceFile:58) Caused by: java.lang.IllegalArgumentException: Entity id should be not zero     at com.mendix.core.objectmanagement.SchemeManagerImpl.getObjectType(SourceFile:1511)     at com.mendix.core.objectmanagement.MendixIdentifier.getObjectType(SourceFile:142)     at com.mendix.dg.a(SourceFile:925)     at com.mendix.dg.a(SourceFile:392)     at com.mendix.dg.a(SourceFile:170)     at com.mendix.dg.a(SourceFile:143)     at com.mendix.dc.C(SourceFile:860)     at com.mendix.dc.u(SourceFile:229)     at com.mendix.dc.a(SourceFile:126)     at com.mendix.cr.b(SourceFile:116)     at com.mendix.cr.a(SourceFile:89)     at com.mendix.cv.a(SourceFile:71)     at com.mendix.m.a(SourceFile:44)     at com.mendix.a.a(SourceFile:238)     at com.mendix.core.action.user.RetrieveXPathRawAction.retrieveXPathRaw(SourceFile:135)     at com.mendix.core.action.user.RetrieveXPathRawAction.executeAction(SourceFile:75)     at com.mendix.core.action.user.RetrieveXPathAction.executeAction(SourceFile:52)     at com.mendix.core.action.user.RetrieveXPathAction.executeAction(SourceFile:17)     at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53)     at com.mendix.core.actionmanagement.CoreAction.doCall(SourceFile:291)     at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:276)     at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:205)     at com.mendix.core.component.InternalCore.retrieveXPathQuery(SourceFile:1326)     at com.mendix.core.component.InternalCore.retrieveXPathQuery(SourceFile:1305)     at com.mendix.core.component.InternalCore.retrieveXPathQuery(SourceFile:1440)     at com.mendix.jA.b(SourceFile:206)     at com.mendix.jA.a(SourceFile:106)     at com.mendix.pN$g.apply$mcV$sp(SourceFile:292)     at com.mendix.pN$g.apply(SourceFile:283)     at com.mendix.pN$g.apply(SourceFile:283)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(SourceFile:151)     at scala.util.Try$.apply(Try.scala:161)     at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(SourceFile:149)     at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498)     at akka.actor.ActorCell.invoke(ActorCell.scala:456)     at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)     at akka.dispatch.Mailbox.run(Mailbox.scala:219)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)     at java.lang.Thread.run(Thread.java:745)  
asked
4 answers
3

It seems something goes wrong when trying to retrieve your data. This doesn't mean it has to do with the starting of your app.

What's in your After startup or your homepage?

Caused by: java.lang.IllegalArgumentException: Entity id should be not zero 

could mean some wonky data in your database?

answered
1

My Home page consist of a data list with Entity Request. Once a request is selected and on the click of a Microflow button, it should take me to another page where details related to the request has to be displayed. I am getting this error on the click of microflow button.

answered
1

Did you add data to the database directly without using the mendix layer? You might take a look on this forum post.

There are similair problems posted on the forum, could do a search on the error Entity id should be not zero

answered
1

To simply check if it is a database related issue: create a new branch and open it, run it, and you will be asked to create the default database. You might end up with clean data and no longer have this issue.

answered