Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Jabref 5.3 import xmp annotated pdf Unhandled exception occurred #8310

Closed
2 tasks done
radiospatial opened this issue Dec 8, 2021 · 7 comments · Fixed by #8311
Closed
2 tasks done

Jabref 5.3 import xmp annotated pdf Unhandled exception occurred #8310

radiospatial opened this issue Dec 8, 2021 · 7 comments · Fixed by #8311
Labels
bug Confirmed bugs or reports that are very likely to be bugs external files import

Comments

@radiospatial
Copy link

JabRef version

5.3 (latest release)

Operating system

GNU / Linux

Details on version and operating system

Ubuntu 20.04

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

Whenever I dropped a large (35MB) PDF with XMP data onto the library window the file is imported and linked without any metadata, only the file name is shown as the title. I am sure the file has Metadata, It was written by an earlier version of Jabref. I verified this by using exiftool which shows the bibtex information in the file.

When I use the file import into current library and select the large file in question, I got an error message, saying Jabref could not find a suitable import filter; See Appendix for details.

For smaller files of 1 MB and below I got more information when dropped but still not the file metadata, the small files also do not create the exception whenever I use the file import dialog, the information gathered by this method is the same as when dropped. the information seems to be from the heuristic search carried out on the first page of the document.

In the past with Jabref 2.8 on Linux I have always been able to drop multiple files on the library window and watch Jabref Import all xmp data accurately. The ability to handle XMP data like this, both reading and Writing, was one of the endearing features of Jabref that kept me tied to It, nothing else came close.

Appendix

org.jabref.logic.importer.ImportException: Could not find a suitable import format.
at org.jabref@5.3.60000/org.jabref.logic.importer.ImportFormatReader.importUnknownFormat(Unknown Source)
at org.jabref@5.3.60000/org.jabref.logic.importer.ImportFormatReader.importUnknownFormat(Unknown Source)
at org.jabref@5.3.60000/org.jabref.gui.importer.ImportAction.doImport(Unknown Source)
at org.jabref@5.3.60000/org.jabref.gui.importer.ImportAction.lambda$automatedImport$1(Unknown Source)
at org.jabref@5.3.60000/org.jabref.gui.util.BackgroundTask$1.call(Unknown Source)
at org.jabref@5.3.60000/org.jabref.gui.util.DefaultTaskExecutor$1.call(Unknown Source)
at org.jabref.merged.module@5.3.60000/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

@ThiloteE
Copy link
Member

ThiloteE commented Dec 8, 2021

This thread sheds some light on the way how Jabref imports metadata currently: https://discourse.jabref.org/t/extract-information-from-pdf-import/2899

"If you want to force an XMP import, you can go to file → import → either to current or new library and select XMP-annotated PDF (last in the drop-down list) in the bottom right corner." - @btut

If that way does not work in the 5.3 version, you might wanna check out the development version at https://builds.jabref.org/main/

@radiospatial
Copy link
Author

Thanks for the early reply, I had done what you said I forgot to mention it in the report, I did select the proper filter (Annotated PDF) in the dialog. I also tried the development version which is at v 5.4, your bug report system had suggested that, it is the same result.

@Siedlerchr
Copy link
Member

@radiospatial Can you share the PDF file somehow? If not public then you can send it to developers@jabref.org

@radiospatial
Copy link
Author

radiospatial commented Dec 8, 2021 via email

@radiospatial
Copy link
Author

radiospatial commented Dec 8, 2021 via email

@Siedlerchr Siedlerchr added the bug Confirmed bugs or reports that are very likely to be bugs label Dec 8, 2021
@Siedlerchr
Copy link
Member

Thanks for the files, I already found some bugs in the code and I am currently working on a fix.

@radiospatial
Copy link
Author

radiospatial commented Dec 8, 2021 via email

@Siedlerchr Siedlerchr mentioned this issue Dec 8, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs external files import
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants