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


Permlink Replies: 3 - Pages: 1 - Last Post: 25 Jan 24, 19:54 Last Post By: martinherbst Threads: [ Previous | Next ]
martinherbst

Posts: 7
Registered: 25-May-2017
Java exception if album contains web locations "As folder"
Posted: 21 Jan 24, 20:05
 
  Click to reply to this thread Reply
This problem probably has been introduced with jAlbum 34.

I have an album with two "Web locations". If I set the option "Show web locations in the story" to As folder I get the following java exception when I try to make the album. If I select any other option the album is created without any problems.

This is the exception:

java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "se.datadosen.jalbum.AlbumObject.getChildren()" is null
at se.datadosen.jalbum.AlbumObject.getChildren(AlbumObject.java:371)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$2016$82266AI$util.getRandomThumbs(C:\Users\mail\AppData\Roaming\JAlbum\skins\Story\lib\util.js:3429)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$2013$8652$\^eval\_.writeOutFolders(<eval>:284)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$1866$16789A$\^eval\_.flushBuffers(<eval>:485)
at org.openjdk.nashorn.internal.scripts.Script$1864$\^eval\_.:scopeCall(<eval>)
at org.openjdk.nashorn.internal.scripts.Script$1864$\^eval\_.:program(<eval>:673)
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.ast.ScriptletNode.doEval(ScriptletNode.java:67)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.IncludeNode.doEval(IncludeNode.java:89)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.EnterNode.doEval(EnterNode.java:23)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.AST.eval(AST.java:75)
at se.datadosen.jalbum.AlbumBean.makeIndexPages(AlbumBean.java:4168)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1887)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3694)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3531)
at se.datadosen.jalbum.MakeAlbumTask.doInBackground(MakeAlbumTask.java:173)
at se.datadosen.jalbum.TaskManager$BackgroundTask.call(TaskManager.java:113)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
JeffTucker

Posts: 8,245
Registered: 31-Jan-2006
Re: Java exception if album contains web locations "As folder"
Posted: 21 Jan 24, 20:13   in response to: martinherbst in response to: martinherbst
 
  Click to reply to this thread Reply
I don't know the cause or the cure, but I can at least confirm the error, even with other settings at their default.
Laza

Posts: 1,798
Registered: 6-Sep-2005
Re: Java exception if album contains web locations "As folder"
Posted: 22 Jan 24, 12:51   in response to: martinherbst in response to: martinherbst
 
  Click to reply to this thread Reply
The new 5.0.1 - released just now - does fix this.
martinherbst

Posts: 7
Registered: 25-May-2017
Re: Java exception if album contains web locations "As folder"
Posted: 25 Jan 24, 19:54   in response to: martinherbst in response to: martinherbst
 
  Click to reply to this thread Reply
Just installed version 5.0.1 and problem is solved :-). Thanks for the quick solution.
Legend
Forum admins
Helpful Answer
Correct Answer

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