I've been try to upgrade from 0.9.1 to 1.0.0 (or 1.0.2). My config yaml
file contains this metrics definition:
metrics:
frequency: 60s
reporters:
- type: log
logger: metrics
Now I'm getting this error when trying to start the server:
config.yml has an error:
* Failed to parse configuration at: metrics.reporters; Must call method
with a container type (got [reference type, class
java.util.Optional<io.dropwizard.util.Duration<[simple type, class
io.dropwizard.util.Duration]>])
at [Source: N/A; line: -1, column: -1] (through reference chain:
coop.member.registration.MemberRegistrationServiceConfiguration["metrics"]->io.dropwizard.metrics.MetricsFactory["reporters"])
Tracing through the code in the debugger, I can see this error comes from
the Jackson JSON ObjectMapper, specifically
JaxbAnnotationIntrospector.findPropertyContentTypeResolver, which is called
when type is a container or reference, but seems to only expect a container
type. I am using Jackson 2.7.6.
Anyone else seen this and has a solution?
Thanks
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.