This question is answered.


Permlink Replies: 4 - Pages: 1 - Last Post: 23 Sep 22, 14:59 Last Post By: PeterGibb
JeffTucker

Posts: 8,462
Registered: 31-Jan-2006
Filter error in jAlbum 29
Posted: 21 Sep 22, 21:47
 
  Click to reply to this thread Reply
This is an oddball. In one my skins, NoPages, I include an option to watermark the thumbnails. For the slide images, the regular jAlbum Effects panel is fine, but I wanted to handle thumbnails, as well. In jAlbum 28.1.5, it works fine. In jAlbum 29, it still works fine, but coughs up a console error. Harmless error, but where there's smoke....
jAlbum 29b13 system console running Groovy (Groovy Scripting Engine)
 
....
 
Skin loading: 0.523s
Skin loading: 0.03s
 
Making "aa" (All)
Error cloning filter class WatermarkFilter
java.lang.NoSuchMethodException: WatermarkFilter.clone()
	at java.base/java.lang.Class.getDeclaredMethod(Unknown Source)
	at se.datadosen.jalbum.AlbumBean.processFilters(AlbumBean.java:4772)
	at se.datadosen.jalbum.ImageRenderer.processThumbs(ImageRenderer.java:187)
	at se.datadosen.jalbum.AlbumBean$StandardImageProcessor.processImage(AlbumBean.java:6744)
	at se.datadosen.jalbum.AlbumBean$StandardImageProcessor.processImages(AlbumBean.java:6480)
	at se.datadosen.jalbum.AlbumBean$ImageProcessingTask.call(AlbumBean.java:6416)
	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)
Error cloning filter class WatermarkFilter
java.lang.NoSuchMethodException: WatermarkFilter.clone()
	at java.base/java.lang.Class.getDeclaredMethod(Unknown Source)
	at se.datadosen.jalbum.AlbumBean.processFilters(AlbumBean.java:4772)
	at se.datadosen.jalbum.ImageRenderer.processThumbs(ImageRenderer.java:187)
	at se.datadosen.jalbum.AlbumBean$StandardImageProcessor.processImage(AlbumBean.java:6744)
	at se.datadosen.jalbum.AlbumBean$StandardImageProcessor.processImages(AlbumBean.java:6480)
	at se.datadosen.jalbum.AlbumBean$ImageProcessingTask.call(AlbumBean.java:6416)
	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)
Error cloning filter class WatermarkFilter
java.lang.NoSuchMethodException: WatermarkFilter.clone()
	at java.base/java.lang.Class.getDeclaredMethod(Unknown Source)
	at se.datadosen.jalbum.AlbumBean.processFilters(AlbumBean.java:4772)
	at se.datadosen.jalbum.ImageRenderer.processThumbs(ImageRenderer.java:187)
	at se.datadosen.jalbum.AlbumBean$StandardImageProcessor.processImage(AlbumBean.java:6744)
	at se.datadosen.jalbum.AlbumBean$StandardImageProcessor.processImages(AlbumBean.java:6480)
	at se.datadosen.jalbum.AlbumBean$ImageProcessingTask.call(AlbumBean.java:6416)
	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)
"aa" made in 0.546s
If you want to tinker, just create a NoPages project, hit the Thumbnail Watermark tab, and enter some watermark text.
davidekholm

Posts: 4,405
Registered: 18-Oct-2002
Re: Filter error in jAlbum 29
Posted: 22 Sep 22, 12:10   in response to: JeffTucker in response to: JeffTucker
Correct
  Click to reply to this thread Reply
Thanks for reporting. Seems like Java 18 has tightened the contract of Class.getDeclaredMethod(). It no longer travels superclasses to find the method one is looking for in case its missing from the base class. I now travel upwards the class hierarchy. This fixes the problem as WatermarkFilter extends TextFilter but has no clone() method of its own.

Just get beta core jar rev15
JeffTucker

Posts: 8,462
Registered: 31-Jan-2006
Re: Filter error in jAlbum 29
Posted: 22 Sep 22, 14:58   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Yes, that gets rid of the console message. :)

Admit it - you love this weird, "inside baseball" stuff. How would you fill your empty days if I didn't periodically stumble on an error that a normal user could go for five or six years without seeing? ;)

(Actually, I ran into this only because I was doing some quick testing of my Groovified NoPages, so I was paying particular attention to the warning triangles!)
davidekholm

Posts: 4,405
Registered: 18-Oct-2002
Re: Filter error in jAlbum 29
Posted: 22 Sep 22, 15:02   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Yes, it gives me a sense of purpose in life ;-)
PeterGibb

Posts: 332
Registered: 20-Nov-2009
Re: Filter error in jAlbum 29
Posted: 23 Sep 22, 14:59   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Admit it - you love this weird, "inside baseball" stuff. How would you fill your empty days if I didn't periodically stumble on an error that a normal user could go for five or six years without seeing?

Well, I haven't seen any of this stuff, ever! let alone five or six years. The effort all of you are putting into it is just staggering and I think it is much appreciated by everybody.

Peter
Legend
Forum admins
Helpful Answer
Correct Answer

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