Connecting to local PostgreSQL

0
Hello. I'm trying to connect postgreSQL to the Mendis app. I’m getting the following error even though I did everything according to the documentation. I have noticed that other questions addressing the same issue have not been resolved.   com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: Either.right.get on Left     at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:351) Caused by: java.util.NoSuchElementException: Either.right.get on Left     at scala.util.Either$RightProjection.get(Either.scala:696)     at com.mendix.connectionbus.connections.jdbc.implementations.postgresql.PostgreSqlDataStoreConfigurator.createDefaultDataSource(PostgreSqlDataStoreConfigurator.java:56)     at com.mendix.connectionbus.connections.jdbc.implementations.postgresql.PostgreSqlDataStoreConfigurator.createDataSource(PostgreSqlDataStoreConfigurator.java:81)     at com.mendix.connectionbus.connections.jdbc.JdbcDataStoreConfigurator.initialize(JdbcDataStoreConfigurator.java:64)     at com.mendix.connectionbus.connections.jdbc.ConnectionManager.<init>(ConnectionManager.java:29)     at com.mendix.connectionbus.ConnectionMinibus.connectionManager$lzycompute(ConnectionMinibus.scala:44)     at com.mendix.connectionbus.ConnectionMinibus.connectionManager(ConnectionMinibus.scala:43)     at com.mendix.connectionbus.ConnectionBusImpl.initialize(ConnectionBusImpl.java:317)     at com.mendix.basis.impl.MxRuntimeImplBase.initializeConnectionBus(MxRuntimeImplBase.java:503)     at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:317)     at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.java:48)     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:127)     at org.eclipse.jetty.server.Server.handle(Server.java:501)     at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)     at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:272)     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)     at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)     at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)     at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)     at java.base/java.lang.Thread.run(Thread.java:834)      
asked
1 answers
0

This should do it:

The database url has no protocol, no ‘http;//’

Also make sure you use the correct port for postgress. Default is 5432, you use 5433. 5433 can only work if you have configured your postgress server specifically to use 5433.

 

answered