Questions tagged [vert.x]
Vert.x is an event driven toolkit that runs on the JVM allowing the development of asynchronous web applications in Java, Javascript, Scala, Ruby, Ceylon, Kotlin and Groovy.
2,408
questions
0
votes
0
answers
14
views
Vertx Ext not getting imported
I am getting errors while import vertx.ext in java and kotlin.
Have included the latest vertx-ext in my pom file.
Error Message :- Cannot resolve symbol ext.
Have included the following code for ...
0
votes
0
answers
11
views
how to handle http response streamly by vertx http client?
@Slf4j
public class DownloadImg {
private final WebClient webClient;
private final Vertx vertx;
public DownloadImg(Vertx vertx) {
WebClientOptions newOptions = new ...
0
votes
0
answers
7
views
Hazelcast c.h.webmonitor.service.DataService - Error calling operation detectVersionMismatch: null
i am using Hazelcast 3.12.2 and management center 3.12.2 running all this using docker-compose , while i use 2 images things are working fine and if i am scaling up my application image with 4 then i ...
0
votes
1
answer
12
views
AWS cognito for authentication using vert.x framework in Java
I want to implement authentication mechanism for my application and also secure my api's using AWS cognito with vert.x framework in Java. Is there any demo or examples of AWS cognito authentication/...
0
votes
1
answer
26
views
Getting Warning as NoSuchAlgorithmException in vert.x
I have implemented a backend call protected via bearer authentication to the Keycloak's userinfo endpoint using access token in vert.x framework. I am able to run this code without any errors.
But I ...
0
votes
1
answer
29
views
Vertx Web Resource Not Found
In one of the projects that I'm working on I register routes onto the Router dynamically like below.
vertx.eventBus().consumer("REGISTER_ROUTE", handler -> {
JsonObject message = (...
0
votes
1
answer
21
views
vertx build with graalvm
I fallowed https://github.com/vertx-howtos/graal-native-image-howto/blob/20.3.0/README.adoc and manage to build my vertx project with graalvm, but when I start the native image vertx is not starting. ...
0
votes
1
answer
32
views
Get request body in Quarkus Interceptor
I have written an interceptor in Quarkus based application.
@AccessPolicy //custom annotation
@Interceptor
public class PolicyInterceptor {
@AroundInvoke
Object authorize(InvocationContext ...
0
votes
1
answer
36
views
Quarkus upgrade complaining regarding vertx thread in tests
I have recently upgraded quarkus to 2.9.0.CR1 and am now having issues in some of my tests
I am using reactive panache in this, through the repository pattern.
Note: i am able to access the db fine if ...
0
votes
0
answers
13
views
Why does the dscp value get shifted left by 2 bits when setting the traffic class of a datagram socket?
I'm looking at some code that creates io.vertx.core.DatagramSocket objects like so:
DatagramSocket s = context.getVertx()
.createDatagramSocket(new DatagramSocketOptions()
...
0
votes
1
answer
41
views
Uni wait for Vertx eventBus message
I have two endpoints:
@GET
@Produces(MediaType.TEXT_PLAIN)
@Path("/waitForEvent")
public Uni<Object> waitForEvent() {
return Uni.createFrom().emitter(em -> {
...
0
votes
1
answer
49
views
Quarkus upgrade vertx dns resolver ignoring kubernetes dns
I have upgraded the version of quarkus to 2.8.0.CR1
My quarkus apps are using a mix of camel, mutiny, resteasy, mongo, pubsub and it seems to have been reproduced on all.
It seems like there was an ...
1
vote
1
answer
30
views
Router.router path param is empty
I have a API,created by val router = Router.router(vertx)
router.patch("/api/v2/user/:userId/names")
if user id is not passed getting message - "error": "Page not found: /api/...
0
votes
1
answer
64
views
Why Vert.x blocks event loop thread when using Oracle Reactive Client
I try to user Vert.x Reactive Oracle Client version 4.2.6 to avoid blocking threads in event loop.
I decided to test a really long query:
GlobalScope.launch(vertx.dispatcher()) {
val ...
0
votes
0
answers
54
views
io.vertx.oracleclient.OracleException: Error : 1000, Position : 0, Sql = SET TRANSACTION ISOLATION LEVEL READ COMMITTED
I have one question regarding oracle cursors . Actually I upgraded my project to latest vert.x version and now I started to see some errors. I have one SQL Verticle which actively used and it throw ...
-1
votes
0
answers
24
views
Implementing and Deploying Microservices as Vertxs or Verticles and Inter service communication
I am very new to Vertx and Verticles, but have some experience with Springboot microservices.
I am implementing a solution with the following components and responsibilities (trying to simplify the ...
0
votes
0
answers
34
views
Why so many Debug Logs with "setHandshakeSuccess" in vertx / quarkus?
we are evaluating quarkus and deployed one prototype with the log level DEBUG and just let it run for a few days. Our Logstash collapsed because of a java.lang.ArithmeticException and while ...
1
vote
1
answer
85
views
Can I configure the pool size of a specific Quarkus Vertx ConsumeEvent?
The parameter quarkus.vertx.worker-pool-size allows me to configure the "Thread size of the worker thread pool", according to the quarkus guide - All configuration options.
Is it possible to ...
0
votes
0
answers
18
views
vertx mongo authentification
i get an error while authenticating. the documentation in vertx is so minimalized
MongoAuthenticationOptions options = new MongoAuthenticationOptions()
....
0
votes
1
answer
29
views
My Junit5 Test class not running, package XXX does not exist error
I have a maven project setup as normal:
src/main/java/a/b/c/MyApp
src/test/java/a/b/c/MyAppTest
I am having a weird problem in IntelliJ, where my junit5 test class cannot see the classes in src/main/...
1
vote
0
answers
40
views
How to consume an event after transaction is over using Quarkus Event Bus?
I'm using Quarkus Event Bus that's built on eclipse vert.x
I have a transactional method in class A that invokes EventBus.send() which triggers a method annotated with @ConsumeEvent in class B
Is ...
0
votes
0
answers
32
views
vertx-db2-client return error codes when querying data with chinese characters
Like picture above
Are there some options to control the encoding? (switch between UTF8 and GBK?)
I found a DEFAULT_CHARSET property(the value is utf8) in io.vertx.db2client.DB2ConnectOptions, but no ...
0
votes
1
answer
21
views
Problem with deploying vertx app through dockers
I'm following this github project and for some reason when I run the application I get the error below:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to ...
0
votes
0
answers
19
views
reconnect to MQTT broker using Vertx library from Quarkus backend application
I'm using Vertx to connect and subscribe to MQTT broker from a Quarkus backend application, the problem is when the broker is getting restarted or the connection gets lost, the client does not ...
2
votes
2
answers
39
views
Micronaut + Vertx + testcontainers
How do I configure Micronaut app using Vert.x and testcontainers? I'm trying:
application-test.yml
datasources:
default:
url: jdbc:tc:mysql:8:///db
driverClassName: org.testcontainers.jdbc....
1
vote
2
answers
53
views
Vertx CompositeFuture: on completion of all Futures
In a Vert.x web server, I have a set of Futures, which each one could either fail or succeed and hold a result. I am interested in the outcome (and possibly the result) of each and every one of those ...
1
vote
1
answer
30
views
Vertx - passing parameter from one compose to another
I need some help to pass parameter from one compose to another. I want to pass the labelParemeters in the second compose into the last compose, as I have shown in the code below.
public Future<...
0
votes
0
answers
16
views
AbstractChannel$AnnotatedConnectException: Conexión rehusada
I am trying to connect with one activeMQ host using vertx (vertx client does not support failover, then I am trying do it manually):
And if the connection fail, I am trying to connect to second Host:
...
0
votes
0
answers
17
views
validate connection with HOST using Kotlin takes a long time
I am trying validate a connection with a HOST using Kotlin, and if the connection fail I am connecting to other HOST
I am doing it with the code:
@Test
fun `test connection`() {
val start ...
0
votes
0
answers
38
views
Vert.x RouterBuilder.create for multiple open api spec
I have multiple open api spec files and want to create a routerbuilder for each of them. Is it possible in vert.x to pass in a list of yml file url's in RouterBuilder.create.
e.g. Routerbuilder.create(...
-1
votes
0
answers
30
views
How to group by in mongo? [duplicate]
I want to select the category and category grouped one time not duplicated.
[
{
_id: '6258305e8e182b2ae670c6f8',
Name: 'Brown Purse',
Category: 'Accessories',
Quantity: '0'
},
...
1
vote
1
answer
30
views
Does event_bus consumer support to run Async. method?
I am new for Vert.x async programming. I have event_bus consumer, once it receives a message, then it needs to call a Async. method async_method_to_access_database to get database records from ...
0
votes
0
answers
20
views
Authentication Required Vertx
The problem is when i make simple quiery to this verticle i get next response
Request:
curl -X GET http://localhost:8080/v1/calculation/DELPHI_METHOD_FORECAST
-H 'Content-Type: application/json'
...
0
votes
0
answers
35
views
Vertx event bus slow consuming issue
We have a non clustered vertx application, and we use the event bus to internally communicate between verticles.
Verticle A consumes from the bus, performs a HTTP request, and sends the response back ...
0
votes
0
answers
21
views
Not able to perform query using vertx-db2-client with Spring Boot and getting error
I'm trying to connect and query to DB2 using vertx-db2-client, but it is not working. I'm using Spring Boot 2.6.6 and vertx-db2-client library to perform query in reactive way. I've created a class ...
0
votes
1
answer
32
views
How to set different logging levels for vertx shadow jar in runtime?
vertx starter use shadow jar plugin to package a fat-jar
log4j2.xml will be put into the jar file
How can I run the jar with different log levels? (With springboot I can set -Dspring.profile.active=...
0
votes
0
answers
25
views
Vertx SQL Server Client Kerberos Support
Does vertx SQL Server or jdbc client support kerberos or NTLM authentication methods. If so, any examples of how to accomplish this? I have attempt using the standard SQL Server connection url, with ...
0
votes
0
answers
40
views
Vert.x event bus consumer called twitce
i wrote a simple code for communicate between a java server in vert.x and a browser client with the event bus library. The client send a message to the server through the event bus and the server call ...
0
votes
0
answers
37
views
How to instruct the QuarkusApplication to wait until the reactive vertx MySQLPool completes the execution of executeBatchAndForget statement?
We have a requirement to load a huge file to MySQL DB. I have written a simple QuarkusApplication with quarkus-reactive-mysql-client to execute a executeBatchAndForget to batch import the records ...
0
votes
1
answer
28
views
AWS AMQP + SSL Connection with vertx
I am trying to connect a service with activemQ in my local i am trying with this connection:
fun start(vertx: Vertx, address: String): Single<MQServerConnection> {
val options: ...
0
votes
1
answer
30
views
Vertx Http Client not working after setShared to true
I got the following when I set .setShared(true) in my WebClientOptions:
java.lang.ClassCastException: class io.vertx.core.http.impl.SharedHttpClient cannot be cast to class io.vertx.core.http.impl....
0
votes
0
answers
40
views
Create a MessageCode for a custom java object for VertX eventbus in Quarkus
I have created an event bus to communicate between 2 beans in my quarkus application.
I have it sending a custom object type and waiting to get another custom object as response async
Sender
@Inject
...
0
votes
0
answers
35
views
how to update log4j2 in vertx amqp bridge 3.5.4
my application built on vertx amqp bridge 3.5.4 with log4j 1.2 , can you please some one let me know how to update my application with log4j 2 version . when i am updating log4j2 libraries as per ...
0
votes
1
answer
80
views
Vert.X: Rare "Unhandled exception in router" despite errorHandler with statusCode 500
I use errorHandler to log interesting general information like User-ID (if available) and IP. This normally works, but rarely I see "Unhandled exception in router" that hasn't passed by my ...
0
votes
0
answers
28
views
Message codec representation in Vertx
I have a Custom message codec that is used to pass on some classes through the event bus. When running code analysis, the Message codec is flag as not being covered by tests, even though it is used ...
0
votes
0
answers
37
views
How to call script load in vert.x redis
How to call script load with redis in vert.x 4? I'm was try this way, but I got a error:
ERR Unknown subcommand or wrong number of arguments for 'local val=1; return val;'. Try SCRIPT HELP.
The code:
...
1
vote
1
answer
52
views
How to add a Servlet filter in Vert.x REST API?
I have a REST API which was created purely using Vert.x, I would like to instrument it for AWS X-RAY and in order to do that I need to add a servlet filter. I'm creating a webserver like this:
vertx....
1
vote
1
answer
78
views
How to run event sequentially in Mutiny
I am using the Mutiny library within the Quarkus framework in Java 11.
I am wonderring which is the best way of running several events sequentially by storing them into a Multi object. I am going to ...
0
votes
1
answer
34
views
Is the vertx WebClient.send() method blocking or non-blocking
I have a verticle which has a handler that calls Vertx's Webclient in the event loop thread. Is the actual underlying API call synchronous or asynchronous? Does it block my event loop thread? Assume ...
-2
votes
1
answer
31
views
vert.x setup for high load server
I have server with 8 CORES
In that server I have 3000 incoming requests per second
What settings are best to use for best performance?
new DeploymentOptions().setInstances(???);
Do I need 8 instances ...