junedo / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

IllegalAccessException when creating Jdbc Proxy (Java 8) #475

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Environnement :
Javamelody 1.54, Java 8 (JDK jdk1.8.0_40), Tomcat 8 (8.0.20), Win64, Oracle DB

With a datasource defined in context level (using 
org.apache.tomcat.jdbc.pool.DataSourceFactory), an IllegalAccessException is 
thrown starting the application : 

java.lang.IllegalAccessException: Class net.bull.javamelody.JdbcWrapperHelper 
can not access a member of class oracle.jdbc.driver.$Proxy76 with modifiers 
"public"
    at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
    at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
    at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:412)
    at net.bull.javamelody.JdbcWrapperHelper.createProxy(JdbcWrapperHelper.java:476)

The same config is ok with Java 7.

This problem NetBeans had looks similar : 
https://netbeans.org/bugzilla/show_bug.cgi?id=229191

Original issue reported on code.google.com by seb.mat...@gmail.com on 15 Apr 2015 at 1:38

GoogleCodeExporter commented 9 years ago
This is fixed in trunk (revision 4068) and ready for the next release (1.56).

Thanks for the issue and for the link which leads to the fix.

Original comment by evernat@free.fr on 20 Apr 2015 at 4:40