Microprofile @Asynbchronous and CompletionStage exception

14 views
Skip to first unread message

Ark

unread,
May 14, 2019, 12:28:00 PM5/14/19
to Payara Forum

I am using Payara 5.191

@Asynchronous
public CompletionStage<String> getAsyncStringCS() {...}

throws this exception when deploying

org.glassfish.deployment.common.DeploymentException: CDI definition failure:Method "getAsyncStringCS" annotated with org.eclipse.microprofile.faulttolerance.Asynchronous does not return a Future. -- Method "getAsyncStringCS" annotated with org.eclipse.microprofile.faulttolerance.Asynchronous does not return a Future.


Dont know since when, but CompletionStage should work at least for MP 2.0?
Works on WLP


Ark

unread,
May 14, 2019, 12:43:54 PM5/14/19
to Payara Forum
Ok, my bad, got it wrong. It needs Fault Tolerance 2.0, so it is MP 2.2
Sorry. 

Rudy De Busscher

unread,
Jun 5, 2019, 1:46:07 AM6/5/19
to Payara Forum
Payara 5.192 has support for MP 2.2, you can try it out on the latest version.

Regards
Rudy
Reply all
Reply to author
Forward
0 new messages