Jabref: Error in importing jstyles

Created on 16 Oct 2019  路  15Comments  路  Source: JabRef/jabref

JabRef 5.0.0-dev--2019-10-15----2a5507fd3
Linux 5.2.0-0.bpo.3-amd64 amd64 (Debian 10 Buster)
Java 12.0.2

Steps to reproduce the behavior:

  1. add jstyle file for OpenOffice/LibreOffice from GUI
  2. click OK
  3. :sob:


Log File

java.lang.NullPointerException at org.jabref/org.jabref.gui.openoffice.StyleSelectDialogView.lambda$new$0(Unknown Source) at org.jabref.merged.module/javafx.scene.control.Dialog.setResultAndClose(Unknown Source) at org.jabref.merged.module/javafx.scene.control.DialogPane.lambda$createButton$3(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.scene.Node.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.scene.control.Button.fire(Unknown Source) at org.jabref.merged.module/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source) at org.jabref.merged.module/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.scene.Scene$MouseHandler.process(Unknown Source) at org.jabref.merged.module/javafx.scene.Scene.processMouseEvent(Unknown Source) at org.jabref.merged.module/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source) at org.jabref.merged.module/com.sun.glass.ui.View.handleMouseEvent(Unknown Source) at org.jabref.merged.module/com.sun.glass.ui.View.notifyMouse(Unknown Source) at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication.enterNestedEventLoopImpl(Native Method) at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication._enterNestedEventLoop(Unknown Source) at org.jabref.merged.module/com.sun.glass.ui.Application.enterNestedEventLoop(Unknown Source) at org.jabref.merged.module/com.sun.glass.ui.EventLoop.enter(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(Unknown Source) at org.jabref.merged.module/javafx.stage.Stage.showAndWait(Unknown Source) at org.jabref.merged.module/javafx.scene.control.HeavyweightDialog.showAndWait(Unknown Source) at org.jabref.merged.module/javafx.scene.control.Dialog.showAndWait(Unknown Source) at org.jabref/org.jabref.gui.openoffice.OpenOfficePanel.lambda$initPanel$4(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.scene.Node.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.scene.control.Button.fire(Unknown Source) at org.jabref.merged.module/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source) at org.jabref.merged.module/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source) at org.jabref.merged.module/javafx.scene.Scene$MouseHandler.process(Unknown Source) at org.jabref.merged.module/javafx.scene.Scene.processMouseEvent(Unknown Source) at org.jabref.merged.module/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source) at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source) at org.jabref.merged.module/com.sun.glass.ui.View.handleMouseEvent(Unknown Source) at org.jabref.merged.module/com.sun.glass.ui.View.notifyMouse(Unknown Source) at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)

Here is one of my jstyles. All of my styles give me the above error, but I tested other styles, without success (I used already them in previous JabRef versions).

# This file is licensed under the terms of the GPL version 2 (or later).

NAME
Literatura - Eng

JOURNALS
Literatura

PROPERTIES
Title="References"
IsSortByPosition="false"
IsNumberEntries="false"
ReferenceParagraphFormat="List 1"
ReferenceHeaderParagraphFormat="Heading 1"
# Configurare Heading1: Italics not capitalized, left justified

CITATION
AuthorField="author/editor"
YearField="year"
MaxAuthors="3"
MaxAuthorsFirst="3"
AuthorSeparator=", "
AuthorLastSeparator=" & "
AuthorLastSeparatorInText=" & "
EtAlString=" and oth."
ItalicEtAl="false"
YearSeparator=" "
InTextYearSeparator=" "
BracketBefore=
BracketAfter=
BracketBeforeInList="["
BracketAfterInList="]"
CitationSeparator="; "
UniquefierSeparator=", "
GroupedNumbersSeparator="-"
MinimumGroupingCount="3"
FormatCitations="false"
CitationCharacterFormat="Default"
MultiCiteChronological="false"
PageInfoSeparator=", "

LAYOUT
article=\format[AuthorLastFirst]{\author}. \year. \format[HTMLChars,FormatPagesForXML]{\title}. <i>\journal</i>\begin{volume} \volume\end{volume}\begin{number}(\number)\end{number}, \format[FormatPagesForHTML]{\pages}

