Skip to content
This repository was archived by the owner on Apr 21, 2023. It is now read-only.
This repository was archived by the owner on Apr 21, 2023. It is now read-only.

ReactiveErrorAttributes uses inexistent DefaultErrorAttributes(boolean) constructor #113

Description

@paskos

Our service uses spring-boot version 2.5.4.
When trying to use errors-spring-boot-starter version 1.4.0 we get this exception at startup.

Caused by: java.lang.NoSuchMethodError: void org.springframework.boot.web.reactive.error.DefaultErrorAttributes.<init>(boolean)
        at me.alidg.errors.adapter.attributes.ReactiveErrorAttributes.<init>(ReactiveErrorAttributes.java:43)
	at me.alidg.errors.conf.ReactiveErrorsAutoConfiguration.errorAttributes(ReactiveErrorsAutoConfiguration.java:38)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at arg.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)

It seems that ReactiveErrorAttributes refers to an inexistent constructor in spring DefaultErrorAttributes

public ReactiveErrorAttributes(WebErrorHandlers webErrorHandlers,
                                   HttpErrorAttributesAdapter httpErrorAttributesAdapter) {
        super(true);
        this.webErrorHandlers = requireNonNull(webErrorHandlers, "Web error handlers is required");
        this.httpErrorAttributesAdapter = requireNonNull(httpErrorAttributesAdapter, "Adapter is required");
}

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions