An error occurred while initializing the Runtime: null

0
We have this error when run Mendix locally. I did modify the database entity and did export and import. Can anyone help?   com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: null     at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:328) Caused by: java.lang.NullPointerException: null     at com.mendix.connectionbus.mapping.MapperBase$.toKey$2(MapperBase.scala:60)     at com.mendix.connectionbus.mapping.MapperBase$.$anonfun$toUniqueConstraintsCache$2(MapperBase.scala:63)     at scala.collection.immutable.List.map(List.scala:283)     at com.mendix.connectionbus.mapping.MapperBase$.toUniqueConstraintsCache(MapperBase.scala:63)     at com.mendix.connectionbus.mapping.Mapper.updateCache(Mapper.java:635)     at com.mendix.connectionbus.modelsynchronization.analysis.DatabaseAnalyzer.analyzeAndFillMigrationCommands(DatabaseAnalyzer.java:112)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeAndFillMigrationCommands(ModelSynchronizationUpdater.java:144)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeAndRender(ModelSynchronizationUpdater.java:103)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeModel(SynchronizationManager.scala:192)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeCurrentDatabase(SynchronizationManager.scala:113)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyze(SynchronizationManager.scala:102)     at com.mendix.connectionbus.ConnectionBusImpl.collectDatabaseSynchronizationInformation(ConnectionBusImpl.java:304)     at com.mendix.basis.impl.MxRuntimeImpl.initializeConnectionBusAnyway(MxRuntimeImpl.java:405)     at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:310)     at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.java:49)     at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.java:30)     at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:129)     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:745)  
asked
1 answers
0

Actually, I noticed, in my domain model, I have Context entity, its Name used to be unique.

Somehowe, if I modified to be not unique. 

Later on, even if I re-add Unique to 'Name'. When the project is running, it will wipe out the 'Name' column and put them all to null.

 

Can anyone explain why?

answered