You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importballerina/http;
service/paymentsonnew http:Listener(9095) {
resourcefunction post orders/[stringorderID]/reserve() returnsint|error {
workerw1returnserror? {
int a =10;
a->function;
}
int b =<-w1;
returnb;
}
}
When running above progran, runtime crash with following log.
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
waruna/httpService/0/$value$$anonType$_0.$post$orders$^$reserve(Lio/ballerina/runtime/internal/scheduling/Strand;Lio/ballerina/runtime/api/values/BString;)Ljava/lang/Object; @1206: invokestatic
Reason:
Type 'waruna/httpService/0/$value$$anonType$_0' (current frame, stack[1]) is not assignable to 'io/ballerina/runtime/internal/scheduling/Strand'
Current Frame:
bci: @1206
flags: { }
The text was updated successfully, but these errors were encountered:
Error can be removed if we return only int (remove error)
warunalakshitha
changed the title
[Bug]: Runtime Crash when using worker interaction to parent function
[Bug]: Runtime Crash when using worker interaction to default worker with error return
Nov 2, 2023
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- Reason/EngineeringMistake - The issue occurred due to a mistake made in the past. - Reason/Regression - The issue has introduced a regression. - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components. - Reason/Complex - Issue occurred due to complex scenario. - Reason/Invalid - Issue is invalid. - Reason/Other - None of the above cases.
Description
Please refer the example.
When running above progran, runtime crash with following log.
The text was updated successfully, but these errors were encountered: