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


Permlink Replies: 6 - Pages: 1 - Last Post: 21-Aug-2018 19:16 Last Post By: giusfan
giusfan

Posts: 9
Registered: 27-May-2008
Gromit: Error report
Posted: 21-Aug-2018 17:42
 
  Click to reply to this thread Reply
Stack trace for jAlbum 16.1.2 using skin Gromit 55:

se.datadosen.util.ScriptException: bsh.TargetError: Sourced file: inline evaluation of: `` slideCaptionString = ""; slideiconString = ""; slideiconsaloneString = ""; . . . '' : at Line: 79 : in file: inline evaluation of: `` slideCaptionString = ""; slideiconString = ""; slideiconsaloneString = ""; . . . '' : 0

Target exception: java.lang.ArrayIndexOutOfBoundsException
in slideCaption.inc at line number 79
at se.datadosen.jalbum.TemplateParser.eval(TemplateParser.java:897)
at se.datadosen.jalbum.TemplateParser.handleScriptlet(TemplateParser.java:819)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:222)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:183)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:137)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:152)
at se.datadosen.jalbum.TemplateParser.handleInclude(TemplateParser.java:656)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:216)
at se.datadosen.jalbum.TemplateParser.handleInclude(TemplateParser.java:665)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:216)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:183)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:137)
at se.datadosen.jalbum.AlbumBean.makeSlide(AlbumBean.java:3643)
at se.datadosen.jalbum.AlbumBean$StandardImageProcessor.processImages(AlbumBean.java:5738)
at se.datadosen.jalbum.AlbumBean$ImageProcessingTask.call(AlbumBean.java:5670)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.base/java.lang.reflect.Array.get(Native Method)
at bsh.Reflect.getIndex(Reflect.java:164)
at bsh.BSHPrimarySuffix.doIndex(BSHPrimarySuffix.java:250)
at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:117)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:80)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHArguments.getArguments(BSHArguments.java:65)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:69)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:52)
at bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:123)
at bsh.BSHIfStatement.evaluateCondition(BSHIfStatement.java:63)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:46)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
at bsh.BSHSwitchStatement.eval(BSHSwitchStatement.java:88)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHEnhancedForStatement.eval(BSHEnhancedForStatement.java:80)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
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)
at bsh.BshScriptEngine.eval(BshScriptEngine.java:57)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at se.datadosen.jalbum.AlbumBean.doProcessExpression(AlbumBean.java:2531)
at se.datadosen.jalbum.TemplateParser.eval(TemplateParser.java:886)
... 18 more
jGromit

Posts: 7,752
Registered: 31-Jan-2006
Gromit: Re: Error report
Posted: 21-Aug-2018 17:50   in response to: giusfan in response to: giusfan
 
  Click to reply to this thread Reply
The location of that error suggests the one (or more) of your images has some mangled metadata, specifically in the camera make/model EXIF field.

If you can narrow it down to the image file that's causing the error, please attach the original of that file here.
giusfan

Posts: 9
Registered: 27-May-2008
Gromit: Re: Error report
Posted: 21-Aug-2018 18:18   in response to: giusfan in response to: giusfan
 
  Click to reply to this thread Reply
I ecluded a picture that has no camera data in the EXIF values and Gromit did his work correctly. Do you still wish me to attach the file I think caused the problem ?
jGromit

Posts: 7,752
Registered: 31-Jan-2006
Gromit: Re: Error report
Posted: 21-Aug-2018 18:24   in response to: giusfan in response to: giusfan
 
  Click to reply to this thread Reply
Yes, I'd like to experiment with it. No image should ever cause this error.
giusfan

Posts: 9
Registered: 27-May-2008
Gromit: Re: Error report
Posted: 21-Aug-2018 18:36   in response to: giusfan in response to: giusfan
 
  Click to reply to this thread Reply
This is a file I think caused the problem
jGromit

Posts: 7,752
Registered: 31-Jan-2006
Gromit: Re: Error report
Posted: 21-Aug-2018 18:49   in response to: giusfan in response to: giusfan
 
  Click to reply to this thread Reply
Attachment cleaned.jpg (2.5 MB)
Attachment ss004368.png (29.5 KB)
Yes, the metadata in that image file has something unholy in it - see ss004368.png, attached.

I opened the image in paint.net and just re-saved it, without changing anything else, and the resulting image file can now be used without errors - cleaned.jpg.
giusfan

Posts: 9
Registered: 27-May-2008
Gromit: Re: Error report
Posted: 21-Aug-2018 19:16   in response to: giusfan in response to: giusfan
 
  Click to reply to this thread Reply
Thanks, I will check these EXIF info in future
Legend
Forum admins
Helpful Answer
Correct Answer

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