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

Import pdf file into current library doesn't work in second time. #4422

Closed
atteti opened this issue Oct 27, 2018 · 7 comments
Closed

Import pdf file into current library doesn't work in second time. #4422

atteti opened this issue Oct 27, 2018 · 7 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs import
Projects

Comments

@atteti
Copy link

atteti commented Oct 27, 2018

Tested with JabRef 4.21 64 bit Windows

Steps to reproduce the behavior:

  1. Create new BibTeX library
  2. Import into current library
  3. Select PDFContent and choose pdf file.
  4. Select Open
    file is opened
    //import second pdf file
  5. Import into current library
  6. Select PDFContent and choose pdf file.
  7. Select Open
    file is not opened
    status. importing in unknown format...

Uncaught exception occurred in Thread[JavaFX Application Thread,5,main]
java.lang.ArrayIndexOutOfBoundsException: -1
at org.jabref.logic.importer.fileformat.PdfContentImporter.proceedToNextNonEmptyLine(PdfContentImporter.java:525)
at org.jabref.logic.importer.fileformat.PdfContentImporter.importDatabase(PdfContentImporter.java:228)
at org.jabref.gui.importer.ImportMenuItem$MyWorker.run(ImportMenuItem.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at spin.Invocation.evaluate(Invocation.java:175)
at spin.off.SpinOffEvaluator.evaluate(SpinOffEvaluator.java:120)
at spin.ProxyFactory.evaluteInvocation(ProxyFactory.java:85)
at spin.JDKProxyFactory$SpinInvocationHandler.invoke(JDKProxyFactory.java:102)
at com.sun.proxy.$Proxy30.run(Unknown Source)
at org.jabref.gui.importer.ImportMenuItem.automatedImport(ImportMenuItem.java:78)
at org.jabref.gui.importer.ImportFormats$1ImportAction.doImport(ImportFormats.java:88)
at org.jabref.gui.importer.ImportFormats$1ImportAction.lambda$actionPerformed$0(ImportFormats.java:75)
at java.util.Optional.ifPresent(Unknown Source)
at org.jabref.gui.importer.ImportFormats$1ImportAction.lambda$actionPerformed$1(ImportFormats.java:75)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Unknown Source)

@Siedlerchr Siedlerchr added this to Needs triage in Bugs via automation Oct 27, 2018
@atteti
Copy link
Author

atteti commented Oct 28, 2018

Sorry, the version used is 4.3.1

@Siedlerchr
Copy link
Member

Could you please test with the latest development version? https://builds.jabref.org/master/

@Siedlerchr Siedlerchr added the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Oct 28, 2018
@atteti
Copy link
Author

atteti commented Oct 28, 2018

I tested with the latest development version and it doesn't open pdf file second time. It opens only first time.
So there is same bug.

@atteti
Copy link
Author

atteti commented Oct 28, 2018

using css jar:file:/C:/jabref2/JabRef-5.0-dev--snapshot--2018-10-28--master--9a3f2d627.jar!/org/jabref/gui/Base.css is the verstion which I tested.

@atteti
Copy link
Author

atteti commented Oct 28, 2018

JabRef_windows-x64_5_0-dev--snapshot--2018-10-28--master--9a3f2d627.exe 28.10.2018 13:43 68.6 

sorry, this version I tested.

@Siedlerchr Siedlerchr added bug Confirmed bugs or reports that are very likely to be bugs import and removed status: waiting-for-feedback The submitter or other users need to provide more information about the issue labels Oct 28, 2018
@Siedlerchr
Copy link
Member

I could confirm this. This is very odd. In fact it's still an ArrayIndexOutOfBoundsException which is thrown and then somehow swallowed from the executor

Bugs automation moved this from Needs triage to Closed Oct 30, 2018
@Siedlerchr
Copy link
Member

Thank you for reporting this issue. We think, that is already fixed in our development version and consequently the change will be included in the next release.

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.

Siedlerchr added a commit that referenced this issue Dec 11, 2019
49a1841 Update queen-margaret-university-harvard.csl (#4443)
f841560 Create uni-bern-institut-fur-musikwissenschaft-note.csl (#4401)
6ee503c Create harvard-cite-them-right-all-authors.csl (#4416)
3eceec4 Create harvard-queen-margaret-university.csl (#4441)
3c2299d JEMS.csl (#4436)
bb2f60f Create open-window.csl (#4430)
a908ab4 Nutrition Research Reviews (#4434)
208b693 Bump nokogiri from 1.10.3 to 1.10.4 (#4439)
122a3bb Create nmfs-west-coast-region-national-environmental-policy-act.csl (#4426)
3565fc2 Update tissue-engineering.csl (#4435)
981044e Create transposition.csl (#4375)
73ef6f3 Update tissue-engineering.csl (#4431)
7c4a4cf Update r-and-d-management.csl (#4432)
8628afb Create china-national-standard-gb-t-7714-2015-numeric.csl (#4065)
6ce148c removed spaces in harvard-gesellschaft-fur-bildung-und-forschung-in-europa.csl (#4422)
2af1c6f Create japanese-journal-of-applied-physics.csl (#4425)
fc16579 Add Presses universitaires de Strasbourg style (#4411)
01e58fb Correct spacing issues and documentation link (#4423)
d97cf3f Update geistes-und-kulturwissenschaften-heilmann.csl (#4421)
017947d Update ens-de-lyon-centre-d-ingenierie-documentaire.csl (#4413)
bffe57e Create instituto-de-pesquisas-energeticas-e-nucleares-sp.csl (#4368)
18686d1 Update and rename zeitschrift-fuer-digitale-geisteswissenschaften.csl… (#4410)
bd3a5f6 Final fix for journal article cit plus other updates - uniwersytet-im-adama-mickiewicza-w-poznaniu-wydzial-anglistyki (#4417)

git-subtree-dir: src/main/resources/csl-styles
git-subtree-split: 49a1841
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 import
Projects
Archived in project
Bugs
  
Done
Development

No branches or pull requests

2 participants