I wanted to use the external HSQLDB. Tried this in OOo 3.1.1. It works with a "little" mistake. In the properties-file of the intern databases is written the version from the extern hsqldb.jar. So with newer versions of OOo or LibreOffice the files could not be opened. They were blocked with a warning, that the file is created with a newer version of hsqldb. LibreOffice 3.3 handles it the same way if you will use an external and an internal version of hsqldb. You could not change any data of internal database after saving the file and trying to open it again when there is an external hsqldb.jar with a newer version in the classpath. For a normal user like me it is a bug, that it does not work. Why couldn't LibreOffice distinguish between internal and external version of hsqldb? A warning when trying to open the database is ok, if there could be lost data. So it could be a problem when using the version 2 of hsqldb, but not the version 1.8.1.2 external and the 1.8.0.10 internal.
Hi, This problem also occurs with some Linux distributions that provide a different hdsqldb.jar for their own packaging reasons than the one against which LibreOffice is built. I believe that this bug also exists in the upstream OOo code. When the error occurs, the ODB file can not be opened, the workaround is to change the version number in the properties file of the ODB by hand, but ideally the user shouldn't have to worry or care about why the application software didn't write the correct version into the file, it should just do it properly. That said, I don't think that there is much sympathy in the LibreOffice developer community for fixing hsqldb bugs. Most of the devs who have expressed any kind of opinion seem to want to move away from this kind of db engine. Alex
Hi Alex, That said, I don't think that there is much sympathy in the LibreOffice developer community for fixing hsqldb bugs. Is this really a hsqldb-bug. Couldn't it be the same problem with any other internal and externat database? Most of the devs who have expressed any kind of opinion seem to want to move away from this kind of db engine. But what kind of db-engine do they want to install. Or would it go back to a frontend without any db-engine? I had tried the external version, because this is the easiest way to get data out of the *.odb-file an use the data the same way as before: All queries, all forms and all reports work. For professional working a mysql-database is the better solution, but for private use or learning in scool the way with internal hsqldb is easier to use. Robert
[This is an automated message.] This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it started right out as NEW without ever being explicitly confirmed. The bug is changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases. Details on how to test the 3.5.0 beta1 can be found at: http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1 more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Tested it now with different versions internal and external. Seems to work with external HSQLDB Version 1.8...., doesn't work with the new version 2.2.6. There comes an file input/output error in the internal databases (java.lang.NullPointerException.properties). When I delete the hsqldb.jar I added in the classpath the internal databases work.
Hi Robert, Sorry about not getting back to you on this, but I can confirm this also on Mac. If you plug in an external path to the v2 hsqldb.jar, the internal Base/hsqldb combo then stops working altogether :-/ with the error message you indicated. Alex
Putting Stephan on CC, as this has probably something to do with the Java loader. Stephan, any ideas ? Alex
(In reply to comment #5) > If you plug in an external path to the v2 hsqldb.jar, the internal > Base/hsqldb combo then stops working altogether :-/ with the error message > you indicated. Adding an additional instance of hsqldb.jar to the JVM classpath is a very crude mechanism, as any attempt at loading a class with a name that is present in both hsqldb.jar instances will necessarily load the class version from the additional hsqldb.jar. Without looking at the code in question, this is likely to cause any kind of confusion.
The issue with dual version HSQLDB will be fixed with the release of 2.3.0. An alternative jar will be released at the same time as the standard jar. This can be used side-by-side with an HSLQDB jar of an earlier version.
(In reply to comment #8) > An alternative jar will be released at the same time as the standard jar. Will the alternative jar work with SQLTool?
The alternative jar will be compatible with SqlTool, as well as any program that uses HSQLDB. The alternative jar will have a slightly different name for the jdbc driver and the first part of the JDBC URL. So the connection settings will be slightly different from the normal jar.
(In reply to comment #2) > But what kind of db-engine do they want to install. Or would it go back to a > frontend without any db-engine? Firebird - please see bug https://bugs.freedesktop.org/show_bug.cgi?id=51780. Therefore this report is a WONTFIX candidate.
(In reply to comment #8) > The issue with dual version HSQLDB will be fixed with the release of 2.3.0. > An alternative jar will be released at the same time as the standard jar. > This can be used side-by-side with an HSLQDB jar of an earlier version. Hi Fred, where do I get this alternative *.jar-file. I have just tested the hsqldb.jar from 2.3.0 and it works the same as before. Adding it to the classpath will destroy the version of internal hsqldb of LO.
I have just tested with the macro from here: http://forum.openoffice.org/en/forum/viewtopic.php?f=40&t=61155#p270692 It is possible to connect with the same LO-Installation to the internal HSQLDB 1.8 and to the external HSQLDB, actually 2.3. Internal and external HSQLDB-databases could be opened at the same time. If this is possible by only some lines of code in a macro for the external database I don't know, why it should not be possible to do the same in the internal code. There must only be a point which says to LO: For internal databases use the hsqldb.jar in the internal path of LO and it would work. We couldn't say, that this is a wontfix-candidate. When the internal database would change to Firebird (and this is discussed a long time ...) we must have also installed the hsqldb.jar for the old internal *.odb-files.
(In reply to comment #13) Hi Robert, > > We couldn't say, that this is a wontfix-candidate. When the internal > database would change to Firebird (and this is discussed a long time ...) we > must have also installed the hsqldb.jar for the old internal *.odb-files. In the current Firebird integration GSOC project, the user gets a UI choice in the DB Creation Wizard as to whether they want a Firebird embedded DB or a hsqldb.The plan, as far as I can tell, is to provide in the __longer term__ a migration path (wizard) from existing hsqldb embedded db to firebird embedded db, and then at some stage remove hsqldb altogether. Alex
Adding self to CC if not already on
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.0.4 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT: - Update the version field - Reply via email (please reply directly on the bug tracker) - Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2016-01-17
Bug still present in LO5233 (macOS)
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Testing with : Version: 6.1.1.2 Build ID: 5d19a1bfa650b796764388cd8b33a5af1f5baa1b Threads CPU : 8; OS : Mac OS X 10.13.6; UI Render : par défaut; Locale : fr-FR (fr_FR.UTF-8); Calc: group threaded and hsqldb 2.4.1 as the classpath added jar file still leads to the following error message when trying to display the tables in an existing embedded-hsqldb ODB file : Impossible d'établir la connexion à la source de données "Buttontest". Statut SQL: S1000 Code d'erreur: -452 file input/output error: /Users/alex/Downloads/Buttontest.odb.log so I would say that the problem is still present...
If I remove the classpath added hsldb.jar and restart LO, everything goes back to normal...
Same here, LO 7.0.0.3 on Windows, tried to add HSQLDB 2.5.1 jar. I’m aware that HSQLDB is slated to be phased out in favor of Firebird in the end, but there will still be legacy DBs using HSQLDB. Given the wide user base of LO, which includes a bunch of government/municipal institutions, where IT migrations of any kind can take a considerable amount of time, this issue is going to stick around for quite some time to come. Rather than instructing users to use the alternate HSQLDB jar and slightly different JDBC URLs for external DBs, would it be an option to bundle an alternate version of the jar and use that internally, so users could drop in the standard JAR for external DBs? As the JDBC URL for embedded DBs is not normally exposed to the user, this would probably result in behavior which is less “surprising” to the user.
*** Bug 140268 has been marked as a duplicate of this bug. ***
Dear Robert Großkopf, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Bug is still the same in LO 7.6.0.1 on OpenSUSE 15.4
Hi all, I would like to express my opinion in this conversation. I am not a Java specialist but its use has led me to notice several things: - Once a JDBC driver is loaded, regardless of how it is loaded, you will only be able to use this version of the driver until LibreOffice is closed (the Java engine stops). - There are at least 2 ways to load a JDBC driver. - By putting the driver in the Java classPath. But putting the jar archive in the ClassPath prevents any use of a URL Class Loader on this archive since when using a URL Class Loader, Java will look to load first by scanning the Java ClassPath then if it doesn't find it will use the URL Class Loader. - Using a URL class loader allowing you to fetch the correct version using the URL pointing to this version. Under Linux if you install the components in LibreOffice allowing you to use HsqlDB in integrated mode then the HsqlDB 1.8 jar archive will be put in the Java ClassPath (this will prevent any use other than version 1.8). This is not true for the installation of LibreOffice under Windows... It is apparently a Java URL Class loader which is used. I think that these limitations are immutable, we cannot do without taking them into account.