Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jdbc drivers to Hop Web, fixes #4013 #4014

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Add jdbc drivers to Hop Web, fixes #4013 #4014

merged 1 commit into from
Jun 4, 2024

Conversation

hansva
Copy link
Contributor

@hansva hansva commented Jun 4, 2024

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Run mvn clean install apache-rat:check to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If you have a group of commits related to the same change, please squash your commits into one and force push your branch using git rebase -i.
  • Mention the appropriate issue in your description (for example: addresses #123), if applicable.

To make clear that you license your contribution under the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

@hansva hansva merged commit 2365fc3 into apache:main Jun 4, 2024
3 checks passed
@SaxenaShiv
Copy link

Hi, I have tried out the hop web docker image but I have still encountered an error related to the jdbc postgres driver support.

Error connecting to database [crateDB_cloud_service] :org.apache.hop.core.exception.HopDatabaseException: 
Error occurred while trying to connect to the database

Driver class 'org.postgresql.Driver' could not be found, make sure the 'PostgreSQL' driver (jar file) is installed.
Unable to load class 'org.postgresql.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.postgresql.Driver' could not be found, make sure the 'PostgreSQL' driver (jar file) is installed.
Unable to load class 'org.postgresql.Driver' in this classloader or in the parent


	at org.apache.hop.core.database.Database.normalConnect(Database.java:373)
	at org.apache.hop.core.database.Database.connect(Database.java:304)
	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:2127)
	at org.apache.hop.ui.core.database.DatabaseMetaEditor.testConnection(DatabaseMetaEditor.java:901)
	at org.apache.hop.ui.core.database.DatabaseMetaEditor.test(DatabaseMetaEditor.java:764)
	at org.apache.hop.ui.core.database.DatabaseMetaEditor.lambda$createButtonsForButtonBar$6(DatabaseMetaEditor.java:956)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:109)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:687)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:594)
	at org.eclipse.swt.widgets.Display.executeNextEvent(Display.java:1216)
	at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1197)
	at org.eclipse.swt.widgets.Display.safeReadAndDispatch(Display.java:1180)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1172)
	at org.eclipse.rap.rwt.application.AbstractEntryPoint.createUI(AbstractEntryPoint.java:69)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:290)
	at java.base/java.lang.Thread.run(Thread.java:829)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:107)
Caused by: org.apache.hop.core.exception.HopDatabaseException: 
Driver class 'org.postgresql.Driver' could not be found, make sure the 'PostgreSQL' driver (jar file) is installed.
Unable to load class 'org.postgresql.Driver' in this classloader or in the parent

	at org.apache.hop.core.database.Database.connectUsingClass(Database.java:417)
	at org.apache.hop.core.database.Database.normalConnect(Database.java:358)
	... 19 more
Caused by: java.lang.ClassNotFoundException: Unable to load class 'org.postgresql.Driver' in this classloader or in the parent
	at org.apache.hop.core.plugins.HopURLClassLoader.loadClass(HopURLClassLoader.java:97)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	at org.apache.hop.core.database.Database.connectUsingClass(Database.java:392)
	... 20 more
Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
	at org.apache.hop.core.plugins.HopURLClassLoader.loadClassFromThisLoader(HopURLClassLoader.java:67)
	at org.apache.hop.core.plugins.HopURLClassLoader.loadClass(HopURLClassLoader.java:92)
	... 22 more

Hostname:	cratedb-demo.aks1.eastus2.azure.cratedb.net
Port:	5432
Database name:	crate
Url:	jdbc:postgresql://cratedb-demo.aks1.eastus2.azure.cratedb.net:5432/crate


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants