dropwizard Questions
3
Solved
So here is the existing code snippet written to build Humans ( as in matrix movie :) )
if (gender.equals("male")){
return Human.builder()
.gender('male')
.name('abc')
.speaks("english")
.aliv...
Soria asked 30/1, 2018 at 11:28
4
Solved
I want to dynamically filter a JDBI query.
The a list of parameters is passed from the UI via REST e.g.
http://localhost/things?foo=bar&baz=taz
http://localhost/things?foo=buz
Which is (clu...
Porush asked 1/4, 2016 at 15:4
6
I'm using Dropwizard (1.0.0) and Liquibase to create a database if it's not existing.
Problem here is that I'm using a different Postgres schema (not public). It seems like Liquibase is not able ...
Impatience asked 5/4, 2016 at 7:2
3
Solved
How do I turn on SQL query logging for a Dropwizard application? I would like it to only log SQL in certain environments.
Honorific asked 30/3, 2015 at 18:18
7
Solved
I have a Dropwizard application that needs to generate a dozen or so beans for each of the configs in a configuration list. Things like health checks, quartz schedulers, etc.
Something like this:
...
Festinate asked 6/2, 2015 at 20:13
2
Have a look at the following input JSON:
{
"importantKey": "123xyz",
"nested": {
// more stuff goes here.
}
}
Nested is represented by an interface that has several different implementations...
Duane asked 22/10, 2016 at 13:21
2
Solved
I'm creating a RESTful service for accessing data.
So I started writing that service, first I created a ReadOnlyResource interface with the following code:
public interface ReadOnlyResource<E,...
Suttle asked 3/4, 2017 at 7:21
3
Solved
I have a dropwizard question. I use Dropwizard with SBT (which works pretty fine).
If I run my application i package it with:
$ sbt clean assembly
And than run the application with:
$ java -jar...
Uxorial asked 13/3, 2018 at 17:12
3
Solved
Problem
Unable to convert swagger 2.0 into a format which is being affected by Postman import functionality
Generated via /swagger.json|yaml
Swagger endpoint exposed via dropwizard jetty using...
Protoplasm asked 22/2, 2018 at 14:22
11
Solved
I have a Dropwizard based Jersey REST service running on the default ports 8080(service) and 8081(admin), I need to change the default ports to something that is less commonly used, I am not able t...
Shiny asked 17/11, 2013 at 7:43
2
Is it possible to have optional (null) parameters with jDBI queries? I'm attempting to get optional parameters working in a database query. I am working with dropwizard.
@SqlQuery("SELECT * \n" +...
Interlace asked 29/10, 2014 at 18:37
2
Solved
I see there is the CachedGauge in the DropWizard Metrics (formerly Coda Hale Metrics) lib. I'm wondering why anyone would ever use this?!?
My understanding of the value of a metric is that it is r...
Marishamariska asked 22/6, 2015 at 19:1
2
Solved
I'm using the dropwizard-migrations module for liquibase db refactoring. See the guide here: http://dropwizard.codahale.com/manual/migrations/
When I run
java -jar my_project.jar db migrate my_proj...
Barsky asked 11/9, 2013 at 20:59
2
Solved
I am consistently getting the following exception below when inserting values using JDBI's @BindBean into my Mysql database within Dropwizard. The problem seems to be that JDBI is unable to find th...
Archy asked 6/3, 2016 at 6:16
2
Solved
I wrote a simple class to test response reading entity method (if it works as I expect). But it didn't worked well.
When I launch my class I get following error at response.readEntity():
Except...
Tobolsk asked 29/4, 2016 at 19:32
4
Solved
I am trying to run 2 Dropwizard Server applications on 2 different ports 8080 and 9000.The first application starts successfully but I keep getting the below exception when I try to run
on port 90...
Lifeordeath asked 22/3, 2014 at 19:19
3
I've got an application I've developed in Dropwizard (0.9), and part of our internal infrastructure routinely pings the admin healthcheck REST endpoint to validate that the service is up. This adds...
Minute asked 26/9, 2016 at 23:11
3
Solved
I'm building a single page application which does all of it's html request routing on the client side and on the backend it uses dropwizard to provide a bunch of JSON services.
Essentially I'm hav...
Teocalli asked 20/3, 2014 at 19:18
2
I have disabled request access logging using this configuration in Dropwizard:
server:
requestLog:
appenders: []
I want to override it via command line, but I don't know what is correct syntax...
Footton asked 3/8, 2017 at 12:53
5
Suppose I've got an endpoint in Dropwizard, say
@GET
public Response foo() { throw new NullPointerException(); }
When I hit this endpoint it logs the exception and everything, which is great! I ...
Kinslow asked 16/12, 2016 at 21:55
5
Solved
Is it possible to have my app update the config settings at runtime? I can easily expose the settings I want in my UI but is there a way to allow the user to update settings and make them permanent...
Torticollis asked 15/12, 2014 at 18:7
3
I have a project which is having multiple modules within it. One of the module, say "main", is having my service class, "MyService.class". Dropwizard has a jar - dropwizard-core. I want this jar in...
Beefwitted asked 26/4, 2016 at 5:28
1
Solved
I'm using maven and dropwizard, getting java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/TSFBuilder error when I initiate an Object Mapper.
Tried to override the dependency by adding com....
Tooley asked 4/8, 2020 at 2:33
4
Solved
What's the best way to set the cache control headers of static assets in a Dropwizard service?
Some Googling showed up an AssetsBundle constructor:
AssetsBundle(String resourcePath, com.google....
Wein asked 18/11, 2013 at 16:20
2
Solved
I'm trying to make my first simple project with Dropwizard. I have a MySQL-database, and the idea is to get the data (companies) from there and represent it as JSON. I have followed the Getting sta...
Conversable asked 21/4, 2016 at 14:52
1 Next >
© 2022 - 2024 — McMap. All rights reserved.