Skip to content

Uncaught Exception when importing a library which is currently open on JabRef #4734

@CaptainDaVinci

Description

@CaptainDaVinci

JabRef unknown
Linux 4.14.79-1-lts amd64
Java 1.8.0_192

Steps to reproduce the behavior:

  1. Open a library with one or more entries
  2. Import the same library
Log File
java.lang.IllegalStateException: Not on FX application thread; currentThread = AWT-EventQueue-0
  at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:279)
  at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:423)
  at javafx.scene.Parent$2.onProposedChange(Parent.java:367)
  at com.sun.javafx.collections.VetoableListDecorator.setAll(VetoableListDecorator.java:113)
  at com.sun.javafx.collections.VetoableListDecorator.setAll(VetoableListDecorator.java:108)
  at com.sun.javafx.scene.control.skin.LabeledSkinBase.updateChildren(LabeledSkinBase.java:575)
  at com.sun.javafx.scene.control.skin.LabeledSkinBase.handleControlPropertyChanged(LabeledSkinBase.java:181)
  at com.sun.javafx.scene.control.skin.ButtonSkin.handleControlPropertyChanged(ButtonSkin.java:71)
  at com.sun.javafx.scene.control.skin.BehaviorSkinBase.lambda$registerChangeListener$0(BehaviorSkinBase.java:197)
  at com.sun.javafx.scene.control.MultiplePropertyChangeListenerHandler$1.changed(MultiplePropertyChangeListenerHandler.java:55)
  at javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:89)
  at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182)
  at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
  at javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:105)
  at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
  at javafx.beans.property.ObjectPropertyBase.bind(ObjectPropertyBase.java:174)
  at javafx.css.StyleableObjectProperty.bind(StyleableObjectProperty.java:75)
  at org.controlsfx.control.action.ActionUtils.configure(ActionUtils.java:657)
  at org.controlsfx.control.action.ActionUtils.configureButton(ActionUtils.java:139)
  at org.jabref.gui.actions.ActionFactory.configureIconButton(ActionFactory.java:82)
  at org.jabref.gui.entryeditor.EntryEditor.setupToolBar(EntryEditor.java:393)
  at org.jabref.gui.entryeditor.EntryEditor.setEntry(EntryEditor.java:359)
  at org.jabref.gui.BasePanel.lambda$43(BasePanel.java:705)
  at java.util.Optional.ifPresent(Optional.java:159)
  at org.jabref.gui.BasePanel.lambda$42(BasePanel.java:703)
  at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:329)
  at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
  at com.sun.javafx.scene.control.ReadOnlyUnbackedObservableList.callObservers(ReadOnlyUnbackedObservableList.java:75)
  at javafx.scene.control.TableView$TableViewArrayListSelectionModel.handleSelectedCellsListChangeEvent(TableView.java:3077)
  at javafx.scene.control.TableView$TableViewArrayListSelectionModel.lambda$new$2(TableView.java:2056)
  at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
  at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
  at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
  at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
  at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
  at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
  at javafx.collections.transformation.SortedList.sourceChanged(SortedList.java:111)
  at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:106)
  at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
  at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
  at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
  at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
  at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
  at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
  at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
  at javafx.collections.ModifiableObservableListBase.add(ModifiableObservableListBase.java:155)
  at java.util.AbstractList.add(AbstractList.java:108)
  at com.sun.javafx.scene.control.SelectedCellsMap.add(SelectedCellsMap.java:118)
  at javafx.scene.control.TableView$TableViewArrayListSelectionModel.select(TableView.java:2456)
  at javafx.scene.control.TableView$TableViewArrayListSelectionModel.updateSelection(TableView.java:2327)
  at javafx.scene.control.TableView$TableViewArrayListSelectionModel.lambda$new$4(TableView.java:2150)
  at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
  at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:329)
  at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
  at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
  at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
  at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
  at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
  at javafx.collections.transformation.SortedList.sourceChanged(SortedList.java:111)
  at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:106)
  at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
  at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
  at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
  at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
  at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
  at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
  at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
  at javafx.collections.transformation.FilteredList.sourceChanged(FilteredList.java:147)
  at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:106)
  at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
  at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
  at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
  at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
  at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
  at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
  at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
  at org.jabref.gui.util.MappedList.sourceChanged(MappedList.java:73)
  at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:106)
  at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
  at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
  at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
  at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
  at javafx.collections.FXCollections$UnmodifiableObservableListImpl.lambda$new$0(FXCollections.java:929)
  at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
  at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:329)
  at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
  at javafx.collections.FXCollections$SynchronizedObservableList.lambda$new$0(FXCollections.java:1178)
  at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
  at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
  at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
  at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
  at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
  at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
  at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
  at javafx.collections.ModifiableObservableListBase.remove(ModifiableObservableListBase.java:183)
  at java.util.AbstractList$Itr.remove(AbstractList.java:374)
  at java.util.Collection.removeIf(Collection.java:415)
  at org.jabref.model.database.BibDatabase.removeEntry(BibDatabase.java:249)
  at org.jabref.model.database.BibDatabase.removeEntry(BibDatabase.java:236)
  at org.jabref.gui.importer.ImportInspectionDialog.generateKeys(ImportInspectionDialog.java:487)
  at org.jabref.gui.importer.ImportInspectionDialog.access$8(ImportInspectionDialog.java:449)
  at org.jabref.gui.importer.ImportInspectionDialog$OkListener.actionPerformed(ImportInspectionDialog.java:725)
  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
  at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
  at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
  at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
  at java.awt.Component.processMouseEvent(Component.java:6539)
  at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
  at java.awt.Component.processEvent(Component.java:6304)
  at java.awt.Container.processEvent(Container.java:2239)
  at java.awt.Component.dispatchEventImpl(Component.java:4889)
  at java.awt.Container.dispatchEventImpl(Container.java:2297)
  at java.awt.Component.dispatchEvent(Component.java:4711)
  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
  at java.awt.Container.dispatchEventImpl(Container.java:2283)
  at java.awt.Window.dispatchEventImpl(Window.java:2746)
  at java.awt.Component.dispatchEvent(Component.java:4711)
  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
  at java.awt.EventQueue.access$500(EventQueue.java:97)
  at java.awt.EventQueue$3.run(EventQueue.java:709)
  at java.awt.EventQueue$3.run(EventQueue.java:703)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
  at java.awt.EventQueue$4.run(EventQueue.java:733)
  at java.awt.EventQueue$4.run(EventQueue.java:731)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
  at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
  at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
  at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
  at java.awt.Dialog.show(Dialog.java:1084)
  at java.awt.Component.show(Component.java:1671)
  at java.awt.Component.setVisible(Component.java:1623)
  at java.awt.Window.setVisible(Window.java:1014)
  at java.awt.Dialog.setVisible(Dialog.java:1005)
  at org.jabref.gui.JabRefDialog.setVisible(JabRefDialog.java:45)
  at org.jabref.gui.importer.ImportAction.lambda$3(ImportAction.java:100)
  at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
  at java.awt.EventQueue.access$500(EventQueue.java:97)
  at java.awt.EventQueue$3.run(EventQueue.java:709)
  at java.awt.EventQueue$3.run(EventQueue.java:703)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions