Doooing opened a new issue, #1904:
URL: https://github.com/apache/hop/issues/1904
### Apache Hop version?
2.1.0
### Java version?
11.0.6
### Operating system
Windows
### What happened?
**[describe]**
When creating a database connection, an error was reported. The mysql driver
has been placed in the lib directory according to the error reporting
requirements, and the hop has been restarted, but this error is still reported.
mysql version : 8.0.31
driver path: C:\Users\cai\Downloads\hop\lib\mysql-connector-java-8.0.28.jar
**[error]**
Error connecting to database [mysql_test]
:org.apache.hop.core.exception.HopDatabaseException:
Error occurred while trying to connect to the database
Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the
'MySQL' driver (jar file) is installed.
Unable to load class 'org.gjt.mm.mysql.Driver' in this classloader or in the
parent
org.apache.hop.core.exception.HopDatabaseException:
Error occurred while trying to connect to the database
Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the
'MySQL' driver (jar file) is installed.
Unable to load class 'org.gjt.mm.mysql.Driver' in this classloader or in the
parent
at
org.apache.hop.core.database.Database.normalConnect(Database.java:330)
at org.apache.hop.core.database.Database.connect(Database.java:261)
at
org.apache.hop.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:47)
at
org.apache.hop.core.database.DatabaseFactory.getConnectionTestResults(DatabaseFactory.java:72)
at
org.apache.hop.core.database.DatabaseMeta.testConnectionSuccess(DatabaseMeta.java:2042)
at
org.apache.hop.ui.core.database.DatabaseMetaEditor.testConnection(DatabaseMetaEditor.java:832)
at
org.apache.hop.ui.core.database.DatabaseMetaEditor.test(DatabaseMetaEditor.java:719)
at
org.apache.hop.ui.core.database.DatabaseMetaEditor.lambda$createButtonsForButtonBar$6(DatabaseMetaEditor.java:887)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4251)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4068)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3645)
at org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:404)
at org.apache.hop.ui.hopgui.HopGui.main(HopGui.java:305)
Caused by: org.apache.hop.core.exception.HopDatabaseException:
Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the
'MySQL' driver (jar file) is installed.
Unable to load class 'org.gjt.mm.mysql.Driver' in this classloader or in the
parent
at
org.apache.hop.core.database.Database.connectUsingClass(Database.java:374)
at
org.apache.hop.core.database.Database.normalConnect(Database.java:315)
... 14 more
Caused by: java.lang.ClassNotFoundException: Unable to load class
'org.gjt.mm.mysql.Driver' in this classloader or in the parent
at
org.apache.hop.core.plugins.HopURLClassLoader.loadClass(HopURLClassLoader.java:96)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at
org.apache.hop.core.database.Database.connectUsingClass(Database.java:349)
... 15 more
Caused by: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at
org.apache.hop.core.plugins.HopURLClassLoader.loadClassFromThisLoader(HopURLClassLoader.java:66)
at
org.apache.hop.core.plugins.HopURLClassLoader.loadClass(HopURLClassLoader.java:91)
... 17 more
Hostname:
Port: 3306
Database name: wang
Url: localhost
### Issue Priority
Priority: 3
### Issue Component
Component: Actions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]