# APM Java agent exception at startup

**URL:** <https://discuss.elastic.co/t/apm-java-agent-exception-at-startup/250208>\
**Category:** APM\
**Tags:** java\
**Created:** [September 28, 2020, 2:25pm UTC](https://discuss.elastic.co/t/apm-java-agent-exception-at-startup/250208 "2020-09-28T14:25:09Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Dawn\_Okem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dawn_okem/32/58264_2.png) [@Dawn\_Okem](https://discuss.elastic.co/u/Dawn_Okem)\
**Post date:** [October 6, 2020, 7:39am UTC](https://discuss.elastic.co/t/apm-java-agent-exception-at-startup/250208/8 "2020-10-06T07:39:36Z")

</div>

Thanks for the feedback @felixbarny. Does that then mean it is not a problem? and the deployment should work successfully

I have exactly the same issue in my deployment. APM agent is able to successfully run healthchecks against the APM Server, but never posts events successfully to the apm server. when it attempts to post a /intake/v2/events call, it always fails with

`java.io.IOException: Error writing request body to serve`

If you check the communication between the agent and the server with a tcpdump, you would notice the agent never sent anthing over the wire to the apm server. What do you think? i have actually logged the issue [here](https://discuss.elastic.co/t/sending-payload-to-apm-server-failed/250912)

---

_[View the full topic](https://discuss.elastic.co/t/apm-java-agent-exception-at-startup/250208)._
