Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalAccessError #19

Closed
paskalka opened this issue May 16, 2019 · 3 comments
Closed

java.lang.IllegalAccessError #19

paskalka opened this issue May 16, 2019 · 3 comments

Comments

@paskalka
Copy link

Hello,

i got :
java.lang.IllegalAccessError: tried to access method org.apache.http.client.entity.EntityBuilder.()V from class org.apache.http.client.entity.ByteBufEntityBuilder
at org.apache.http.client.entity.ByteBufEntityBuilder.(ByteBufEntityBuilder.java:10)
at org.appenders.log4j2.elasticsearch.jest.BufferedJestHttpClient.prepareRequest(BufferedJestHttpClient.java:66)
at org.appenders.log4j2.elasticsearch.jest.BufferedJestHttpClient.executeAsync(BufferedJestHttpClient.java:47)
at org.appenders.log4j2.elasticsearch.jest.JestHttpObjectFactory$1.apply(JestHttpObjectFactory.java:186)
at org.appenders.log4j2.elasticsearch.jest.JestHttpObjectFactory$1.apply(JestHttpObjectFactory.java:169)
at org.appenders.log4j2.elasticsearch.BulkEmitter.notifyListener(BulkEmitter.java:93)
at org.appenders.log4j2.elasticsearch.BulkEmitter$1.run(BulkEmitter.java:129)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Thanks for your help

@rfoltyns
Copy link
Owner

@paskalka please verify the version of org.apache.httpcomponents:httpclient:jar on your classpath. Jest ships with 4.5.2.

@paskalka
Copy link
Author

Hello,
I ships it with 4.5.2 , but i got the same issue
Best regards

@paskalka
Copy link
Author

Hi,
The issue occurred when i submit a job in Hortonwork Yarn/Spark . Now Hortonwork also use httpcomponents-client, so you right it's seems to be a classloader issue.
Thanks you very much for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants