Questions tagged [dropwizard]

Dropwizard is a Java framework for developing ops-friendly, high-performance, RESTful web services.

Dropwizard is a Java framework for developing ops-friendly, high-performance, RESTful web services.

Developed by Yammer to power their JVM-based backend services, Dropwizard pulls together stable, mature libraries from the Java ecosystem into a simple, light-weight package that lets you focus on getting things done.

Dropwizard has out-of-the-box support for sophisticated configuration, application metrics, logging, operational tools, and much more, allowing you and your team to ship a production-quality HTTP+JSON web service in the shortest time possible.

Integration with many well-established libraries, frameworks and technologies is provided with additional official modules and community supported modules.

2009 questions
0
votes
0 answers

How to use Cassandra in the Dropwizard

I tried to migrate the springboot application to the Dropwizard. However, I now have a problem that there is no framework in the Dropwizard that supports working with Cassandra databases, such as CRUD operations. Do any of you have any good…
Homo
  • 1
0
votes
1 answer

Build getting failed due to firebase sdk dependency

I have created pom.ml file as mentioned below:
Lawakush Kurmi
  • 2,726
  • 1
  • 16
  • 29
0
votes
0 answers

Codehale metrics for Akka mailbox size of an Actor?

I am trying to add some instrumentation to y actors and came across this https://github.com/kevinconaway/akka-dropwizard This looks like it integrates with Dropwizard metrics and according to the doc, supports gauages to measure the mailbox size of…
user_mda
  • 18,148
  • 27
  • 82
  • 145
0
votes
0 answers

Set Cookie in Jersey and still return Object

Is there a way to incorporate the type of the returned data in the return type of a Jersey resource method while still being able to set a cookie? The problems are: If using Response.ok().cookie(...), then the return type of the method is Response,…
Vic Seedoubleyew
  • 9,888
  • 6
  • 55
  • 76
0
votes
0 answers

Connections drop during a rolling update of Kubernetes pod running a Dropwizard app

A good number of connections drop during a rolling update of Kubernetes pod running a Dropwizard app. I updated the Dropwizard shutdownGracePeriod and Kubernetes terminationGracePeriodSeconds values to 60s and 90s respectively (defaults being 30s…
L P
  • 1,776
  • 5
  • 25
  • 46
0
votes
1 answer

Getting null from context

Why am I getting resourceInfo as null in this. Is there any other way to get resource class and resource method? @Provider @Authenticate @Transactional public class TestFilter2 implements ContainerRequestFilter { private final SessionRepository…
Nipun Garg
  • 628
  • 2
  • 8
  • 22
0
votes
1 answer

ClassNotFoundException ===> com.sun.jersey.api.NotFoundException

We are migrating to dropwizard1.x and recently faced this exception. I searched this class and found out that it was present in jersey1.x. But dropwizard1.x uses jersey2.x Here is the stack trace of the exception: at…
da6932
  • 21
  • 5
0
votes
0 answers

Dropwizar doesn't see method marked with @Timed annotation if it is invoked by sheduled job

I have job: public class Jobber { @Timed(name = "my_timed") public void someJob(String symbol) { LOGGER.info("Started job"); ... } public void startJob(String currency){ …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

fabric8-maven-plugin - Generator for Dropwizard app (java-exec?)

I'm new to fabric8-maven-plugin. I have a Dropwizard fat jar which I'd like to containerize for OpenShift/okd. It seems the recommended way would invoke the java-exec generator: http://maven.fabric8.io/#generator-java-exec Problem is that Dropwizard…
Jaco van Niekerk
  • 745
  • 1
  • 6
  • 11
0
votes
1 answer

Dropwizard is not purging old log files as configured in the logback config file

My group is using Dropwizard as our framework. Currently, we're configuring Logback to the following value for the archiveFileCount: archivedLogFilenamePattern = ${logRoot}"/trace-"${serviceId}"-%d{yyyy-MM-dd-HH}.log.gz" archivedFileCount =…
Quy
  • 1,343
  • 9
  • 11
0
votes
1 answer

Drop wizard exception, don’t log stack trace

In Dropwizard a custom exception is being thrown. The exception returns a 404 to the request and logs a full stack trace. How do you only send the response but not record the stacktrace to the server logs? public class MyExcpetion extends…
Marcus
  • 9,032
  • 11
  • 45
  • 84
0
votes
0 answers

Unable to migrate db using dropwizard and mysql docker container

I have a dropwizard application and a docker container running my mysql database. I want to create a docker container with my dropwizard project and migrate the db using the config.yml file. I created my own network - mynet. First, I run the mysql…
bunjee
  • 11
  • 1
  • 5
0
votes
1 answer

How do I measure the elapsed time between thread in Apache Storm?

I am getting metrics of Storm's bolts and spouts using [codahale-metrics] and sending to Graphite server. How do I get the time to send messages between bolts and spouts? For example. this code is just for metrics on each executor: import…
Felipe
  • 7,013
  • 8
  • 44
  • 102
0
votes
1 answer

JDBI: How to manage reconnection after disconnection

Using dropwizard with JDBI, by now if a cut the DB connection and restore it, requests don't work anymore after. My database config is: database: driverClass: org.postgresql.Driver user: ${USER} password: ${PASSWORD} url: ${URL} …
Rolintocour
  • 2,934
  • 4
  • 32
  • 63
0
votes
1 answer

Issues with DropWizard Gradle build

I imported a Dropwizard project into Intellij IDEA (using Gradle Wrapper from the project itself). Its working for others, but I end up in issue like this: Here is the gist of gradle…
Vineel
  • 1,630
  • 5
  • 26
  • 47