Can't open a .bib file in win7

The file was edited a few days ago.But now , when I try to open it ,errors occur . Thanks for you replies!

D:\Program Files\JabRef>java -jar jabref-3.8.2.jar
10:20:38.877 [JabRef CachedThreadPool] ERROR net.sf.jabref.FallbackExceptionHand
ler - Uncaught exception Occurred in Thread[JabRef CachedThreadPool,6,main]
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Unknown Source) ~[?:1.8.0_121]
at net.sf.jabref.logic.importer.util.GroupsParser.importGroups(GroupsPar
ser.java:51) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.logic.importer.util.MetaDataParser.parse(MetaDataParser
.java:63) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.logic.importer.util.MetaDataParser.parse(MetaDataParser
.java:33) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.logic.importer.fileformat.BibtexParser.parseFileContent
(BibtexParser.java:218) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.logic.importer.fileformat.BibtexParser.parse(BibtexPars
er.java:150) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.logic.importer.fileformat.BibtexImporter.importDatabase
(BibtexImporter.java:70) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.logic.importer.Importer.importDatabase(Importer.java:65
) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.logic.importer.fileformat.BibtexImporter.importDatabase
(BibtexImporter.java:62) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.logic.importer.OpenDatabase.loadDatabase(OpenDatabase.j
ava:64) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.gui.importer.actions.OpenDatabaseAction.openTheFile(Ope
nDatabaseAction.java:212) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.gui.importer.actions.OpenDatabaseAction.lambda$openFile
s$0(OpenDatabaseAction.java:152) ~[JabRef-3.8.2.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?
:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[
?:1.8.0_121]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]

Did you tried out the new 4.0 version and then opened the bib file with the older 3.8.2?
The format written by 4.0 is incompatible with the older versions and lead such an error. You can keep using 4.0 or as a workaround delete the groupstree comment from the bib file - but of course then you have to recreate the groups tree by hand.

Thank you, Tobias! I installed jabref-4.0, now it’s working well !

1 Like