# Java APM agent catch 400 as error

**URL:** <https://discuss.elastic.co/t/java-apm-agent-catch-400-as-error/279802>\
**Category:** APM\
**Tags:** java, server\
**Created:** [July 28, 2021, 5:46am UTC](https://discuss.elastic.co/t/java-apm-agent-catch-400-as-error/279802 "2021-07-28T05:46:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![parksungmin](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@parksungmin](https://discuss.elastic.co/u/parksungmin)\
**Post date:** [July 28, 2021, 5:46am UTC](https://discuss.elastic.co/t/java-apm-agent-catch-400-as-error/279802/1 "2021-07-28T05:46:07Z")

</div>

**Kibana version** : v7.12.1

**Elasticsearch version** : v7.12.1

**APM Server version** : v7.12.1

**APM Agent language and version** : java 1.24.0 elastic-apm-agent-1.24.0.jar

**Browser version** : N/A

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: maven

**Fresh install or upgraded from other version?** : fresh install

**Is there anything special in your setup?** : No

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

The apm agent catch 400(org.springframework.http.converter.HttpMessageNotReadableException) as errors. I think that 400(Bad Request) is not an error. It's client side thing.

Is there any configuration for ignore such exceptions?

**Steps to reproduce** :

1. String Boot
2. Curl to server without any data

**Errors in browser console (if relevant)**:

**Provide logs and/or server output (if relevant)**:  
stacktrace on apm ui

> Required request body is missing: public \*\*\*\* **Controller.list(**, org.springframework.validation.BindingResult)
> 
> at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:161)
> 
> at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:131)
> 
> at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)
> 
> at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:170)
> 
> at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
> 
> at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
> 
> at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:894)
> 
> at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [July 28, 2021, 6:14am UTC](https://discuss.elastic.co/t/java-apm-agent-catch-400-as-error/279802/2 "2021-07-28T06:14:42Z")

</div>

Hello and welcome to our forum!

> [@parksungmin](#):
>
> Is there any configuration for ignore such exceptions?

Yes, there is - [`ignore_exceptions`](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-ignore-exceptions).

---

<div class="post-metadata">

**Author:** ![parksungmin](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@parksungmin](https://discuss.elastic.co/u/parksungmin)\
**Post date:** [July 28, 2021, 6:41am UTC](https://discuss.elastic.co/t/java-apm-agent-catch-400-as-error/279802/3 "2021-07-28T06:41:33Z")

</div>

Thank you. That is exactly what I’m looking for.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 18, 2021, 2:42am UTC](https://discuss.elastic.co/t/java-apm-agent-catch-400-as-error/279802/4 "2021-08-18T02:42:27Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
