Skip to content

Custom entry types might crash JabRef on start #11127

@Doc73

Description

@Doc73

JabRef version

5.13 (latest release)

Operating system

GNU / Linux

Details on version and operating system

Debian Unstable Gnome AMD64

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

  1. $ /opt/jabref/bin/JabRef
  2. Here is the result:
Messages are not initialized before accessing key: Display help on command line options
2024-04-01 23:52:12 [main] org.jabref.Launcher.main()
ERROR: Unexpected exception: java.lang.IllegalArgumentException: Fields [PAGES] already added
	at [email protected]/org.jabref.model.entry.BibEntryTypeBuilder.withImportantFields(Unknown Source)
	at [email protected]/org.jabref.logic.importer.util.MetaDataParser.parseCustomEntryType(Unknown Source)
	at [email protected]/org.jabref.preferences.JabRefPreferences.lambda$getBibEntryTypes$5(Unknown Source)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.Spliterators$ArraySpliterator.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.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
	at [email protected]/org.jabref.preferences.JabRefPreferences.getBibEntryTypes(Unknown Source)
	at [email protected]/org.jabref.preferences.JabRefPreferences.lambda$getCustomEntryTypesRepository$3(Unknown Source)
	at java.base/java.lang.Iterable.forEach(Unknown Source)
	at [email protected]/org.jabref.preferences.JabRefPreferences.getCustomEntryTypesRepository(Unknown Source)
	at [email protected]/org.jabref.Launcher.initGlobals(Unknown Source)
	at [email protected]/org.jabref.Launcher.main(Unknown Source)

Appendix

...

Log File
Messages are not initialized before accessing key: Display help on command line options
2024-04-01 23:52:12 [main] org.jabref.Launcher.main()
ERROR: Unexpected exception: java.lang.IllegalArgumentException: Fields [PAGES] already added
	at [email protected]/org.jabref.model.entry.BibEntryTypeBuilder.withImportantFields(Unknown Source)
	at [email protected]/org.jabref.logic.importer.util.MetaDataParser.parseCustomEntryType(Unknown Source)
	at [email protected]/org.jabref.preferences.JabRefPreferences.lambda$getBibEntryTypes$5(Unknown Source)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.Spliterators$ArraySpliterator.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.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
	at [email protected]/org.jabref.preferences.JabRefPreferences.getBibEntryTypes(Unknown Source)
	at [email protected]/org.jabref.preferences.JabRefPreferences.lambda$getCustomEntryTypesRepository$3(Unknown Source)
	at java.base/java.lang.Iterable.forEach(Unknown Source)
	at [email protected]/org.jabref.preferences.JabRefPreferences.getCustomEntryTypesRepository(Unknown Source)
	at [email protected]/org.jabref.Launcher.initGlobals(Unknown Source)
	at [email protected]/org.jabref.Launcher.main(Unknown Source)```

</details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    [outdated] type: bugConfirmed bugs or reports that are very likely to be bugs

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions