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

Exception when generating preview for unknown entry types (Other) #9947

Closed
2 tasks done
Siedlerchr opened this issue May 24, 2023 · 0 comments · Fixed by #9948
Closed
2 tasks done

Exception when generating preview for unknown entry types (Other) #9947

Siedlerchr opened this issue May 24, 2023 · 0 comments · Fixed by #9948

Comments

@Siedlerchr
Copy link
Member

JabRef version

Latest development branch build (please note build date below)

Operating system

macOS

Details on version and operating system

13.1

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

  1. add the following entry
@Other{Keeler1998,
 author       = {Keeler, James},
 file         = {:Keeler NMR Lectures.pdf:PDF},
 howpublished = {Online PDF of Lectures},
 note         = {HC},
 owner        = {Frey},
 timestamp    = {2009.11.23},
 title        = {Introduction to NMR},
 url          = {http://www-keeler.ch.cam.ac.uk/lectures/},
 year         = {1998},
}

  1. Switch back and forth to generate the preview
  2. See exception in log and no preview rendered:

ROR: Error while generating citation style: java.lang.UnsupportedOperationException
	at java.base/java.util.Collections$UnmodifiableCollection.addAll(Collections.java:1077)
	at org.jabref/org.jabref.logic.citationstyle.JabRefItemDataProvider.bibEntryToCSLItemData(JabRefItemDataProvider.java:151)
	at org.jabref/org.jabref.logic.citationstyle.JabRefItemDataProvider.lambda$11(JabRefItemDataProvider.java:191)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1602)
	at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)
	at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:647)
	at org.jabref/org.jabref.logic.citationstyle.JabRefItemDataProvider.retrieveItem(JabRefItemDataProvider.java:192)
	at [email protected]/de.undercouch.citeproc.CSL.registerItems(CSL.java:570)
	at [email protected]/de.undercouch.citeproc.CSL.registerCitationItems(CSL.java:720)
	at [email protected]/de.undercouch.citeproc.CSL.registerCitationItems(CSL.java:703)
	at org.jabref/org.jabref.logic.citationstyle.CSLAdapter.makeBibliography(CSLAdapter.java:48)
	at org.jabref/org.jabref.logic.citationstyle.CitationStyleGenerator.generateCitations(CitationStyleGenerator.java:62)
	at org.jabref/org.jabref.logic.citationstyle.CitationStyleGenerator.generateCitation(CitationStyleGenerator.java:52)
	at org.jabref/org.jabref.logic.citationstyle.CitationStylePreviewLayout.generatePreview(CitationStylePreviewLayout.java:19)
	at org.jabref/org.jabref.gui.preview.PreviewViewer.lambda$5(PreviewViewer.java:255)
	at org.jabref/org.jabref.gui.util.BackgroundTask$1.call(BackgroundTask.java:60)
	at org.jabref/org.jabref.gui.util.DefaultTaskExecutor$1.call(DefaultTaskExecutor.java:161)
	at javafx.graphics@20/javafx.concurrent.Task$TaskCallable.call(Task.java:1426)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1589) 


Appendix

...

Log File
Paste an excerpt of your log file here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant