Skip to content

Conversation

@koppor
Copy link
Member

@koppor koppor commented Nov 9, 2025

At one system we have

Exception in Application start method

Without any more output

Breaking commit was found via manual git bisect.
Good commit: e6ceac8
First bad commit: 0dc6dd7


More logging needs to be done "manually":

gluonhq/client-samples#12 (comment)


Follow-up to #14233

CC @InAnYan - by renaming the citation constants, reading preferences caused an NPE.

Steps to test

Mandatory checks

@koppor koppor changed the title Try to get logging running again Fix NPE on startup Nov 9, 2025
@ThiloteE
Copy link
Member

ThiloteE commented Nov 9, 2025

Tried the PR. Still ...

PS C:\Prog\Development\JabRef_JabRef-JabRef\JabRef-JabRef\jabref> .\gradlew.bat :jabgui:run --args="--debug"

> Task :jabgui:run
WARNING: Using incubator modules: jdk.incubator.vector
2025-11-09 22:41:12 [main] org.jabref.logic.citationstyle.CSLStyleUtils.createCitationStyleFromFile()
ERROR: Could not find file: ieee.csl
2025-11-09 22:41:13 [main] org.jabref.logic.remote.client.RemoteClient.ping()
DEBUG: Could not ping server at port 6050: java.net.ConnectException: Connection refused: getsockopt
        at java.base/sun.nio.ch.Net.pollConnect(Native Method)
        at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:628)
        at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:533)
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:282)
        at java.base/java.net.Socket.connect(Socket.java:665)
        at org.jabref.jablib/org.jabref.logic.remote.client.RemoteClient.openNewConnection(RemoteClient.java:85)
        at org.jabref.jablib/org.jabref.logic.remote.client.RemoteClient.ping(RemoteClient.java:31)
        at org.jabref/org.jabref.Launcher.handleMultipleAppInstances(Launcher.java:157)
        at org.jabref/org.jabref.Launcher.main(Launcher.java:69)
