This problem have several solution. They differ according to the type of the application you want to open. You can find all the possible solutions in this article
https://www.itech4mac.net/apps-troubleshooting
Topic:
App & System Services
SubTopic:
Core OS
Tags: