This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 17 - Pages: 2 [ 1 2 | Next ] - Last Post: 3 May 21, 19:37 Last Post By: davidekholm Threads: [ Previous | Next ]
snjohnsen

Posts: 15
Registered: 13-Jan-2009
Issue with jAlbum Screen Painting (Again)
Posted: 26 Apr 21, 00:19
 
  Click to reply to this thread Reply
Attachment systemconsole.txt (26.9 KB)
Back in February this year I reported a problem with jAlbum where the screen was only partially loading. It came down to an issue with collaborative albums and everything was working fine after an update. Well, it has happened again with version 23,2.4. Everything seemed fine when working in the program but coincidentally as someone was uploading images to a collaborative album the screen started to collapse. I am attaching a text file of the system console that I managed to retrieve. I have gone through an uninstall and have gone back to version 23.1 where things seem okay.
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Issue with jAlbum Screen Painting (Again)
Posted: 26 Apr 21, 13:01   in response to: snjohnsen in response to: snjohnsen
 
  Click to reply to this thread Reply
It might need a core update to fix the missing icon “collaborative-new.svg"
snjohnsen

Posts: 15
Registered: 13-Jan-2009
Re: Issue with jAlbum Screen Painting (Again)
Posted: 26 Apr 21, 22:01   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Hi Rob
Well until there is an update I will stay with version 23.1 installed as that is working okay.
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Issue with jAlbum Screen Painting (Again)
Posted: 26 Apr 21, 23:48   in response to: snjohnsen in response to: snjohnsen
 
  Click to reply to this thread Reply
I've at least updated the latest beta to address this. All at https://jalbum.net/download/beta/jalbum-core.jar
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Issue with jAlbum Screen Painting (Again)
Posted: 26 Apr 21, 23:54   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
That gives me 23.3b3 and on starting
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at se.datadosen.jalbum.JAlbumFrame.markAsClean(JAlbumFrame.java:1375)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at se.datadosen.jalbum.ProjectSettings.<init>(ProjectSettings.java:52)
	at se.datadosen.jalbum.JAlbumFrame.getProjectSettings(JAlbumFrame.java:2092)
	at se.datadosen.jalbum.JAlbumFrame.markAsClean(JAlbumFrame.java:1372)
	... 13 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at se.datadosen.util.BeanBinder.getProperties(BeanBinder.java:425)
	at se.datadosen.util.BeanBinder.getProperties(BeanBinder.java:354)
	at se.datadosen.jalbum.ProjectSettings.<init>(ProjectSettings.java:45)
	... 15 more
Caused by: java.lang.NoClassDefFoundError: com/google/gson/Gson
	at se.datadosen.jalbum.AlbumBean.getImageRenditions(AlbumBean.java:1003)
	... 22 more
Caused by: java.lang.ClassNotFoundException: com.google.gson.Gson
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	... 23 more 
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Issue with jAlbum Screen Painting (Again)
Posted: 27 Apr 21, 12:17   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Sorry about that. The beta also needs https://jalbum.net/download/gson-2.8.2.jar in lib/
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Issue with jAlbum Screen Painting (Again)
Posted: 27 Apr 21, 21:13   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Sorry about that. The beta also needs https://jalbum.net/download/gson-2.8.2.jar in lib/
It seems like it also needs some java/sql/Time library.

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at se.datadosen.jalbum.JAlbumFrame.markAsClean(JAlbumFrame.java:1375)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at se.datadosen.jalbum.ProjectSettings.<init>(ProjectSettings.java:52)
	at se.datadosen.jalbum.JAlbumFrame.getProjectSettings(JAlbumFrame.java:2092)
	at se.datadosen.jalbum.JAlbumFrame.markAsClean(JAlbumFrame.java:1372)
	... 13 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at se.datadosen.util.BeanBinder.getProperties(BeanBinder.java:425)
	at se.datadosen.util.BeanBinder.getProperties(BeanBinder.java:354)
	at se.datadosen.jalbum.ProjectSettings.<init>(ProjectSettings.java:45)
	... 15 more
