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


Permlink Replies: 3 - Pages: 1 - Last Post: 12 Oct 21, 18:44 Last Post By: AndreWolff Threads: [ Previous | Next ]
gbol

Posts: 1
Registered: 16-Jul-2021
FancyBox - jalbum_25-1_amd64.deb
Posted: 12 Oct 21, 15:14
 
  Click to reply to this thread Reply
Stack trace for jAlbum 25.0.5 using skin FancyBox 3.6.5:

se.datadosen.util.ScriptException: java.util.MissingResourceException: Can't find resource for bundle se.datadosen.util.SmartResourceBundle, key strInClipboard in index.htt at line number 963
at se.datadosen.util.ScriptException.of(ScriptException.java:59)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:89)
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.IfElseNode.doEval(IfElseNode.java:74)
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:3489)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1739)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3047)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2943)
at se.datadosen.jalbum.JAlbumFrame$6.run(JAlbumFrame.java:1141)
Caused by: javax.script.ScriptException: bsh.TargetError: Sourced file: inline evaluation of: `` File slideshowTemplate = new File(skinDirectory, "slidePagePar.htt"); if . . . '' : Method Invocation engine.processTemplateFile : at Line: 6 : in file: inline evaluation of: `` File slideshowTemplate = new File(skinDirectory, "slidePagePar.htt"); if . . . '' : engine .processTemplateFile ( slideshowTemplate , new File ( outputDirectory , slidePage ) )

Target exception: java.util.MissingResourceException: Can't find resource for bundle se.datadosen.util.SmartResourceBundle, key strInClipboard
in inline evaluation of: `` File slideshowTemplate = new File(skinDirectory, "slidePagePar.htt"); if . . . '' at line number 6
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:62)
... 13 more
Caused by: java.util.MissingResourceException: Can't find resource for bundle se.datadosen.util.SmartResourceBundle, key strInClipboard
at se.datadosen.util.SmartResourceBundle.getObject(SmartResourceBundle.java:105)
at se.datadosen.util.SmartResourceBundle.getString(SmartResourceBundle.java:62)
at se.datadosen.jalbum.ast.ExpressionLanguageNode.handleExpressionLanguage(ExpressionLanguageNode.java:53)
at se.datadosen.jalbum.ast.ExpressionLanguageNode.doEval(ExpressionLanguageNode.java:31)
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:68)
at se.datadosen.jalbum.AlbumBean.processTemplateFile(AlbumBean.java:1450)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.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.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
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)
... 16 more

Edited by: gbol on 12 Oct 2021, 15:19
AndreWolff

Posts: 2,186
Registered: 14-Dec-2007
Re: FancyBox - jalbum_25-1_amd64.deb
Posted: 12 Oct 21, 16:41   in response to: gbol in response to: gbol
 
  Click to reply to this thread Reply
Sorry I can't help you with this info:

1. I don't have jAlbum 25.0.5, I am using the latest releaded version 25 .
2. index.htt at line number 963 shows:
<%
  File slideshowTemplate = new File(skinDirectory, "slidePagePar.htt"); 
  if (slideshowTemplate.exists())
  { 
    slidePage = "slidePage.js";
    engine.processTemplateFile(slideshowTemplate, new File(outputDirectory,slidePage));
  }
 %>
This code is working already correctly from the first version of the skin and I have no problems with it with my 25 sample albums made with version 25 on my Windows 10 system.

So I think there is something wrong in your jAlbum version 25.0.5
How did you get that and which type of system are you using?

I have no idea what error message

se.datadosen.util.ScriptException: java.util.MissingResourceException: Can't find resource for bundle se.datadosen.util.SmartResourceBundle, key strInClipboard

means, hopefully can David say something about this.
RobM

Posts: 3,821
Registered: 4-Aug-2006
Re: FancyBox - jalbum_25-1_amd64.deb
Posted: 12 Oct 21, 17:57   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
The error message means the ‘text.properties’ file is missing the keyword ‘strInClipboard‘.
Check the default text properties file, line one is not right.

If you look up ‘SmartResourceBundle’ in the API you will find what it means, from that you would have found the area of concern.
AndreWolff

Posts: 2,186
Registered: 14-Dec-2007
Re: FancyBox - jalbum_25-1_amd64.deb
Posted: 12 Oct 21, 18:44   in response to: gbol in response to: gbol
 
  Click to reply to this thread Reply
As Rob found, the first line in file text.properties was corrupted and has been repaired in the new version 3.6.6 version.

I see that you come too from Holland, so strange that I did not found that!

Which language did you use for your album?

Anyhow thanks for reporting and Rob thanks for the solution.
Legend
Forum admins
Helpful Answer
Correct Answer

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