Read access denied for member System.User_Language

Hi, We have an issue where a buyer or seller creates an account with the right userrole while he's logged in with a Guest userrole. After creating and commiting this new account with a default language the user will be redirected to a custom login page with the login widget. After loging in with the new credentials the user gets redirected to the default Mendix page instead of the first page of his environment. But the new user is logged in, but in the console the error message shows the following: com.mendix.core.objectmanagement.SecurityRuntimeException: Read access denied for member 'System.User_Language' of object 'MyFirstModule.Verkoper'     at com.mendix.core.objectmanagement.MendixObjectMemberImpl.checkReadAccess(     at com.mendix.core.objectmanagement.MendixObjectMemberImpl.getValue(     at com.mendix.core.objectmanagement.MendixObjectImpl.getValue(     at com.mendix.core.session.User.getLanguage(     at com.mendix.webui.actions.client.GetSessionDataAction.execute(GetSessionDataAction.scala:77)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:312)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:302)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:302)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:143)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:145)     at scala.util.Try$.apply(Try.scala:192)     at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:139)     at$class.aroundReceive(Actor.scala:465)     at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:135)     at     at     at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)     at     at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)     at scala.concurrent.forkjoin.ForkJoinTask.doExec(     at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(     at scala.concurrent.forkjoin.ForkJoinPool.runWorker(     at   When the user uses the same credentials in the second screen, the user will be redirected to the right page and everything is okay. The next time the user uses his login credentials there are no problems. Only the first time directly after creating his new account. When I use a LogOff Java action after creating the new account, the user is redirected to the home page of the application, but when the user go's to the login page and uses his credentials it works directly with no issues.   Can someone help me with this issue? My collegue thinks it has something to do that the application doesn't see the right userroles after login with an account that was created by a Guest role in the previous step. The usersole is set in the Microflow and the new user has the right userrole before commit.   Hope to hear from you!
1 answers

This seems the same problem as this post:

Lucky for you he also builded a sollution. Try his sollution to see if it solves your problem also.