Caused by: java.lang.NoClassDefFoundError: java/sql/Time
	at com.google.gson.Gson.<init>(Gson.java:240)
	at com.google.gson.Gson.<init>(Gson.java:174)
	at se.datadosen.jalbum.AlbumBean.getImageRenditions(AlbumBean.java:1003)
	... 22 more
Caused by: java.lang.ClassNotFoundException: java.sql.Time
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	... 25 more
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Issue with jAlbum Screen Painting (Again)
Posted: 28 Apr 21, 11:35   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Ah, darn. I'm developing on a full Java stack, but jAlbum is distributed on a slimmed-down version. This library obviously uses the unusual java.sql.Time components of Java. I have to regenerated the slimmed java packages to include this.
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Issue with jAlbum Screen Painting (Again)
Posted: 28 Apr 21, 11:36   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Is it worth making beta installers?
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Issue with jAlbum Screen Painting (Again)
Posted: 28 Apr 21, 22:08   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Is it worth making beta installers?

Soon. Right now I prefer to focus on adding the functionality. You can run jAlbum on a standard Java installation which includes java.sql.Time.
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: Issue with jAlbum Screen Painting (Again)
Posted: 28 Apr 21, 22:39   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
You can run jAlbum on a standard Java installation which includes java.sql.Time.

The OpenJDK doesn't come with a JRE at all. Unless I'm missing something, you can't just point jAlbum at the JDK. Somehow, you have to create a JRE. Most of us have no idea how to go about doing that.
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Issue with jAlbum Screen Painting (Again)
Posted: 28 Apr 21, 22:52   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I have gone back to 23.2 - much easier and it runs :)
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Issue with jAlbum Screen Painting (Again)
Posted: 29 Apr 21, 16:15   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
davidekholm wrote:
You can run jAlbum on a standard Java installation which includes java.sql.Time.

The OpenJDK doesn't come with a JRE at all. Unless I'm missing something, you can't just point jAlbum at the JDK. Somehow, you have to create a JRE. Most of us have no idea how to go about doing that.


I'll soon put together updated JREs. Here's the shell script I use to build the slimmed-down JREs. I've added java.sql to it now:
#/bin/bash
echo compressing
 
VER=14.0.2
JDKPATH=jdk-${VER}.jdk/Contents/Home
JREPATH=jre-${VER}-mini
rm -rf ${JREPATH}
${JDKPATH}/bin/jlink --strip-debug --module-path ${JDKPATH}/jmods:javafx-jmods-${VER} --add-modules java.base,java.compiler,java.sql,java.datatransfer,java.desktop,java.logging,java.prefs,java.scripting,java.xml,javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web,jdk.dynalink,jdk.internal.le,jdk.jsobject,jdk.scripting.nashorn.shell,jdk.scripting.nashorn,jdk.xml.dom,jdk.unsupported.desktop,jdk.charsets,jdk.localedata,jdk.crypto.cryptoki,jdk.crypto.ec,java.management --output ${JREPATH}

For JRE 14, put this script next to the "jdk-14.0.2.jdk" folder and "javafx-jmods-14.0.2" folders. It will then generate a jre-14.0.2-mini folder that jAlbum can use. This script is made for Mac. For Linux and Windows, remove the "Contents/Home" part on line 2, and on Windows, change ${variable} to %variable% and dump the 1:st line
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: Issue with jAlbum Screen Painting (Again)
Posted: 29 Apr 21, 16:23   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Thanks for the edit - I was just staring at the script and figuring out how to alter it for Windows. I'd probably have gotten there eventually, but only after repeated explosions. ;)
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Issue with jAlbum Screen Painting (Again)
Posted: 29 Apr 21, 16:27   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Attachment compress-jre14.cmd (630 bytes)
JeffTucker wrote:
Thanks for the edit - I was just staring at the script and figuring out how to alter it for Windows. I'd probably have gotten there eventually, but only after repeated explosions. ;)

You're welcome. Here's the actual version I was using for Windows. It can easily be modified for another version of the JDK/JRE. Just add the java.sql module, or perhaps even more modules if this gson library requires it.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums