You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.IllegalAccessError: tried to access method javassist.ClassPool.<init>()V from class com.zaxxer.hikari.proxy.JavassistProxyFactory
#89
Closed
JohnMerlino1 opened this issue
Jun 6, 2014
· 1 comment
I am having an issue with installation. I am using Eclipse. I downloaded the HikariCP-1.3.8.jar and added it to my build path. I noticed it required two dependencies, so I added javassist24.jar to my build path and slf4j-api-1.7.7.jar to my build path. When I tried to compile then, it gave me the error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”. So I added slf4j-simple.1.7.7.jar to my build path. Now I get the error:
Exception in thread "main" java.lang.IllegalAccessError: tried to access method javassist.ClassPool.()V from class com.zaxxer.hikari.proxy.JavassistProxyFactory
at com.zaxxer.hikari.proxy.JavassistProxyFactory.(JavassistProxyFactory.java:82)
at com.zaxxer.hikari.proxy.JavassistProxyFactory.(JavassistProxyFactory.java:57)
at com.zaxxer.hikari.HikariConfig.(HikariConfig.java:83)
at MyConnectionPool.main(MyConnectionPool.java:16)
And all I am doing is just trying to test a connection:
I am having an issue with installation. I am using Eclipse. I downloaded the HikariCP-1.3.8.jar and added it to my build path. I noticed it required two dependencies, so I added javassist24.jar to my build path and slf4j-api-1.7.7.jar to my build path. When I tried to compile then, it gave me the error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”. So I added slf4j-simple.1.7.7.jar to my build path. Now I get the error:
Exception in thread "main" java.lang.IllegalAccessError: tried to access method javassist.ClassPool.()V from class com.zaxxer.hikari.proxy.JavassistProxyFactory
at com.zaxxer.hikari.proxy.JavassistProxyFactory.(JavassistProxyFactory.java:82)
at com.zaxxer.hikari.proxy.JavassistProxyFactory.(JavassistProxyFactory.java:57)
at com.zaxxer.hikari.HikariConfig.(HikariConfig.java:83)
at MyConnectionPool.main(MyConnectionPool.java:16)
And all I am doing is just trying to test a connection:
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.ResultSet;
import java.sql.Statement;
public class MyConnectionPool {
}
The exception occurs here:
HikariConfig config = new HikariConfig();
The text was updated successfully, but these errors were encountered: