# Two weird exceptions while loading apm-agent 1.0.1 for java

**URL:** <https://discuss.elastic.co/t/two-weird-exceptions-while-loading-apm-agent-1-0-1-for-java/157834>\
**Category:** APM\
**Created:** [November 22, 2018, 9:08am UTC](https://discuss.elastic.co/t/two-weird-exceptions-while-loading-apm-agent-1-0-1-for-java/157834 "2018-11-22T09:08:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmcornejocrespo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cmcornejocrespo/32/37946_2.png) [@cmcornejocrespo](https://discuss.elastic.co/u/cmcornejocrespo)\
**Post date:** [November 22, 2018, 9:08am UTC](https://discuss.elastic.co/t/two-weird-exceptions-while-loading-apm-agent-1-0-1-for-java/157834/1 "2018-11-22T09:08:34Z")

</div>

Hi there,

My setup is:

- ELK, APM, filebeat (all 6.5.0), apm-java-agent-1.0.1

- wso2 api manager 2.5.0 (jdk 1.8.0\_144)

apm-server.yml

```
apm-server:
  host: apm-server:8200
output:
  elasticsearch:
    hosts: http://elasticsearch:9200
    index: "apm-server-%{[beat.version]}-%{+yyyy.MM.dd}"
setup:
  kibana:
    host: "http://kibana:5601"
  dashboards:
    enabled: true
  template:
    enabled: false

```

wso2am docker-compose

```
...
wso2am:
  image: wso2am:2.5.0
  container_name: wso2am
  environment:
  - ELASTIC_APM_SERVICE_NAME=wso2am
  - ELASTIC_APM_SERVER_URLS=http://apm-server:8200
...

```

Any idea what is causing this?

Kind Regards,  
Carlos M.

---

<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:** [November 22, 2018, 9:32am UTC](https://discuss.elastic.co/t/two-weird-exceptions-while-loading-apm-agent-1-0-1-for-java/157834/2 "2018-11-22T09:32:23Z")

</div>

Hi,

Thanks for trying it out!  
These Exceptions are thrown during the process of agent trying to figure out which classes should be instrument among all loaded classes- it fails to locate some dependencies in classpath. It shouldn't be a problem for your application. In some cases, such failures may mean that the agent will fail to instrument something it should, but that doesn't seem to be the case here.

Are you experiencing any problems with your application?  
Are you getting what you expect to get in the APM console?

Thanks,  
Eyal.

---

<div class="post-metadata">

**Author:** ![cmcornejocrespo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cmcornejocrespo/32/37946_2.png) [@cmcornejocrespo](https://discuss.elastic.co/u/cmcornejocrespo)\
**Post date:** [November 22, 2018, 10:14am UTC](https://discuss.elastic.co/t/two-weird-exceptions-while-loading-apm-agent-1-0-1-for-java/157834/3 "2018-11-22T10:14:34Z")

</div>

Hi Eyal,

Thanks for the super fast reply.

TBHWY we're starting with the product and we're not just yet there to miss out some metrics but so far it seems to be working fine.

We BTW are not just yet defining which classes should be monitored via the ELASTIC\_APM\_APPLICATION\_PACKAGES env property (which according to the doc should apply to all??).

Will keep you posted if we see anything wrong.

You can close/solve the thread as you will.

Thanks again!  
Carlos M.

---

<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:** [November 22, 2018, 10:25am UTC](https://discuss.elastic.co/t/two-weird-exceptions-while-loading-apm-agent-1-0-1-for-java/157834/4 "2018-11-22T10:25:46Z")

</div>

Carlos,

Good luck!  
We will be happy to get any feedback.

Thanks,  
Eyal.

---

<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:** [December 13, 2018, 6:25am UTC](https://discuss.elastic.co/t/two-weird-exceptions-while-loading-apm-agent-1-0-1-for-java/157834/5 "2018-12-13T06:25:50Z")

</div>

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