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


Permlink Replies: 1 - Pages: 1 - Last Post: 23 May 23, 15:01 Last Post By: JeffTucker Threads: [ Previous | Next ]
NO-USER

Posts: 17
Registered: 17-Nov-2025
Plain 1.0.3 - Error Message
Posted: 23 May 23, 14:45
 
  Click to reply to this thread Reply
When I create with the skin Plain in the "Light grid" setting, I always get this error message.
No problems with the other settings.

++++++++++++++++++++

Stack trace for jAlbum 30.3 using skin Plain 1.0.3:

se.datadosen.util.ScriptException: C:\Users\peter\AppData\Roaming\JAlbum\skins\Plain\lib\util.js:345 ReferenceError: "iconPrefix" is not defined in index.htt at line number 35
at se.datadosen.util.ScriptException.of(ScriptException.java:59)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:99)
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.IfElseNode.doEval(IfElseNode.java:74)
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:4152)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1837)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3687)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3536)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1177)
Caused by: javax.script.ScriptException: ReferenceError: "iconPrefix" is not defined in C:\Users\peter\AppData\Roaming\JAlbum\skins\Plain\lib\util.js at line number 345
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:447)
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)
... 13 more
Caused by: C:\Users\peter\AppData\Roaming\JAlbum\skins\Plain\lib\util.js:345 ReferenceError: "iconPrefix" is not defined
at org.openjdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:318)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:290)
at org.openjdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1614)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$66$9859$util.getFolderTree(C:\Users\peter\AppData\Roaming\JAlbum\skins\Plain\lib\util.js:345)
at org.openjdk.nashorn.internal.scripts.Script$65$\^eval\_.:program(<eval>:1)
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)
... 16 more

+++++++++++++++

end

JeffTucker

Posts: 8,099
Registered: 31-Jan-2006
Re: Plain 1.0.3 - Error Message
Posted: 23 May 23, 15:01   in response to: NO-USER in response to: NO-USER
 
  Click to reply to this thread Reply
At first I couldn't replicate the crash, but it turns out that it occurs only if you also have an entry under Settings > Pages > Link to external homepage and the project also contains one or more folders. However, even without folders, the album is lacking the link to the external home page.

To summarize:

Light grid + link to external homepage + folders -> crash
Light grid + link to external homepage + no folders -> no crash, but no link on the index page
Legend
Forum admins
Helpful Answer
Correct Answer

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