Skip to content

Method not allowed (405) in forwardTo(anotherClass.class).method(arg) #1107

@cesarjhony

Description

@cesarjhony

Error on update Vraptor from 4.2.0-RC2 to 4.2.0.Final.
The method called not have any annotation.
The header response is
HTTP/1.1 405 Method Not Allowed Date: Sat, 10 Feb 2018 16:26:06 GMT Server: Apache Logado: true Location: https://192.168.0.69:443/operacaocaixa/0 Allow: OPTIONS Content-Type: text/html;charset=windows-1252 Content-Language: en Content-Length: 1020 Keep-Alive: timeout=5, max=200 Connection: Keep-Alive

On the code:
@Transactional @Put("/entrega/{cod}/{entregue}") public void entrega(Long cod, Boolean entregue){ ...some logic code... result.forwardTo(Another.class).myNotAnnotedMethod(data); }
The method is completely executed with any errors, the problem is the response 405.

Obs: I am working with CORS by Interceptor.

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