Questions tagged [vertx-verticle]
175 questions
1
vote
1 answer
Vertx event bus interceptor blocking the request call
I am trying to send data over event bus when got the call from client and response back to client.
Everything is working fine until i add the interceptor on event bus..
Here is the Code:-
public class TestVerticle extends AbstractVerticle {
…

Ravat Tailor
- 1,193
- 3
- 20
- 44
1
vote
2 answers
exception in vert.x worker thread
I'm very new to vert.x platform. I have a standard and a worker verticle in my project which communicates through the eventBus. The worker verticle performs multiple REST API calls in loop and database access.
My problem is the worker verticle…

Vencat
- 1,272
- 11
- 36
1
vote
0 answers
How to fix io.vertx.core.impl.NoStackTraceThrowable?
I was making a vertx verticle for Java. When I run it in IntelliJ it seems to start, but when I make a shadowjar and launch it on my Ubuntu server I get this:
INFO: Failed to bind on port: 8000
May 23, 2020 3:23:11 PM…

Alice Shunder
- 11
- 1
- 2
1
vote
1 answer
Vertx Http Webclient request hangs even though worker threads are available
I have a program where I have deployed a worker verticle (vertx version 3.6.3). From this, worker verticle, I am making an HTTP request using Vertx WebClient library. My vertx worker pool size is 20 and event loop pool size is 10. Right after, http…

Raghavendra Nilekani
- 396
- 2
- 10
- 22
1
vote
1 answer
Vert.X HttpServer timeouts under load
I'm using the basic vert.x example verticle running an HTTP server;
package io.vertx.starter;
import io.vertx.core.AbstractVerticle;
public class MainVerticle extends AbstractVerticle {
@Override
public void start() {
…

XeroxDucati
- 5,130
- 2
- 37
- 66
1
vote
0 answers
vertx.executeBlocking failing
I am new to vertx and am trying to execute a function1 using vertx.executeBlocking from ABCHandler.java
public class ABCHandler implements Handler {
public ABCHandler( Vertx vertx)
{this.vertx =vertx;}
@Override
public void…

user2201913
- 21
- 1
1
vote
1 answer
How to write Junit test case for postAbs method of WebClient in Vert.x?
I recently developed few Verticles from which I needed to make external API calls. To optimize the code, I moved code of calling APIs to one common Helper class. I am also passing Vertx instance from Verticle to Helper class. I am now trying to…

Nags
- 273
- 1
- 4
- 16
1
vote
1 answer
How to create mock instance of Autowired component in Vert.x
I am trying to create mock instance of the class which is autowired inside Verticle but I am getting it as a null. For synchronous code the way which works is looking not useful for Vert.x.
Verticle is:
@Component
public class MyVerticle…

Nags
- 273
- 1
- 4
- 16
1
vote
2 answers
Vertx - Closing connections - JDBC and others
I have a verticle, which consumes a message from the event bus and processes it. I have a question as to when the JDBC connection should be closed. There are 2 approaches
Closing the connection once the message is processed. But this will be very…

tindu edward
- 299
- 1
- 3
- 17
1
vote
1 answer
Processing Groups of Results with Vertx - How to coordinate?
I have a job processing system where each job contains thousands of individual tasks that require different strategies to complete. The individual tasks make up the whole job. If all tasks have been completed, the job is marked as successfully…

micah
- 7,596
- 10
- 49
- 90
1
vote
2 answers
Vertx - multiple vs single verticle for event processing
Scenario
I receive a message in a specific "address" in Vertx eventbus - the message can be of four types. The handler should process the message and send the result to another eventbus "address", its handler posts it to an external-service api.…

vvra
- 2,832
- 5
- 38
- 82
1
vote
1 answer
Vert.x Thread Naming - "vert.x-worker-thread-..."
I am making a blocking service call in one of my worker verticles that logged a warning. This was "addressed" by increasing the time limit, but, I am more curious about how to read the naming of the thread in the log line -…

David Streid
- 685
- 3
- 12
- 24
1
vote
2 answers
Concept of vert.x concerning a webserver?
I don't quite get how vert.x is applied for a webserver.
The concept I know for webserver is the thread-based one.
You start your webserver, which then is running.
Then for every client that connects, you get a socket, which is then passed to its…

cg-productions
- 13
- 4
1
vote
1 answer
No handlers for address "demo" when using Vert.x Event Bus
I am doing a demo on how to use the Vert.x event bus. However the messages are not sent to the consumer. All I got was
No handlers for address hello
when I invocked the service, Here is the consumer, Here is the exact example I am following, and…

IsaacK
- 1,178
- 1
- 19
- 49
1
vote
1 answer
How to catch errors in asynchronous code using Vert.x
Using Node.js we might use domains to capture errors thrown in async code like so:
https://medium.com/@the1mills/using-node-js-domains-in-production-797105a4c302
using Domains in this way allows us to pin an error to particular request so we can…

Alexander Mills
- 90,741
- 139
- 482
- 817