This question is answered.


Permlink Replies: 10 - Pages: 1 - Last Post: 28 Oct 21, 16:31 Last Post By: davidekholm
Rukes

Posts: 5
Registered: 8-Sep-2004
Jalbum 25 java crash when making album
Posted: 27 Oct 21, 21:53
 
  Click to reply to this thread Reply
Getting this crash when generating an album in JAlbum 25:

An unexpected error occurred. Please see detailed description below:
 
java.lang.NullPointerException
	at se.datadosen.jalbum.AlbumBean.getProjectProperties(AlbumBean.java:2959)
	at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:2994)
	at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2943)
	at se.datadosen.jalbum.JAlbumFrame$6.run(JAlbumFrame.java:1141)


Using MacOS, built-in Tiger skin 3.6.3 and 3.7.0 (not sure if it's a Tiger issue based on the error).

Error occurred on both version 25 and 25.0.6, on both an Intel MacBook Pro and an M1 Mac Pro, also both on MacOS Monterrey and Big Sur.

Edited by: Rukes on 27 Oct 2021, 12:57
RobM

Posts: 3,947
Registered: 4-Aug-2006
Re: Jalbum 25 java crash when making album
Posted: 27 Oct 21, 23:25   in response to: Rukes in response to: Rukes
 
  Click to reply to this thread Reply
I'm using jAlbum 25.0.8, Tiger 3.7.0 and OS X 11.6 (Big Sur) with no issues.
Try building the Sample Portfolio project, if that works try following the essential debugging steps at https://jalbum.net/forum/ann.jspa?annID=204
Rukes

Posts: 5
Registered: 8-Sep-2004
Re: Jalbum 25 java crash when making album
Posted: 28 Oct 21, 00:13   in response to: Rukes in response to: Rukes
 
  Click to reply to this thread Reply
I did the Sample Project and it worked fine.

Tried a bunch of random skins and styles and every single one of them give the same error.

Seems this is only happening with the default settings "empty project"; the settings that load when you go to File - Save As Default.

Saving the exact settings as a separate named project and selecting it on the list works just fine.

Edited by: Rukes on 27 Oct 2021, 15:18
RobM

Posts: 3,947
Registered: 4-Aug-2006
Re: Jalbum 25 java crash when making album
Posted: 28 Oct 21, 00:44   in response to: Rukes in response to: Rukes
 
  Click to reply to this thread Reply
Not sure if this will help, but you could try resetting the defaults. If you do, keep a copy of the existing defaults, for further debugging and to restore your setup later.
To reset defaults see https://jalbum.net/help/en/JAlbum/Glossary/D#Default
Defaults are stored in the configuration folder, https://jalbum.net/help/en/JAlbum/Menus#Open_directories
Rukes

Posts: 5
Registered: 8-Sep-2004
Re: Jalbum 25 java crash when making album
Posted: 28 Oct 21, 01:33   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Nope, didn't do anything. On top of that, resetting defaults actually did not work at all. I had to manually delete the default file to get it to go back to the default settings.

Once I did, I tried to make an album and got the same exact error message.
RobM

Posts: 3,947
Registered: 4-Aug-2006
Re: Jalbum 25 java crash when making album
Posted: 28 Oct 21, 11:30   in response to: Rukes in response to: Rukes
 
  Click to reply to this thread Reply
I tried reseting my defaults and creating a new project with Tiger, no problem. Please wait for David to respond, he has said before that there are numerous possible causes of NullPointerExceptions. But if the error is repeatable for you he may have some ideas for solving the issue.

I'll post a bug report about the external tool not working.
davidekholm

Posts: 3,576
Registered: 18-Oct-2002
Re: Jalbum 25 java crash when making album
Posted: 28 Oct 21, 12:07   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Odd. It's like if you don't have an open project while making the album. The Nullpointer exception is triggered by the root folder of the current project being missing, but how can that be? It should not be possible with an open project.
RobM

Posts: 3,947
Registered: 4-Aug-2006
Re: Jalbum 25 java crash when making album
Posted: 28 Oct 21, 12:13   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Would saving a new project before making the album be a likely short term fix?
davidekholm

Posts: 3,576
Registered: 18-Oct-2002
Re: Jalbum 25 java crash when making album
Posted: 28 Oct 21, 12:53   in response to: RobM in response to: RobM
Correct
  Click to reply to this thread Reply
I can reproduce this problem if I follow these steps:
  • Open jAlbum
  • Open settings
  • Enter a valid path for "Image directory"
  • Close settings
  • Make the album

I've now fixed this. Do a core update (Tools->External tools->jAlbum core update) to apply the fix.
Rukes

Posts: 5
Registered: 8-Sep-2004
Re: Jalbum 25 java crash when making album
Posted: 28 Oct 21, 16:13   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Thank you, the fix worked perfect!
davidekholm

Posts: 3,576
Registered: 18-Oct-2002
Re: Jalbum 25 java crash when making album
Posted: 28 Oct 21, 16:31   in response to: Rukes in response to: Rukes
 
  Click to reply to this thread Reply
You're welcome. Did you create your project in the same manner that I did in my example above? I generally recommend dropping an image folder onto jAlbum to get a project quickly set up.
Legend
Forum admins
Helpful Answer
Correct Answer

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