I am using Dropwizard. I am trying to use Response to read a class that returns a list of an Object. I have tried using Generic Type and read comments of people who have similar issues but I still have the same error message on hitting the endpoint. This is the method that calls the api. This is the error
Tag: dropwizard
java.lang.NullPointerException at io.dropwizard.testing.junit5.DropwizardExtensionsSupport.beforeEach
I am trying to test a Dropwizard resource. My test looks like this: However, this gives the error message: which is frankly uninformative. Can someone point out what is wrong here? P/S Here is the CommonObjects constructor: which also explains why I am creating the resource extension before each test case. An…
Unable to create records using custom generator strategy for getter names
I’m on jOOQ 3.13.1, dropwizard 2.0.7. To make jOOQ and dropwizard together, I am using (https://droptools.bendb.com/jooq/). I am using custom generation strategy to maintain camel case for my setters and getters. The names are coming in as expected. The record objects have data for their respective colu…
Use a list of strings in IN clause with JDBI
I’m using JDBI / Dropwizard for a project and would like to run some simple queries. I have a query like so: private static final String GET_STUFF = “SELECT * FROM myTable WHERE state IN (:desiredState)” I bind the variable in my method like so: However, I get the following error when runnin…
JDBI’s @BindBean doesn’t find named parameters in bean class during INSERT
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 the properties in the bean. I already isolated the issue into a separate project, but can’t figure out …