# APM Catch Java Exception

**URL:** <https://discuss.elastic.co/t/apm-catch-java-exception/147513>\
**Category:** APM\
**Created:** [September 6, 2018, 7:35am UTC](https://discuss.elastic.co/t/apm-catch-java-exception/147513 "2018-09-06T07:35:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry\_Xia](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@Terry\_Xia](https://discuss.elastic.co/u/Terry_Xia)\
**Post date:** [September 6, 2018, 7:35am UTC](https://discuss.elastic.co/t/apm-catch-java-exception/147513/1 "2018-09-06T07:35:23Z")

</div>

Hi Elastic Team:  
I successfully built my Elastic APM system, the versions of each module are as follows:  
Tomcat : 8.5.32  
Java: 1.8.0\_161  
APM Server : 6.3  
APM Agent : 0.6  
Elastic :6.3  
Kibana:6.3

I made a code that triggered the exception in my Java project, and then I saw this exception on Kibana, but I couldn't locate my own exception code via the information displayed on Kibana.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/a/da95a746d9bef22c83717e0e9b96724a614ff96e.png)

The ‘error.exception.message‘ can show the Exception type , the 'error.exception.stacktrace' can show the exception code in jar files , But, can I locale the exception code that I made in my Java project ?

Best wishes!

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [September 6, 2018, 10:40am UTC](https://discuss.elastic.co/t/apm-catch-java-exception/147513/2 "2018-09-06T10:40:24Z")

</div>

Hi and thanks for trying out Elastic APM.

I think the problem in your case is that the `NullPointerException` is nested inside a `ServletException`. Currently, we don't support nested exceptions yet.

Other than that, I would recommend you to use the free API UI which is part of the default distribution of Kibana to look at the errors. That makes looking at stack traces a much nicer experience than just looking at the raw document.

---

<div class="post-metadata">

**Author:** ![Terry\_Xia](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@Terry\_Xia](https://discuss.elastic.co/u/Terry_Xia)\
**Post date:** [September 6, 2018, 12:48pm UTC](https://discuss.elastic.co/t/apm-catch-java-exception/147513/3 "2018-09-06T12:48:31Z")

</div>

Which version of Kibana supports the free API UI? The APM server and the Elastic need use the same vervion as Kibana?

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [September 6, 2018, 1:03pm UTC](https://discuss.elastic.co/t/apm-catch-java-exception/147513/4 "2018-09-06T13:03:16Z")

</div>

The APM UI ships with the default distribution of Kibana 6.4. It is recommended to update the whole stack at once.

---

<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:** [September 27, 2018, 9:03am UTC](https://discuss.elastic.co/t/apm-catch-java-exception/147513/5 "2018-09-27T09:03:17Z")

</div>

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