Sorry, I forget to add configuration into my .conf file, my bad пн, 15 мая 2023 г. в 06:43, Innokentiy Struchkov <[email protected] >:
> Hi! > > It looks like your configuration is not parsable by your dropwizard > version. Could you show "logging" section in your server configuration > file? And which version of dropwizard are you using? > > You can try simply use > > logging: > appenders: [] > > to check if your application can start. > > Innokentiy. > > On Sunday, May 14, 2023 at 5:14:18 AM UTC+7 [email protected] wrote: > >> I am trying to run the project, the build was successful. During the >> application of migrations and project startup an error crashes. >> >> * Failed to parse configuration at: logging.appenders.[0]; Could not >> resolve subtype of [simple type, class >> io.dropwizard.logging.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>]: >> missing type id property 'type' (for POJO property 'appenders') >> at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: >> com.spanning.db.migration.DbMigrationConfiguration["logging"]->io.dropwizard.logging.DefaultLoggingFactory["appenders"]->java.util.ArrayList[0]) >> >> at >> io.dropwizard.configuration.ConfigurationParsingException$Builder.build(ConfigurationParsingException.java:279) >> at >> io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:156) >> at >> io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:89) >> at >> io.dropwizard.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:126) >> at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:74) >> at io.dropwizard.cli.Cli.run(Cli.java:78) >> at io.dropwizard.Application.run(Application.java:93) >> at >> com.spanning.db.migration.DbConfigMigrationApplication.main(DbConfigMigrationApplication.java:27) >> Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: >> Could not resolve subtype of [simple type, class >> io.dropwizard.logging.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>]: >> missing type id property 'type' (for POJO property 'appenders') >> at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: >> com.spanning.db.migration.DbMigrationConfiguration["logging"]->io.dropwizard.logging.DefaultLoggingFactory["appenders"]->java.util.ArrayList[0]) >> at >> com.fasterxml.jackson.databind.exc.InvalidTypeIdException.from(InvalidTypeIdException.java:43) >> at >> com.fasterxml.jackson.databind.DeserializationContext.missingTypeIdException(DeserializationContext.java:2094) >> at >> com.fasterxml.jackson.databind.DeserializationContext.handleMissingTypeId(DeserializationContext.java:1607) >> at >> com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._handleMissingTypeId(TypeDeserializerBase.java:307) >> at >> com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedUsingDefaultImpl(AsPropertyTypeDeserializer.java:211) >> at >> com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:145) >> 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) >> at >> com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:28) >> at >> com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129) >> at >> com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:314) >> at >> com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:215) >> at >> com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187) >> at >> com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedUsingDefaultImpl(AsPropertyTypeDeserializer.java:226) >> at >> com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:145) >> at >> com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263) >> at >> com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:138) >> at >> com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:314) >> at >> com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:177) >> at >> com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323) >> at >> com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4801) >> at >> com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2974) >> at >> io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:127) >> ... 6 more >> Found this one issue >> <https://github.com/dropwizard/dropwizard/issues/810>, and expanded the >> config like this: >> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-shade-plugin</artifactId> >> <configuration> >> <transformers> >> <transformer implementation >> ="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> >> </transformers> >> </configuration> >> </plugin> >> >> but that did't help >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "dropwizard-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/dropwizard-user/btUwHBFK7S8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dropwizard-user/8fe91942-8cae-43e9-a77c-be2d8d26548cn%40googlegroups.com > <https://groups.google.com/d/msgid/dropwizard-user/8fe91942-8cae-43e9-a77c-be2d8d26548cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/dropwizard-user/CAE-bCXaNjpxy3WRADiCEmZJzHFUJAzGOX96LHxSyvXKvWOeAFg%40mail.gmail.com.
