Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Null error while writing XMP metadata #5449

Closed
1 task done
homocomputeris opened this issue Oct 15, 2019 · 4 comments · Fixed by #5519
Closed
1 task done

Null error while writing XMP metadata #5449

homocomputeris opened this issue Oct 15, 2019 · 4 comments · Fixed by #5519

Comments

@homocomputeris
Copy link

homocomputeris commented Oct 15, 2019

ArchLinux package by j0hannes #5299

JabRef 5.0.0-dev--2019-10-14----d2ddff574
Linux 5.3.6-zen1-1-zen amd64 
Java 12.0.2
$ java --version
openjdk 11.0.4 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11)
OpenJDK 64-Bit Server VM (build 11.0.4+11, mixed mode)
$ archlinux-java status
Available Java environments:
  java-11-openjdk (default)

An error with no description:

Author2000
Error while writing '/home/user/Documents/Literature/TPSA.pdf':
null

Finished writing XMP for 0 file (0 skipped, 1 errors).
Happens with different PDFs.
The event log is empty.

Steps to reproduce the behavior:

  1. Create an entry
  2. Add link to a local PDF in the General tab
  3. Select this file
  4. Tool - Write XMP...
  5. A pop-up appears
@koppor
Copy link
Member

koppor commented Oct 15, 2019

@homocomputeris Are the PDFs freely available? It would be nice if you added them via a PR so that we can create test cases.

@homocomputeris
Copy link
Author

The one from my snippet is https://agenda.infn.it/event/2620/attachments/29206/34301/TPSA.pdf

Basically, it doesn't write to any PDF.
For example, from these links I downloaded jabref-authors.bib and one PDF, and, say, I want to write the 1st entry metadata to the PDF:

GarridoKallstromKummEtAl2016
  Error while writing '/home/user/Documents/Literature/thesis-example.pdf':
    null

Finished writing XMP for 0 file (0 skipped, 1 errors).

@homocomputeris homocomputeris changed the title Error while writing XMP metadata Null error while writing XMP metadata Oct 18, 2019
@homocomputeris
Copy link
Author

I tried it today with the latest snapshot on Windows 10: the same null error is raised

tobiasdiez added a commit that referenced this issue Oct 26, 2019
Fixes #5449. Was caused by wrapping a set of fields in a treeset without specifying the comparator.
@tobiasdiez tobiasdiez mentioned this issue Oct 26, 2019
6 tasks
@Siedlerchr
Copy link
Member

Thanks to @tobiasdiez this issue should be fixed now

We would like to ask you to use a development build from https://builds.jabref.org/master and report back if it works for you. Please remember to make a backup of your library before trying-out this version.

@koppor koppor moved this to Done in Prioritization Nov 10, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants