Questions tagged [java-vertx-web]

14 questions
2
votes
1 answer

Rest API GET response with binary data

I am working on Restful API, in memory we have a Json-format object, customer needs to download this json object with zip file format. Now I am using Vertx to implement this GET response, the response needs to return a ZIP-format binary data,…
Joe
  • 623
  • 7
  • 16
2
votes
1 answer

Vertx Web: How to split and organize routes across multiple files?

So far I'm really loving Vertx. The documentation is great, and the cross-language support is amazing. However, the examples and documentation for my specific problem all seem to be out of date. I guess the API has changed a bit since 3.4.x (I'm…
foxtrotuniform6969
  • 3,527
  • 7
  • 28
  • 54
0
votes
1 answer

Vertx Sessionhandler Creating new Session for EVERY Request

I have a login page in a nextjs app running on port 3000. The login page calls /sign-in api on vertx server on port 8082. After successful login, the user is redirect from login page to dashboard page which on same nexjs app. From dashboard, I call…
ZiCode
  • 19
  • 6
0
votes
1 answer

How to make StaticHandler download all Mime types?

I have a basic verticle serving files from the data folder: public class Server extends AbstractVerticle { @Override public void start() throws Exception { Router router = Router.router(vertx); …
Lukas Weber
  • 455
  • 6
  • 13
0
votes
1 answer

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 code: var countWords = function(toSend) { var…
Factor Three
  • 2,094
  • 5
  • 35
  • 51
0
votes
0 answers

does deploying multiple instances of a verticle for creating a httpserver use multiple threading for handling requests?

I want my vertx application to use multiple threads ( multiple event loops ) to take advantage of multiple cores and handles requests more optimally. Hence, I have deployed multiple instances of the server init verticle. But it doesn't seem like it…
0
votes
1 answer

Vertx Form Login Handler with Postgresql Failure

I am trying to authenticate user using FormLoginHandler and Postgresql Database with SqlAuthentication. But I get the following error: Jun 15, 2022 1:14:34 PM io.vertx.ext.web.RoutingContext SEVERE: Unhandled exception in…
Lucas
  • 43
  • 5
0
votes
2 answers

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 = (JsonObject) handler.body(); HttpMethod method =…
Hegdekar
  • 1,147
  • 1
  • 13
  • 16
0
votes
0 answers

Vert.x Web app throws IllegalStateExceptions when run in a Docker container

I have a Vert.x Web application that acts as a simple web server. The start() method of the verticle is below: @Override public void start() throws Exception { HttpServerOptions options = new HttpServerOptions(); …
Factor Three
  • 2,094
  • 5
  • 35
  • 51
0
votes
1 answer

Request Parameters validations in vertx 4.0.3

I was using vertx-Web-api-contracts in vertx 3.0 to validate my query parameters and form parameters using HTTPRequestValidationHandler and ParameterTypeValidator code sample : private final ParameterTypeValidator fileIdValueValidator = new…
adhikari
  • 112
  • 2
  • 13
0
votes
1 answer

Vert.x: how to isolate a verticle to dedicated event loop?

In my java application, I am using vertx-web 3.9.3 to create a web server for hosting both a web-app and some rest api endpoints. The web-app is mission critical, the rest api, however, is just a nice to have. I deployed the web-app and rest api…
Xinchao
  • 2,929
  • 1
  • 24
  • 39
0
votes
1 answer

Unable to serve static resources from classpath using vertx-web

The vertx-web documentation says that it is possible to serve static resources from the classpath, and everything I've read in forum/help threads seems to confirm this. Unfortunately I can't seem to get it to work. public class MainVerticle extends…
drkstr101
  • 760
  • 1
  • 6
  • 23
0
votes
1 answer

OpenApi generator java-vertx-web where to put business logic

I am trying out the java-vertx-web yaml to code generator. The generation process works fine and i get the code in target/generated-sources/openapi/src/gen/java/main/org/openapitools/vertxweb/server/api. There are files…
Jonathan R
  • 3,652
  • 3
  • 22
  • 40
-1
votes
1 answer

Do function execution continues after failing Promise in Java Vertx

I have a function which I'm trying to reduce complexity of. public Future getAllCompanies() { String url = ... return Future.future( promise ->…
M Usama Alvi
  • 187
  • 1
  • 15