Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error trying to connect Mysql Database  RSS feed

 
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)
 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!