
Epubreader save bookmark does not work on iOS
Any browser running on an iOS device won’t update the bookmark/progress feature with the epubreader. I tested on iPad Mini 6, iPad Pro 2nd gen, and MacBook air. It seems to work fine on my Windows computers and Android phone. I think I traced it back to the event window.onbeforeunload in the epubreader.js. Researching it brings up that a number of browsers/systems don’t support/aren’t compatible with that event. I tested adding these:
document.addEventListener('visibilitychange', function() {
if (document.visibilityState === 'hidden') {
$scope.storeBookmark();
}
});
setInterval($scope.storeBookmark, 60000); // Save every 60 seconds
and it is now updating reading progress on epubs in the browser reader.
Hopefully this is helpful. Let me know if you need any help narrowing it down further or testing.

Java runtime error at launch
I have ubooquity 2 running during years and when i try to lunch version 3 i have this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ubooquity/Launcher has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
My machine is a Windows 11 update 23H2.
Then i stop ubooquity 2, try again a nothing.
My ubooquity 2 run commad is :
java -jar -Xms1g -Xmx2g g:\ubooquity\Ubooquity.jar --headless --remoteadmin
and this work for me perfectly during years.
The i try whith the same command and i have other error:
G:\Ubooquity 3>java -jar -Xms1g -Xmx2g Ubooquity.jar
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
Then i upgrade java for the last version and now i have:
G:\Ubooquity 3>java -version
java version "1.8.0_411"
Java(TM) SE Runtime Environment (build 1.8.0_411-b09)
Java HotSpot(TM) Client VM (build 25.411-b09, mixed mode, sharing)
Restart the machine and again the same error.
Also try as administrator but the error continues.
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ubooquity/Launcher has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Ubooquity 3.0.2 pdf errors
I am using now since some months the 3.0.2 on freebsd 13 and encountered some problems with PDFs: Some of the newly imported pdfs dont show the title-page, only the white standard-symbol. When i try to open them i get a "Page not found".
Download works.
Here the logs:
20240429 18:32:26 [qtp1569371800-602] WARN o.e.j.server.handler.ContextHandler - Unimplemented getRequestCharacterEncoding() - use org.eclipse.jetty.servlet.ServletContextHandler
20240429 18:32:26 [qtp1569371800-545] INFO com.ubooquity.provider.e.a - Someone is reading Elektrotechnik 2 - Manfred Albach
20240429 18:32:28 [qtp1569371800-545] ERROR com.ubooquity.f.a - Could not get image from file: /mnt//Manfred Albach/Elektrotechnik 2 (2378)/Elektrotechnik 2 - Manfred Albach.pdf
20240429 18:32:28 [qtp1569371800-545] WARN com.ubooquity.provider.e.a - Could not extract page 0 from document /mnt//Manfred Albach/Elektrotechnik 2 (2378)/Elektrotechnik 2 - Manfred Albach.pdf (NullPointerException)
20240429 18:32:49 [qtp1569371800-629] WARN o.e.j.server.handler.ContextHandler - Unimplemented getRequestCharacterEncoding() - use org.eclipse.jetty.servlet.ServletContextHandler
20240429 18:32:49 [qtp1569371800-602] INFO com.ubooquity.provider.e.a - Someone is reading Elektronische Schaltungstechnik - Harald Hartl
20240429 18:32:50 [qtp1569371800-602] ERROR com.ubooquity.f.a - Could not get image from file: /mnt//Harald Hartl/Elektronische Schaltungstechnik (11)/Elektronische Schaltungstechnik - Harald Hartl.pdf
20240429 18:32:50 [qtp1569371800-602] WARN com.ubooquity.provider.e.a - Could not extract page 0 from document /mnt//Harald Hartl/Elektronische Schaltungstechnik (11)/Elektronische Schaltungstechnik - Harald Hartl.pdf (NullPointerException)
I hope, that helps.
Ah, other error: When i click on the upper left ubooquity-symbol, it redirects to servername:2203; i have changed that ports to 80 for the library and 81 for admin. I have changed that value in the preferences-2.json as well, but no change in behaviour.
Edit: Some of the older pdfs show the same error; they were shown with their respect first page in the 2.1.2.
Thanks

Ubooquity, OpenJava 8 and JFX
I'm trying to install Ubooquity on Ubuntu 22.04.4 LTS with openjdk version 1.8.0_402.
I get this error:
java.lang.NoClassDefFoundError: javafx/fxml/Initializable
which is:
Caused by: java.lang.ClassNotFoundException: Failure to load: javafx.fxml.Initializable
From what I have read online, it is not possible to add JavaFX to OpenJava 8.
How should I proceed?

Compression on pdf scans in Ubooquity3
I have a number of pdf scans that seem to be having a compression or scan issue with Ubooquity3. I have a suspicion that it has to do with this error:
ERROR o.a.p.contentstream.PDFStreamEngine - Cannot read JBIG2 image: jbig2-imageio is not installed
Is there anything I can do from my end to fix this issue on my PDF scans?
I'm torn between loving the new version of Ubooquity, but not being able to read a lot of my books due to this PDF scanning weirdness.

Thanks to the file you sent me I was able to reproduce the issue and fix it.
The fix will be in the next minor verion (3.0.3). :)

Error on startup after
I'm getting this error every time I try to start Ubooquity lately, making it unusuable:
2024/02/04 21:57:32 | stdout | at java.util.TimerThread.run(Timer.java:505) ~[na:1.8.0_275] |
2024/02/04 21:57:32 | stdout | at java.util.TimerThread.mainLoop(Timer.java:555) ~[na:1.8.0_275] |
2024/02/04 21:57:32 | stdout | at com.ubooquity.Ubooquity$1.run(SourceFile:335) ~[Ubooquity.jar:2.1.2] |
2024/02/04 21:57:32 | stdout | at com.ubooquity.f.k.c(SourceFile:147) ~[Ubooquity.jar:2.1.2] |
2024/02/04 21:57:32 | stdout | at java.lang.Integer.valueOf(Integer.java:766) ~[na:1.8.0_275] |
2024/02/04 21:57:32 | stdout | at java.lang.Integer.parseInt(Integer.java:580) ~[na:1.8.0_275] |
2024/02/04 21:57:32 | stdout | at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_275] |
2024/02/04 21:57:32 | stdout | java.lang.NumberFormatException: For input string: "2Error performing query '<strong>': INSERT command denied to user 'gregre001'@'10" |
2024/02/04 21:57:32 | stdout | 20240204 20:57:31 [Timer-0] ERROR com.ubooquity.Ubooquity - Uncaught exception on thread: Timer-0 |
2024/02/04 21:57:32 | stdout | 20240204 20:57:31 [Timer-0] INFO com.ubooquity.Ubooquity - Latest version available: 2.1.2Error performing query '<strong>': INSERT command denied to user 'gregre001'@'10.14.20.96' for table 'ubqt_startup'<br /><br /> - Current version: 2.1.2 |
2024/02/04 21:57:31 | stdout | 20240204 20:57:31 [Timer-0] INFO com.ubooquity.Ubooquity - Checking latest available Ubooquity version from website |
2024/02/04 21:57:30 | stdout | Tyep Q then ENTER to exit |
2024/02/04 21:57:30 | stdout | 20240204 20:57:30 [main] INFO com.ubooquity.b - Internal server started. Listening on port 2202 (library) and 2203 (admin) |
2024/02/04 21:57:30 | stdout | 20240204 20:57:30 [main] INFO org.eclipse.jetty.server.Server - Started @4370ms |
2024/02/04 21:57:30 | stdout | 20240204 20:57:30 [main] INFO o.e.jetty.server.AbstractConnector - Started admin@6cb107fd{HTTP/1.1,[http/1.1]}{0.0.0.0:2203} |
2024/02/04 21:57:30 | stdout | 20240204 20:57:30 [main] INFO o.e.jetty.server.AbstractConnector - Started library@5b799640{HTTP/1.1,[http/1.1]}{0.0.0.0:2202} |
2024/02/04 21:57:30 | stdout | 20240204 20:57:30 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@359df09a{/,null,AVAILABLE,@library} |
2024/02/04 21:57:30 | stdout | 20240204 20:57:30 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.ContextHandler@609e8838{/,null,AVAILABLE,@admin} |
2024/02/04 21:57:30 | stdout | 20240204 20:57:30 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.0.v20161208 |
I've seen a post from 3 years ago that said this is supposedly a remote server issue, but I don't see anybody else complaining. On my side, nothing has changed, just rebooted my NAS.

pdf local links dont work
for epubs, if they have a link pointing to another place inside the epub or to some website, it works fine when I click on it.
but for pdfs, no matter where I click, the UI menu (with the "click here to close this menu") pops up, instead of opening the link.
this has made reading pdfs very annoying as I need multiple tabs open (one for glossary, one for translation notes etc)
I beleive adding capability to click on links in pdfs is very useful and should be implemented, I am using uboo3beta

I'm having issues with viewing groupings by folder v3.0.1
I know it's in the beta, and I am overjoyed this project is still being worked on as it been my go to for viewing my comic library for several years. So, this is more a question about if anyone has had the same issue and what they did to resolve it.
I've scanned a library of 100k+ books magazines and comics. I can view grouping if they're flat, but not by folder.
Some of the folders have multiple levels of sub folders, some have the books on the top level. Neither will show up as folders but all the media is showing up when I switch over to flat.

I don't know what might be causing this behaviour, but if you send me your Ubooquity database I'll take a look.
This is the ubooquity-6.mv.db file. Just be sure to stop Ubooquity before copying it.
You can upload it to any file sharing service (e.g. Wormhole) and send me the link at: tom 'at' vaemendis.net
Note that I will be able to see the names of all your files (but not access the files themselves).

Koreader not loading pages opds ubooquity v3
I have noticed that opds in koreader is not working right with ubooquity v3. On default I can see 3 pages in opds koreader, changing titles per page in ubooquity settings influences this. For example putting 300 titles per page would give me more pages in opds koreader but sadly still not everything.
Is there any way to fix this somehow?
ps. I put this in questions because maybe this is intended however to me it feels like a bug.

Missing volumes
Hi Tom,
I don’t know if you know a tool named sonaar which, for series, helps to link a directory with an official list of episodes. If a released one is missing you get an indicator with the missing episode... there is also other function but I am not talking about it (automatic download and what ever...) and that is not the purpose of my request.
Indeed I was wondering if we can imagine a connection to comics database (bedetheque etc.) and Ubooquity tolet us know if some albums of the serie have been published but not in the collection... it would be a super useful tool, even if I can imagine that developing connectors to those public database could be a nightmare...
Have look into sonaar, the UI and way of processing the data is super smooth and very well done if you want to have some ideas of what it can look like.
Thank you for reading and maybe for considering that feature !
Customer support service by UserEcho