openmolecules.org

 
Home » DataWarrior » Bug Reports » Cannot open files due to java error
Cannot open files due to java error [message #2328] Mon, 28 October 2024 10:41 Go to next message
Leon Rebhan is currently offline  Leon Rebhan
Messages: 3
Registered: October 2024
Junior Member
Hi,
I just downloaded DataWarrior and I get the following error when trying to open files:
"Uncaught Exception: Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because "<local6>" is null"
I'm running Java 8 64-bit on Win10 and DataWarrior v6.3.00 (but the problems was also there with version 6.1.00.
Can anyone help me?

Kind regards
Leon
Re: Cannot open files due to java error [message #2333 is a reply to message #2328] Tue, 29 October 2024 15:55 Go to previous messageGo to next message
thomas is currently offline  thomas
Messages: 711
Registered: June 2014
Senior Member
Did you install with the 6.1.0 msi? That uses its own JRE21. Or did you compile yourself and run with Java8?

What exactly do you do? Double click the DataWarrior Icon? Or a document icon? Or start DataWarrior.exe from command line? When do you see the error? Do you see the splash screen (DataWarrior loading)? Do you see the about window? Does an empty document window open?

From the error it seems that the JRE could not find or open an image, but which image or why is unclear. Do you get more errors when starting from the command line? If not, I could send you a debug version of the exe that should create more output...
Re: Cannot open files due to java error [message #2334 is a reply to message #2333] Tue, 29 October 2024 16:59 Go to previous messageGo to next message
Leon Rebhan is currently offline  Leon Rebhan
Messages: 3
Registered: October 2024
Junior Member
I installed it with the .msi
Yeah, I open DataWarrior from the start menu. It shows the loading screen and also the about screen. Then, after everything has loaded, I click File -> Open and then I get the error. Also I get it if I click Chemistry -> 3D Fragments -> Replace Fragment -> right click empty space -> Load SD file -> same error

I also get the error if I open with cmd and then go File->Open.
Re: Cannot open files due to java error [message #2338 is a reply to message #2334] Thu, 31 October 2024 10:01 Go to previous messageGo to next message
thomas is currently offline  thomas
Messages: 711
Registered: June 2014
Senior Member
It seems that the file-open dialog cannot access the icon images for some reason, which I don't understand.
Can you start DataWarrior directly using its JRE21 and see, whether you get a stack trace?
Maybe we learn something from that.

In a command window type this:

"c:\Program Files\DataWarrior\jre\bin\java" -jar c:\ProgramData\DataWarrior\datawarrior_v06.03.00.jar
Re: Cannot open files due to java error [message #2341 is a reply to message #2338] Thu, 31 October 2024 13:25 Go to previous messageGo to next message
Leon Rebhan is currently offline  Leon Rebhan
Messages: 3
Registered: October 2024
Junior Member
Right away I get this message, but the program opens: Added missing 'C:\Program Files\DataWarrior\jre\bin;' to JRE property 'java.library.path'.


Then, when I try to open a file again, I get this message in cmd:
java.lang.NullPointerException: Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because "<local6>" is null
at java.desktop/sun.awt.shell.Win32ShellFolder2$MultiResolution IconImage.getResolutionVariant(Unknown Source)
at java.desktop/sun.awt.shell.Win32ShellFolder2$MultiResolution IconImage.getBaseImage(Unknown Source)
at java.desktop/java.awt.image.AbstractMultiResolutionImage.get Property(Unknown Source)
at java.desktop/javax.swing.ImageIcon.<init>(Unknown Source)
at java.desktop/javax.swing.ImageIcon.<init>(Unknown Source)
at java.desktop/javax.swing.filechooser.FileSystemView.getSyste mIcon(Unknown Source)
at org.pushingpixels.radiance.theming.internal.ui.RadianceFileC hooserUI$RadianceFileView.getDefaultIcon(RadianceFileChooser UI.java:127)
at org.pushingpixels.radiance.theming.internal.ui.RadianceFileC hooserUI$RadianceFileView.getIcon(RadianceFileChooserUI.java :92)
at java.desktop/javax.swing.JFileChooser.getIcon(Unknown Source)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$Direc toryComboBoxRenderer.getListCellRendererComponent(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayout State(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateL ayoutState(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicListUI$Handler.valu eChanged(Unknown Source)
at java.desktop/javax.swing.DefaultListSelectionModel.fireValue Changed(Unknown Source)
at java.desktop/javax.swing.DefaultListSelectionModel.fireValue Changed(Unknown Source)
at java.desktop/javax.swing.DefaultListSelectionModel.fireValue Changed(Unknown Source)
at java.desktop/javax.swing.DefaultListSelectionModel.changeSel ection(Unknown Source)
at java.desktop/javax.swing.DefaultListSelectionModel.changeSel ection(Unknown Source)
at java.desktop/javax.swing.DefaultListSelectionModel.setSelect ionInterval(Unknown Source)
at java.desktop/javax.swing.JList.setSelectedIndex(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicComboPopup.setListS election(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicComboPopup$Handler. itemStateChanged(Unknown Source)
at java.desktop/javax.swing.JComboBox.fireItemStateChanged(Unkn own Source)
at java.desktop/javax.swing.JComboBox.selectedItemChanged(Unkno wn Source)
at java.desktop/javax.swing.JComboBox.contentsChanged(Unknown Source)
at java.desktop/javax.swing.AbstractListModel.fireContentsChang ed(Unknown Source)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$Direc toryComboBoxModel.setSelectedItem(Unknown Source)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$Direc toryComboBoxModel.addItem(Unknown Source)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI.doDir ectoryChanged(Unknown Source)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$5.pro pertyChange(Unknown Source)
at java.desktop/java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyCh ange(Unknown Source)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyCh ange(Unknown Source)
at java.desktop/java.awt.Component.firePropertyChange(Unknown Source)
at java.desktop/javax.swing.JFileChooser.setCurrentDirectory(Un known Source)
at java.desktop/javax.swing.JFileChooser.<init>(Unknown Source)
at java.desktop/javax.swing.JFileChooser.<init>(Unknown Source)
at com.actelion.research.gui.FileHelper.selectFileToOpen(FileHe lper.java:100)
at com.actelion.research.datawarrior.task.file.DETaskAbstractOp enFile.askForFileInEDT(DETaskAbstractOpenFile.java:266)
at com.actelion.research.datawarrior.task.file.DETaskAbstractOp enFile.askForFile(DETaskAbstractOpenFile.java:276)
at com.actelion.research.datawarrior.task.file.DETaskAbstractOp enFile.getPredefinedConfiguration(DETaskAbstractOpenFile.jav a:99)
at com.actelion.research.datawarrior.task.AbstractTask.showDial og(AbstractTask.java:262)
at com.actelion.research.datawarrior.task.AbstractTask.defineAn dRun(AbstractTask.java:635)
at com.actelion.research.datawarrior.StandardMenuBar.actionPerf ormed(StandardMenuBar.java:1642)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed( Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerfor med(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerfor med(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unkno wn Source)
at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick( Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler. mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unkn own Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknow n 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.retargetMouseEve nt(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEven t(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Un known 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(Unknow n Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessI mpl.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(Unknow n Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFil ters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilte r(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHiera rchy(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)
java.lang.NullPointerException: Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because "<local6>" is null
at java.desktop/sun.awt.shell.Win32ShellFolder2$MultiResolution IconImage.getResolutionVariant(Unknown Source)
at java.desktop/sun.awt.shell.Win32ShellFolder2$MultiResolution IconImage.getBaseImage(Unknown Source)
at java.desktop/java.awt.image.AbstractMultiResolutionImage.get Property(Unknown Source)
at java.desktop/javax.swing.ImageIcon.<init>(Unknown Source)
at java.desktop/javax.swing.ImageIcon.<init>(Unknown Source)
at java.desktop/javax.swing.filechooser.FileSystemView.getSyste mIcon(Unknown Source)
at org.pushingpixels.radiance.theming.internal.ui.RadianceFileC hooserUI$RadianceFileView.getDefaultIcon(RadianceFileChooser UI.java:127)
at org.pushingpixels.radiance.theming.internal.ui.RadianceFileC hooserUI$RadianceFileView.getIcon(RadianceFileChooserUI.java :92)
at java.desktop/javax.swing.JFileChooser.getIcon(Unknown Source)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$Direc toryComboBoxRenderer.getListCellRendererComponent(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayout State(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateL ayoutState(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicListUI.getPreferred Size(Unknown Source)
at java.desktop/javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.desktop/javax.swing.JList.getPreferredScrollableViewpor tSize(Unknown Source)
at java.desktop/javax.swing.ViewportLayout.preferredLayoutSize( Unknown Source)
at java.desktop/java.awt.Container.preferredSize(Unknown Source)
at java.desktop/java.awt.Container.getPreferredSize(Unknown Source)
at java.desktop/javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.desktop/javax.swing.ScrollPaneLayout.preferredLayoutSiz e(Unknown Source)
at java.desktop/java.awt.Container.preferredSize(Unknown Source)
at java.desktop/java.awt.Container.getPreferredSize(Unknown Source)
at java.desktop/javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.desktop/javax.swing.BoxLayout.checkRequests(Unknown Source)
at java.desktop/javax.swing.BoxLayout.layoutContainer(Unknown Source)
at java.desktop/java.awt.Container.layout(Unknown Source)
at java.desktop/java.awt.Container.doLayout(Unknown Source)
at org.pushingpixels.radiance.theming.internal.ui.RadianceCombo BoxUI.lambda$createPopup$2(RadianceComboBoxUI.java:381)
at java.desktop/java.awt.event.InvocationEvent.dispatch(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(Unknow n Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFil ters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilte r(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHiera rchy(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)
Re: Cannot open files due to java error [message #2343 is a reply to message #2341] Thu, 31 October 2024 14:38 Go to previous message
thomas is currently offline  thomas
Messages: 711
Registered: June 2014
Senior Member
It seems that the problem occurs when the Look&Feel ask the system to provide a default icon for the file selection dialog. For some reason the system returns nothing here, i.e. null, which causes the Exception. I don't have an immediate solution, but need to leave for a few days. Next week I will check deeper...
Previous Topic: Data warrior crash after Mac OS update
Goto Forum:
  


Current Time: Fri Nov 01 04:30:40 CET 2024

Total time taken to generate the page: 0.04222 seconds