New to Mendix

0
Hi,  I m new to Mendix nd after I followed the training path to the new learning path, everything worked great up until the end where I get this error (see below) which I can't get a hold on.  Can someone help me with this?    Thank you,   An error has occurred while handling the request. [User 'Anonymous_139c480c-9125-4185-be1b-9240b3fc05eb' with session id '07c47ea1-8f62-4f9f-b292-05feacbd7660' and roles 'Administrator'] -------- com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"changes":"Map(Description -> Ceva, Price -> 100, Title -> Test, Duration -> 2)","type":"ChangeAction"}', all database changes executed by this action were rolled back     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:159) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"changes":"Map(Description -> Ceva, Price -> 100, Title -> Test, Duration -> 2)","type":"ChangeAction"}', all database changes executed by this action were rolled back     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"changes":"Map(Description -> Ceva, Price -> 100, Title -> Test, Duration -> 2)","type":"ChangeAction"}', all database changes executed by this action were rolled back     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:160) Caused by: java.lang.IllegalArgumentException: The given member name '' has no corresponding member in this object of type 'MyFirstModule.Course'     at com.mendix.basis.objectmanagement.MendixObjectImpl.getValue(MendixObjectImpl.java:228)     at com.mendix.basis.objectmanagement.meta.datavalidation.RangeValidation.determineValue(RangeValidation.java:140)     at com.mendix.basis.objectmanagement.meta.datavalidation.RangeValidation.determineMinValue(RangeValidation.java:133)     at com.mendix.basis.objectmanagement.meta.datavalidation.RangeValidation.isValid(RangeValidation.java:109)     at com.mendix.basis.objectmanagement.DataValidationUtil.validateObjectMember(DataValidationUtil.java:52)     at com.mendix.basis.action.user.Changer.validateMember$1(Changer.scala:123)     at com.mendix.basis.action.user.Changer.$anonfun$validateObject$3(Changer.scala:145)     at com.mendix.basis.action.user.Changer.$anonfun$validateObject$3$adapted(Changer.scala:145)     at scala.collection.immutable.Set$Set4.foreach(Set.scala:206)     at com.mendix.basis.action.user.Changer.validateObject(Changer.scala:145)     at com.mendix.basis.action.user.Changer.validateObject$(Changer.scala:119)     at com.mendix.basis.action.user.ChangeAction.validateObject(ChangeAction.scala:11)     at com.mendix.basis.action.user.ChangeAction.executeAction(ChangeAction.scala:41)     at com.mendix.basis.action.user.ChangeAction.executeAction(ChangeAction.scala:11)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)     at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:150)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155)     at com.mendix.basis.component.InternalCoreBase.change(InternalCoreBase.java:157)     at com.mendix.webui.requesthandling.RequestHandlingUtil$.$anonfun$validateChanges$4(RequestHandlingUtil.scala:81)     at scala.runtime.java8.JFunction0$mcZ$sp.apply(JFunction0$mcZ$sp.java:12)     at scala.util.Try$.apply(Try.scala:209)     at com.mendix.webui.requesthandling.RequestHandlingUtil$.$anonfun$validateChanges$2(RequestHandlingUtil.scala:81)     at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:241)     at scala.collection.Iterator.foreach(Iterator.scala:944)     at scala.collection.Iterator.foreach$(Iterator.scala:944)     at scala.collection.AbstractIterator.foreach(Iterator.scala:1432)     at scala.collection.IterableLike.foreach(IterableLike.scala:71)     at scala.collection.IterableLike.foreach$(IterableLike.scala:70)     at scala.collection.AbstractIterable.foreach(Iterable.scala:54)     at scala.collection.TraversableLike.flatMap(TraversableLike.scala:241)     at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:238)     at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)     at com.mendix.webui.requesthandling.RequestHandlingUtil$.validateChanges(RequestHandlingUtil.scala:71)     at com.mendix.webui.requesthandling.helpers.StateHandling.withState(StateHandling.scala:23)     at com.mendix.webui.requesthandling.helpers.StateHandling.withState$(StateHandling.scala:19)     at com.mendix.webui.actions.client.RegularClientAction.withState(RegularClientAction.scala:21)     at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$3(RegularClientAction.scala:44)     at scala.util.Try$.apply(Try.scala:209)     at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2(RegularClientAction.scala:44)     at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2$adapted(RegularClientAction.scala:42)     at com.mendix.webui.requesthandling.helpers.ContextHandling.$anonfun$inContext$4(ContextHandling.scala:41)     at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)     at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49)     at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25)     at com.mendix.webui.requesthandling.helpers.ContextHandling$ClientMonitoredAction.monitor(ContextHandling.scala:49)     at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:41)     at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:27)     at com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:21)     at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:24)     at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:19)     at com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:21)     at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$1(RegularClientAction.scala:42)     at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)     at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest(ProfileHandling.scala:14)     at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest$(ProfileHandling.scala:10)     at com.mendix.webui.actions.client.RegularClientAction.profileRequest(RegularClientAction.scala:21)     at com.mendix.webui.actions.client.RegularClientAction.execute(RegularClientAction.scala:39)     at com.mendix.webui.requesthandling.ClientRequestHandler.handleAction(ClientRequestHandler.scala:122)     at com.mendix.webui.requesthandling.ClientRequestHandler.processRequest(ClientRequestHandler.scala:99)     at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40)     at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:72)     at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:69)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:75)     at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:870)     at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.service(RuntimeHandler.java:42)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)     at org.eclipse.jetty.server.Server.handle(Server.java:561)     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:334)     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:104)     at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)     at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:243)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)     at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)     at java.lang.Thread.run(Thread.java:748)  
asked
3 answers
0

From the given stack trace, see my explanation below. 

The given member name '' has no corresponding member in this object of type 'MyFirstModule.Course'

The single quotes you see is a property of the Course class. It can also possibly be an associated object. 

But I am not sure why it is shown empty there. Because normally the error looks like:

The given member name 'testProject.UnusedIndex_IndexReport' has no corresponding member in this object of type 'testProject.IndexReport'

1. You would have changed something with your Course entity which is not properly reflected in your database.

3. Try deleting your database and run your application with new one. 

4. Or you can also check your domain model, the associations or other attributes for the course entity

5. It could also possibly be an Mendix issue 

The root cause of the issue is, as you already mentioned, an attribute need to be set and shown in the screen. 

But cannot be set because it is not present or null or empty.

Please also refer : https://forum.mendix.com/link/questions/8800

answered
0

Did you notice the error in stack trace:

Caused by: java.lang.IllegalArgumentException: The given member name '' has no corresponding member in this object of type 'MyFirstModule.Course'

Seems like you are trying to set a property which is not present.

answered
0

It can be that a property is not set right but I rechecked the training and i followed the exact steps from there. Even tried a different approach. 

 

For who is familliar with this learning path, this is the screen where it goes wrong. Everything else works normal. 

Thank you,

RObert 

answered