2025-11-09 22:41:13 [main] org.jabref.Launcher.handleMultipleAppInstances()
DEBUG: Could not ping JabRef instance.
2025-11-09 22:41:13 [main] org.jabref.logic.net.ssl.TrustStoreManager.createTruststoreFileIfNotExist()
DEBUG: Trust store path: C:\Users\Thilo\AppData\Local\org.jabref\jabref\ssl\truststore.jks
2025-11-09 22:41:13 [main] org.jabref.migrations.PreferencesMigrations.upgradePrefsToOrgJabRef()
DEBUG: New prefs node already exists with content - skipping migration
2025-11-09 22:41:17 [main] org.jabref.logic.search.PostgreServer.<init>()
INFO: Postgres server started, connection port: 55956
2025-11-09 22:41:17 [main] org.jabref.logic.search.PostgreServer.addTrigramExtension()
DEBUG: Adding trigram extension to Postgres server
2025-11-09 22:41:17 [main] org.jabref.logic.search.PostgreServer.createScheme()
DEBUG: Creating scheme for bib fields
2025-11-09 22:41:17 [main] org.jabref.logic.search.PostgreServer.addFunctions()
DEBUG: Adding functions to Postgres server
2025-11-09 22:41:17 [main] org.jabref.logic.citationstyle.CSLStyleLoader.loadInternalStyles()
INFO: Loaded 2818 CSL styles
2025-11-09 22:41:17 [JavaFX-Launcher] sun.util.logging.internal.LoggingProviderImpl$JULWrapper.log()
WARN: Unsupported JavaFX configuration: classes were loaded from 'module javafx.graphics', isAutomatic: false, isOpen: true
2025-11-09 22:41:18 [JavaFX Application Thread] org.jabref.logic.journals.ltwa.LtwaRepository.<init>()
DEBUG: Loaded LTWA repository with 55571 prefixes and 206 suffixes
2025-11-09 22:41:18 [JavaFX Application Thread] org.jabref.logic.journals.JournalAbbreviationLoader.loadRepository()
INFO: Loaded journal abbreviations from C:\Users\Thilo\AppData\Local\Temp\jabref-journal17665302506471339273\journal-list.mv
2025-11-09 22:41:18 [JavaFX Application Thread] org.jabref.logic.journals.JournalAbbreviationLoader.readAbbreviationsFromCsvFile()
DEBUG: Reading journal list from file C:\server-ALLE\Computer Know-How\JabRef\journal_abbreviations_general.csv
2025-11-09 22:41:18 [JavaFX Application Thread] org.jabref.languageserver.controller.LanguageServerController.<init>()
DEBUG: LanguageServerController initialized.
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.initializeWindowThemeUpdater()
DEBUG: Window theme monitoring initialized
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.baseCssLiveUpdate()
DEBUG: Updating base CSS for all scenes
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings()
INFO: Not updating theme because it hasn't changed
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings()
INFO: Theme set to Theme{type=DEFAULT, name=''} with base css StyleSheet{jar:file:///C:/Prog/Development/JabRef_JabRef-JabRef/JabRef-JabRef/jabref/jabgui/build/libs/jabgui-100.0.0.jar!/org/jabref/gui/Base.css}
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.additionalCssLiveUpdate()
DEBUG: Updating additional CSS for all scenes and 0 web engines
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.init()
DEBUG: Initializing Velocity, Calling init()...
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.init()
DEBUG: Starting Apache Velocity 2.4.1
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.setDefaultProperties()
DEBUG: Default Properties resource: org/apache/velocity/runtime/defaults/velocity.properties
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.resource.loader.ResourceLoaderFactory.getLoader()
DEBUG: ResourceLoader instantiated: org.apache.velocity.runtime.resource.loader.FileResourceLoader
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.resource.loader.FileResourceLoader.init()
DEBUG: FileResourceLoader: adding path '.'
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.resource.ResourceCacheImpl.initialize()
DEBUG: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl) with class java.util.Collections$SynchronizedMap cache map.
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Stop
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Define
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Break
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Evaluate
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Macro
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Parse
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Include
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.ParserPoolImpl.initialize()
DEBUG: Created 20 parsers.
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: "velocimacro.library.path" is not set. Trying default library: velocimacros.vtl
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: Default library velocimacros.vtl not found. Trying old default library: VM_global_library.vm
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: Old default library VM_global_library.vm not found.
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: allowInline = true: VMs can be defined inline in templates
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: allowInlineToOverride = false: VMs defined inline may NOT replace previous VM definitions
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: allowInlineLocal = false: VMs defined inline will be global in scope if allowed.
2025-11-09 22:41:19 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: autoload off: VM system will not automatically reload global library macros
2025-11-09 22:41:19 [pool-2-thread-1] org.jabref.logic.ai.ingestion.model.UpdateEmbeddingModelTask.call()
INFO: Downloading embedding model...
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for IEEEXplore fetcher
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for SAO/NASA ADS fetcher
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for Springer fetcher
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for Biodiversity Heritage fetcher
2025-11-09 22:41:19 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for Medline/PubMed fetcher
Exception in Application start method
2025-11-09 22:41:20 [JavaFX Application Thread] org.jabref.gui.util.WebViewStore.lambda$addWebViewLater$0()
DEBUG: Cached Web views: 1
2025-11-09 22:41:20 [JavaFX Application Thread] org.jabref.gui.util.WebViewStore.lambda$addWebViewLater$0()
DEBUG: Cached Web views: 2
2025-11-09 22:41:20 [JavaFX Application Thread] org.jabref.gui.util.WebViewStore.lambda$addWebViewLater$0()
DEBUG: Cached Web views: 3
2025-11-09 22:41:20 [JavaFX Application Thread] org.jabref.gui.util.WebViewStore.lambda$addWebViewLater$0()
DEBUG: Cached Web views: 4
2025-11-09 22:41:20 [] org.jabref.logic.remote.server.RemoteListenerServerManager.stop()
DEBUG: Stopping RemoteListenerServerManager
2025-11-09 22:41:20 [] org.jabref.http.manager.HttpServerManager.stop()
DEBUG: Stopping HTTP server manager...
2025-11-09 22:41:20 [] org.jabref.logic.remote.server.RemoteListenerServerManager.stop()
DEBUG: RemoteListenerServerManager was not open, nothing to stop.
2025-11-09 22:41:20 [] org.jabref.languageserver.controller.LanguageServerController.stop()
DEBUG: Stopping language server controller...
2025-11-09 22:41:20 [] org.jabref.http.manager.HttpServerManager.stop()
DEBUG: HTTP server is not started, nothing to stop.
2025-11-09 22:41:20 [] org.jabref.languageserver.controller.LanguageServerController.stop()
DEBUG: Language server is not started, nothing to stop.

@Siedlerchr
Copy link
Member

try with -d all https://docs.jabref.org/advanced/commandline for resetting the prefs

