Open Tancred423 opened 5 years ago
Do you need the agent on your server? If you are using the plugin, you should only need the agent for IDE debugging, the best way to do that is to pass it as an argument in your debug config. The plugin will strip all async/await calls in your built artifact so there is no need to use the agent.
@Tancred423 Facing the issue, did find you a solution ?
@Tancred423 Facing the issue, did find you a solution ?
No sorry :( ended up just not using it
At first, when I tried to run my .jar which uses the ea async dependency, I got the error that it couldn't find the class agend in my manifest. Therefore, I added
Agent-Class: com.ea.async.instrumentation.Agent
to my MANIFEST.MF and it seemed to fix this error, but now I got a new one and I really don't know what I am doing wrong.It's a maven project so that's what I did:
import static com.ea.async.Async.await;
like on the examples.It works fine if I start it in my IDE (Intellij / Javac 11), but does not if I put the compiled .jar (which contains the com.ea.async dir) on my debian 9 server and try to launch it there (it runs with open jdk 11).
I am grateful for any help! 🙏
This is my error (Servant is the name of my program):