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


Permlink Replies: 2 - Pages: 1 - Last Post: 15 Sep 26, 22:45 Last Post By: HermanVanBeek Threads: [ Previous | Next ]
HermanVanBeek

Posts: 2
Registered: 28-Jul-2025
Errormessage [Cannot invoke "String.length()] when making an album
Posted: 14 Sep 26, 19:01
 
  Click to reply to this thread Reply
Hello,

I got a problem when generating an album and i think that it is skin-related.
I have made an album with 3 main folders and one or more subfolders inside the main folders.
When i choose "Make Album" everything works fine but just before the album is ready i get this error message:

An unexpected error occurred. Please see detailed description below:

java.lang.NullPointerException: Cannot invoke "String.length()" because "f" is null
at story.Zip.zipFolder(Zip.java:128)
at story.Zip.zipImages(Zip.java:194)
at story.Zip.zipImages(Zip.java:212)
at story.Zip.zipImages(Zip.java:212)
at story.Zip.createZip(Zip.java:311)
at org.openjdk.nashorn.internal.scripts.Script$187$finally.:program(C:\Users\Herman\AppData\Roaming\JAlbum\skins\Story\finally.js:6)
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)
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.AlbumBean.processExpression(AlbumBean.java:3707)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:3629)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:4049)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3860)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1205)


For now i have discovered a strange workaround:

After several times choosing "Make Album" the album is generated correctly without the errormessage above.

Does anybody know what goes wrong and how to solve this problem?

Thanks in advance.

Herman van Beek

Laza

Posts: 1,589
Registered: 6-Sep-2005
Re: Errormessage [Cannot invoke "String.length()] when making an album
Posted: 15 Sep 26, 20:00   in response to: HermanVanBeek in response to: HermanVanBeek
 
  Click to reply to this thread Reply
This is the ZIP routine, but it fails to open a file. One of the files may be locked, removed, or corrupted. When nothing changes, the skin won't regenerate the ZIP file.
HermanVanBeek

Posts: 2
Registered: 28-Jul-2025
Re: Errormessage [Cannot invoke "String.length()] when making an album
Posted: 15 Sep 26, 22:45   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Hello Laza,

Thanks for your quick reply. Now i know where to search for the cause of this problem.

I will try to make a new album with the same photos and background images.

Kind regards,
Herman.
Legend
Forum admins
Helpful Answer
Correct Answer

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