Where communities thrive


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

    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:

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

    But in available pdf, its:

    @Override public void start(Future<Void> startFuture) throws Exception
    {
    startFuture.complete();
    }

    Not sure which one is older
    Any input here?
    Dan O'Reilly
    @dano
    @mghildiy Promise<Void> is newer/preferred
    mghildiy
    @mghildiy
    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?
    Kuruchan
    @Kuruchan30_twitter
    hello
    can someone help me
    btw is this channel still active?
    Dan O'Reilly
    @dano
    @Kuruchan30_twitter no, check the channel topic
    Yaz
    @yazalulloa
    Is there a way to pass out Parameters with the new JDBCPool?, I can't find a way to do it
    Asad Awadia
    @asad-awadia_gitlab
    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?
    boulderwebdev
    @boulderwebdev
    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)"
      ).execute(
        Tuple.of("test_val")
      );
    })
    boulderwebdev
    @boulderwebdev
    It seems like the execute function wasn't overloaded somewhere in the implementation
    boulderwebdev
    @boulderwebdev
    Nevermind, I should have used a preparedQuery.
    Paulo Lopes
    @pmlopes
    @boulderwebdev please see the note on the top, community support is moved to discord, you will get anwsers there quicker!
    Denis Ivanov
    @ivanovdns
    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
    @NChinchore_twitter
    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
    @pml0pes:matrix.org
    [m]
    @NChinchore_twitter you should try the discord server. Gitter isn't used anymore.
    boulderwebdev
    @boulderwebdev
    @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
    @hantsy
    Paulo Lopes
    @pmlopes
    @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.
    rodolfodpk
    @rodolfodpk
    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
    @OpenSourceTycoon
    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
    @OpenSourceTycoon
    Do we have any other way to disable the HostNameVerfier set as false ?
    Tarana Desai
    @tarana.desai_gitlab
    How to log all database queries? I am using io.vertx:vertx-jdbc-client and io.vertx:vertx-pg-client
    zuisong
    @zuisong

    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
    @underkin
    Hi there
    Anyone has an example about how to use HBASE from vertx? What approach should I look at ?
    shariffff
    @shariffff:matrix.org
    [m]
    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.
    Thanks
    Paulo Lopes
    @pmlopes
    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!
    shariffff
    @shariffff:matrix.org
    [m]
    Thank you so much, have been on waiting for response. thanks @pmlopes
    JoggerJoel
    @joggerjoel
    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?
    bkoripalli
    @bkoripalli
    Is vertx-mysql-postgresql 3.9.13 supports scram-sha-256 authentication? If not what is the workaround to support scram-sha-256?
    Mario
    @mmaryo

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

    router.get("/trades")
          .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 ?

    bkoripalli
    @bkoripalli
    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)
    this is the peace of code causing above error
    vertx = Vertx.rxClusteredVertx( new VertxOptions().setClusterManager( new HazelcastClusterManager() ) )
    .blockingGet();
    Paulo Lopes
    @pml0pes:matrix.org
    [m]
    @bkoripalli: this channel isn't used anymore. You should ping on discord for vertx questions. From your stack trace it feels like a misalignment of graalvm and the jars on the classpath. Note that es4x uses the latest release