It's not a secret anymore!*
The moose likes Websphere and the fly likes Error trying to connect Mysql Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Error trying to connect Mysql Database" Watch "Error trying to connect Mysql Database" New topic
Author

Error trying to connect Mysql Database

Savio Barros
Greenhorn

Joined: Oct 24, 2007
Posts: 1
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.
 
subject: Error trying to connect Mysql Database
 
Similar Threads
DB initialization failure error in application
WebSphere Datasource JNDI
Problem using Apache CXF WebService client
issues in configuring application on Websphere app server 5.x
Error converting data type varchar to int.