Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropwizard-sentry does not work with dropwizard version of 3.0.3 #126

Open
kouros51 opened this issue Nov 3, 2023 · 1 comment
Open

Comments

@kouros51
Copy link

kouros51 commented Nov 3, 2023

Here is the exception we got:

io.dropwizard.configuration.ConfigurationParsingException: configuration.yml has an error:
  * Failed to parse configuration at: logging.appenders.[1]; Could not resolve type id 'sentry' as a subtype of `io.dropwizard.logging.common.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>`: known type ids = [console, file, syslog, tcp, tls, udp] (for POJO property 'appenders')
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: com.example.Configuration["logging"]->io.dropwizard.logging.common.DefaultLoggingFactory["appenders"]->java.util.ArrayList[1])
	at io.dropwizard.configuration.ConfigurationParsingException$Builder.build(ConfigurationParsingException.java:277)
	at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:177)
	at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:94)
	at io.dropwizard.core.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:139)
	at io.dropwizard.core.cli.ConfiguredCommand.run(ConfiguredCommand.java:85)
.....
Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'sentry' as a subtype of `io.dropwizard.logging.common.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>`: known type ids = [console, file, syslog, tcp, tls, udp] (for POJO property 'appenders')
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: com.example.Configuration["logging"]->io.dropwizard.logging.common.DefaultLoggingFactory["appenders"]->java.util.ArrayList[1])
	at com.fasterxml.jackson.databind.exc.InvalidTypeIdException.from(InvalidTypeIdException.java:43)
	at com.fasterxml.jackson.databind.DeserializationContext.invalidTypeIdException(DeserializationContext.java:2084)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownTypeId(DeserializationContext.java:1575)
	at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._handleUnknownTypeId(TypeDeserializerBase.java:298)
	at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:165)
	at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:151)
	at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:136)
	at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:361)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:244)
@DevinOM
Copy link

DevinOM commented May 13, 2024

Any luck with this? Having a similar issue with my app that's using DW 3.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants