Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different problems when (trying) to open a library #7614

Closed
JulianReitz opened this issue Apr 8, 2021 · 13 comments · Fixed by #8450 or #8474
Closed

Different problems when (trying) to open a library #7614

JulianReitz opened this issue Apr 8, 2021 · 13 comments · Fixed by #8450 or #8474

Comments

@JulianReitz
Copy link

Windows 10, JabRef 5.2

When I open a .bib file in windows explorer, jabref opens but does not open the bib file.

When I open jabref and try to drag and drop the bib file to the jabref GUI, I get error messages in the moment I move with the cursor to the GUI (not only when I try to drop the bib file but allready when I move over the GUI).
The error messages is at the end of this post.

The only way for me to open a bib file is to open jabref and use 'File -> Open Library'

Begin of error message:

Uncaught exception occured in Thread[JavaFX Application Thread,5,main]

java.lang.ClassCastException: class javafx.scene.control.Tab cannot be cast to class org.jabref.gui.LibraryTab (javafx.scene.control.Tab is in module org.jabref.merged.module@5.2.60000 of loader 'app'; org.jabref.gui.LibraryTab is in module org.jabref@5.2.60000 of loader 'app')
at org.jabref@5.2.60000/org.jabref.gui.JabRefFrame.lambda$init$8(Unknown Source)
at com.tobiasdiez.easybind@2.1.0/com.tobiasdiez.easybind.MappedList$1.getRemoved(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.ListChangeListener$Change.getRemovedSize(Unknown Source)
at com.tobiasdiez.easybind@2.1.0/com.tobiasdiez.easybind.ListContentBinding.onChanged(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.ObservableListBase.fireChange(Unknown Source)
at com.tobiasdiez.easybind@2.1.0/com.tobiasdiez.easybind.MappedList.sourceChanged(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.transformation.TransformationList.lambda$getListener$0(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.WeakListChangeListener.onChanged(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.ObservableListBase.fireChange(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.ListChangeBuilder.commit(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.ListChangeBuilder.endChange(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.ObservableListBase.endChange(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.ModifiableObservableListBase.remove(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.collections.ModifiableObservableListBase.remove(Unknown Source)
at org.jabref@5.2.60000/org.jabref.gui.JabRefFrame.lambda$initDragAndDrop$2(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.event.Event.fireEvent(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.scene.Scene$DnDGesture.handleExitEnter(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.scene.Scene$DnDGesture.processTargetExit(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.scene.Scene$DropTargetListener.dragExit(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.tk.quantum.GlassSceneDnDEventHandler.lambda$handleDragLeave$1(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.tk.quantum.GlassSceneDnDEventHandler.handleDragLeave(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleDragLeave$10(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleDragLeave(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.View.handleDragLeave(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.View.notifyDragLeave(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.Application.enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.EventLoop.enter(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.stage.Stage.showAndWait(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.scene.control.HeavyweightDialog.showAndWait(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.scene.control.Dialog.showAndWait(Unknown Source)
at org.jabref@5.2.60000/org.jabref.gui.JabRefDialogService.showErrorDialogAndWait(Unknown Source)
at org.jabref@5.2.60000/org.jabref.gui.FallbackExceptionHandler.lambda$uncaughtException$0(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.Application.enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.EventLoop.enter(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.stage.Stage.showAndWait(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.scene.control.HeavyweightDialog.showAndWait(Unknown Source)
at org.jabref.merged.module@5.2.60000/javafx.scene.control.Dialog.showAndWait(Unknown Source)
at org.jabref@5.2.60000/org.jabref.gui.JabRefDialogService.showErrorDialogAndWait(Unknown Source)
at org.jabref@5.2.60000/org.jabref.gui.FallbackExceptionHandler.lambda$uncaughtException$0(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at org.jabref.merged.module@5.2.60000/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

@Siedlerchr
Copy link
Member

Thank you for reporting this issue. We think, that is already fixed in our development version and consequently the change will be included in the next release.

We would like to ask you to use a development build from https://builds.jabref.org/main and report back if it works for you. Please remember to make a backup of your library before trying-out this version.

@JulianReitz
Copy link
Author

JulianReitz commented Apr 8, 2021 via email

@Siedlerchr Siedlerchr reopened this Apr 8, 2021
@MartinX3
Copy link

MartinX3 commented Jan 18, 2022

Dear @Siedlerchr updating form 5.4 to 5.5 and saving the "JabRef preferences" resulted in

java.lang.ClassCastException: class javafx.scene.control.Tab cannot be cast to class org.jabref.gui.LibraryTab (javafx.scene.control.Tab is in module org.jabref.merged.module@5.5.39 of loader 'app'; org.jabref.gui.LibraryTab is in module org.jabref@5.5.39 of loader 'app')
	at org.jabref@5.5.39/org.jabref.gui.JabRefFrame.lambda$setupAllTables$23(Unknown Source)
	at java.base/java.lang.Iterable.forEach(Unknown Source)
	at org.jabref@5.5.39/org.jabref.gui.JabRefFrame.setupAllTables(Unknown Source)
	at org.jabref@5.5.39/org.jabref.gui.preferences.PreferencesDialogViewModel.storeAllSettings(Unknown Source)
	at org.jabref@5.5.39/org.jabref.gui.preferences.PreferencesDialogView.savePreferencesAndCloseDialog(Unknown Source)
	at org.jabref@5.5.39/org.jabref.gui.preferences.PreferencesDialogView.lambda$new$0(Unknown Source)
	at org.jabref@5.5.39/org.jabref.gui.util.ControlHelper.lambda$setAction$0(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.CompositeEventHandler$NormalEventFilterRecord.handleCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/javafx.event.Event.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/javafx.scene.Node.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/javafx.scene.control.Button.fire(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/javafx.event.Event.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/javafx.scene.Scene$MouseHandler.process(Unknown Source)
	at org.jabref.merged.module@5.5.39/javafx.scene.Scene.processMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.glass.ui.View.notifyMouse(Unknown Source)
	at org.jabref.merged.module@5.5.39/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at org.jabref.merged.module@5.5.39/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Resetting the preferences, which resulted in heavy application errors forcing me to force kill the process, fixed this issue if no file is loaded.
But the issue comes back after I opened my *.bib file and try to update the preferences.

@Siedlerchr
Copy link
Member

Thanks for the issue report. This is odd. However, I think this should be easily fixable
Refs #7470

@MartinX3
Copy link

You're welcome
Drag-And-Drop is the only way for me to load my file. If I load it with the context menu, I also get this error.
And if I get this error once, I also can't close the application anymore without getting this error.

@MartinX3
Copy link

Also happens with newer code

java.lang.ClassCastException: class javafx.scene.control.Tab cannot be cast to class org.jabref.gui.LibraryTab (javafx.scene.control.Tab is in module org.jabref.merged.module@5.6.5 of loader 'app'; org.jabref.gui.LibraryTab is in module org.jabref@5.6.5 of loader 'app')
	at org.jabref@5.6.5/org.jabref.gui.JabRefFrame.lambda$setupAllTables$23(Unknown Source)
	at java.base/java.lang.Iterable.forEach(Unknown Source)
	at org.jabref@5.6.5/org.jabref.gui.JabRefFrame.setupAllTables(Unknown Source)
	at org.jabref@5.6.5/org.jabref.gui.preferences.PreferencesDialogViewModel.storeAllSettings(Unknown Source)
	at org.jabref@5.6.5/org.jabref.gui.preferences.PreferencesDialogView.savePreferencesAndCloseDialog(Unknown Source)
	at org.jabref@5.6.5/org.jabref.gui.preferences.PreferencesDialogView.lambda$new$0(Unknown Source)
	at org.jabref@5.6.5/org.jabref.gui.util.ControlHelper.lambda$setAction$0(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.CompositeEventHandler$NormalEventFilterRecord.handleCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/javafx.event.Event.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/javafx.scene.Node.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/javafx.scene.control.Button.fire(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/javafx.event.Event.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/javafx.scene.Scene$MouseHandler.process(Unknown Source)
	at org.jabref.merged.module@5.6.5/javafx.scene.Scene.processMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.glass.ui.View.notifyMouse(Unknown Source)
	at org.jabref.merged.module@5.6.5/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at org.jabref.merged.module@5.6.5/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Siedlerchr added a commit that referenced this issue Jan 19, 2022
Siedlerchr added a commit that referenced this issue Jan 19, 2022
* Fix library tab exception when saving prefs

Fixes #7614

* checkstyle

* fixed whitespaces and autoformatted in ide

Co-authored-by: Carl Christian Snethlage <cc.snethlage@gmail.com>
@Siedlerchr
Copy link
Member

@MartinX3 Can you test the newest 5.6. snapshot from here ?https://builds.jabref.org/main/ should be hopefully fixed now

@MartinX3
Copy link

@Siedlerchr tested with todays build
Same result

java.lang.ClassCastException: class javafx.scene.control.Tab cannot be cast to class org.jabref.gui.LibraryTab (javafx.scene.control.Tab is in module org.jabref.merged.module@5.6.14 of loader 'app'; org.jabref.gui.LibraryTab is in module org.jabref@5.6.14 of loader 'app')
	at org.jabref@5.6.14/org.jabref.gui.JabRefFrame.lambda$getLibraryTabs$8(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
	at org.jabref@5.6.14/org.jabref.gui.JabRefFrame.getLibraryTabs(Unknown Source)
	at org.jabref@5.6.14/org.jabref.gui.preferences.PreferencesDialogViewModel.updateAfterPreferenceChanges(Unknown Source)
	at org.jabref@5.6.14/org.jabref.gui.preferences.PreferencesDialogViewModel.storeAllSettings(Unknown Source)
	at org.jabref@5.6.14/org.jabref.gui.preferences.PreferencesDialogView.savePreferencesAndCloseDialog(Unknown Source)
	at org.jabref@5.6.14/org.jabref.gui.preferences.PreferencesDialogView.lambda$new$0(Unknown Source)
	at org.jabref@5.6.14/org.jabref.gui.util.ControlHelper.lambda$setAction$0(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.CompositeEventHandler$NormalEventFilterRecord.handleCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/javafx.event.Event.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/javafx.scene.Node.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/javafx.scene.control.Button.fire(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/javafx.event.Event.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/javafx.scene.Scene$MouseHandler.process(Unknown Source)
	at org.jabref.merged.module@5.6.14/javafx.scene.Scene.processMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.glass.ui.View.notifyMouse(Unknown Source)
	at org.jabref.merged.module@5.6.14/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at org.jabref.merged.module@5.6.14/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

@Siedlerchr Siedlerchr reopened this Jan 25, 2022
@Siedlerchr
Copy link
Member

Thanks for the feedback. That is really odd that you encouter this, but this time it's different

@MartinX3
Copy link

@Siedlerchr thank you for reopening it.
Maybe it helps if I tell you, that I use Arch Linux and Java 17.0.1

@MartinX3
Copy link

MartinX3 commented Jan 29, 2022

Please comment in this issue if a new daily build is ready at https://builds.jabref.org/main/. :)

@Siedlerchr
Copy link
Member

Just merged, will take roughly take around 30minutes. It's currently building
https://github.com/JabRef/jabref/runs/4990928919?check_suite_focus=true

@MartinX3
Copy link

Rawr fixed, thank you <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants