ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
138 stars 56 forks source link

Getting NoSuchMethodError When Trying to Deploy A Webhook #4278

Open Shaaali opened 1 year ago

Shaaali commented 1 year ago

Description:

Getting NoSuchMethodError When Trying to Deploy A Webhook in Choreo stage environment. organization : shalicom webhook name : User Operations Hook (An Asgardeo Notification Hook)

But this wasn't reproduceible anymore

Logs :

2023-03-28T10:10:59.8458492Z ERROR [ballerinax/trigger.asgardeo/0.4.0::listener.bal:(3:1,3:24)] cannot resolve module 'ballerina/cloud'

2023-03-28T10:10:59.8459186Z ERROR [ballerinax/trigger.asgardeo/0.4.0::listener.bal:(14:57,14:70)] undefined annotation 'Expose'

2023-03-28T10:10:59.8459829Z ERROR [ballerinax/trigger.asgardeo/0.4.0::listener.bal:(14:57,14:70)] undefined module 'cloud'

2023-03-28T10:10:59.8460455Z ERROR [ballerinax/trigger.asgardeo/0.4.0::listener.bal:(3:1,3:24)] cannot resolve module 'ballerina/cloud'

2023-03-28T10:10:59.8460898Z ERROR [ballerinax/trigger.asgardeo/0.4.0::listener.bal:(14:57,14:70)] undefined annotation 'Expose'

2023-03-28T10:10:59.8461303Z ERROR [ballerinax/trigger.asgardeo/0.4.0::listener.bal:(14:57,14:70)] undefined module 'cloud'

2023-03-28T10:10:59.8461585Z error: compilation contains errors

Steps to reproduce:

This error did not occur for other webhooks in stage. Therefore, this could be intermittent.

Affected Versions:

OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Shaaali commented 1 year ago

Repetitively getting the following errors when trying to deploy another webhook in the same tenant. Need to investigate whether these issues have the same root cause.

29/03/2023 14:13:00 ballerinax.trigger.asgardeo.0.Listener:start(listener.bal:67) ballerinax.trigger.asgardeo.0.Listener:start(listener.bal:67) copy-icon 29/03/2023 14:13:00 ballerina.websub.2.Listener:attachWithConfig(sub_listener.bal:90) 29/03/2023 14:13:00 ballerina.websub.2.Listener:executeAttach(sub_listener.bal:104) 29/03/2023 14:13:00 ballerina.websub.2.HttpService:init(http_service.bal:38) 29/03/2023 14:13:00 at ballerina.websub.2.HttpToWebsubAdaptor:getServiceMethodNames(native.bal:27) 29/03/2023 14:13:00 error: java.lang.NoSuchMethodError {"message":"'io.ballerina.runtime.api.types.ObjectType io.ballerina.runtime.api.values.BObject.getType()'"}