jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: IllegalAccessError when running ant run_gui
Date Thu, 17 Mar 2016 19:44:29 GMT
I also get this one before If my plan contains a CookieManager:
2016/03/17 20:42:20 ERROR - jmeter.protocol.http.control.CookieManager:
Unable to load or invoke class:
org.apache.jmeter.protocol.http.control.HC4CookieHandler
org.apache.jorphan.util.JMeterException: java.lang.ClassNotFoundException:
org.apache.jmeter.protocol.http.control.HC4CookieHandler
    at org.apache.jorphan.reflect.ClassTools.construct(ClassTools.java:92)
    at
org.apache.jmeter.protocol.http.control.CookieManager.testStarted(CookieManager.java:417)
    at
org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:203)
    at
org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:324)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException:
org.apache.jmeter.protocol.http.control.HC4CookieHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:191)
    at org.apache.jorphan.reflect.ClassTools.construct(ClassTools.java:86)
    ... 4 more

On Thu, Mar 17, 2016 at 7:07 PM, Felix Schumacher <
felix.schumacher@internetallee.de> wrote:

> Hi all,
>
> currently I get
>
> 2016/03/17 19:04:07 ERROR - jmeter.threads.JMeterThread: Test failed!
> java.lang.IllegalAccessError: tried to access class
> org.apache.http.impl.conn.HttpConnPool from class
> org.apache.http.impl.conn.JMeterPoolingClientConnectionManager
>     at
> org.apache.http.impl.conn.JMeterPoolingClientConnectionManager.<init>(JMeterPoolingClientConnectionManager.java:111)
>     at
> org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager.<init>(MeasuringConnectionManager.java:59)
>     at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.setupClient(HTTPHC4Impl.java:724)
>     at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:274)
>     at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
>     at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1143)
>     at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1132)
>     at
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:465)
>     at
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:410)
>     at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:241)
>     at java.lang.Thread.run(Thread.java:745)
>
> when I run a simple http sampler when jmeter was started with "ant
> run_gui". If I start it with bin/jmeter it works without a problem.
>
> The problem is probably that HttpConnPool and
> JMeterPoolingClientConnectionManager are in different classloaders in the
> first case, but I don't know, why that would be.
>
> Any thoughts?
>  Felix
>



-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message