jabref: Error in importing jstyles
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
- I have tested the latest development version from http://builds.jabref.org/master/ and the problem persists
Steps to reproduce the behavior:
- add jstyle file for OpenOffice/LibreOffice from GUI
- click OK
- š
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}
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- Select newly added jstyle in table to prevent exception Fixes #5452 — committed to JabRef/jabref by Siedlerchr 5 years ago
- Select newly added jstyle in table to prevent exception (#5556) Fixes #5452 — committed to JabRef/jabref by Siedlerchr 5 years ago
- Squashed 'buildres/csl/csl-styles/' changes from e1acabea97..c7a01e0824 c7a01e0824 Create worlds-veterinary-journal.csl (#5468) ec923b214c Update experimental-biology-and-medicine.csl (#5469) 1d48cb7... — committed to JabRef/jabref by deleted user 3 years ago
- [Bot] Update CSL styles (#7784) * Squashed 'buildres/csl/csl-styles/' changes from e1acabea97..c7a01e0824 c7a01e0824 Create worlds-veterinary-journal.csl (#5468) ec923b214c Update experimental-bi... — committed to JabRef/jabref by koppor 3 years ago
- Squashed 'buildres/csl/csl-styles/' changes from e1acabea97..a3706b1e79 a3706b1e79 Fix ArchĆ©oSciences (#5506) daeadd371f Update hawaii-international-conference-on-system-sciences-proceedings⦠(#5505)... — committed to JabRef/jabref by deleted user 3 years ago
- [Bot] Update CSL styles (#7824) * Squashed 'buildres/csl/csl-styles/' changes from e1acabea97..a3706b1e79 a3706b1e79 Fix ArchĆ©oSciences (#5506) daeadd371f Update hawaii-international-conference-o... — committed to JabRef/jabref by koppor 3 years ago
- Squashed 'buildres/csl/csl-styles/' changes from e1acabea97..36ba508ff6 36ba508ff6 Update civilta-italiana.csl (#5531) 3ea7d02fa1 Only "page" locators are ommited in book citations in JuS journal. (#... — committed to JabRef/jabref by deleted user 3 years ago
- [Bot] Update CSL styles (#7865) * Squashed 'buildres/csl/csl-styles/' changes from e1acabea97..36ba508ff6 36ba508ff6 Update civilta-italiana.csl (#5531) 3ea7d02fa1 Only "page" locators are ommite... — committed to JabRef/jabref by koppor 3 years ago
- Squashed 'buildres/csl/csl-styles/' changes from e1acabea97..ec4a4c01ff ec4a4c01ff Create rassegna-degli-archivi-di-stato.csl (#5530) e3a4bb2a7a Update ocean-and-coastal-research.csl (#5533) aeb3ecea... — committed to JabRef/jabref by deleted user 3 years ago
@tobiasdiez Yes, itās fine! Thank you so much! š
š It was a Columbusā Egg!