This question is answered.


Permlink Replies: 9 - Pages: 1 - Last Post: 10 Dec 22, 13:32 Last Post By: davidekholm Threads: [ Previous | Next ]
RobM

Posts: 3,718
Registered: 4-Aug-2006
RAW images, Tiger, Photoblogger and Story
Posted: 2 Nov 22, 22:09
 
  Click to reply to this thread Reply
jAlbum 29.1, bundled skins, Mac OS 11.7.

This is odd as it happens with the above skins but not others, such as Minimal.
Create a new project and add a raw image (.CR2 used).
Select one of the above skins.
Edit the image and change the 'Exposure correction' setting by one notch.
Return to explore mode.
The following error appears once either on returning to explore or make album:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "se.datadosen.jalbum.AlbumObject.getProperties()" because the return value of "se.datadosen.jalbum.JRawSettingsPanel.access$100(se.datadosen.jalbum.JRawSettingsPanel)" is null
	at se.datadosen.jalbum.JRawSettingsPanel$5.onChange(JRawSettingsPanel.java:247)
	at se.datadosen.component.StateMonitor.stateChanged(StateMonitor.java:265)
	at java.desktop/javax.swing.JSpinner.fireStateChanged(Unknown Source)
	at java.desktop/javax.swing.JSpinner$ModelListener.stateChanged(Unknown Source)
	at java.desktop/javax.swing.AbstractSpinnerModel.fireStateChanged(Unknown Source)
	at java.desktop/javax.swing.SpinnerNumberModel.setValue(Unknown Source)
	at java.desktop/javax.swing.JSpinner.setValue(Unknown Source)
	at java.desktop/javax.swing.JSpinner$DefaultEditor.propertyChange(Unknown Source)
	at java.desktop/java.beans.PropertyChangeSupport.fire(Unknown Source)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
	at java.desktop/java.awt.Component.firePropertyChange(Unknown Source)
	at java.desktop/javax.swing.JFormattedTextField.setValue(Unknown Source)
	at java.desktop/javax.swing.JFormattedTextField.commitEdit(Unknown Source)
	at se.datadosen.jalbum.JCustomPanel.saveUI(JCustomPanel.java:128)
	at se.datadosen.jalbum.JCustomPanel.setAlbumObject(JCustomPanel.java:57)
	at tiger.ImageDataUI.setAlbumObject(ImageDataUI.java:38)
	at se.datadosen.explorer.JEditPanel.fireEditingAlbumObject(JEditPanel.java:1277)
	at se.datadosen.explorer.JEditPanel.setAO(JEditPanel.java:355)
	at se.datadosen.explorer.JAlbumExplorer.setExplorerView(JAlbumExplorer.java:3988)
	at se.datadosen.explorer.JEditPanel$5.actionPerformed(JEditPanel.java:306)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
RobM

Posts: 3,718
Registered: 4-Aug-2006
Re: RAW images, Tiger, Photoblogger and Story
Posted: 8 Dec 22, 23:00   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Been a month and nobody else has reported the issue, so not a major problem.
JeffTucker

Posts: 7,738
Registered: 31-Jan-2006
Re: RAW images, Tiger, Photoblogger and Story
Posted: 8 Dec 22, 23:29   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
At least I can replicate it. It happens with Projector, as well. What those four skins have in common is that they're all JSON-driven skins. Why that should make a difference before one even invokes Make Album is a bit of a mystery, however. The JSON files exist only in the output, and the Explore mode shouldn't be looking at the output for any reason.
RobM

Posts: 3,718
Registered: 4-Aug-2006
Re: RAW images, Tiger, Photoblogger and Story
Posted: 8 Dec 22, 23:48   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
At least I can replicate it. It happens with Projector, as well. What those four skins have in common is that they're all JSON-driven skins. Why that should make a difference before one even invokes Make Album is a bit of a mystery, however. The JSON files exist only in the output, and the Explore mode shouldn't be looking at the output for any reason.
I too thought JSON was the common denominator, but Sprint uses JSON data, though not as JSON files.
jsonmaker = new JSONMaker(engine);
dataTree = jsonmaker.getTreeAsString(rootFolder);
And Sprint doesn't show that error.

Weird, but not a pressing problem. One to add to the watch list, maybe.
JeffTucker

Posts: 7,738
Registered: 31-Jan-2006
Re: RAW images, Tiger, Photoblogger and Story
Posted: 9 Dec 22, 00:27   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
The others all have a data-config.json file lurking in the skin directory. Maybe the core is doing something with that even before album creation. Just a hunch....
RobM

Posts: 3,718
Registered: 4-Aug-2006
Re: RAW images, Tiger, Photoblogger and Story
Posted: 9 Dec 22, 00:36   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
The others all have a data-config.json file lurking in the skin directory. Maybe the core is doing something with that even before album creation. Just a hunch....
As we've seen before, the core does all sorts of stuff early on. Efficiency first is not always the most efficient way ;)
JeffTucker

Posts: 7,738
Registered: 31-Jan-2006
Re: RAW images, Tiger, Photoblogger and Story
Posted: 9 Dec 22, 03:12   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Efficiency first is not always the most efficient way ;)

And yet another example has surfaced. "No sense clearing the res directory, since it's the same skin, so it will put the same files back there again!" Faulty assumption.

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

Posts: 3,331
Registered: 18-Oct-2002
Re: RAW images, Tiger, Photoblogger and Story
Posted: 9 Dec 22, 10:53   in response to: RobM in response to: RobM
Correct
  Click to reply to this thread Reply
I think the JSON aspect is a red herring. This seems to be caused by these skins using a custom edit mode UI. A change event is fired too late (when the current album object reference has been cleared). I've fixed this in 29.1.15 now. Just do a core update.
RobM

Posts: 3,718
Registered: 4-Aug-2006
Re: RAW images, Tiger, Photoblogger and Story
Posted: 9 Dec 22, 19:38   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Thanks, it is now fixed.
davidekholm

Posts: 3,331
Registered: 18-Oct-2002
Re: RAW images, Tiger, Photoblogger and Story
Posted: 10 Dec 22, 13:32   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Thanks for confirming
Legend
Forum admins
Helpful Answer
Correct Answer

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