Closed bardware closed 7 years ago
I think you mixed things with the classpath, the bootstrap classpath and several jars...
Normally you only need to add -javaagent:path/to/jdbc-perf-logger-agent-x.y.z.jar
to your JVM arguments and that's it. Nothing to add in the classpath. If that's not the case, please provide the stacktrace of the error.
In the above stack trace, I see this:
Caused by: java.lang.IllegalStateException: cannot assign runtime type class ch.sla.jdbcperflogger.agent.DriverInterceptor (sun.misc.Launcher$AppClassLoader@18b4aac2) to class ch.sla.jdbcperflogger.agent.DriverInterceptor (coldfusion.bootstrap.BootstrapClassLoader@f5ac09b)
which reveals that the class ch.sla.jdbcperflogger.agent.DriverInterceptor
has been loaded twice : once by the BootstratpClassLoader, once by the system classloader (sun.misc.Launcher$AppClassLoader), which is not correct. I guess you must have placed some jars in specific directories or you passed specific arguments to the JVM...
The information the jar was loaded twice helped alot. I moved it from a directory that is part of the classpath do a different folder. Now it in fact works without further confgurations. Thank you!
Hi,
I wanted to add perf-logger-agent to my Adobe Coldfusion install. I added the
-javaagent
switch to the startup arguments and got the errorbyte-buddy
is missing. I added byte-buddy to a path I believe is part of the Classpath but kept getting the error. I eventually copied logger-agent, byte-buddy and logger-driver to the same folder. The Coldfusion service started up but was not usable. I found an exception in one of the log files:The bottom most exception is an incompatibility between your class and the Macromedia JDBC driver. Is there a possibility to understand why it does not work or to do anything to make it work?