-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with custom-activity: runtime error: invalid memory address or nil pointer dereference #146
Comments
@torresashjian, Can you please have look on this as a priority issue. None of my applications are running due to this error where custom activities are involved in the flow. I tried using docker UI to install my custom activities but it shows "install successful" but activities are not visible in UI to add. Reference: https://github.com/mgdevstack/flogo-contrib/tree/master/activity/pahoMQTT |
Hi @mgdevstack it seems like your activity.json in https://github.com/mgdevstack/flogo-contrib/tree/master/activity/simpletest is missing the "ref" property. Try with this: |
@torresashjian, I tried with above fix, but it's not working. As in application's flogo.json, activityref is already provided. I don't think, ref in activity.json should hold any importance. (As we first create activity with flogogen and then push to github / central repo) Any other points to debug? |
Thanks @torresashjian, I hope, the problem is resolved with your suggestion. If ref attribute in activity.json is the reason behind this issue, we need to fix codebase to pick up activity reference from application's flogo.json (activityRef attribute) not from activity.json (ref attribute) because as earlier mentioned, we create activity first, push this to git and then reference this activity in the application. Is it worth doing? |
@mgdevstack was your issue resolved? will look into the feasibility around your suggestion. perhaps @fm-tibco has some thoughts? |
Closing with the assumption that the issue is solved... opened a new issue TIBCOSoftware/flogo#183 to track @mgdevstack's suggestion around ref |
We are facing runtime error: invalid memory address or nil pointer dereference with every custom activity. Is there anything missing?
Created a simple activity (simpletest) to demonstrate the issue:
https://github.com/mgdevstack/flogo-contrib/tree/master/activity/simpletest
flogoapp to test: https://github.com/mgdevstack/flogo/tree/master/apps/simpleapp
flogo.json
Below is the screenshot of StackTrace fetched from
I couldn't able to debug values in channels but I'm sure we are missing to handle any error in specified go routine of execTask(workItem *WorkItem) function. Can anyone debug the issue with custom activity or this app?
Referencec:
Activity: https://github.com/mgdevstack/flogo-contrib/tree/master/activity/simpletest
App: https://github.com/mgdevstack/flogo/tree/master/apps/simpleapp
The text was updated successfully, but these errors were encountered: