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

Elements passed through a form not received by the server nor displayed on the front. PATCH method | Angular | Dropwizard

Server side shows that the PATCH method is called and adds a null at the end of the array, instead of a new Item array with the Name and Price taken from user input. PATCH method in the service component: patchAdd(menu: MenuModel | number,…
soulzap
  • 69
  • 1
  • 1
  • 7
0
votes
0 answers

No injection source found for a parameter of type public com.phonepe.gandalf.models.authz.Permission

I am implementing the custom parameter annotation using AbstractDataProvider. I have went through some link but still same problem persists. https://psamsotha.github.io/jersey/2015/11/01/jersey-method-parameter-injection.html Jersey custom method…
0
votes
1 answer

Removing a specific element of a list which is an element of another list using PATCH method. Written using dropwizard

I'm trying to write a PATCH api method which removes one specific element from a list of items. Note that the list of items is part of the Menu class. There aren't a lot of dropwizard resources out there, so I'm kinda stuck. Here's all the…
soulzap
  • 69
  • 1
  • 1
  • 7
0
votes
0 answers

In dropwizard, what is the best way to access configuration object anywhere in the application

In dropwizard, what are the options to make the configuration object being accessible in the application (not just resource object)? Thanks. public class TestConfig extends Configuration { @JsonProperty String test; } public class…
0
votes
1 answer

How to upload image using Postman in Dropwizard Project.?

I am working on a Gradle project with the Dropwizard framework can anyone help me how to upload an image using postman into the Dropwizard. thanks in advance
nikhil kumar
  • 55
  • 1
  • 10
0
votes
1 answer

Dropwizard metrics slf4j reporter configuration

I have configured a basic sl4j reporter for a dropwizard (codehale) metrics registry. This is the reporter configuration: Slf4jReporter.forRegistry(metricRegistry) .outputTo(slf4jLogger) …
kstream
  • 11
  • 4
0
votes
0 answers

Jetty 9.4.11 comes in DropWizard 1.3.5 has performance issues

We were using DropWizard 1.1.6 (which comes with Jetty 9.4.6), and then we moved to Dropwizard 1.3.5(which comes with Jetty 9.4.11). When doing couple of performance benchmark runs, we saw a clear latency increase in our APIs(which accepts Http…
Subash
  • 11
  • 2
0
votes
1 answer

How to reverse look up a resource from a given path in Java Jersey + Dropwizard?

If I am given a relative path (say path = "/foo/1/bar"), how can I find out which resource's method will be used to treat the request (this would be FooResource.bar method in the current example)? I have tried to use Reflections, by looking at all…
adamaMG
  • 3
  • 2
0
votes
1 answer

Hibernate Unkown Entity Exception with @MappedSuperClass and Dropwizard

theres an exception I cannot get rid of. I have an entity: package mypackage.entities; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "raw_air_pressure") public class RawAirPressureData extends RawSensorData…
Kaspatoo
  • 1,223
  • 2
  • 11
  • 28
0
votes
1 answer

Jersey consuming both application/json and application/x-www-form-urlencoded

I want to have something like @POST @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_FORM_URLENCODED}) @Path("/") void create(@Suspended final AsyncResponse asyncResponse, @ApiParam(required = true) @NotNull @Valid final…
Kousha
  • 32,871
  • 51
  • 172
  • 296
0
votes
0 answers

concurrency problem with dropwizard framework and hibernate

An example configuration: two pods within kubernetes based on dropwizard framework with hibernate. Both pods (duplicated) contain the same code and Rest APIs. Both pods access the same DB. With this design I'll get problems with concurrency, right?…
user3930618
  • 99
  • 2
  • 11
0
votes
1 answer

How can I map MySQL query results to Java objects?

I am building a Dropwizard application where I want to easily map results from a MySQL database to java objects. I have seen this done before with an Object mapper, so I know it can be done, but unfortunately I can't remember where or how. I created…
sakl
  • 93
  • 7
0
votes
1 answer

Data filtering in Dropwizard using DAOs based on optional parameters

I want to implement filtering of data in my Dropwizard server. Let us say we want to search for Monuments. The user could use filters like name, city, category for filtering from the list of monuments. The uri will look something like…
LeoNeo
  • 739
  • 1
  • 9
  • 28
0
votes
1 answer

Which metrics are exported by DropwizardMetrics (Prometheus client)?

I have implemented a web service using Dropwizard. It runs on Kubernetes and we use Prometheus for logging there. The web service exports Dropwizard Metrics using the Java client implementation in DropwizardExports.java. This is the relevant…
Carsten
  • 1,912
  • 1
  • 28
  • 55
0
votes
0 answers

File upload from Browser to Jersey (server)client to Jersey Server

Background I have two services. Service A is exposed to the outside world and Service B is invoked by Service A. All of these services are dropwizard services. The feature I am trying to implement is to upload a file from frontend which is uploaded…
Jebin
  • 702
  • 13
  • 33