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


Permlink Replies: 2 - Pages: 1 - Last Post: 06-Feb-2018 19:29 Last Post By: AndreWolff Threads: [ Previous | Next ]
pjsieders

Posts: 9
Registered: 22-Mar-2007
PhotoSwipe - hit this snag.. any clues anyone ?
Posted: 04-Feb-2018 20:05
 
  Click to reply to this thread Reply
Stack trace for jAlbum 13.10 using skin PhotoSwipe 1.7.7:

se.datadosen.util.ScriptException: bsh.TargetError: Sourced file: inline evaluation of: `` // Index page file index.htt // "PhotoSwipe" skin, derived from Slide . . . '' : Typed variable declaration : Method Invocation IO.urlEncode : at Line: 23 : in file: inline evaluation of: `` // Index page file index.htt // "PhotoSwipe" skin, derived from Slide . . . '' : IO .urlEncode ( currentFolder .getThumbnailPath ( ) )

Target exception: java.lang.NullPointerException
in index.htt at line number 23
at se.datadosen.jalbum.TemplateParser.eval(TemplateParser.java:779)
at se.datadosen.jalbum.TemplateParser.handleScriptlet(TemplateParser.java:701)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:184)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:151)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:126)
at se.datadosen.jalbum.TemplateParser.parseElements(TemplateParser.java:141)
at se.datadosen.jalbum.AlbumBean.makeIndexPages(AlbumBean.java:2954)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1284)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1379)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1379)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:2527)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2452)
at se.datadosen.jalbum.JAlbumFrame$12.run(JAlbumFrame.java:1058)
Caused by: java.lang.NullPointerException
at se.datadosen.util.IO.urlEncode(IO.java:884)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Reflect.java:146)
at bsh.Reflect.invokeStaticMethod(Reflect.java:94)
at bsh.Name.invokeMethod(Name.java:875)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:86)
at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:84)
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:89)
at bsh.BshScriptEngine.eval(BshScriptEngine.java:61)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
at se.datadosen.jalbum.AlbumBean.doProcessExpression(AlbumBean.java:2306)
at se.datadosen.jalbum.TemplateParser.eval(TemplateParser.java:768)
... 12 more

Edited by: jGromit, to put the skin name in the title (easier to find)
RobM

Posts: 4,888
Registered: 4-Aug-2006
Re: PhotoSwipe - hit this snag.. any clues anyone ?
Posted: 04-Feb-2018 21:06   in response to: pjsieders in response to: pjsieders
 
  Click to reply to this thread Reply
Check for an empty folder, if there is one either exclude or delete it.
AndreWolff

Posts: 2,431
Registered: 14-Dec-2007
Re: PhotoSwipe - hit this snag.. any clues anyone ?
Posted: 06-Feb-2018 19:29   in response to: pjsieders in response to: pjsieders
 
  Click to reply to this thread Reply
Yes, as Rob already said, the crash is caused by a folder without images.
Just exclude that folder and the problem is solved.

This bug will be fixed in the next release, thanks for reporting this problem!
Legend
Forum admins
Helpful Answer
Correct Answer

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