Cant initialize Runtime: None.get

0
I am trying to start a Mendix app with a mssql server and I am running into an error when initializing the app.   Here is by database config:   Here is my stack trace:   An error occurred while initializing the Runtime: None.get -------- com.mendix.m2ee.api.AdminException: An error occurred while initializing the Runtime: None.get at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:273) Caused by: java.util.NoSuchElementException: None.get at scala.None$.get(Option.scala:627) at scala.None$.get(Option.scala:626) at com.mendix.connectionbus.connections.jdbc.implementations.sqlserver.SqlServerDataStoreConfigurator.createDefaultDataSource(SqlServerDataStoreConfigurator.java:83) at com.mendix.connectionbus.connections.jdbc.implementations.sqlserver.SqlServerDataStoreConfigurator.createDataSource(SqlServerDataStoreConfigurator.java:119) at com.mendix.connectionbus.connections.jdbc.JdbcDataStoreConfigurator.initialize(JdbcDataStoreConfigurator.java:66) at com.mendix.connectionbus.connections.jdbc.ConnectionManager.<init>(ConnectionManager.java:34) at com.mendix.connectionbus.ConnectionMinibus.connectionManager$lzycompute(ConnectionMinibus.scala:53) at com.mendix.connectionbus.ConnectionMinibus.connectionManager(ConnectionMinibus.scala:52) at com.mendix.connectionbus.ConnectionMinibus.systemProperties$lzycompute(ConnectionMinibus.scala:62) at com.mendix.connectionbus.ConnectionMinibus.systemProperties(ConnectionMinibus.scala:59) at com.mendix.connectionbus.ConnectionMinibus.get(ConnectionMinibus.scala:73) at com.mendix.filedocumentprocessor.OldFileMigration$.isMigrationDone(OldFileMigration.scala:204) at com.mendix.basis.objectmanagement.meta.metamodel.FileStoreBinaryMember$$anonfun$create$1.applyOrElse(FileStoreBinaryMemberFactory.scala:26) at com.mendix.basis.objectmanagement.meta.metamodel.FileStoreBinaryMember$$anonfun$create$1.applyOrElse(FileStoreBinaryMemberFactory.scala:24) at scala.PartialFunction$Lifted.apply(PartialFunction.scala:338) at scala.PartialFunction$Lifted.apply(PartialFunction.scala:334) at com.mendix.basis.objectmanagement.meta.metamodel.MetaPrimitiveRegistry$ExtensibleCreator.apply(MetaPrimitiveRegistry.scala:60) at com.mendix.basis.objectmanagement.meta.metamodel.MetaPrimitiveRegistry$ExtensibleCreator.apply(MetaPrimitiveRegistry.scala:53) at com.mendix.basis.objectmanagement.meta.metamodel.MetaPrimitiveRegistry.createMendixObjectMember(MetaPrimitiveRegistry.scala:36) at com.mendix.basis.objectmanagement.MendixObjectFactory.createMendixObjectMember(MendixObjectFactory.scala:134) at com.mendix.basis.objectmanagement.MendixObjectFactory.createPrimitive(MendixObjectFactory.scala:114) at com.mendix.basis.objectmanagement.MendixObjectFactory.$anonfun$createMembers$1(MendixObjectFactory.scala:71) at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563) at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561) at scala.collection.AbstractIterable.foreach(Iterable.scala:926) at com.mendix.basis.objectmanagement.MendixObjectFactory.createMembers(MendixObjectFactory.scala:70) at com.mendix.basis.objectmanagement.MendixObjectFactory.createInstance(MendixObjectFactory.scala:53) at com.mendix.basis.objectmanagement.MendixObjectFactory.$anonfun$initializeObjectInstances$1(MendixObjectFactory.scala:36) at scala.collection.StrictOptimizedIterableOps.map(StrictOptimizedIterableOps.scala:100) at scala.collection.StrictOptimizedIterableOps.map$(StrictOptimizedIterableOps.scala:87) at scala.collection.convert.JavaCollectionWrappers$JCollectionWrapper.map(JavaCollectionWrappers.scala:68) at com.mendix.basis.objectmanagement.MendixObjectFactory.initializeObjectInstances(MendixObjectFactory.scala:36) at com.mendix.basis.impl.MxRuntimeImplBase.initializeCore(MxRuntimeImplBase.java:399) at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:239) at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.scala:30) at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.scala:17) at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandlerBase.service(HttpAdminHandlerBase.java:128) at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:508) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1378) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1300) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) at org.eclipse.jetty.server.Server.handle(Server.java:562) at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:381) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:268) at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.produce(AdaptiveExecutionStrategy.java:190) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038) at java.base/java.lang.Thread.run(Thread.java:834) I’ve looked at several other threads and I’m not really coming to a conclusion. Some seem to be working, others seem to imply that this can only work when the app is deployed. What can I do here?   EDIT: Change the URL and now I’m running into a different error: Opening JDBC connection to Some(localhost:1433) failed with SQLState: S0001 Error code: 18456 Message: Login failed for user 'sa'.  
asked
1 answers
0

Hi,

Try to clear out deployment directory of your project and run your application. 

 

Hope this helps!

answered