Repository navigation
Description
JabRef version
Latest development branch build (please note build date below)
Operating system
Windows
Details on version and operating system
Windows 11. Development build 2026-10-28. The same crash was reproduced in 5.15, in 6.0-beta.1
Checked with the latest development build (copy version output from About dialog)
- I made a backup of my libraries before testing the latest development version.
- I have tested the latest development version and the problem persists
Steps to reproduce the behaviour
- Open a library containing a
@performanceentry, for example:
@performance{Example2024Performance,
title = {Example Performance Title},
author = {Example Author},
date = {2024-09-12},
venue = {Example Venue},
location = {Example City},
eventtitle = {Example Event},
type = {Spoken Word Performance},
url = {https://example.org/event}
}- Select the entry and export as Hayagriva YAML.
Appendix
Exporting a library to Hayagriva YAML fails whenever the library contains a @performance entry, and the whole export aborts. The exporter maps the entry type through StandardEntryType.valueOf("Performance"), but that enum has no Performance constant, so a single @performance entry blocks an otherwise normal library export.
The export should complete, with the entry written as type: performance. Hayagriva's format defines performance as a valid entry type, a live artistic performance, and @performance is also a type in BibLaTeX's data model, so this is a straightforward mapping — not a crash, and not a silent conversion to misc.
The same crash was reproduced in 5.15, in 6.0-beta.1, and in the latest development build on 28 October 2026, in a fresh two-entry test library containing only one @performance entry and one ordinary @article entry.
java.lang.IllegalArgumentException: No enum constant org.jabref.model.entry.types.StandardEntryType.Performance
at java.base/java.lang.Enum.valueOf(Enum.java:293)
at org.jabref.jablib/org.jabref.model.entry.types.StandardEntryType.valueOf(StandardEntryType.java:9)
at org.jabref.jablib/org.jabref.logic.layout.format.HayagrivaType.format(HayagrivaType.java:10)
at org.jabref.jablib/org.jabref.logic.layout.LayoutEntry.handleOptionField(LayoutEntry.java:255)
at org.jabref.jablib/org.jabref.logic.layout.LayoutEntry.doLayout(LayoutEntry.java:218)
at org.jabref.jablib/org.jabref.logic.layout.LayoutEntry.handleFieldOrGroupStart(LayoutEntry.java:308)
at org.jabref.jablib/org.jabref.logic.layout.LayoutEntry.doLayout(LayoutEntry.java:216)
at org.jabref.jablib/org.jabref.logic.layout.Layout.doLayout(Layout.java:102)
at org.jabref.jablib/org.jabref.logic.exporter.TemplateExporter.export(TemplateExporter.java:255)
at org.jabref/org.jabref.gui.exporter.ExportCommand.lambda$export$2(ExportCommand.java:115)
at org.jabref.jablib/org.jabref.logic.util.BackgroundTask$1.call(BackgroundTask.java:69)
at org.jabref/org.jabref.gui.util.UiTaskExecutor$1.call(UiTaskExecutor.java:224)
at javafx.graphics@27/javafx.concurrent.Task$TaskCallable.call(Task.java:1407)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.base/java.lang.Thread.run(Thread.java:1474)
Related, but not the same bug: #10382 (original Hayagriva export feature) and #10596 (parent field dropped in Hayagriva export, fixed in 5.12).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
github-actions commentedon Oct 29, 2026
Hi @Vidusha10, this issue needs triage by a maintainer first. Please wait until the
status: needs-triagelabel is removed.nysta12 commentedon Oct 29, 2026
/assign-me
jabref-machine commentedon Oct 29, 2026
👋 Hey @nysta12, thank you for your interest in this issue! 🎉
We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.
When using AI tools, please use them as an assistant rather than simply copying their output. See Don't paste the AI, please..
For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.
In case you encounter failing tests during development, please check our developer FAQs!
Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.
Happy coding! 🚀
Siedlerchr commentedon Oct 29, 2026
Yeah it must also handle unknown entrytypes. I suggest looking at
jabref/jablib/src/main/java/org/jabref/model/entry/types/EntryTypeFactory.java
Line 45 in e5169e5
github-actions commentedon Nov 2, 2026
⏰ Assignment Reminder
Hi @nysta12, this is a friendly reminder about your assignment to this issue.
Warning
This issue will be automatically unassigned in 4 days if there's no activity.
Remember that you can ask the JabRef Guru or DeepWiki about anything regarding JabRef.
Additionally, our contributing guide has hints on creating a pull request and a link to our Gitter chat.
How to keep your assignment
If you are working on it, you can prevent automatic unassignment by:
We appreciate your contribution and are here to help if needed!
SachinyadavAug20 commentedon Nov 4, 2026
Hi @nysta12, @Siedlerchr, @ThiloteE!
Checking in to see if @nysta12 is still working on this. If you are occupied or need assistance, I have investigated the codebase and would be glad to take over and resolve this.
Root Cause
In
HayagrivaType.java, the formatter directly evaluates the entry type usingStandardEntryType.valueOf(value):jabref/jablib/src/main/java/org/jabref/logic/layout/format/HayagrivaType.java
Line 10 in df70a0c
Because
@performanceis registered underBiblatexNonStandardEntryType.Performance(rather thanStandardEntryType),Enum.valueOf()throws an unhandledIllegalArgumentException, which aborts the entire Hayagriva YAML export process.Proposed Solution
Following @Siedlerchr's suggestion to use
EntryTypeFactory.parse():jabref/jablib/src/main/java/org/jabref/model/entry/types/EntryTypeFactory.java
Line 45 in df70a0c
Safe EntryType Resolution:
Replace
StandardEntryType.valueOf(value)withEntryTypeFactory.parse(value). This safely resolves standard, IEEE, and BibLaTeX entry types, returning anUnknownEntryTypeinstead of throwing if the type is unrecognized.Explicit Mapping & Fallback:
BiblatexNonStandardEntryType.Performanceto"performance"(valid in the Hayagriva specification).StandardEntryTypes as currently implemented.UnknownEntryTypes, fall back gracefully to"misc"to prevent export failures.Automated Testing:
HayagrivaYamlExporterTest.javaverifying that an export containing a@performanceentry successfully writestype: performance.type: miscwithout throwing.If the assignment is free or released, please feel free to assign this to me—I have forked the repository, reproduced the issue, and can submit a PR right away!
nysta12 commentedon Nov 5, 2026
Hi, I'm still working on this and making progress. Could I please get the 📌 Pinned label so the assignment isn't automatically removed? Thanks!
github-actions commentedon Nov 14, 2026
We think that this issue was fixed. Please head to https://builds.jabref.org/main to download a development build and try it out.
For any feedback, add a comment to the pull request at #17815.
Fix Hayagriva export for performance and custom entry types (JabRef#1…