Questions tagged [vertx-verticle]
175 questions
1
vote
1 answer
vert.x eventloop is slow consuming from eventbus
We are polling messages from kafka (using Executor Thread) and put it on vert.x eventbus. eventually the verticles(non-workers) consuming those messages from the eventbus.
we measured that the time it takes to each message to be consumed from vertx…

rayman
- 20,786
- 45
- 148
- 246
1
vote
1 answer
Correct way to fail a unit test from within a callback using Vertx Unit
Given the following unit test, which uses the Vertx Unit testing framework:
@RunWith(VertxUnitRunner.class)
public class VertxUnitTest {
private Vertx vertx;
@Rule
public RunTestOnContext rule = new RunTestOnContext(new…

user1052610
- 4,440
- 13
- 50
- 101
1
vote
3 answers
Kotlin Vertx with Coroutines blocks when trying to call run blocking
I am using a third party library which has exposed a callback function. The call back function will be called upon success . The callback function is not a suspend function, but when I trying to make a call inside the non suspend function to return…

Dev Loper
- 209
- 1
- 4
- 18
1
vote
1 answer
Trying to override the JUL logger used by vert.x
I'd like to use Log4j2 and am setting up my MainVerticle with system properties to do that,
public class MainVerticle extends AbstractVerticle
{
static {
System.setProperty( "vertx.logger-delegate-factory-class-name",
…

Robin Coe
- 750
- 7
- 28
1
vote
1 answer
Vert.x Event Bus to retain message
I am following the vertx sockjs example to transfer data over the SockJS event bus bridge.
The sending code:
eventBus.publish(ebAddress, data);
The consumer code:
var eb = new EventBus("http://localhost:8088/eventbus");
eb.onopen = function…

blue123
- 2,937
- 7
- 27
- 29
1
vote
0 answers
Vertx docker clustering
I'm using Docker to deploy a vertx project. I built it with
docker build -t .
and run with
docker run -i -t
commands. But it fails. The error log is:
java.lang.IllegalArgumentException: PortableFactory[-1] is already…

Bakhrom Achilov
- 157
- 1
- 2
- 14
1
vote
1 answer
Efficient way to use vertx Vertciles in a TCP server
I am working on a TCP server that needs to be able to manage up to 500 simultaneous connections. It's a simple server, that waits for the client to establish a connection. Then, it calculates resources asked by the client, and sends it to it.
Rather…

souki
- 1,305
- 4
- 23
- 39
1
vote
2 answers
Vert.x: Verticle custom startFuture handler is always rewritten
Vert.x v3.5.1.
There is my custom start method of Verticle:
@Override
public void start(Future startFuture) throws Exception {
startFuture.setHandler(event -> {
if (event.succeeded()) {
logger.info("Server started on…

katrin
- 1,146
- 1
- 13
- 24
1
vote
1 answer
Vert.x, RoutingContext can't receive json array
I have a problem with receiving json array.
Sending JSON is:
[
{
"name": "Account 3",
"type": 2,
"active": true
},
{
"name": "Account 4",
"type": 1,
"active": true
},
{
…

Bakhrom Achilov
- 157
- 1
- 2
- 14
1
vote
0 answers
Vert.x ConfigRetriever listener how to transfer the change to all Verticle
I struggle with the ConfigRetriever and his listen function. I want that the new Config is passed to the verticles and they consume it.
public class ShredderVerticle extends AbstractVerticle {
@Override
public void start(){
…

Tordus
- 31
- 2
1
vote
1 answer
How to programmatically stop a Vert.x verticle?
Suppose I have a verticle somewhat like this (intentionally simplified to make it easier to explain my question).
public class ServiceVerticle extends AbstractVerticle {
private MyService myService = new MyService();
public void…

Edwin Dalorzo
- 76,803
- 25
- 144
- 205
1
vote
2 answers
Vertx with coroutines blocks when reading slow external url
I'm quite new to Vert.x and are about to make a little example where I read the current time from some external server everytime when I get a GET-request to the root-path. I thought using the launch and awaitResult will handle the asynchronous part…

guenhter
- 11,255
- 3
- 35
- 66
1
vote
1 answer
Debug JS Verticle vertx
Is there a way to debug a javascript verticle in intellij(or any other app/tool) like you can debug it on any browser dev tool? I have tried adding debugger to the code but doesn't work and I could literally find nothing online on this.

Taha Rehman Siddiqui
- 2,441
- 5
- 32
- 58
0
votes
0 answers
Call vert.x web API from another vert.x Web API
I have one vert.x WEB API exposed at localhost:8080/api/search?id=123 and relative method in java is this
@Override
public void searchUser(ServiceRequest serviceRequest, Handler> eventHandler) {
// Logic
}
I want to…

Rohit Kotak
- 173
- 1
- 17
0
votes
1 answer
Vert.x application closes when run with Eclipse but does not close when run as a jar
Here is my code for main class:
public static void main(String[] args) {
Vertx vertx = Vertx.vertx();
vertx.deployVerticle(new MainVerticle(), whenDeployed -> {
vertx.close();
// System.exit(0);
…

Dominator_007
- 3
- 4