Thread Locked This thread is locked - replies are not allowed.


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


Permlink Replies: 9 - Pages: 1 - Last Post: 25 Jan 24, 22:32 Last Post By: JeffTucker
marced75

Posts: 5
Registered: 1-Nov-2009
Skin error "java.lang.RuntimeException"
Posted: 14 Jan 24, 14:22
 
Attachment skin_error.jpg (200.6 KB)
Hello everybody. Every time I try to generate an album this error on skin happens...

An unexpected error occurred. Please see detailed description below:

java.lang.RuntimeException: java.lang.ClassNotFoundException: tiger_3.24.0.ConstrainRatioFilter
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:397)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
at jdk.nashorn.api.scripting.NashornScriptEngine.access$200(NashornScriptEngine.java:73)
at jdk.nashorn.api.scripting.NashornScriptEngine$3.eval(NashornScriptEngine.java:510)
at javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.AlbumBean.processExpression(AlbumBean.java:2827)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:2749)
at se.datadosen.jalbum.AlbumBean.prepareMakeAlbum(AlbumBean.java:3278)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3006)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2959)
at se.datadosen.jalbum.JAlbumFrame$6.run(JAlbumFrame.java:1141)
Caused by: java.lang.ClassNotFoundException: tiger_3.24.0.ConstrainRatioFilter
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at jdk.nashorn.internal.runtime.Context.findClass(Context.java:1051)
at jdk.nashorn.internal.objects.NativeJava.simpleType(NativeJava.java:498)
at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:322)
at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:314)
at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:310)
at jdk.nashorn.internal.scripts.Script$9$init.:program(C:\Users\Claudio\AppData\Roaming\JAlbum\skins\Tiger_3.24.0\init.js:17)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
... 10 more

I've tried with all versions of skin and program but problem is always the same.
The other skins are working correctly
Laza

Posts: 1,505
Registered: 6-Sep-2005
Re: Skin error "java.lang.RuntimeException"
Posted: 15 Jan 24, 08:52   in response to: marced75 in response to: marced75
 
That's because you have renamed the skin to tiger_3.24.0. I have fixed this a year or so, so you can even rename the skin and it will not trigger an error. I doubt you tried "all versions of skin and program" :) This error was present for a few months only, and only if a user renamed the skin. Why don't you try a new version?

I see, you are using underscore in the skin name. The routine that tries to figure out the original skin name can handle space only, so "Tiger 3.24.0" is supposed to work.

Edited by: Laza on 15 Jan 2024, 08:52
marced75

Posts: 5
Registered: 1-Nov-2009
Re: Skin error "java.lang.RuntimeException"
Posted: 21 Jan 24, 20:06   in response to: Laza in response to: Laza
 
Attachment error.jpg (183.0 KB)
Dear Laza, I've updated Tiger to the latest version.
Now this is the error:

java.lang.NoSuchMethodError: java.net.URLDecoder.decode(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String;
at com.lazaworx.util.DiskCache.getName(DiskCache.java:294)
at com.lazaworx.util.DiskCache.add(DiskCache.java:171)
at com.lazaworx.util.DiskCache.add(DiskCache.java:144)
at jdk.nashorn.internal.scripts.Script$Recompilation$47$141702A$util.syncGoogleFonts(C:\Users\Claudio\AppData\Roaming\JAlbum\skins\Tiger\lib\util.js:5629)
at jdk.nashorn.internal.scripts.Script$30$\^eval\_.:program(<eval>:112)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
at jdk.nashorn.api.scripting.NashornScriptEngine.access$200(NashornScriptEngine.java:73)
at jdk.nashorn.api.scripting.NashornScriptEngine$3.eval(NashornScriptEngine.java:510)
at javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:60)
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:1464)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1699)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3064)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2959)
at se.datadosen.jalbum.JAlbumFrame$6.run(JAlbumFrame.java:1141)
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Skin error "java.lang.RuntimeException"
Posted: 21 Jan 24, 21:45   in response to: marced75 in response to: marced75
 
No one else has reported this error (AFAIK). Please attach the project file - jalbum-settings.jap - of a project that produces this.
marced75

Posts: 5
Registered: 1-Nov-2009
Re: Skin error "java.lang.RuntimeException"
Posted: 21 Jan 24, 22:53   in response to: JeffTucker in response to: JeffTucker
 
Here the file you ask me.
Unfortunately this issue happens only with Tiger skin.
Thanks for your support.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Skin error "java.lang.RuntimeException"
Posted: 21 Jan 24, 23:02   in response to: marced75 in response to: marced75
 
I don't get a crash with those project settings.

I think you need to do some "housecleaning." Start by doing a complete uninstall and reinstall of jAlbum. Don't try to keep old versions - this will just lead to problems. Follow the steps in this thread, and don't try to second-guess any of it:

https://jalbum.net/forum/thread.jspa?threadID=35746

Then delete any versions of Tiger that you have installed. The newly-installed jAlbum will come bundled with the latest version. Launch jAlbum, then open the config directory - Tools, Open directories, Config directory (or just CTRL-SHIFT-C). Then close jAlbum. In File Explorer, delete any copies of the Tiger skin that you see.
Laza

Posts: 1,505
Registered: 6-Sep-2005
Re: Skin error "java.lang.RuntimeException"
Posted: 22 Jan 24, 10:21   in response to: marced75 in response to: marced75
 
What is your jAlbum version?
marced75

Posts: 5
Registered: 1-Nov-2009
Re: Skin error "java.lang.RuntimeException"
Posted: 22 Jan 24, 19:36   in response to: Laza in response to: Laza
 
I use the 32 bit version of jalbum 25.1.3 because my project is stored in an old pc.
Anyway I've seen the highest 32 bit version I could install will be 28.1.
I will try with the suggested "clean" install of this version.

Edited by: marced75 on 22 Jan 2024, 19:36
marced75

Posts: 5
Registered: 1-Nov-2009
Re: Skin error "java.lang.RuntimeException"
Posted: 25 Jan 24, 21:18   in response to: JeffTucker in response to: JeffTucker
 
Following your suggestions, finally I've solved my problem.
Thank U Jeff
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Skin error "java.lang.RuntimeException"
Posted: 25 Jan 24, 22:32   in response to: marced75 in response to: marced75
 
Glad that took care of it. I did a quick test with the current version of Tiger on jAlbum 28.1, and at least for a "plain vanilla" project, it worked properly.

For a skin developer, it's very difficult to keep track of what the minimum required jAlbum version is. We usually wait for the report of a failure, then update the documentation. ;)
Legend
Forum admins
Helpful Answer
Correct Answer

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