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


Permlink Replies: 3 - Pages: 1 - Last Post: 27-Jan-2020 12:42 Last Post By: hans-joachim.bi...
hans-joachim.bi...

Posts: 2
Registered: 11-Oct-2007
Mistake in Matrix Slide
Posted: 26-Jan-2020 18:00
 
  Click to reply to this thread Reply
Where is the Mistake, please?

Stack trace for jAlbum 19.2 using skin MatrixSlide 49:

se.datadosen.util.ScriptException: java.lang.StringIndexOutOfBoundsException: String index out of range: 63 in objectLevel.inc at line number 1
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.IteratorNode.handleIteration(IteratorNode.java:109)
at se.datadosen.jalbum.ast.IteratorNode.doEval(IteratorNode.java:97)
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:3195)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1476)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:2755)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:2659)
at se.datadosen.jalbum.JAlbumFrame$6.run(JAlbumFrame.java:1121)
Caused by: javax.script.ScriptException: bsh.TargetError: Sourced file: inline evaluation of: `` ctObjectTitle = (fileTitle != void) ? cleanString(fileTitle) : null; ctObject . . . '' : Method Invocation engine.processTemplate : at Line: 22 : in file: inline evaluation of: ``// Utility functions private void console(String s) { System.out.println(s) . . . '' : engine .processTemplate ( s )

Called from method: cleanString : at Line: 3 : in file: inline evaluation of: `` ctObjectTitle = (fileTitle != void) ? cleanString(fileTitle) : null; ctObject . . . '' : cleanString ( comment )
Target exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 63
in inline evaluation of: ``// Utility functions private void console(String s) { System.out.println(s) . . . '' at line number 22
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:90)
at bsh.BshScriptEngine.eval(BshScriptEngine.java:57)
at java.scripting/javax.script.AbstractScriptEngine.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:54)
... 16 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 63
at java.base/java.lang.StringLatin1.charAt(Unknown Source)
at java.base/java.lang.String.charAt(Unknown Source)
at se.datadosen.tags.Section.charAt(Section.java:152)
at se.datadosen.tags.Elements.getNextElement(Elements.java:111)
at se.datadosen.tags.Elements.getNextElement(Elements.java:61)
at se.datadosen.jalbum.AST.buildTree(AST.java:104)
at se.datadosen.jalbum.AST.<init>(AST.java:48)
at se.datadosen.jalbum.AlbumBean.processTemplate(AlbumBean.java:1240)
at jdk.internal.reflect.GeneratedMethodAccessor388.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Reflect.java:146)
at bsh.Reflect.invokeObjectMethod(Reflect.java:79)
at bsh.Name.invokeMethod(Name.java:859)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:103)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHAssignment.eval(BSHAssignment.java:77)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at bsh.Name.invokeLocalMethod(Name.java:918)
at bsh.Name.invokeMethod(Name.java:804)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHAssignment.eval(BSHAssignment.java:77)
at bsh.Interpreter.eval(Interpreter.java:672)
at bsh.Interpreter.eval(Interpreter.java:766)
at bsh.Interpreter.eval(Interpreter.java:755)
at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:82)
... 19 more
jGromit

Posts: 7,772
Registered: 31-Jan-2006
Re: Mistake in Matrix Slide
Posted: 26-Jan-2020 18:18   in response to: hans-joachim.bi... in response to: hans-joachim.bi...
 
  Click to reply to this thread Reply
Somewhere in your project, you have an image for which the file title or comment is mangled in some way. There's probably something like a non-printing character embedded in it, for example. Or the title or comment is being retrieved from some metadata that has "bad" characters in it. The error message doesn't really provide enough information to be more specific.

If the project is small, please zip it up, upload the zip file somewhere, and give me a link so I can download it.

You can try to hunt down the "problem" image yourself. Exclude half the images, and try to make the album. If that works, you know the bad image is in the excluded half. Exclude the first half, then exclude half of the previously excluded images. Keep narrowing it down by taking successive halves of the images until you find the one image that causes the failure. Then re-enter the title and comment for that image.
jGromit

Posts: 7,772
Registered: 31-Jan-2006
Re: Mistake in Matrix Slide
Posted: 27-Jan-2020 00:49   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Another possible solution.... If you're not actually making use of the image metadata (like IPTC) for titles or comments, go to Settings > Advanced > Metadata. In the Comment sources section, choose only jAlbum (Text file). Below that, for Title source, choose No IPTC. That might avoid problematic content, and the album build might work properly.
hans-joachim.bi...

Posts: 2
Registered: 11-Oct-2007
Re: Mistake in Matrix Slide
Posted: 27-Jan-2020 12:42   in response to: hans-joachim.bi... in response to: hans-joachim.bi...
 
  Click to reply to this thread Reply
Thanks,
It was only a wrong sign < (Rest from <br>
Legend
Forum admins
Helpful Answer
Correct Answer

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