|
Replies:
13
-
Pages:
1
-
Last Post:
16 Nov 22, 12:22
Last Post By: davidekholm
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
61
Registered:
28-Oct-2005
|
|
|
Error generating
Posted:
14 Nov 22, 12:28
|
|
|
Hello,
I generated a little album, and got a big error window :
An unexpected error occurred. Please see detailed description below:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Error processing .\fourmis
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.reportExecutionException(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.get(Unknown Source)
at net.jalbum.util.WorkerPool.process(WorkerPool.java:84)
at net.jalbum.util.WorkerPool.process(WorkerPool.java:69)
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:3132)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1809)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3604)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3483)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1162)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Error processing .\fourmis
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.reportException(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.invoke(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
at se.datadosen.jalbum.AlbumBean.lambda$registerVariables$9(AlbumBean.java:3133)
at net.jalbum.util.WorkerPool.lambda$process$1(WorkerPool.java:81)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Error processing .\fourmis
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:3095)
at se.datadosen.jalbum.AlbumBean.lambda$registerVariables$8(AlbumBean.java:3135)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source)
at java.base/java.util.concurrent.CountedCompleter.exec(Unknown Source)
... 5 more
Caused by: java.lang.NullPointerException: Cannot read field "width" because "newDim" is null
at se.datadosen.jalbum.ImageRenderer.computeRenditions(ImageRenderer.java:282)
at se.datadosen.jalbum.ImageRenderer.<init>(ImageRenderer.java:102)
at se.datadosen.jalbum.AlbumObjectImpl.getRenderer(AlbumObjectImpl.java:215)
at se.datadosen.jalbum.AlbumBean.addFilteredImageSizes(AlbumBean.java:4290)
at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:3075)
... 11 more
|
|
|
Posts:
61
Registered:
28-Oct-2005
|
|
|
Re: Error generating
Posted:
14 Nov 22, 12:38
in response to: hubert
|
|
|
|
I looked at the parameters of the album, and it's really weird ! :
I have a d:\phototemp\converted folder to store jpeg photos.
In that folder I have a 000.jap to generate a d:\phototemp\converted\web folder, into which I can use the slides folder for publishing in low quality.
This worked for years !
The error is here, I guess : see capture. The "origin" folder is just "." and before the 29 version, the dot was pointing at the photo folder.
But now it seems that it points to the jalbum folder (see capture2) and if I start Jalbum first, then generate the 000 album, the web folder is created into c:\programmes\jAlbum.
Of course, I can change the "." location by the d:\phototemp\converted, should work, but I wanted to let you know.
|
|
|
Posts:
3,473
Registered:
18-Oct-2002
|
|
|
Re: Error generating
Posted:
14 Nov 22, 16:51
in response to: hubert
|
|
|
Hi. You will need to restore the "Image directory" to point to the right location.
Also, please update to v29.1.8 by selecting Tools->External tools->"jAlbum core update"
|
|
|
Posts:
61
Registered:
28-Oct-2005
|
|
|
Re: Error generating
Posted:
14 Nov 22, 17:43
in response to: davidekholm
|
|
|
|
update done. No change.
I did not understand what I must do for image directory.
Right now the information is (see capture)
if you mean "change the image folder in the parameters", yes I tested, it works.
Edited by: hubert on 14 Nov 2022, 17:43
|
|
|
Posts:
3,473
Registered:
18-Oct-2002
|
|
|
Re: Error generating
Posted:
14 Nov 22, 19:32
in response to: hubert
|
|
|
Just set "Image directory" to D:\phototemp\Converted\000
|
|
|
Posts:
61
Registered:
28-Oct-2005
|
|
|
Re: Error generating
Posted:
15 Nov 22, 10:14
in response to: davidekholm
|
|
|
oh, OK, sorry, as I use the french version, i translated "dossier des images" by image folder, you used image directory.
Of course this will work. But I still don't understand why the "." in the image directory parameter does not work any more because pointing on the "C:" drive (program drive) when it used to point to the D:
|
|
|
Posts:
3,473
Registered:
18-Oct-2002
|
|
|
Re: Error generating
Posted:
15 Nov 22, 11:03
in response to: hubert
|
|
Correct |
|
|
"." simply refers to the current directory. It's a pure relative path. I wouldn't speculate on what it resolves to really. For "fun" you can open jAlbum's system console, and execute the following: new File(".").getAbsolutePath()
On my computer it prints:
/Users/david/Projects/JAlbum/.
Not that surprising. The empty path (""), refers to the "current working directory" which usually is the directory jAlbum was launched from. Adding a dot to that empty path doesn't change anything as the dot simply refers to the current directory
|
|
|
Posts:
61
Registered:
28-Oct-2005
|
|
|
Re: Error generating
Posted:
15 Nov 22, 12:31
in response to: davidekholm
|
|
|
I know the meaning of the ".", I've been woking in IT my whole pro life.
The change with the last version is that the default drive is now C: (execution drive) it was D: before (the drive where the image directory is).
I tested this in an easy way :
I created a little C:\jalbum-test directory, with a copy of 000.jap and some images, with "." as image directory.
it's OK: images can be seen and album generated. because both program and images are on the same drive.
If I create a D:\jalbum-test, with same files, the files listed on the album are the ones from Jalbum directory.
If on your computer the directory path is printed without drive letter, you cannot see the error.
|
|
|
Posts:
3,473
Registered:
18-Oct-2002
|
|
|
Re: Error generating
Posted:
15 Nov 22, 13:31
in response to: hubert
|
|
|
So you're saying that you've been able to keep the "Image directory" field set to "." previously, but now it needs a full path to work? I'm amazed it it has ever worked to just use "." as "Image directory". With jAlbum 29 we moved from Java 14 to Java 18. I suspect that any change in the interpretation of "." may come from that move.
|
|
|
Posts:
61
Registered:
28-Oct-2005
|
|
|
Re: Error generating
Posted:
15 Nov 22, 16:17
in response to: davidekholm
|
|
|
yes, exactly, I've been using Jalbum for more than 15 years, and it has always been working that way.
Well, I'll change parameters in my jalbum files, it's not a big deal, just weird (as the .jap file is in the current image directory).
Thanks for your answers.
|
|
|
Posts:
3,473
Registered:
18-Oct-2002
|
|
|
Re: Error generating
Posted:
15 Nov 22, 16:25
in response to: hubert
|
|
|
Yes, I find it odd that it's worked before (with just a dot)
|
|
|
Posts:
61
Registered:
28-Oct-2005
|
|
|
Re: Error generating
Posted:
16 Nov 22, 09:08
in response to: davidekholm
|
|
|
that's because the .jap file is into the image directory.
|
|
|
Posts:
61
Registered:
28-Oct-2005
|
|
|
Re: Error generating
Posted:
16 Nov 22, 09:10
in response to: hubert
|
|
|
Solution : modify the image directory parameters. Thanks.
|
|
|
Posts:
3,473
Registered:
18-Oct-2002
|
|
|
Re: Error generating
Posted:
16 Nov 22, 12:22
in response to: hubert
|
|
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|