Uploaded image for project: 'PUBLIC - Liferay Sync'
  1. PUBLIC - Liferay Sync
  2. SYNC-1050

Liferay Sync may crash when opening the directory picker due to JDK bug

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0 B1
    • Fix Version/s: 1.1.1 GA1
    • Component/s: UI
    • Labels:
      None

      Description

      Due to bug JDK-6342301 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6342301), Liferay Sync may crash with the following messages in the log. The correct fix would be to upgrade the JDK, but we can provide a workaround.

      Caused by: java.lang.NullPointerException
      at javax.swing.plaf.metal.MetalFileChooserUI$IndentIcon.getIconWidth(Unknown Source)
      at javax.swing.SwingUtilities.layoutCompoundLabelImpl(Unknown Source)
      at javax.swing.SwingUtilities.layoutCompoundLabel(Unknown Source)
      at javax.swing.plaf.basic.BasicLabelUI.layoutCL(Unknown Source)
      at javax.swing.plaf.basic.BasicLabelUI.getPreferredSize(Unknown Source)
      at javax.swing.JComponent.getPreferredSize(Unknown Source)
      at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
      at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
      at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(Unknown Source)
      at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
      at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
      at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
      at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
      at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
      at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source)
      at javax.swing.JList.setSelectedIndex(Unknown Source)
      at javax.swing.plaf.basic.BasicComboPopup.setListSelection(Unknown Source)
      at javax.swing.plaf.basic.BasicComboPopup.access$300(Unknown Source)
      at javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(Unknown Source)
      at javax.swing.JComboBox.fireItemStateChanged(Unknown Source)
      at javax.swing.JComboBox.selectedItemChanged(Unknown Source)
      at javax.swing.JComboBox.contentsChanged(Unknown Source)
      at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)
      at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.setSelectedItem(Unknown Source)
      at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addItem(Unknown Source)
      at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.access$800(Unknown Source)
      at javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(Unknown Source)
      at javax.swing.plaf.metal.MetalFileChooserUI.access$1100(Unknown Source)
      at javax.swing.plaf.metal.MetalFileChooserUI$5.propertyChange(Unknown Source)
      at java.beans.PropertyChangeSupport.fire(Unknown Source)
      at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
      at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
      at java.awt.Component.firePropertyChange(Unknown Source)
      at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
      at javax.swing.JFileChooser.<init>(Unknown Source)
      at javax.swing.JFileChooser.<init>(Unknown Source)
      at com.liferay.sync.modules.documentlibrary.util.PathUtil.getUserDocumentsPath(PathUtil.java:209)
      at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsComposite.setState(AccountSettingsComposite.java:278)
      at com.liferay.sync.gui.desktop.properties.accountsettings.AccountSettingsComposite.<init>(AccountSettingsComposite.java:67)
      at com.liferay.sync.gui.desktop.properties.changesettings.ChangeSettingsDialog.createContents(ChangeSettingsDialog.java:256)
      at com.liferay.sync.gui.desktop.properties.changesettings.ChangeSettingsDialog.doOpen(ChangeSettingsDialog.java:274)
      at com.liferay.sync.gui.desktop.properties.changesettings.ChangeSettingsDialog$1.run(ChangeSettingsDialog.java:115)
      at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
      ... 18 more

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 13 weeks, 5 days ago

                Packages

                Version Package
                1.1.1 GA1