@koppor
Copy link
Member Author

koppor commented Nov 9, 2025

try with -d all docs.jabref.org/advanced/commandline for resetting the prefs

We should know where it crashes to fix the issue - and not be forced to tell all users that they should reset their preferences.

@koppor
Copy link
Member Author

koppor commented Nov 9, 2025

To replicate the issue:

--- a/jabgui/src/main/java/org/jabref/gui/JabRefGUI.java
+++ b/jabgui/src/main/java/org/jabref/gui/JabRefGUI.java
@@ -109,6 +109,10 @@ public class JabRefGUI extends Application {
             dialogService.showErrorDialogAndWait("Uncaught exception occurred in " + thread, exception);
         }));

+        if (1 == 1) {
+            throw new RuntimeException();
+        }
+
         initialize();

         JabRefGUI.mainFrame = new JabRefFrame(

@koppor
Copy link
Member Author

koppor commented Nov 10, 2025

DevChat: @ThiloteE needs to check. He needs to do other work. I put him as assignee to make it transparent that we wait for his input.

@ThiloteE
Copy link
Member

ThiloteE commented Nov 10, 2025

Tried 3c17fdb
Still ...

C:\Prog\Development\JabRef_JabRef-JabRef\JabRef-JabRef\jabref>.\gradlew.bat :jabgui:run --args="--debug"
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

> Task :jabgui:compileJava
Hinweis: Einige Eingabedateien verwenden oder ├╝berschreiben eine veraltete API.
Hinweis: Wiederholen Sie die Kompilierung mit -Xlint:deprecation, um Details zu erhalten.
Hinweis: Einige Eingabedateien verwenden nicht geprüfte oder unsichere Vorgänge.
Hinweis: Wiederholen Sie die Kompilierung mit -Xlint:unchecked, um Details zu erhalten.

> Task :jabgui:run
WARNING: Using incubator modules: jdk.incubator.vector
2025-11-10 10:37:57 [main] org.jabref.logic.citationstyle.CSLStyleUtils.createCitationStyleFromFile()
ERROR: Could not find file: ieee.csl
2025-11-10 10:37:58 [main] org.jabref.logic.remote.client.RemoteClient.ping()
DEBUG: Could not ping server at port 6050: java.net.ConnectException: Connection refused: getsockopt
        at java.base/sun.nio.ch.Net.pollConnect(Native Method)
        at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:628)
        at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:533)
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:282)
        at java.base/java.net.Socket.connect(Socket.java:665)
        at org.jabref.jablib/org.jabref.logic.remote.client.RemoteClient.openNewConnection(RemoteClient.java:85)
        at org.jabref.jablib/org.jabref.logic.remote.client.RemoteClient.ping(RemoteClient.java:31)
        at org.jabref/org.jabref.Launcher.handleMultipleAppInstances(Launcher.java:162)
        at org.jabref/org.jabref.Launcher.main(Launcher.java:70)
