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
1 answer

Dropwizard metrics annotations are not working in Spring Boot 1.5

I've integrated Spring Boot (1.5) based application with Dropwizard Metrics & Prometheus. I can see the DropWizard metrics in Prometheus when I use 'metricRegistry.mark()' method in my Controller class. Now I want to show metrics related to…
DilTeam
  • 2,551
  • 9
  • 42
  • 69
0
votes
1 answer

Use ExceptionMapper to log CLIENT_ERRORs

I am working on an application which uses Dropwizard, which has this implementation of ExceptionMapper:…
hal9000
  • 201
  • 5
  • 25
0
votes
0 answers

integrating Audit4J in dropwizard Application

Has anyone had success integrating Audit4J into their dropwizard application? I am working on a project where we have to implement some audit logging, and stumbled upon Audit4J which seem to be nice, I just can't figure out how to make it work in my…
Anuj jain
  • 493
  • 1
  • 8
  • 26
0
votes
0 answers

Can we Integrating Swagger with JAX-RS with out creating JSON configuration file?

I have been using swagger for a while with spring boot applications. It is very easy with spring since i only have to specify the package info. But recently i was going through a few documents on how to integrate swagger with JAX-RS, i found it…
John
  • 666
  • 1
  • 9
  • 22
0
votes
0 answers

java.lang.NoSuchMethodError using JDBI

public class MyApplication extends Application { final static Logger LOG = Logger.getLogger(MyApplication.class); public static void main(final String[] args) throws Exception { new…
ps.
  • 4,230
  • 5
  • 31
  • 39
0
votes
0 answers

Classcast exception on the server side when making a Post request using Jersey

I am making a call to a Rest service developed using Dropwizard and able to successfully make calls to Get requests however Post request to the same service (another end point offcourse) is not working. It gives a 500 server error and in the logs I…
Arunabh
  • 167
  • 1
  • 7
  • 18
0
votes
0 answers

IntelliJ: Debugger not working in a Maven project

I am new to using IntelliJ and this seems to be a common problem having gone through similar questions but am still unable to use debugger in a Maven project. After configuring the Debugger when I click on Debug I see following in my…
Arunabh
  • 167
  • 1
  • 7
  • 18
0
votes
1 answer

HTTP 415 Errors when using JQuery to upload JSON to a Dropwizard based API

I have written a REST/JSON API using Dropwizard. Besides the internal unit tests, I've been testing it using the Restlet Chrome extension and curl. I've been using the Content-Type: "application/json" header in the HTTP requests. That works as…
0
votes
1 answer

Dropwizard Sundial Schedueled task with Hibernate object

I have this sundial task in my dropwizard project: @SimpleTrigger(repeatInterval = 10, timeUnit = TimeUnit.SECONDS) public class GitlabImporter extends Job { private static BranchDAO branchDAO; @Override @ExceptionMetered public void…
ghovat
  • 1,033
  • 1
  • 12
  • 38
0
votes
1 answer

PKCS12 file doesn't work with io.dropwizard:dropwizard-hibernate:1.3.5 jar

I am using hibernate with dropwizard with SSL. before importing "io.dropwizard:dropwizard-hibernate:1.3.5" jar, application was working perfectly with PKCS12 file but after importing above jar I am getting below error. Please provide your inputs…
0
votes
0 answers

Dropwizard/JDBI - Per-field mapping of MySQL INT to Java boolean?

My database contains many columns where booleans are represented by a 0 or a 1. I'd like to convert these to booleans when they are mapped from the database while retaining the ability to use @RegisterBeanMapper(Dog.class) for most of the other…
Tremelune
  • 352
  • 2
  • 11
0
votes
1 answer

Occasionally Bad Gateway (502) from nginx and jetty on aws after upgrading dropwizard

I'm running a jetty REST server on AWS - Elastic Beanstalk, with nginx. The application is running using the Dropwizard framework. Recently, I've upgraded Dropwizard from version 1.2.2 to 1.3.5. Then, some of my integration tests started to fail…
Uziel Sulkies
  • 598
  • 5
  • 15
0
votes
1 answer

No serializer found for class org.json.JSON in dropwizard in API Response but Result is Coming in when am printing a return type

I am getting a result from the model in the list: List tempOrder = lcbuyerdao.getc2code(cart.toString()); In this tempOrder I am getting all the data, but I have to send this data in particular format. For that am using JSONObject…
0
votes
0 answers

How to properly tear down Junit Test Rules (DropwizardAppRule)

I'm getting desperate on a few tests classes. I think I kind of narrowed down the problem but I'm out of ideas for how to fix it. TLDR: how to properly tear down a DropwizardAppRule instance in order to use a different one in another class? Or…
Pierre
  • 111
  • 1
  • 4
0
votes
2 answers

Returning 500 internal error when CompleteableFuture throws exception

I have a rest controller that has an endpoint: @GET @Path("/reindex-record") public String reindexRecord(@QueryParam("id") String id) { if (StringUtils.isEmpty(id)) { CompletableFuture.runAsync( () ->…
doublemc
  • 3,021
  • 5
  • 34
  • 61