Im using Kotlin since very few time and I am facing a difficult problem now.
I have a controller that receives the body in a JSON format, worked fine but now I need to call a service that returns a Deferred , because of that I need to annotate my method with suspend.
Unfortunately now I get a serie of multiple errors that I feel are related with this new suspended functionality.
[FATAL] Method public final java.lang.Object MyResource.sayHello(StudentRequest,kotlin.coroutines.Continuation) on resource class MyResource contains multiple parameters with no annotation. Unable to resolve the injection source.; handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@a0bf272]}, definitionMethod=public final java.lang.Object my.org.package.MyResource(sayHello,k**otlin.coroutines.Continuation**),
Any idea of what could it be? or how can I implement a simple controller like the one I am trying to?