Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error trying to connect Mysql Database

 
Savio Barros
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I created a JDBC connection, but when I hit [TEST CONNECTION] button, I get the error below. Can you guys help me out?

Many thanks

Savio Barros

[7/27/13 10:17:10:691 BRT] 00000020 SystemErr R java.sql.SQLException: java.lang.IllegalAccessError: Class com/mysql/jdbc/NonRegisteringDriver illegally accessing "protected" member of class com/mysql/jdbc/ConnectionImpl
[7/27/13 10:17:10:691 BRT] 00000020 SystemErr R at com.ibm.ws.management.DataSourceConfigHelperMBean.testConnection(DataSourceConfigHelperMBean.java:499)
[7/27/13 10:17:10:691 BRT] 00000020 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[7/27/13 10:17:10:691 BRT] 00000020 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[7/27/13 10:17:10:691 BRT] 00000020 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[7/27/13 10:17:10:691 BRT] 00000020 SystemErr R at java.lang.reflect.Method.invoke(Method.java:611)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic