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


Permlink Replies: 2 - Pages: 1 - Last Post: 30-Mar-2020 16:12 Last Post By: Laza Threads: [ Previous | Next ]
Edelo

Posts: 1
Registered: 8-Jun-2008
Error Skin
Posted: 30-Mar-2020 11:30
 
  Click to reply to this thread Reply
Stack trace for jAlbum 19.3.6 using skin Tiger 2.13.5:

se.datadosen.util.ScriptException: <eval>:179 TypeError: Cannot read property "length" from undefined in sections.inc at line number 5
at se.datadosen.util.ScriptException.of(ScriptException.java:59)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:75)
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:92)
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:3224)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1498)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:2784)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2696)
at se.datadosen.jalbum.JAlbumFrame$6.run(JAlbumFrame.java:1125)
Caused by: javax.script.ScriptException: TypeError: Cannot read property "length" from undefined in <eval> at line number 179
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine$3.eval(Unknown Source)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:52)
... 15 more
Caused by: <eval>:179 TypeError: Cannot read property "length" from undefined
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.error(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.typeError(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.typeError(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.typeError(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.Undefined.get(Unknown Source)
at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$243$\^eval\_.:program(<eval>:179)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(Unknown Source)
... 19 more
jGromit

Posts: 7,807
Registered: 31-Jan-2006
Re: Error Skin
Posted: 30-Mar-2020 14:12   in response to: Edelo in response to: Edelo
 
  Click to reply to this thread Reply
See if the first few debugging steps cure the problem:

https://jalbum.net/forum/ann.jspa?annID=204

If not, continue through that thread and try to isolate the problem.
Laza

Posts: 2,301
Registered: 6-Sep-2005
Re: Error Skin
Posted: 30-Mar-2020 16:12   in response to: Edelo in response to: Edelo
 
  Click to reply to this thread Reply
I've checked the code and the only possibility to get this error if you use Filtering and Sort, but leave the box title empty. However even in this case jAlbum should return an empty string, not a "null" value. Anyway, I have fixed this now, and will be available with the next skin update. For now you can give a non-empty string to fix this error.
Legend
Forum admins
Helpful Answer
Correct Answer

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