book=\begin{author}\format[Authors(FullName,LastFirstFirstFirst,Amp)]{\author}. \end{author}\begin{editor}\format[AuthorLastFirstFirstFirst,AuthorAndsReplacer]{\editor}, \format[IfPlural(eds,ed)]{\editor}. \end{editor}\year. <i>\format[HTMLChars,FormatPagesForHTML]{\title}.</i>\begin{subtitle} \format[HTMLChars,FormatPagesForHTML]{\subtitle}.\end{subtitle}\begin{series&&number} \series \number.\end{series&&number}\begin{volume} \format[HTMLChars,FormatPagesForHTML]{\volume}.\end{volume}\begin{volumes} \volumes vol.\end{volumes}\begin{location} \format[HTMLChars,FormatPagesForHTML]{\location}: \end{location}\begin{place}\format[HTMLChars]{\place}: \end{place}\begin{edition}<sup>\edition</sup>\end{edition}\publisher

inbook=\format[Authors(FullName,LastFirstFirstFirst,Amp)]{\author}. \format[FormatPagesForHTML]{\year}: \format[HTMLChars,FormatPagesForHTML]{\title}. <i>\format[HTMLChars,FormatPagesForHTML]{\booktitle}. \begin{booksubtitle} \format[HTMLChars,FormatPagesForHTML]{\booksubtitle}. \end{booksubtitle}</i>\format[HTMLChars,Authors(FullName,FirstFirst,Amp)]{\editor}, \format[IfPlural(eds,ed)]{\editor}.\begin{location} \format[HTMLChars,FormatPagesForHTML]{\location}: \end{location}\begin{place}\format[HTMLChars]{\place}: \end{place}\begin{edition}<sup>\edition</sup>\end{edition}\publisher\begin{pages}, \format[FormatPagesForHTML]{\pages}\end{pages}

inproceedings=\format[Authors(FullName,LastFirstFirstFirst,Amp)]{\author}. \format[FormatPagesForHTML]{\year}: \format[HTMLChars,FormatPagesForHTML]{\title}. <i>\format[HTMLChars,FormatPagesForHTML]{\eventtitle}.</i> \begin{eventtitleaddon}\format[HTMLChars,FormatPagesForHTML]{\eventtitleaddon}. \end{eventtitleaddon}\format[HTMLChars,Authors(FullName,FirstFirst,Amp)]{\editor}, \format[IfPlural(eds,ed)]{\editor}.\begin{location} \format[HTMLChars,FormatPagesForHTML]{\location}: \end{location}\begin{place}\format[HTMLChars]{\place}: \end{place}\begin{edition}<sup>\edition</sup>\end{edition}\publisher\begin{pages}, \format[FormatPagesForHTML]{\pages}\end{pages}

incollection=\format[Authors(FullName,LastFirstFirstFirst,Amp)]{\author}. \format[FormatPagesForHTML]{\year}: \format[HTMLChars,FormatPagesForHTML]{\title}. <i>\format[HTMLChars,FormatPagesForHTML]{\booktitle}. \begin{booksubtitle} \format[HTMLChars,FormatPagesForHTML]{\booksubtitle}. \end{booksubtitle}</i>\format[HTMLChars,Authors(FullName,FirstFirst,Amp)]{\editor}, \format[IfPlural(eds,ed)]{\editor}.\begin{location} \format[HTMLChars,FormatPagesForHTML]{\location}: \end{location}\begin{place}\format[HTMLChars]{\place}: \end{place}\begin{edition}<sup>\edition</sup>\end{edition}\publisher\begin{pages}, \format[FormatPagesForHTML]{\pages}\end{pages}

#####
phdthesis=\format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\author}
(<b>\year\uniq</b>). <i>\title</i>, \school.

default=\format[AuthorLastFirst]{\author}. \year. \format[HTMLChars,FormatPagesForXML]{\title}. <i>\journal</i>\begin{volume} \volume\end{volume}\begin{number}(\number)\end{number}, \format[FormatPagesForHTML]{\pages}
openofficlibreoffice bug 馃悰

All 15 comments

I figured out the problem. The key is that the preview checks for the default layout.
Quick workaround is to add a format for the entry type "default" in the jstyle.

The real bugfix needs to check if the default layout getDefaultBibLayout is present or return another one from the HashMap in OoBibStyle.

This should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version.

@tobiasdiez
No, same error:


Log File
java.lang.NullPointerException
at org.jabref/org.jabref.gui.openoffice.StyleSelectDialogView.lambda$new$0(Unknown Source)
at org.jabref.merged.module/javafx.scene.control.Dialog.setResultAndClose(Unknown Source)
at org.jabref.merged.module/javafx.scene.control.DialogPane.lambda$createButton$3(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.scene.Node.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.scene.control.Button.fire(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.scene.Scene$MouseHandler.process(Unknown Source)
at org.jabref.merged.module/javafx.scene.Scene.processMouseEvent(Unknown Source)
at org.jabref.merged.module/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at org.jabref.merged.module/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at org.jabref.merged.module/com.sun.glass.ui.View.notifyMouse(Unknown Source)
at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication.enterNestedEventLoopImpl(Native Method)
at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication._enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module/com.sun.glass.ui.Application.enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module/com.sun.glass.ui.EventLoop.enter(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module/javafx.stage.Stage.showAndWait(Unknown Source)
at org.jabref.merged.module/javafx.scene.control.HeavyweightDialog.showAndWait(Unknown Source)
at org.jabref.merged.module/javafx.scene.control.Dialog.showAndWait(Unknown Source)
at org.jabref/org.jabref.gui.openoffice.OpenOfficePanel.lambda$initPanel$4(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.scene.Node.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.scene.control.Button.fire(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source)
at org.jabref.merged.module/javafx.scene.Scene$MouseHandler.process(Unknown Source)
at org.jabref.merged.module/javafx.scene.Scene.processMouseEvent(Unknown Source)
at org.jabref.merged.module/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at org.jabref.merged.module/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at org.jabref.merged.module/com.sun.glass.ui.View.notifyMouse(Unknown Source)
at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

JabRef 5.0.0-dev--2019-10-18----bc26c3ac5
Linux 5.2.0-3-amd64 amd64
Java 12.0.2

Please delete the wrong style and readd it. It should be marked as invalid.

I had already deleted it. Indeed, to be more precise, I had not even added it to JabRef in this PC from which I write

I cannot reproduce your issue. This should be fixed now. Could you please test again?

@Siedlerchr
I just tested it again, but with the same result... :-(
I'm attaching a zip file containing a screencast to document my issue.

Screencast_28-10-2019_17:57:27.zip

Could you please also post your style file again? Or is it still the one above?

Here is the style used in the above test, but I have the same issue with other styles:

# This file is licensed under the terms of the GPL version 2 (or later).

NAME
Literatura - Eng (by Domenico Cufalo aka Doc, [email protected])

JOURNALS
Literatura

PROPERTIES
Title="References"
IsSortByPosition="false"
IsNumberEntries="false"
ReferenceParagraphFormat="List 1"
ReferenceHeaderParagraphFormat="Heading 1"
# Configurare Heading1: Italics not capitalized, left justified

CITATION
AuthorField="author/editor"
YearField="year"
MaxAuthors="3"
MaxAuthorsFirst="3"
AuthorSeparator=", "
AuthorLastSeparator=" & "
AuthorLastSeparatorInText=" & "
EtAlString=" and oth."
ItalicEtAl="false"
YearSeparator=" "
InTextYearSeparator=" "
BracketBefore=
BracketAfter=
BracketBeforeInList="["
BracketAfterInList="]"
CitationSeparator="; "
UniquefierSeparator=", "
GroupedNumbersSeparator="-"
MinimumGroupingCount="3"
FormatCitations="false"
CitationCharacterFormat="Default"
MultiCiteChronological="false"
PageInfoSeparator=", "

LAYOUT
article=\format[AuthorLastFirst]{\author}. \year. \format[HTMLChars,FormatPagesForXML]{\title}. <i>\journal</i>\begin{volume} \volume\end{volume}\begin{number}(\number)\end{number}, \format[FormatPagesForHTML]{\pages}

book=\begin{author}\format[Authors(FullName,LastFirstFirstFirst,Amp)]{\author}. \end{author}\begin{editor}\format[AuthorLastFirstFirstFirst,AuthorAndsReplacer]{\editor}, \format[IfPlural(eds,ed)]{\editor}. \end{editor}\year. <i>\format[HTMLChars,FormatPagesForHTML]{\title}.</i>\begin{subtitle} \format[HTMLChars,FormatPagesForHTML]{\subtitle}.\end{subtitle}\begin{series&&number} \series \number.\end{series&&number}\begin{volume} \format[HTMLChars,FormatPagesForHTML]{\volume}.\end{volume}\begin{volumes} \volumes vol.\end{volumes}\begin{location} \format[HTMLChars,FormatPagesForHTML]{\location}: \end{location}\begin{place}\format[HTMLChars]{\place}: \end{place}\begin{edition}<sup>\edition</sup>\end{edition}\publisher

inbook=\format[Authors(FullName,LastFirstFirstFirst,Amp)]{\author}. \format[FormatPagesForHTML]{\year}: \format[HTMLChars,FormatPagesForHTML]{\title}. <i>\format[HTMLChars,FormatPagesForHTML]{\booktitle}. \begin{booksubtitle} \format[HTMLChars,FormatPagesForHTML]{\booksubtitle}. \end{booksubtitle}</i>\format[HTMLChars,Authors(FullName,FirstFirst,Amp)]{\editor}, \format[IfPlural(eds,ed)]{\editor}.\begin{location} \format[HTMLChars,FormatPagesForHTML]{\location}: \end{location}\begin{place}\format[HTMLChars]{\place}: \end{place}\begin{edition}<sup>\edition</sup>\end{edition}\publisher\begin{pages}, \format[FormatPagesForHTML]{\pages}\end{pages}

inproceedings=\format[Authors(FullName,LastFirstFirstFirst,Amp)]{\author}. \format[FormatPagesForHTML]{\year}: \format[HTMLChars,FormatPagesForHTML]{\title}. <i>\format[HTMLChars,FormatPagesForHTML]{\eventtitle}.</i> \begin{eventtitleaddon}\format[HTMLChars,FormatPagesForHTML]{\eventtitleaddon}. \end{eventtitleaddon}\format[HTMLChars,Authors(FullName,FirstFirst,Amp)]{\editor}, \format[IfPlural(eds,ed)]{\editor}.\begin{location} \format[HTMLChars,FormatPagesForHTML]{\location}: \end{location}\begin{place}\format[HTMLChars]{\place}: \end{place}\begin{edition}<sup>\edition</sup>\end{edition}\publisher\begin{pages}, \format[FormatPagesForHTML]{\pages}\end{pages}

incollection=\format[Authors(FullName,LastFirstFirstFirst,Amp)]{\author}. \format[FormatPagesForHTML]{\year}: \format[HTMLChars,FormatPagesForHTML]{\title}. <i>\format[HTMLChars,FormatPagesForHTML]{\booktitle}. \begin{booksubtitle} \format[HTMLChars,FormatPagesForHTML]{\booksubtitle}. \end{booksubtitle}</i>\format[HTMLChars,Authors(FullName,FirstFirst,Amp)]{\editor}, \format[IfPlural(eds,ed)]{\editor}.\begin{location} \format[HTMLChars,FormatPagesForHTML]{\location}: \end{location}\begin{place}\format[HTMLChars]{\place}: \end{place}\begin{edition}<sup>\edition</sup>\end{edition}\publisher\begin{pages}, \format[FormatPagesForHTML]{\pages}\end{pages}

#####
phdthesis=\format[AuthorLastFirst,AuthorAbbreviator,AuthorAndsReplacer]{\author}
(<b>\year\uniq</b>). <i>\title</i>, \school.

#default=\format[AuthorLastFirst]{\author}. \year. \format[HTMLChars,FormatPagesForXML]{\title}. <i>\journal</i>\begin{volume} \volume\end{volume}\begin{number}(\number)\end{number}, \format[FormatPagesForHTML]{\pages}

default=\format[Authors(LastFirst,Semicolon)]{\author} (<b>\year\uniq</b>). <i>\title</i>, \journal \volume\begin{pages} : \format[FormatPagesForHTML]{\pages}\end{pages}.

Hm. this is odd. On Windows your style works fine.

  1. Check if your styles are all in UTF8 encoding
  2. Try to reset your preferences and restart JabRef.
    There might be some invalid value in the preferences.
  1. UTF8 is default on Linux
  2. Tested with clean preferences, but with the same issue. :-(

Ah now I could reproduce it. It happens when you don't click on the style you added (no style is "highlighted").
So JabRef tries to get the selected style, but if non is selected it fails.
Will prepare a fix.

If you click on it so that's it is highlighted it will work:
grafik

:smile:
It was a Columbus' Egg!

This should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version.

@tobiasdiez
Yes, it's fine! Thank you so much! :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oscargus picture oscargus  路  3Comments

humbleambition picture humbleambition  路  3Comments

thorstenwagner picture thorstenwagner  路  4Comments

lenhard picture lenhard  路  4Comments

caugner picture caugner  路  3Comments