2,007 questions
0 votes
0 answers
18 views
Dynamically enable json logging in Dropwizard
I'm using Dropwizard with yaml configuration and environment variable substitution (docs). I have the following config to enable JSON logging (docs). logging: appenders: - type: console ...
1 vote
0 answers
58 views
Dropwizard - new entities not commiting
We have a thread that queries external systems by clients. It receives a JSON array containing client information like id (which our system calls "customId"), name, phone, etc. The array is ...
0 votes
0 answers
40 views
Transactions holding a waiting lock resulting in deadlocks
I am using Dropwizard and including JDBI3 to handle communication with a MySQL database. To minimize traffic and make the API easy to use I have included an endpoint that takes a Map of settings and ...
0 votes
1 answer
147 views
How to Set Up WebSocket Support in Dropwizard 4 with Jetty 11?
I'm currently working on a Dropwizard 4 project with Jetty 11, and I'm having trouble setting up WebSocket support. Previous recommendations recommend using https://github.com/LivePersonInc/dropwizard-...
0 votes
0 answers
56 views
Difference between @Singleton and asEagerSingleton()
I have a project where I see my service is failing to initialise. I am using Dropwizard-guicey - but it uses Guice underneath, and my question is specific for Guice because the dependency injection is ...
0 votes
1 answer
106 views
How to configure slf4j and logback to allow one class to log to a separate file?
I have one Java class that is multithreaded and I want it to log to a separate file. I'm using Dropwizard which uses logback and is configured in my YAML file like this: logging: # The default ...
1 vote
0 answers
33 views
logging multiple threads in Dropwizard
I have a few background threads that are running continuously after application startup and I wish to preserve the logging in a separate file to make my main logging file easier to follow. Can someone ...
0 votes
1 answer
77 views
Dropwizard Hibernate Inject Session Factory into DAO using Guice
I have the dropwizard setup similar to this guide: https://www.dropwizard.io/en/stable/manual/hibernate.html private final HibernateBundle<ExampleConfiguration> hibernate = new HibernateBundle&...
0 votes
1 answer
89 views
Using kotlin coroutines alongside threads in a thread based web server application
I have a basic kotlin webserver application built using dropwizard and jersey, which uses threads for handling requests. I have been reading a lot lately on kotlin corooutines and seeing articles ...
6 votes
0 answers
275 views
Out of memory for Java application build in Quarkus because of Netty internal caching mechanism
We have our java application which was migrated from dropwizard to Quarkus. We have not changed the style of coding meaning still the code is blocking. After migration when we are deploying it to EC2 ...
2 votes
0 answers
50 views
Expose message property in Dropwizard health functionality?
Registered Health Checks are returned on localhost:8081/healthcheck, and include a message property: { "worker-alive": { "healthy":false, "message":"I am ...
1 vote
1 answer
482 views
How to get HikariCP metrics to show properly in NewRelic?
We have a custom webapp hat is using HikariCP. The application is compiled into a jar and then started in a docker container. Depending on the environment we are loading the newrelic-agent.jar via the ...
4 votes
0 answers
172 views
Rename metrics in Dropwizard MetricsRegistry in a Spring Boot application
in my Spring Boot application, I am using a metrics library which is a wrapper over: io.dropwizard.metrics. So I am getting all the API and system metrics from MetricsRegistry. As a result, while I am ...
0 votes
1 answer
530 views
Dropwizard MetricRegistry with Spring Boot 2
I was upgrading spring boot to 2 in one of the project. I am facing issue with @Autowire metricRegistry:MetricRegistry I had read upgrade guide where it is mentioned that Metrics are replaced by ...
0 votes
1 answer
83 views
Unrecognized Field in Dropwizard config.yml File while connecting aerospike
My config.yml file logging: -level: INFO -loggers: --io.dropwizard.archetypes: DEBUG mongo: -host: localhost -port: 27017 -database: User aerospike: -host: localhost -port: 3000 I am getting the ...