# Elastic apm java agent elastic-apm-agent-1.0.1.jar is not allowing to start our application

**URL:** <https://discuss.elastic.co/t/elastic-apm-java-agent-elastic-apm-agent-1-0-1-jar-is-not-allowing-to-start-our-application/158012>\
**Category:** APM\
**Created:** [November 23, 2018, 12:42pm UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-elastic-apm-agent-1-0-1-jar-is-not-allowing-to-start-our-application/158012 "2018-11-23T12:42:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SUSANTO\_MAHATO](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susanto_mahato/32/38005_2.png) [@SUSANTO\_MAHATO](https://discuss.elastic.co/u/SUSANTO_MAHATO)\
**Post date:** [November 23, 2018, 12:42pm UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-elastic-apm-agent-1-0-1-jar-is-not-allowing-to-start-our-application/158012/1 "2018-11-23T12:42:53Z")

</div>

elastic apm java agent elastic-apm-agent-1.0.1.jar is not allowing to start our application.

I am trying to integrate it via generic way. The jar is able to integrate but its failing to our application.

[2018-11-23 18:02:02,599] WARN [request-id=] [x-request-id=] AnnotationConfigEmbeddedWebApplicationContext: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'addToQuartz' defined in class path resource [com/../QuartzConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.quartz.Trigger]: Factory method 'addToQuartz' threw exception; nested exception is java.lang.VerifyError: (class: com/mchange/v2/c3p0/impl/NewProxyPreparedStatement, method: executeQuery signature: (Ljava/lang/String;)Ljava/sql/ResultSet;) Illegal type in constant pool

OS : Debian 7.11  
JDK : oracle-java8-jdk

Please let me know if any other information needed?

---

<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 25, 2018, 8:08am UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-elastic-apm-agent-1-0-1-jar-is-not-allowing-to-start-our-application/158012/2 "2018-11-25T08:08:15Z")

</div>

Hello and thanks for trying out our agent!

Please let me know which version of c3p0 you are using. I am assuming it is quite old, maybe even old enough to have been compiled using a Java 1.4 compiler. If that's indeed the case, there is apparently a problem for our agent in instrumenting such classes.  
Fortunately, c3p0 is probably wrapping a JDBC driver, in which case we can still provide JDBC insights by instrumenting the JDBC driver.  
Our upcoming bugfix release (hopefully released this week) will include a general fix where agent will just avoid attempting to instrument classes compiled using a compiler of a version older than 5.  
So what I suggest is that you now wait for the 1.0.2 version and see what happens with it.

I hope this works out.

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 16, 2018, 4:08am UTC](https://discuss.elastic.co/t/elastic-apm-java-agent-elastic-apm-agent-1-0-1-jar-is-not-allowing-to-start-our-application/158012/3 "2018-12-16T04:08:30Z")

</div>

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