Vertx postgres
#2577
Replies: 2 comments 2 replies
-
You can't currently do this in upstream Apiman 3. I have written a Vert.x JDBC registry for my long-term supported customers. Please feel free to reach out. A future version of Apiman will add that to the upstream (still a work in progress). |
Beta Was this translation helpful? Give feedback.
0 replies
-
And what about apiman-distro-vertx-2.2.3? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I or can I configure to use postgres DB instead of ElasticSearch for apiman gateway on Vertx.
I put in my confgi.json
"initializers": {
"jdbc": {
"datasource": {
"type": "postgresql11",
"jndi-location": "${apiman.jdbc.datasource.jndi-location}"
}
}
},
"registry": {
"class": "io.apiman.gateway.engine.jdbc.CachingJdbcRegistry",
"config": {
"datasource.jndi-location": "${apiman.jdbc.datasource.jndi-location}",
"type": "jdbc"
}
},
But it fails with errors
[INFO ] 2023-08-03 10:59:10.577 [vert.x-eventloop-thread-1] ApiVerticle - Starting verticle: API. UUID: 534fdb2a-0a8b-4727-8775-e479725106cd.API.
java.lang.RuntimeException: java.lang.NullPointerException
at io.apiman.gateway.platforms.vertx3.engine.VertxConfigDrivenEngineFactory.doInstantiate(VertxConfigDrivenEngineFactory.java:66)
at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.create(ConfigDrivenEngineFactory.java:185)
at io.apiman.gateway.engine.impl.ConfigDrivenEngineFactory.createRegistry(ConfigDrivenEngineFactory.java:103)
at io.apiman.gateway.engine.impl.AbstractEngineFactory.createEngine(AbstractEngineFactory.java:56)
at io.apiman.gateway.platforms.vertx3.verticles.ApimanVerticleWithEngine.start(ApimanVerticleWithEngine.java:48)
at io.apiman.gateway.platforms.vertx3.verticles.ApiVerticle.start(ApiVerticle.java:55)
at io.vertx.core.Verticle.start(Verticle.java:66)
at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$9(DeploymentManager.java:552)
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)
[FATAL] 2023-08-03 10:59:10.646 [vert.x-eventloop-thread-0] InitVerticle - Failed to deploy verticles: java.lang.NullPointerException
Beta Was this translation helpful? Give feedback.
All reactions