Skip to content

Will not open file (Charset Exception when reading file) #8870

@CodeSJS

Description

@CodeSJS

JabRef version

Latest development branch build (please note build date below)

Operating system

Windows

Details on version and operating system

jabref 5.6 or 5.7 on WIndows 10

Checked with the latest development build

  • 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

I moved a bib file to a new location and suddenly the file will not load. I will attach the log file - it's some java error that I cannot decipher. I opened the bib file in emacs, and had emacs check the syntax, and it passed the test. I beautified the file in emacs and jabref still will not load the file.

If I remove two-thirds of the file, jabref will load the file. I thought there might be a malformed entry. By trial and error, I determined the exact stopping point. However, when I remove that entry, jabref still fails.

The problem arose with jabref 5.6. I installed jabref 5.7 and the same problem arose.

jabref opens another file without a problem.

Appendix

Paste an excerpt of your log file here

Error opening file 'C:\Users\singer.2\OneDrive - The Ohio State University\Documents\Projects\TauFibrils\Notes\Bibliography\PeptideFibrils1.bib'
java.nio.charset.MalformedInputException: Input length = 1
	at java.base/java.nio.charset.CoderResult.throwException(Unknown Source)
	at java.base/sun.nio.cs.StreamDecoder.implRead(Unknown Source)
	at java.base/sun.nio.cs.StreamDecoder.read(Unknown Source)
	at java.base/java.io.InputStreamReader.read(Unknown Source)
	at java.base/java.io.BufferedReader.fill(Unknown Source)
	at java.base/java.io.BufferedReader.read(Unknown Source)
	at java.base/java.io.FilterReader.read(Unknown Source)
	at java.base/java.io.PushbackReader.read(Unknown Source)
	at [email protected]/org.jabref.logic.importer.fileformat.BibtexParser.read(Unknown Source)
	at [email protected]/org.jabref.logic.importer.fileformat.BibtexParser.skipWhitespace(Unknown Source)
	at [email protected]/org.jabref.logic.importer.fileformat.BibtexParser.parseFileContent(Unknown Source)
	at [email protected]/org.jabref.logic.importer.fileformat.BibtexParser.parse(Unknown Source)
	at [email protected]/org.jabref.logic.importer.fileformat.BibtexImporter.importDatabase(Unknown Source)
	at [email protected]/org.jabref.logic.importer.fileformat.BibtexImporter.importDatabase(Unknown Source)
	at [email protected]/org.jabref.logic.importer.OpenDatabase.loadDatabase(Unknown Source)
	at [email protected]/org.jabref.cli.ArgumentProcessor.importAndOpenFiles(Unknown Source)
	at [email protected]/org.jabref.cli.ArgumentProcessor.processArguments(Unknown Source)
	at [email protected]/org.jabref.cli.ArgumentProcessor.<init>(Unknown Source)
	at [email protected]/org.jabref.gui.JabRefMain.start(Unknown Source)
	at [email protected]/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
	at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(Unknown Source)
	at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
	at [email protected]/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
	at [email protected]/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at [email protected]/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions