question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues using dropwizard 1.0.0-rc2 with lombok

See original GitHub issue

Couple of issues I noticed, both i think were due to interactions between lombok and jackson:

  1. If config classes have @AllArgsConstructor and @Builder annotation at class level, class level defaults are not prepopulated while parsing config YAML file. For example:
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TestConfig {
    @NotNull
    @NotEmpty
    private String value = "Hello";
}

//Used in config
public class MyConfig extends Configuration {
    @NotNull
    @Valid
    @Getter
    private TestConfig test = new TestConfig();
}

If the “test” section is omitted in the YAML, d/w will throw an error

  1. Check the issue: https://github.com/FasterXML/jackson-databind/issues/1122

Both might be related as moving the @Builder to a clas level constructor in case 1 fixes the problem.

This breaks code written in even d/w version 0.9.2 and would seem like a critical to me.

Can jackson be upgraded before 1.0.0 release?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ruilchcommented, May 31, 2016

Tested 1.0.0-rc2 with overriden jackson-databind, works fine.

0reactions
nickbabcockcommented, May 11, 2016

I’m optimistically assuming the problem is resolved, if not, reply back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I'm interested in the downsides of using Lombok, since the ...
That said, we never encountered any Lombok-related problems when running services in the cloud or locally. ... Lombok doesn't come included in Dropwizard....
Read more >
Spring Boot Reference Guide
This section provides a brief overview of Spring Boot reference documentation. Think of it as map for the rest of the document. You...
Read more >
https://docs.cloudera.com/documentation/other/shar...
OVERVIEW Items appearing in the following notices are provided for the notification and guidance of the recipient in accordance with the listed license....
Read more >
Maven Central Repository Search
Official search by the maintainers of Maven Central Repository.
Read more >
Veritas Data Insight Third-Party Attributions Guide
the computer on which the problem occurred, in case it is necessary to replicate ... Apache Directory LDAP API Network MINA 1.0.0-RC2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found