Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Generted client proxy is not working with RESTEasy  #438

@amreladawy

Description

@amreladawy

Using RestEasy with the generated Rest client is failing with the following error.

ClassCastException : class org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine$2 cannot be cast to class MyResponse

The reason is that the generated MyReponse inherits ResponseDelegate which inherits javax.ws.rs.core.Response. RESTEasy will return ManualClosingApacheHttpClient43Engine and it fails casting to MyReponse class.

How to get the generated code to work using RESTEasy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions