{"action":"closed","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-module-jaxb-annotations/issues/63","repository_url":"https://api.github.com/repos/FasterXML/jackson-module-jaxb-annotations","labels_url":"https://api.github.com/repos/FasterXML/jackson-module-jaxb-annotations/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-module-jaxb-annotations/issues/63/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-module-jaxb-annotations/issues/63/events","html_url":"https://github.com/FasterXML/jackson-module-jaxb-annotations/issues/63","id":180094786,"number":63,"title":"Error in type resolution of reference type (`Optional`)","user":{"login":"adrianriley","id":2384725,"avatar_url":"https://avatars.githubusercontent.com/u/2384725?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianriley","html_url":"https://github.com/adrianriley","followers_url":"https://api.github.com/users/adrianriley/followers","following_url":"https://api.github.com/users/adrianriley/following{/other_user}","gists_url":"https://api.github.com/users/adrianriley/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianriley/subscriptions","organizations_url":"https://api.github.com/users/adrianriley/orgs","repos_url":"https://api.github.com/users/adrianriley/repos","events_url":"https://api.github.com/users/adrianriley/events{/privacy}","received_events_url":"https://api.github.com/users/adrianriley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-29T16:13:52Z","updated_at":"2016-09-29T22:46:41Z","closed_at":"2016-09-29T22:46:41Z","body":"JaxbAnnotationIntrospector.findPropertyContentTypeResolver expects to be called with a container type, but is being called with a reference type (specifically an Optional) when parsing DropWizard configuration.  Here's the stack trace\r\n\r\n```\r\nCaused by: io.dropwizard.configuration.ConfigurationParsingException: /home/developer/projects/employee-service/employee-service-parent/employee-service/target/test-classes/config.yml has an error:\r\n  * 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]>])\r\n at [Source: N/A; line: -1, column: -1] (through reference chain: coop.employee.EmployeeServiceConfiguration[\"metrics\"]->io.dropwizard.metrics.MetricsFactory[\"reporters\"])\r\n\r\n\tat io.dropwizard.configuration.ConfigurationParsingException$Builder.build(ConfigurationParsingException.java:276)\r\n\tat io.dropwizard.configuration.YamlConfigurationFactory.build(YamlConfigurationFactory.java:152)\r\n\tat io.dropwizard.configuration.YamlConfigurationFactory.build(YamlConfigurationFactory.java:87)\r\n\tat io.dropwizard.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:124)\r\n\tat io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:72)\r\n\tat io.dropwizard.testing.DropwizardTestSupport.startIfRequired(DropwizardTestSupport.java:194)\r\n\t... 18 more\r\nCaused by: com.fasterxml.jackson.databind.JsonMappingException: 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]>])\r\n at [Source: N/A; line: -1, column: -1] (through reference chain: coop.employee.EmployeeServiceConfiguration[\"metrics\"]->io.dropwizard.metrics.MetricsFactory[\"reporters\"])\r\n\tat com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:290)\r\n\tat com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:269)\r\n\tat com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)\r\n\tat com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:142)\r\n\tat com.fasterxml.jackson.databind.DeserializationContext.findContextualValueDeserializer(DeserializationContext.java:444)\r\n\tat com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:183)\r\n\tat com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:106)\r\n\tat com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:91)\r\n\tat com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:142)\r\n\tat com.fasterxml.jackson.datatype.guava.deser.GuavaImmutableCollectionDeserializer._deserializeContents(GuavaImmutableCollectionDeserializer.java:44)\r\n\tat com.fasterxml.jackson.datatype.guava.deser.GuavaImmutableCollectionDeserializer._deserializeContents(GuavaImmutableCollectionDeserializer.java:14)\r\n\tat com.fasterxml.jackson.datatype.guava.deser.GuavaCollectionDeserializer.deserialize(GuavaCollectionDeserializer.java:103)\r\n\tat com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:490)\r\n\tat com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)\r\n\tat com.fasterxml.jackson.module.afterburner.deser.SuperSonicBeanDeserializer.deserialize(SuperSonicBeanDeserializer.java:156)\r\n\tat com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:490)\r\n\tat com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)\r\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:224)\r\n\tat com.fasterxml.jackson.module.afterburner.deser.SuperSonicBeanDeserializer.deserialize(SuperSonicBeanDeserializer.java:152)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3779)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2050)\r\n\tat io.dropwizard.configuration.YamlConfigurationFactory.build(YamlConfigurationFactory.java:123)\r\n\t... 22 more\r\nCaused by: java.lang.IllegalArgumentException: 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]>])\r\n\tat com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.findPropertyContentTypeResolver(JaxbAnnotationIntrospector.java:567)\r\n\tat com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findPropertyContentTypeResolver(AnnotationIntrospectorPair.java:233)\r\n\tat com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.findPropertyContentTypeResolver(AnnotationIntrospectorPair.java:233)\r\n\tat com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findPropertyContentTypeDeserializer(BasicDeserializerFactory.java:1516)\r\n\tat com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.resolveType(BasicDeserializerFactory.java:1886)\r\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.constructSettableProperty(BeanDeserializerFactory.java:717)\r\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.addBeanProps(BeanDeserializerFactory.java:504)\r\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.buildBeanDeserializer(BeanDeserializerFactory.java:228)\r\n\tat com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:143)\r\n\tat com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer2(DeserializerCache.java:406)\r\n\tat com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:352)\r\n\tat com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:264)\r\n\t... 42 more\r\n\r\n\r\n```\r\n\r\nSee https://groups.google.com/forum/#!topic/dropwizard-user/xgBAhXaqop0"}}
{"actor":{"display_login":"cowtowncoder"}}