jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Schumacher <felix.schumac...@internetallee.de>
Subject IllegalAccessError when running ant run_gui
Date Thu, 17 Mar 2016 18:07:12 GMT
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

Mime
View raw message