An error occurred while initializing the Runtime: null

0
We are getting following error when running the process locally. com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: null     at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:350) Caused by: java.lang.NullPointerException: null     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.shouldCreateColumn(ModelSynchronizationUpdater.java:228)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.validateConstraint(ModelSynchronizationUpdater.java:194)     at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)     at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)     at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)     at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1620)     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)     at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)     at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)     at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)     at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)     at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)     at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)     at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)     at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeConstraints(ModelSynchronizationUpdater.java:187)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.validateConstraints(ModelSynchronizationUpdater.java:144)     at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeAndRender(ModelSynchronizationUpdater.java:98)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeModel(SynchronizationManager.scala:176)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeCurrentDatabase(SynchronizationManager.scala:98)     at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyze(SynchronizationManager.scala:87)     at com.mendix.connectionbus.ConnectionBusImpl.collectDatabaseSynchronizationInformation(ConnectionBusImpl.java:307)     at com.mendix.basis.impl.MxRuntimeImpl.initializeConnectionBusAnyway(MxRuntimeImpl.java:427)     at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:332)     at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:277)     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:119)     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.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)   The similar error is already posted by someone in the Forum before but no resolution is provided.
asked
3 answers
4

I had the same issue.

You probably have added (unique) validation rules on an entity, AFTER you have added entries. The existing entries are in conflict with the new validation rules.

Solution: remove the validity rules, check you existing entries and delete/change the wrong ones. Than add the validations again.

PS
My validation appeared after an import of those entities. I removed all validations and keep it in control on own microflows.

 

Regards,

Rene

answered
0

My gut feeling would be to check your configuration and double check your database connection.

Regards,

Ronald

 

answered
0

Hi all,

i receive the same error by starting the service on service console. 

The starting of the service was working since yesterday without any issues. I made some small changes, commited them and deployed the package in my environment. After updating the app in the service console, the following message occurs:

 

An error occurred while initializing the Runtime: null

 

--------

 

com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: null

                at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:407)

 

Caused by: java.lang.NullPointerException: null

                at com.mendix.connectionbus.modelsynchronization.renderers.ChangeRenderer.createColumn(ChangeRenderer.java:349)

                at com.mendix.connectionbus.modelsynchronization.renderers.ChangeRenderer.renderCreateOrUpdateColumns(ChangeRenderer.java:272)

                at com.mendix.connectionbus.modelsynchronization.renderers.ChangeRenderer.renderCreatesOrUpdates(ChangeRenderer.java:135)

                at com.mendix.connectionbus.modelsynchronization.renderers.ChangeRenderer.getSqlCommands(ChangeRenderer.java:62)

                at com.mendix.connectionbus.modelsynchronization.ModelSynchronizationUpdater.analyzeAndRender(ModelSynchronizationUpdater.java:121)

                at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeMappingModel(SynchronizationManager.scala:238)

                at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeModel(SynchronizationManager.scala:228)

                at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeCurrentDatabase(SynchronizationManager.scala:144)

                at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.$anonfun$stateMachine$3(SynchronizationManager.scala:81)

                at com.mendix.connectionbus.modelsynchronization.SimpleStateMachine$SimpleStateMachine.effect(SynchronizationManager.scala:55)

                at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeCopying(SynchronizationManager.scala:185)

                at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.$anonfun$stateMachine$2(SynchronizationManager.scala:80)

                at com.mendix.connectionbus.modelsynchronization.SimpleStateMachine$SimpleStateMachine.effect(SynchronizationManager.scala:55)

                at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyzeSourceStructureForCopy(SynchronizationManager.scala:153)

                at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.$anonfun$stateMachine$1(SynchronizationManager.scala:79)

                at com.mendix.connectionbus.modelsynchronization.SimpleStateMachine$SimpleStateMachine.effect(SynchronizationManager.scala:55)

                at com.mendix.connectionbus.modelsynchronization.SynchronizationManager.analyze(SynchronizationManager.scala:134)

                at com.mendix.connectionbus.ConnectionBusImpl.collectDatabaseSynchronizationInformation(ConnectionBusImpl.java:358)

                at com.mendix.basis.impl.MxRuntimeImpl.initializeConnectionBusAnyway(MxRuntimeImpl.java:484)

                at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.java:386)

                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:502)

                at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)

                at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)

                at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)

                at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)

                at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)

                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)

                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)

                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)

                at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)

                at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)

                at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)

                at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)

                at java.base/java.lang.Thread.run(Thread.java:834)

 

@Rene: I followed your hint, regarding the validation rules, but i have still the same error.

Any other suggestions?

answered