java.lang.IllegalAccessError: tried to access field org.apache.log4j.Priority.level from class org.apache.log4j.Hierarchy

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via redhat.com by Unknown author, 1 year ago
tried to access field org.apache.log4j.Priority.level from class org.apache.log4j.Hierarchy
java.lang.IllegalAccessError: tried to access field org.apache.log4j.Priority.level from class org.apache.log4j.Hierarchy
at org.apache.log4j.Hierarchy.setThreshold(Hierarchy.java:185)
at org.apache.log4j.Hierarchy.(Hierarchy.java:95)
at org.apache.log4j.LogManager.(LogManager.java:82)
at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156)
at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.