|
Replies:
14
-
Pages:
1
-
Last Post:
9 Oct 23, 19:45
Last Post By: amorley
|
|
|
Posts:
8
Registered:
6-Dec-2008
|
|
|
Java error when Making Album in jAlbum 33.0.3
Posted:
7 Oct 23, 05:01
|
|
|
After installing jAlbum 33.0.3 on a M1 Max MacBook Pro running macOS Sonoma 14, I get the following error when trying to Make an album
An unexpected error occurred. Please see detailed description below:
java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "this.engine.fileVariables" is null
at se.datadosen.jalbum.AlbumImage.applyFilters(AlbumImage.java:197)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$105$155578AAA$util.createFolderThumb(/Users/andy/Library/JAlbum/skins/PhotoBlogger/lib/util.js:6127)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$102$9043A$init.processFolder#L:269(/Users/andy/Library/JAlbum/skins/PhotoBlogger/init.js:342)
at org.openjdk.nashorn.javaadapters.java_util_function_Consumer.accept(Unknown Source)
at java.base/java.util.ArrayList.forEach(Unknown Source)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$94$6778A$init.processFolder(/Users/andy/Library/JAlbum/skins/PhotoBlogger/init.js:269)
at org.openjdk.nashorn.internal.scripts.Script$93$predir.:program(/Users/andy/Library/JAlbum/skins/PhotoBlogger/predir.js:5)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:503)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.AlbumBean.processExpression(AlbumBean.java:3431)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:3353)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1880)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3742)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3580)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1189)
|
|
|
Posts:
3,967
Registered:
4-Aug-2006
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
7 Oct 23, 10:21
in response to: amorley
|
|
|
This looks like a PhotoBlogger problem so I’ll move the post to that forum. If not it can be moved back later.
|
|
|
Posts:
3,967
Registered:
4-Aug-2006
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
7 Oct 23, 21:47
in response to: amorley
|
|
|
Can you attach the settings file? I don't get any error using the skin defaults.
|
|
|
Posts:
8
Registered:
6-Dec-2008
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
8 Oct 23, 21:18
in response to: RobM
|
|
|
|
|
|
Posts:
3,967
Registered:
4-Aug-2006
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
8 Oct 23, 23:30
in response to: amorley
|
|
|
Still works on my MacBook Air running macOS Sonoma 14 and jAlbum 33.0.3, Sample Portfolio.
Do you have any old filter extensions in your config folder, under 'ext' subfolder? Other than that
if you can zip up a minimum project with the error that would help. Otherwise it will have to wait for Laza/David.
|
|
|
Posts:
1,531
Registered:
6-Sep-2005
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 13:33
in response to: amorley
|
|
|
By the error report, I guess the skin is trying to create the folder thumbnail for an invalid object(?). I know this should not happen, but for some reason jAlbum returns null for the file, e.g. the image selected for the folder thumbnail is something not usual.
|
|
|
Posts:
3,967
Registered:
4-Aug-2006
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 14:51
in response to: Laza
|
|
|
What is odd to me is "this.engine.fileVariables", since fileVariables is deprecated being part of CompiledScript. I didn’t think it was being used anywhere and it doesn’t seem to be part of the skin code.
|
|
|
Posts:
1,531
Registered:
6-Sep-2005
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 14:58
in response to: RobM
|
|
|
Good point. No idea why fileVariables is called. Is it jAlbum 33.0.3 at all?
|
|
|
Posts:
12
Registered:
16-Jan-2016
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 16:42
in response to: amorley
|
|
|
Same Problem - Appears to be in PhotoBlogger, but my skills are only User Level, Not Code Level.
**************
An unexpected error occurred. Please see detailed description below:
java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "this.engine.fileVariables" is null
at se.datadosen.jalbum.AlbumImage.applyFilters(AlbumImage.java:197)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$260$146180AAZA$util.saveImage(C:\Users\brian\AppData\Roaming\JAlbum\skins\PhotoBlogger\lib\util.js:5813)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$258$147865AAAAA$util.createFolderImage(C:\Users\brian\AppData\Roaming\JAlbum\skins\PhotoBlogger\lib\util.js:5951)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$253$6778A$init.processFolder(C:\Users\brian\AppData\Roaming\JAlbum\skins\PhotoBlogger\init.js:266)
at org.openjdk.nashorn.internal.scripts.Script$252$predir.:program(C:\Users\brian\AppData\Roaming\JAlbum\skins\PhotoBlogger\predir.js:5)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:503)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.AlbumBean.processExpression(AlbumBean.java:3431)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:3353)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1880)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3742)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3572)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1187)
|
|
|
Posts:
3,667
Registered:
18-Oct-2002
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 16:52
in response to: Beau497
|
|
|
Thanks for spotting. I had only partly removed the (since a decade) deprecated "fileVariables" concept. Now it should be fully gone from the code. Just issue Tools->External tools->"jAlbum core update" to get the fix.
|
|
|
Posts:
3,967
Registered:
4-Aug-2006
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 17:16
in response to: davidekholm
|
|
|
I have moved the thread to bugs forum as it might crop up again with other skins.
|
|
|
Posts:
3,667
Registered:
18-Oct-2002
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 18:27
in response to: RobM
|
|
|
|
|
Posts:
12
Registered:
16-Jan-2016
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 19:05
in response to: davidekholm
|
|
|
Thanks Rob,
All updated and Album Making works perfectly under 33.0.4
Much appreciated!
Beau
|
|
|
Posts:
3,667
Registered:
18-Oct-2002
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 19:43
in response to: Beau497
|
|
|
Thanks for confirming. jAlbum is now auto-updating to v33.0.4 if users have older v33 versions.
|
|
|
Posts:
8
Registered:
6-Dec-2008
|
|
|
Re: Java error when Making Album in jAlbum 33.0.3
Posted:
9 Oct 23, 19:45
in response to: davidekholm
|
|
|
Thanks! I updated the jAlbum Core and it has fixed the problem.
Edited by: amorley on 9 Oct 2023, 19:45
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|