Thanks to visit codestin.com
Credit goes to github.com

Skip to content

objectMapper NPE on branch refactor/538/spike-to-seperate-models-and-dtos #635

@who

Description

@who

I have been working over the new documentation that @dilipkrish has been putting together for the Swagger 2.0 strategy.

However, I seem to hit a roadblock. When I start my app, my configuration class, annotated with @EnableSwagger2, kicks in. After my Docket instance is created in this class, DocumentationPluginsBootstrapper.onApplicationEvent.(ContextRefreshedEvent contextRefreshedEvent) kicks in to fire off a scanDocumentation call. Eventually, FieldModelPropertyProvider.beanDescription is called, but before FieldModelPropertyProvider.onApplicationEvent, which means FieldModelPropertyProvider.objectMapper is still null. When FieldModelPropertyProvider.beanDescription tries to invoke objectMapper.getSerializationConfig(), the NullPointerException is triggered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions