Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community

    Does Vert.X Mongo support resumable file uploads?
    The idea is to use the Youtube Resumeable Upload protocol to upload large binary files to MongoDB/GridFS but I can't find an equivalent to an append function for GridFS (to resume the upload).

    Okay at least for MongoDB I might have found the answer to my own question - due to concurrency the API won't support append: https://jira.mongodb.org/browse/JAVA-2765

    Krzysztof Ziomek
    Hi, would be great if you could refer me to document describing "best practices" for configuring circuit breakers?
    Currently we have http client instance per verticle. We don't share http clients against verticles because responses were handled by random event loops which were different from event loops handling requests.
    Also currently we have circuit breaker instances in relation 1:1 with http client instances.
    Now we do consider sharing the same instance of circuit breaker by clients in all verticles invoking the same target service.
    So i.e. we would have 16 verticles, 16 clients and 1 circuit breaker instance shared by all 16 client.
    Initial tests confirmed responses are handled by the same event loop as requests so we can't see any issue with that approach.
    Are there any known recommendations/reasons advising against going this path?
    Park Jeong Woo

    Hello :)
    I am implementing websocket on server and using writePing api.
    Trying to implement a heartbeat between client and server.

    By the way, On other verticle, want to send a ping in this form.
    Is there any possible way?

    eventbus.send(ServerWebsocket.textHandlerID(), PING) ;

    I am following https://github.com/vert-x3/vertx-guide-for-java-devs/blob/3.8/step-1/src/main/java/io/vertx/guides/wiki/MainVerticle.java

    Code there is as:

    public void start(Promise<Void> promise) throws Exception {
    Future<Void> steps = prepareDatabase().compose(v -> startHttpServer());

    But in available pdf, its:

    @Override public void start(Future<Void> startFuture) throws Exception

    Not sure which one is older
    Any input here?
    Dan O'Reilly
    @mghildiy Promise<Void> is newer/preferred
    Thanks @dano
    I have written a simple vertx application, from book 'Building reactive Microservices in Java'....
    public class MyFirstVerticle extends AbstractVerticle {
    I put some simple code in start method...thats all
    I can run the application using command mvn compile vertx:run
    But I am not able to stop it..ctrl+c(as suggested in book) doesnt work
    application keeps running and sending back responses
    What is best way to stop it?
    can someone help me
    btw is this channel still active?
    Dan O'Reilly
    @Kuruchan30_twitter no, check the channel topic
    Is there a way to pass out Parameters with the new JDBCPool?, I can't find a way to do it
    Asad Awadia
    What is the difference between pgpool.pool and pgpool.client in the postgres client? Which one should i use in general? And which one does better pipelining?
    Hey, how can I submit a query with a postgresql pool transaction? For example, the following does not work
    pool.withTransaction(conn -> {
      return conn.query(
        "insert into my_table (my_field) VALUES ($1)"
    It seems like the execute function wasn't overloaded somewhere in the implementation
    Nevermind, I should have used a preparedQuery.
    Paulo Lopes
    @boulderwebdev please see the note on the top, community support is moved to discord, you will get anwsers there quicker!
    Denis Ivanov
    hello all! Could please someone help with handling websockets by vert.x behind nginx. Can't understand why the main thread is blocked if I try to send more than 50KB of data.. Before I used writeFinalTextFrame() and everything worked fine but recently this error appeared. Now I switched to text handler which registered automatically on eventbus. I hope it uses queue under the hood. Any ideas are appreciated!
    Navnath Chinchore
    We have build cron framework in our service to run some task at particular time durations.
    We have used set vertx.setPeriodic for to schedule these tasks. But we are observing strange behaviour after upgrading to 3.9.7. set periodic stops working after 14, 15 days of service uptime.
    Earlier we were on 3.5.2 and everything were working fine. Is there anyone facing the same issue.
    Can someone please have look
    Paulo Lopes
    @NChinchore_twitter you should try the discord server. Gitter isn't used anymore.
    @pml0pes:matrix.org Is there any way to change the name of this room on the left hand side? (Right now it reads "vertx-users", but this could be changed to "vertx-users (deprecated)")
    Hantsy Bai
    Paulo Lopes
    @hantsy, Thomas who has worked on this is/was on PTO so you may have a slow response. Also note that this chat is deprecated and you should better ask on discord: https://discord.gg/KzEMwP2 where we are active and the whole community has moved to.
    Hi there. I just want to share my pet project: https://github.com/crabzilla/crabzilla just in case you like Vertx, Postgres, Kotlin, CQRS and Event Sourcing. Feedbacks are very welcome.
    4 replies
    KrishnaRao Veeramachaneni
    Hi All, i 'm using the httplclient.postabs call with https based URL
    vertx says "Failed to create SSL connection"
    Vert.x Vertical Fail : Failed to create SSL connection
    KrishnaRao Veeramachaneni
    Do we have any other way to disable the HostNameVerfier set as false ?
    Tarana Desai
    How to log all database queries? I am using io.vertx:vertx-jdbc-client and io.vertx:vertx-pg-client

    How to log all database queries? I am using io.vertx:vertx-jdbc-client and io.vertx:vertx-pg-client

    Hi, if you are using io.vertx:vertx-jdbc-client, you can use https://github.com/p6spy/p6spy to log query sql

    Juan Garcia
    Hi there
    Anyone has an example about how to use HBASE from vertx? What approach should I look at ?
    Hello friends, am sharifff Magembe an out reachy intern, am so excited to be challenged in this project while contributing and learning the tech stack,
    Am intrested in working on some issues like vert-x3/vertx-eventbus-bridge-clients#62 and this , vert-x3/vertx-eventbus-bridge-clients#15 Kindly let me know if am allowed to work on them asap probably assigning to me will be much appreciated.
    Paulo Lopes
    Hi @shariffff:matrix.org this chat isn't active anymore, please join the discord server: https://discord.gg/KzEMwP2 in there you will find the room #outreachy-2022 with information about the project and some information already shared will all prospecting applicants. Let me know if this worked for you!
    Thank you so much, have been on waiting for response. thanks @pmlopes
    Hello, I'm migrating to vertx 4.2.7 and noticed that HandlebarsTemplateEngine is now deprecated; how would I be able to handle this going forward?
    Is vertx-mysql-postgresql 3.9.13 supports scram-sha-256 authentication? If not what is the workaround to support scram-sha-256?

    I'm following the starter guide, with Java 18 and Kotlin 1.6.21

          .respond { Future.succeededFuture(listOf(Trade(), Trade())) }

    Throw this error
    io.vertx.core.json.EncodeException: Mapping Trade is not available without Jackson Databind on the classpath
    I added dependencies of Jackson core, databind and annotations, without any success
    What should I do in this case ?

    Hi @pml0pes:matrix.org @pmlopes I'm getting below exception while executing tests any Idea?
    java.lang.NoClassDefFoundError: jdk/vm/ci/services/Services
    at org.graalvm.libgraal.LibGraal.<clinit>(LibGraal.java:46)
    at org.graalvm.compiler.truffle.runtime.hotspot.libgraal.LibGraalTruffleRuntimeAccess.getPriority(LibGraalTruffleRuntimeAccess.java:44)
    at com.oracle.truffle.api.Truffle.selectTruffleRuntimeAccess(Truffle.java:89)
    at com.oracle.truffle.api.Truffle.access$000(Truffle.java:57)
    at com.oracle.truffle.api.Truffle$1.run(Truffle.java:122)
    at com.oracle.truffle.api.Truffle$1.run(Truffle.java:107)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at com.oracle.truffle.api.Truffle.initRuntime(Truffle.java:107)
    at com.oracle.truffle.api.Truffle.<clinit>(Truffle.java:62)
    at com.oracle.truffle.api.impl.Accessor.getTVMCI(Accessor.java:1328)
    at com.oracle.truffle.api.impl.Accessor.access$000(Accessor.java:130)
    at com.oracle.truffle.api.impl.Accessor$Constants.<clinit>(Accessor.java:1202)
    at com.oracle.truffle.api.impl.Accessor.engineSupport(Accessor.java:1265)
    at com.oracle.truffle.api.library.LibraryAccessor.engineAccessor(LibraryAccessor.java:61)
    at com.oracle.truffle.api.library.LibraryFactory.loadExternalDefaultProviders(LibraryFactory.java:439)
    at com.oracle.truffle.api.library.LibraryFactory.getExternalDefaultProviders(LibraryFactory.java:430)
    at com.oracle.truffle.api.library.LibraryFactory.initDefaultExports(LibraryFactory.java:221)
    at com.oracle.truffle.api.library.LibraryFactory.<init>(LibraryFactory.java:216)
    at com.oracle.truffle.api.library.DynamicDispatchLibraryGen.<init>(DynamicDispatchLibraryGen.java:31)
    at com.oracle.truffle.api.library.DynamicDispatchLibraryGen.<clinit>(DynamicDispatchLibraryGen.java:23)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:398)
    at com.oracle.truffle.api.library.LibraryFactory.loadGeneratedClass(LibraryFactory.java:777)
    at com.oracle.truffle.api.library.LibraryFactory.resolveImpl(LibraryFactory.java:740)
    at com.oracle.truffle.api.library.LibraryFactory.resolve(LibraryFactory.java:733)
    at com.oracle.truffle.api.library.LibraryFactory.<init>(LibraryFactory.java:210)
    at com.oracle.truffle.api.interop.InteropLibraryGen.<init>(InteropLibraryGen.java:170)
    at com.oracle.truffle.api.interop.InteropLibraryGen.<clinit>(InteropLibraryGen.java:161)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:398)
    at com.oracle.truffle.api.library.LibraryFactory.loadGeneratedClass(LibraryFactory.java:777)
    at com.oracle.truffle.api.library.LibraryFactory.resolveImpl(LibraryFactory.java:740)
    at com.oracle.truffle.api.library.LibraryFactory.resolve(LibraryFactory.java:733)
    at com.oracle.truffle.api.interop.InteropLibrary.<clinit>(InteropLibrary.java:2843)
    at com.oracle.truffle.polyglot.PolyglotValueDispatch.<clinit>(PolyglotValueDispatch.java:155)
    at com.oracle.truffle.polyglot.PolyglotImpl.initialize(PolyglotImpl.java:163)
    at org.graalvm.polyglot.impl.AbstractPolyglotImpl.setConstructors(AbstractPolyglotImpl.java:266)
    at org.graalvm.polyglot.Engine$1.loadAndValidateProviders(Engine.java:917)
    at org.graalvm.polyglot.Engine$1.run(Engine.java:890)
    at org.graalvm.polyglot.Engine$1.run(Engine.java:864)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at org.graalvm.polyglot.Engine.initEngineImpl(Engine.java:864)
    at org.graalvm.polyglot.Engine.access$000(Engine.java:110)
    at org.graalvm.polyglot.Engine$ImplHolder.<clinit>(Engine.java:136)
    at org.graalvm.polyglot.Engine.getImpl(Engine.java:360)
    at org.graalvm.polyglot.Engine$Builder.build(Engine.java:616)
    at io.reactiverse.es4x.ECMAEngine.<init>(ECMAEngine.java:99)
    at io.reactiverse.es4x.ESVerticleFactory.init(ESVerticleFactory.java:55)
    at io.vertx.core.impl.VerticleManager.registerVerticleFactory(VerticleManager.java:71)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
    at io.vertx.core.impl.VerticleManager.loadVerticleFactories(VerticleManager.java:49)
    at io.vertx.core.impl.VerticleManager.<init>(VerticleManager.java:44)
    at io.vertx.core.impl.V
    at io.vertx.core.impl.VertxBuilder.clusteredVertx(VertxBuilder.java:247)
    at io.vertx.core.Vertx.clusteredVertx(Vertx.java:98)
    at io.vertx.reactivex.core.Vertx.clusteredVertx(Vertx.java:144)
    at io.vertx.reactivex.core.Vertx.lambda$rxClusteredVertx$2(Vertx.java:174)
    at io.vertx.reactivex.impl.AsyncResultSingle.subscribeActual(AsyncResultSingle.java:45)
    at io.reactivex.Single.subscribe(Single.java:3666)
    at io.reactivex.Single.blockingGet(Single.java:2869)