Bug#1078328: jameica-plugin "syntax" fails: [de.willuhn.jameica.fibu.server.DBSupportMySqlImpl.create] unable to execute sql scripts de.willuhn.util.ApplicationException: Fehler beim Laden des JDBC-Treibers. com.mysql.jdbc.Driver
Jochen Seifarth
js-debian at agentbob.info
Fri Aug 9 14:30:56 BST 2024
Package: jameica
Version: 2.10.4+dfsg-2
Severity: important
Dear Maintainer,
after installation of plugin "syntax" this plugin fails to initialze when selecting MySQL (there is no MariaDB option) as database with the following error:
[Fri Aug 09 14:53:49 CEST 2024][INFO][main][de.willuhn.jameica.fibu.gui.controller.FirstStartControl.handleForward] launch de.willuhn.jameica.fibu.gui.controller.FirstStartControl$FirstStart
2
[Fri Aug 09 14:53:49 CEST 2024][ERROR][main][de.willuhn.jameica.fibu.server.DBSupportMySqlImpl.create] unable to load jdbc driver
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:375)
at de.willuhn.jameica.fibu.server.DBSupportMySqlImpl.create(DBSupportMySqlImpl.java:77)
at de.willuhn.jameica.fibu.gui.controller.FirstStartControl$FirstStart2.handleAction(FirstStartControl.java:457)
at de.willuhn.jameica.fibu.gui.controller.FirstStartControl.handleForward(FirstStartControl.java:395)
at de.willuhn.jameica.fibu.gui.views.FirstStart1CreateDatabase$1.handleAction(FirstStart1CreateDatabase.java:56)
at de.willuhn.jameica.gui.parts.Button$1$1.run(Button.java:174)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
at de.willuhn.jameica.gui.GUI$6.run(GUI.java:921)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:183)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:5960)
at de.willuhn.jameica.gui.GUI.startSync(GUI.java:917)
at de.willuhn.jameica.gui.parts.Button$1.widgetSelected(Button.java:168)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5855)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1529)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5065)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4517)
at de.willuhn.jameica.gui.GUI.loop(GUI.java:938)
at de.willuhn.jameica.gui.GUI.init(GUI.java:335)
at de.willuhn.jameica.system.Application.init(Application.java:145)
at de.willuhn.jameica.system.Application.newInstance(Application.java:87)
at de.willuhn.jameica.Main.main(Main.java:78)
When researching this it turns out that a transition of MySql to MariaDB is implemented upstream:
https://github.com/willuhn/syntax/commit/05e449f6fae98bafb74d5a6b923efd0d8f76c352
Unfortunately, this is only in syntax version 2.11-nightly which has not been released yet, the latest release version 2.10.4 still has the MySql driver name hard-coded.
jameica 2.10.4 has a defined dependency on libmariadb-java but the plugin "syntax" cannot be configured to use the mariadb driver before 2.11.
The "syntax" plugin requires the MySql driver available in mysql-connector-java, however, that package was remove a few years ago: https://tracker.debian.org/pkg/mysql-connector-java
So this version of jameica with plugin "syntax" seems to be un-usable. Upgrading to 2.11 (when it is released) will probaly address the situation.
In the meantime jameica with its plugin "syntax" can be installed instead from https://www.willuhn.de/products/syntax/, this package includes the MySql driver.
-- System Information:
Debian Release: 12.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-23-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages jameica depends on:
ii jameica-h2database 1.4.199-1
ii libactivation-java 1.2.0-2
ii libbcpkix-java 1.72-2
ii libbcprov-java 1.72-2
ii libbcutil-java 1.72-2
ii libcommons-cli-java 1.5.0-1
ii libcommons-collections3-java 3.2.2-2
ii libcommons-lang-java 2.6-10
ii libcommons-logging-java 1.2-3
ii libeclipse-core-commands-java 3.10.300+eclipse4.26-1
ii libeclipse-core-runtime-java 3.26.100+eclipse4.26-1
ii libeclipse-jface-databinding-java 1.14.0+eclipse4.26-1
ii libeclipse-osgi-java 3.18.200+eclipse4.26-4
ii libeclipse-ui-forms-java 3.11.500+eclipse4.26-1
ii libequinox-common-java 3.17.0+eclipse4.26-4
ii libgeronimo-annotation-1.3-spec-java 1.3-1
ii libicu4j-java 72.1-1
ii libistack-commons-java 3.0.6-5
ii libjameica-datasource-java 2.8.1+dfsg-4
ii libjameica-util-java 2.8-3
ii libjaxb-api-java 2.3.1-1
ii libjaxb-java 2.3.0.1-10.1
ii libmariadb-java 2.7.6-1
ii libmckoisqldb-java 1.0.6-4
ii libnanoxml2-java 2.2.3.dfsg-9
ii liboro-java 2.0.8a-14
ii libpaperclips-java 1.0.4-3
ii librhino-java 1.7.14-2.1
ii libswt-cairo-gtk-4-jni 4.26.0-1
ii libswtcalendar-java 0.5-3
ii libtxw2-java 2.3.0.1-10.1
ii velocity 1.7-6
jameica recommends no packages.
jameica suggests no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list