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,541
questions
0
votes
0
answers
11
views
How to inject object into Hazelcast MapStore in no-Spring application
I need to pass (inject) already created object into Hazelcast MapStore. In the example (from Hazelcast documentation) below shown how to pass properties into MapStore from xml configuration and create ...
0
votes
0
answers
12
views
Is it possible to make multiple web routers in Eclipse Vertx using multiple OpenAPI specification?
I am working on a codebase in which we are using OpenAPI andVertx to make our rest endpoints.
RouterBuilder.create(vertx, location-to-OpenAPIspec)
This is how it is currently implemented. I was ...
0
votes
1
answer
38
views
Memory leak with vertx SqlClient
I have an application that - in the end - grab independent sql queries from a non-blocking queue and execute them in a postgres database.
I had a memory issue due to the insert process bottlenecking ...
0
votes
1
answer
17
views
Vertx Webclient does not call handler
I try to call the PayPal API, this works but vertx does not call any handler.
For example I call the the api via vertx like this:
WebClient.create(this.getVertx(), options)
.get(...
0
votes
1
answer
20
views
How to use Objectify v6 in Vert.x on Google app engine standard
How do I get Objectify v6 to work in Vert.x?
In app engine docs, Vert.x is listed as one of the platforms that can run on app engine standard.
My goal is to port a servlet based Java 8 website to vert....
0
votes
1
answer
23
views
How to create io.vertx.mutiny.redis.client.Response in tests
I am trying to mock out the ReactiveRedisClient redisClient
The signature for the get method is io.smallrye.mutiny.Uni<io.vertx.mutiny.redis.client.Response> get(java.lang.String arg0);
However, ...
0
votes
0
answers
34
views
AMQP connection refused on 2.13.1 but working on 2.13.0
I'm updating a Quarkus application that uses reactive AMQP messaging connector with a customized underlying Vert.x client, SSL and client certificate authentication (as explained in https://quarkus.io/...
2
votes
0
answers
32
views
How handle scopes OAuth 2.0 Google and Vert.x
I'm having some issues when implementing OAuth2.0 Google and Vertx. I'm trying to make a simple example where user just have to ligon with google and after that we print a message on screen with the ...
1
vote
2
answers
49
views
jOOQ Multiset Operator returns nested JsonArray on query
For context, we are using jooq 3.17 and vertx-jooq 6.5.5 inside Quarkus. As a consequence, everything is a Mutiny stream. We cannot use blocking operations (like fetch()).
As proposed in the official ...
0
votes
1
answer
56
views
How to access methods of a concrete class in a Generic class in Java without casting
I have a method that publishes List of events in Kafka:-
public class EventProducerService<T>{
private Future<Void> publish(List<T> events) {
final String topicPublishURL = ...
1
vote
1
answer
55
views
How to get Vert.x logs from Quarkus?
I'm trying to debug some low-level issues with various Vertx components in my Quarkus application and it would be helpful to have the Vert logs to do that (e.g. io.vertx.core). I assume it's something ...
0
votes
0
answers
38
views
How to write integration test case to test API using vertx?
@Test
public void dummyTestCase() {
System.out.println(" dummyTestCase ");
HttpClient client = vertx.createHttpClient();
client.request(HttpMethod.GET, 8080, "localhost"...
0
votes
0
answers
23
views
cosmo upgrade to 5.0.0 fails bean creation for vertx-web
I am trying to upgrade my com.visa.commons.cosmo dependency to 5.0.0. I see that it automatically brings in io.vertx dependency of 4.3.7.
My application compiles fine but when I try to run it, it ...
0
votes
0
answers
30
views
Using JRE 11 with Vert.x in docker
I've been trying to setup a simple vert.x application in docker and have followed this guide on Docker Hub and created a Dockerfile like:
FROM vertx/vertx3
# ...
0
votes
1
answer
28
views
Gradle task to run another task with multiple arguments
I was wondering if it's possible to create a gradle task to run another task with multiple arguments in parallel. This specific tasks are deploying and running Vertx verticles, deploying them ...
-2
votes
0
answers
30
views
Creating a Form Submission App With Vertx
I can't seem to find an example on YouTube or any other online resource that can demonstrate a full stack app using Vertx for handling form submissions. I am trying to practice using Vertx beyond just ...
0
votes
1
answer
21
views
Vert.x: Extend timeout of specific routes
I use an io.vertx.ext.web.openapi.RouterBuilder to route operations of an OpenAPI spec to the Eventbus:
RouterBuilder.create(vertx, openapiFile).onSuccess(routerBuilder -> {
for (Operation ...
1
vote
1
answer
64
views
Difference between using JDBC and R2DBC connection for Jooq
The documentation for Reactive Fetching in Jooq mentions:
Out of the box, all jOOQ provided publishers will block on the underlying JDBC connection, but if you provide jOOQ with a io.r2dbc.spi....
0
votes
0
answers
32
views
How can I make a Json Serializer, to serialize json to an alphabetical better
This is an issue I am trying to solve for work. We are using the Json Parser that comes part of the Vert.x library for Java.
I need a way to serialize json, so when the generated code is done o in ...
0
votes
1
answer
20
views
@vertx/eventbus-bridge-client.js integrate with OpenTelemetry
Hi I am trying to integrate react application with open telemetry. I use @vertx/eventbus-bridge-client.js in my clinet side to communicate with my quarkus backend. Any one know what is the library I ...
0
votes
1
answer
20
views
Vertx Web routers are "losing" request parameters
I am running a test Vertx application that is supposed to receive a POST request and process some JSON data. This is using Vertx V4.3.8.
The JSON data is being passed through the following Javascript ...
0
votes
1
answer
38
views
Vert.x EventBus handler as Flow
I'd like to consume events from the Vert.x event bus and provide them through a Kotlin Coroutine Flow.
However it looks like the Flow is immediately closed before anyone can send to the event bus ...
0
votes
1
answer
29
views
Vertx cluster member connection breaks on hazelcast uuid reset
I am working on a project that is composed of multiple vertx micro services where each service runs on different containers in Openshift platform. Eventbus is used for communication between services.
...
0
votes
1
answer
32
views
Get HttpServletRequest from vert.web.ext context.request()
I am probably asking a similar question as this
is it possible to translate ServerHttpRequest and HttpServletRequest each other
I have an old 3rd party jar lib (no source code) that intakes/expects ...
0
votes
0
answers
24
views
Quarkus Vertx throwing java.nio.BufferOverflowException during test when run from command line but not intellij
I have a service that is making use of the Quarkus Event bus. Quarkus version in use is 2.9.0.CR1
When I run my tests through intellij, all tests pass and i do not get issues. However, when I try to ...
0
votes
0
answers
49
views
Unable to connect to Kucoin API using Secure WebSockets, JDK 17 and Vert.x
I'm trying to connect to the Kucoin API using Secure WebSockets (WSS). I'm using JDK 17 and Vert.x 4.3.8 (the latest version at this time). I followed the instructions here.
So currently I have a ...
0
votes
0
answers
22
views
Disable connection pool on Vert.x httpclient or webclient
I have issue with using Vert.x httpclient or webclient class to call whatsapp API. If I make two API call back to back to whatsapp using the same httpclient / webclient object then I often encountered ...
0
votes
1
answer
45
views
Vert.x Service Proxies: Just after I change service methods from returning Future<T> to Uni<T> of Smallrye Mutiny, the code generation failed
I've sucessfully generated service proxies for service having methods returning Future<T>,
but just after I changed those methods to return Uni<T> according to API Translation - Smallrye ...
0
votes
0
answers
14
views
How to implement multiple file download function in WebAPI created with vert.x
Please advise.
It is possible to download one file as shown below.
However, it is unclear how to download two or more files.
I searched for a way to download more than two files but could not find one....
0
votes
0
answers
52
views
Limiting memory usage with large body requests
I'm running a vertx java web server to handle large body requests. In order to avoid memory overflow, I'm using the vertx backpressure mechanism with a Pump and implementation of the WriteStream ...
0
votes
1
answer
28
views
Vert.x issue while inserting data into SQL Server
I am trying to insert data into a table in SQL Server hosted on AWS RDS.
It was working fine and suddenly I started getting an issue. It seems like an intermittent issue but I am unable to see why it ...
1
vote
1
answer
120
views
Tuple concurrently updated when granting permissions
Struggling with database queries - not a db expert by any means, any help would be appreciated.
When dynamically created databases and schemas, once in awhile I get this error:
Unable to apply ...
0
votes
1
answer
36
views
Update vertx Json config file during http request
I have VertX application with a config.json file. I want to edit one of the properties in the file during an HTTP request.
Is it possible?
Json Config:
{
"REQUEST_OPTIONS": {
"...
0
votes
1
answer
40
views
How should I implement Vertx resiliency with retrying until some condition is met?
I would like to implement in my Vertx application resiliency. The case is that I have 2 application instances (primary and secondary) and I would like to try to send messages from primary to secondary ...
0
votes
1
answer
31
views
How to use Vertx EventBus to send messages between Verticles?
I am currently maintaining application written in Java with Vertx framework.
I would like to implement sending messages between 2 application instances (primary and secondary) using EventBus (over the ...
1
vote
1
answer
46
views
Vert.x: can I mix a wildcard route with an explicit route?
I want to host Swagger UI as static content using Vert.x. The swagger-initializer.js needs the spec somewhere on the server and I want it to be in /api/swagger-ui as well, so I can define the spec in ...
0
votes
2
answers
70
views
what is the I/O Thread? is it a OS thread or User thread? [closed]
There is a moment where a server thread needs to accept a connection and read/write to it, is this thread what we call I/O Thread? Are I/O thread and EventLoop the same thing?
EDIT:
A bit more context,...
0
votes
1
answer
53
views
Externalize the values in config files in vert.x and EKS
I use to work on spring boot and when i need to externalize the config values. I genrally create a application.yml
SUD:
BASEPATH: ${SUD_SERVICE_BASE_PATH:https://origin-sud.com}
MCS_BASEPATH: ${...
0
votes
2
answers
72
views
Logging in Json format from Vert.x application
We recently migrated from Splunk to ELK. We wanted to log our message as json for better searchability in Kibana.
Our application was using vert.x 3.9. I came across https://reactiverse.io/reactiverse-...
0
votes
1
answer
53
views
What happens when I dont use reactive Quarkus extensions?
if I dont use the reactive extensions for Quarkus Is the I/O op going to be non-blocking or blocking? I am asking this because I didnt like the reactive programming style, I wish I could have ...
0
votes
1
answer
35
views
Subscription to Redis Stream Blocks Connections for Other Requests With Vert.x
I'm implementing an application with Vert.x (and their Redis Client library) that is able to listen to Redis Streams. For that I have n instances in my app subscribing to it. The Vert.x documentation ...
0
votes
0
answers
19
views
Include better data export option in Web service
We have Java Vert.x project. We have implemented the download button in our Web Service for our users. When user clicks on download button, we would convert the huge data in our database that the user ...
0
votes
0
answers
39
views
How can I make each promise take 2 seconds to complete in an async manner?
Here is the code:
import io.vertx.core.Future;
import io.vertx.core.Promise;
import io.vertx.core.json.JsonArray;
import java.util.ArrayList;
import java.util.List;
import java.util.stream....
0
votes
2
answers
71
views
Quarkus native build Random/SplittableRandom exception with Vert.x Redis Client
I am doing a native build of my Quarkus app and am hitting the UnsupportedFeatureException: Detected an instance of Random/SplittableRandom on a few Vertx Redis Client classes.
I am building using the ...
0
votes
1
answer
62
views
Is there any way to set initial delay (i.e 30 sec) in Vertx and then run task periodically with different time delay (i.e 1 sec)
I am using vert.x framework to write a Java application. I have a use case where I need to wait for 30 seconds before scheduling task for 1 second interval.
I am using vertx.setPeriodic to execute ...
0
votes
1
answer
26
views
HTTP_STATUS in io.opentracing.tag is setting to string value
I am using io.opentracing to get the trace and log it.
But, getting duplicate trace. One with http.status_code as string and other as integer
Example trace:
{
tags:
{
"http.url":"http://...
0
votes
0
answers
25
views
Vert.x web and micro services - Health check being starved
We use a very custom framework built on Vert.x to build our k8s micro services. This framework does a lot of the heavy lifting for teams, such as setting up all the endpoints and creating the health ...
0
votes
0
answers
23
views
VertX-Hazelcast on non orchestrated docker
I'm trying to figure out, how I have to configure the VertX/Hazelcast-cluster with multiple containers on two nodes:
+->Primary-Gateway (Node: 192.168.1.12, Docker-Network Primary)
| ...
0
votes
0
answers
40
views
How does vertx database connection work under the hood?
I am new to reactive world and trying to understand how the db-connections works under the hood with vertx-sql-clients.
I am using io.vertx:vertx-mysql-client, io.vertx:vertx-oracle-client and io....
0
votes
1
answer
32
views
Invalid Bson Field $set or $inc with upsert true throwing exception
{"updateOne":{
"filter":{"_id":"0"},
"update":{"$set":{"errorCodeCount":1}},
"upsert":true
}}
While calling ...