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


Permlink Replies: 9 - Pages: 1 - Last Post: 10 Nov 25, 08:51 Last Post By: Laza Threads: [ Previous | Next ]
Schegg

Posts: 28
Registered: 6-Mar-2009
BatchTool 129 ReferenceError
Posted: 5 Nov 25, 07:15
 
  Click to reply to this thread Reply
Hi

After updating jalbum to version 38, I receive the following error.

This error message appears when creating a selected project using the batch tool.


Stack trace for jAlbum 38 using skin Animatics 4.0:

se.datadosen.util.ScriptException: <eval>:129 ReferenceError: "hiDpiThemeImage" is not defined in page-header.inc at line number 1
at se.datadosen.util.ScriptException.of(ScriptException.java:59)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:99)
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: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.EnterNode.doEval(EnterNode.java:23)
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:4312)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1976)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3791)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3627)
at se.datadosen.jalbum.MakeAlbumTask.doInBackground(MakeAlbumTask.java:185)
at se.datadosen.jalbum.TaskManager$BackgroundTask.call(TaskManager.java:113)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: javax.script.ScriptException: ReferenceError: "hiDpiThemeImage" is not defined in <eval> at line number 129
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:436)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:420)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:476)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:67)
... 20 more
Caused by: <eval>:129 ReferenceError: "hiDpiThemeImage" is not defined
at org.openjdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:318)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:290)
at org.openjdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1604)
at org.openjdk.nashorn.internal.scripts.Script$90$\^eval\_.:program(<eval>:129)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:506)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:519)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:415)
... 23 more

BR Andi

Edited by: Schegg on 5 Nov 2025, 07:36

Laza

Posts: 1,629
Registered: 6-Sep-2005
Re: BatchTool 129 ReferenceError
Posted: 5 Nov 25, 13:07   in response to: Schegg in response to: Schegg
 
  Click to reply to this thread Reply
Hi, what happens if you try to make the album again? The missing variable is in the user interface, and you might hit the Make album button before jAlbum could load that.
JeffTucker

Posts: 8,096
Registered: 31-Jan-2006
Re: BatchTool 129 ReferenceError
Posted: 5 Nov 25, 16:12   in response to: Schegg in response to: Schegg
Helpful
  Click to reply to this thread Reply
I think this is an example of a classic problem. Installing jAlbum 38 has also given you a new version of Animatics. But the project was created with an older version of Animatics, which didn't have the new variable, HiDpiThemeImage.

If you try to build the album using the multi-maker or the command line, the variable is missing, because the project has never been opened and saved with the new version of Animatics.

Before using the multi-maker, in cases like this, it is necessary to open each project in Explore, and save it. No need to do anything more - just a quick open, save, close will do the trick. Now you can safely feed that project to the multi-maker.
Schegg

Posts: 28
Registered: 6-Mar-2009
Re: BatchTool 129 ReferenceError
Posted: 5 Nov 25, 17:04   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
I can reproduce the error multiple times, even after waiting about 1 minute before pressing the create button.
Schegg

Posts: 28
Registered: 6-Mar-2009
Re: BatchTool 129 ReferenceError
Posted: 5 Nov 25, 17:11   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Hi Jeff

Thank you for the description. The method you described works.

BR ANdi
JeffTucker

Posts: 8,096
Registered: 31-Jan-2006
Re: BatchTool 129 ReferenceError
Posted: 5 Nov 25, 17:21   in response to: Schegg in response to: Schegg
Helpful
  Click to reply to this thread Reply
Schegg wrote:
Hi Jeff

Thank you for the description. The method you described works.

BR ANdi


It's familiar territory, and is a tough one for the jAlbum core to work around. I've seen it before. :(
Laza

Posts: 1,629
Registered: 6-Sep-2005
Re: BatchTool 129 ReferenceError
Posted: 8 Nov 25, 07:10   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I believe this bug has to be fixed in jAlbum. At least those variables defined in SkinModel should be loaded. A skin has no way of fixing this.
JeffTucker

Posts: 8,096
Registered: 31-Jan-2006
Re: BatchTool 129 ReferenceError
Posted: 8 Nov 25, 08:12   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
I agree. I’ll post a feature request about it.
JeffTucker

Posts: 8,096
Registered: 31-Jan-2006
Re: BatchTool 129 ReferenceError
Posted: 8 Nov 25, 20:30   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Laza wrote:
I believe this bug has to be fixed in jAlbum. At least those variables defined in SkinModel should be loaded.

I think I just found the cause of this crash. The SkinModel.java file in Animatics doesn't include the variable HiDpiThemeImage. So, the MultiMaker and command line routine crash.
Laza

Posts: 1,629
Registered: 6-Sep-2005
Re: BatchTool 129 ReferenceError
Posted: 10 Nov 25, 08:51   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Oh, that's a good observation. I'll fix this for the new release.
Legend
Forum admins
Helpful Answer
Correct Answer

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