2025-11-10 10:37:58 [main] org.jabref.Launcher.handleMultipleAppInstances()
DEBUG: Could not ping JabRef instance.
2025-11-10 10:37:58 [main] org.jabref.logic.net.ssl.TrustStoreManager.createTruststoreFileIfNotExist()
DEBUG: Trust store path: C:\Users\Thilo\AppData\Local\org.jabref\jabref\ssl\truststore.jks
2025-11-10 10:37:58 [main] org.jabref.migrations.PreferencesMigrations.upgradePrefsToOrgJabRef()
DEBUG: New prefs node already exists with content - skipping migration
2025-11-10 10:38:10 [main] org.jabref.logic.search.PostgreServer.<init>()
INFO: Postgres server started, connection port: 63464
2025-11-10 10:38:11 [main] org.jabref.logic.search.PostgreServer.addTrigramExtension()
DEBUG: Adding trigram extension to Postgres server
2025-11-10 10:38:11 [main] org.jabref.logic.search.PostgreServer.createScheme()
DEBUG: Creating scheme for bib fields
2025-11-10 10:38:11 [main] org.jabref.logic.search.PostgreServer.addFunctions()
DEBUG: Adding functions to Postgres server
2025-11-10 10:38:11 [main] org.jabref.logic.citationstyle.CSLStyleLoader.loadInternalStyles()
INFO: Loaded 2818 CSL styles
2025-11-10 10:38:11 [JavaFX-Launcher] sun.util.logging.internal.LoggingProviderImpl$JULWrapper.log()
WARN: Unsupported JavaFX configuration: classes were loaded from 'module javafx.graphics', isAutomatic: false, isOpen: true
2025-11-10 10:38:15 [JavaFX Application Thread] org.jabref.logic.journals.ltwa.LtwaRepository.<init>()
DEBUG: Loaded LTWA repository with 55571 prefixes and 206 suffixes
2025-11-10 10:38:16 [JavaFX Application Thread] org.jabref.logic.journals.JournalAbbreviationLoader.loadRepository()
INFO: Loaded journal abbreviations from C:\Users\Thilo\AppData\Local\Temp\jabref-journal14846108322734905030\journal-list.mv
2025-11-10 10:38:16 [JavaFX Application Thread] org.jabref.logic.journals.JournalAbbreviationLoader.readAbbreviationsFromCsvFile()
DEBUG: Reading journal list from file C:\server-ALLE\Computer Know-How\JabRef\journal_abbreviations_general.csv
2025-11-10 10:38:16 [JavaFX Application Thread] org.jabref.languageserver.controller.LanguageServerController.<init>()
DEBUG: LanguageServerController initialized.
2025-11-10 10:38:17 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.initializeWindowThemeUpdater()
DEBUG: Window theme monitoring initialized
2025-11-10 10:38:17 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.baseCssLiveUpdate()
DEBUG: Updating base CSS for all scenes
2025-11-10 10:38:17 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings()
INFO: Not updating theme because it hasn't changed
2025-11-10 10:38:17 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings()
INFO: Theme set to Theme{type=DEFAULT, name=''} with base css StyleSheet{jar:file:///C:/Prog/Development/JabRef_JabRef-JabRef/JabRef-JabRef/jabref/jabgui/build/libs/jabgui-100.0.0.jar!/org/jabref/gui/Base.css}
2025-11-10 10:38:17 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.additionalCssLiveUpdate()
DEBUG: Updating additional CSS for all scenes and 0 web engines
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.init()
DEBUG: Initializing Velocity, Calling init()...
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.init()
DEBUG: Starting Apache Velocity 2.4.1
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.setDefaultProperties()
DEBUG: Default Properties resource: org/apache/velocity/runtime/defaults/velocity.properties
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.resource.loader.ResourceLoaderFactory.getLoader()
DEBUG: ResourceLoader instantiated: org.apache.velocity.runtime.resource.loader.FileResourceLoader
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.resource.loader.FileResourceLoader.init()
DEBUG: FileResourceLoader: adding path '.'
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.resource.ResourceCacheImpl.initialize()
DEBUG: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl) with class java.util.Collections$SynchronizedMap cache map.
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Stop
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Define
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Break
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Evaluate
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Macro
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Parse
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Include
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.RuntimeInstance.initializeDirectives()
DEBUG: Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.ParserPoolImpl.initialize()
DEBUG: Created 20 parsers.
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: "velocimacro.library.path" is not set. Trying default library: velocimacros.vtl
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: Default library velocimacros.vtl not found. Trying old default library: VM_global_library.vm
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: Old default library VM_global_library.vm not found.
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: allowInline = true: VMs can be defined inline in templates
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: allowInlineToOverride = false: VMs defined inline may NOT replace previous VM definitions
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: allowInlineLocal = false: VMs defined inline will be global in scope if allowed.
2025-11-10 10:38:17 [JavaFX Application Thread] org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro()
DEBUG: autoload off: VM system will not automatically reload global library macros
2025-11-10 10:38:18 [pool-2-thread-1] org.jabref.logic.ai.ingestion.model.UpdateEmbeddingModelTask.call()
INFO: Downloading embedding model...
2025-11-10 10:38:18 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for IEEEXplore fetcher
2025-11-10 10:38:18 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for SAO/NASA ADS fetcher
2025-11-10 10:38:18 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for Springer fetcher
2025-11-10 10:38:18 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for Biodiversity Heritage fetcher
2025-11-10 10:38:18 [JavaFX Application Thread] org.jabref.logic.preferences.JabRefCliPreferences.getFetcherKeysFromKeyring()
DEBUG: No api key stored for Medline/PubMed fetcher
2025-11-10 10:38:18 [JavaFX Application Thread] org.jabref.gui.JabRefGUI.start()
ERROR: Error during initialization: java.lang.IllegalArgumentException: No enum constant org.jabref.logic.importer.plaincitation.PlainCitationParserChoice.RULE_BASED
        at java.base/java.lang.Enum.valueOf(Enum.java:293)
        at org.jabref.jablib/org.jabref.logic.importer.plaincitation.PlainCitationParserChoice.valueOf(PlainCitationParserChoice.java:5)
        at org.jabref.jablib/org.jabref.logic.preferences.JabRefCliPreferences.getImporterPreferences(JabRefCliPreferences.java:2225)
        at org.jabref/org.jabref.gui.JabRefGUI.initialize(JabRefGUI.java:222)
        at org.jabref/org.jabref.gui.JabRefGUI.start(JabRefGUI.java:108)
        at javafx.graphics@25.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$4(LauncherImpl.java:845)
        at javafx.graphics@25.0.1/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$0(PlatformImpl.java:449)
        at javafx.graphics@25.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$0(PlatformImpl.java:424)
        at javafx.graphics@25.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at javafx.graphics@25.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at javafx.graphics@25.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$0(WinApplication.java:168)
        at java.base/java.lang.Thread.run(Thread.java:1447)
Exception in Application start method
2025-11-10 10:38:20 [JavaFX Application Thread] org.jabref.gui.util.WebViewStore.lambda$addWebViewLater$0()
DEBUG: Cached Web views: 1
2025-11-10 10:38:20 [JavaFX Application Thread] org.jabref.gui.util.WebViewStore.lambda$addWebViewLater$0()
DEBUG: Cached Web views: 2
2025-11-10 10:38:20 [JavaFX Application Thread] org.jabref.gui.util.WebViewStore.lambda$addWebViewLater$0()
DEBUG: Cached Web views: 3
2025-11-10 10:38:20 [JavaFX Application Thread] org.jabref.gui.util.WebViewStore.lambda$addWebViewLater$0()
DEBUG: Cached Web views: 4
2025-11-10 10:38:20 [] org.jabref.logic.remote.server.RemoteListenerServerManager.stop()
DEBUG: Stopping RemoteListenerServerManager
2025-11-10 10:38:20 [] org.jabref.logic.remote.server.RemoteListenerServerManager.stop()
DEBUG: RemoteListenerServerManager was not open, nothing to stop.
2025-11-10 10:38:20 [] org.jabref.languageserver.controller.LanguageServerController.stop()
DEBUG: Stopping language server controller...
2025-11-10 10:38:20 [] org.jabref.languageserver.controller.LanguageServerController.stop()
DEBUG: Language server is not started, nothing to stop.
2025-11-10 10:38:20 [] org.jabref.http.manager.HttpServerManager.stop()
DEBUG: Stopping HTTP server manager...
2025-11-10 10:38:20 [] org.jabref.http.manager.HttpServerManager.stop()
DEBUG: HTTP server is not started, nothing to stop.

[Incubating] Problems report is available at: file:///C:/Prog/Development/JabRef_JabRef-JabRef/JabRef-JabRef/jabref/build/reports/problems/problems-report.html

BUILD SUCCESSFUL in 3m 52s
23 actionable tasks: 4 executed, 19 up-to-date

If we can fix this issue it's better than telling all users having to reset their preferences. I think reseting prefs should only be the last resort.

@Siedlerchr
Copy link
Member

ERROR: Error during initialization: java.lang.IllegalArgumentException: No enum constant org.jabref.logic.importer.plaincitation.PlainCitationParserChoice.RULE_BASED

@koppor
Copy link
Member Author

koppor commented Nov 10, 2025

No changelog, because issue introduced after release.

@koppor koppor requested a review from Siedlerchr November 10, 2025 20:01
@Siedlerchr Siedlerchr marked this pull request as ready for review November 10, 2025 20:02
@Siedlerchr Siedlerchr added this pull request to the merge queue Nov 10, 2025
Merged via the queue into main with commit d33df95 Nov 10, 2025
49 checks passed
@Siedlerchr Siedlerchr deleted the add-log-of-exception branch November 10, 2025 20:20
Siedlerchr added a commit that referenced this pull request Nov 10, 2025
@ThiloteE
Copy link
Member

ThiloteE commented Nov 10, 2025

Can confirm, it works now. I can start JabRef again with this PR.

Siedlerchr added a commit that referenced this pull request Nov 13, 2025
merlinymy pushed a commit to merlinymy/jabref that referenced this pull request Nov 19, 2025
* Try to get logging running again

* Remove use of Map for configuration

* Fix exception

* Try to log Exceptions

* Revert "Try to get logging running again"

This reverts commit 89b846f.

* Fix exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants