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


Permlink Replies: 1 - Pages: 1 - Last Post: 19-May-2019 11:22 Last Post By: Laza
oehl

Posts: 44
Registered: 16-Mar-2017
Error when making album
Posted: 19-May-2019 09:26
 
  Click to reply to this thread Reply
Attachment Contact Kopie.htt (10.7 KB)
Hi,
I have updated jAlbum and photoBlogger. Now I receive the following error when pushing the button "make album":
Stack trace for jAlbum 18.2.1 using skin PhotoBlogger 2.3.7:

se.datadosen.util.ScriptException: <eval>:1:23 Expected an operand but found &&
(custom_link1 != void && !util.isEmpty(custom_link1)) || (custom_link2 != void && !util.isEmpty(custom_link2)) || (custom_link3 != void && !util.isEmpty(custom_link3))
^ in Contact.htt at line number 167
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.ASTNode.evalToString(ASTNode.java:59)
at se.datadosen.jalbum.ast.ElementNode$Attributes.get(ElementNode.java:74)
at se.datadosen.jalbum.ast.IfElseNode.doEval(IfElseNode.java:55)
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.processTemplateFile(AlbumBean.java:1254)
at se.datadosen.jalbum.AlbumBean.processTemplateFile(AlbumBean.java:1247)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1463)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:2746)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2658)
at se.datadosen.jalbum.JAlbumFrame$6.run(JAlbumFrame.java:1101)
Caused by: javax.script.ScriptException: <eval>:1:23 Expected an operand but found &&
(custom_link1 != void && !util.isEmpty(custom_link1)) || (custom_link2 != void && !util.isEmpty(custom_link2)) || (custom_link3 != void && !util.isEmpty(custom_link3))
^ in <eval> at line number 1 at column number 23
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.asCompiledScript(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.compile(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:47)
... 14 more
Caused by: jdk.nashorn.internal.runtime.ParserException: <eval>:1:23 Expected an operand but found &&
(custom_link1 != void && !util.isEmpty(custom_link1)) || (custom_link2 != void && !util.isEmpty(custom_link2)) || (custom_link3 != void && !util.isEmpty(custom_link3))
^
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.AbstractParser.error(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.AbstractParser.error(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.unaryExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.unaryExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.expression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.expression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.conditionalExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.assignmentExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.expression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.expression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.primaryExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.memberExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.leftHandSideExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.unaryExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.expression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.conditionalExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.assignmentExpression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.expression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.expression(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.expressionStatement(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.statement(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.sourceElements(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.program(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.parse(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.parse(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.Context.compile(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.Context.compileScript(Unknown Source)
... 17 more

The reason seems to be Contact.htt. I attached a copy of this file.

Edited by: oehl on 19-May-2019 09:56

Laza

Posts: 2,199
Registered: 6-Sep-2005
Re: Error when making album
Posted: 19-May-2019 11:22   in response to: oehl in response to: oehl
 
  Click to reply to this thread Reply
Legend
Forum admins
Helpful Answer
Correct Answer

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