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

"Error while generating citation style" #10676

Closed
2 tasks done
wujastyk opened this issue Nov 29, 2023 · 10 comments · Fixed by #10689 or #11103
Closed
2 tasks done

"Error while generating citation style" #10676

wujastyk opened this issue Nov 29, 2023 · 10 comments · Fixed by #10689 or #11103
Labels
bug Confirmed bugs or reports that are very likely to be bugs

Comments

@wujastyk
Copy link

JabRef version

Latest development branch build (please note build date below)

Operating system

GNU / Linux

Details on version and operating system

Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy

Checked with the latest development build (copy version output from About dialog)

  • 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

JabRef 5.12--2023-11-28--fe07c12
Linux 6.2.0-37-generic amd64
Java 21.0.1
JavaFX 21.0.1+6

  1. The Preview tab has stopped working.

image

  1. Going into preferences/entry preview shows that system has broken too:

image

Appendix

...

Log File
Paste an excerpt of your log file here
@wujastyk
Copy link
Author

wujastyk commented Dec 3, 2023

Cf. #8421

@Siedlerchr
Copy link
Member

Hm this is odd. I see that the styles are inlcuded and therefore found. Do you have an example bib entry that doesn't work?

@koppor koppor mentioned this issue Dec 4, 2023
6 tasks
@koppor
Copy link
Member

koppor commented Dec 4, 2023

On https://builds.jabref.org/pull/10682/merge (build at #10682), a custom build is available which shows more debugging hints at the output. Could you try?

@wujastyk
Copy link
Author

wujastyk commented Dec 4, 2023

JabRef 5.12-PullRequest10682.168--2023-12-04--cd3288f
Linux 6.2.0-37-generic amd64
Java 21.0.1
JavaFX 21.0.1+6

I've taken that custom build, and I get this error message in the preferences/entry preview/current preview preview window for ACM Materials Journal, the very first citation style.

This error appears for all citation styles with the exception of the default "customized preview style", which displays normally.

Error while generating citation style java.lang.NoClassDefFoundError: Could not initialize class de.undercouch.citeproc.csl.internal.SCitationLayout BibTeX (internal): @article{Smith2016, abstract = {This entry describes a test scenario which may be useful in JabRef. By providing a test entry it is possible to see how certain things will look in this graphical BIB-file mananger.}, address = {Trondheim}, author = {Smith, Bill and Jones, Bob and Williams, Jeff}, comment = {Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}, doi = {10.1001/bla.blubb}, editor = {Taylor, Phil}, file = {:testentry.pdf:PDF}, issue = {7}, journal = {BibTeX Journal}, keywords = {KeyWord1; KeyWord2; KeyWord3; Keyword4}, month = {July}, number = {3}, pages = {45--67}, publisher = {JabRef Publishing}, title = {Title of the test entry}, url = {https://github.com/JabRef}, volume = {34}, year = {2016}, _jabref_shared = {sharedId: -1, version: 1} } Stack Trace: java.lang.Exception: java.lang.NoClassDefFoundError: Could not initialize class de.undercouch.citeproc.csl.internal.SCitationLayout at org.jabref@5.12.30168/org.jabref.gui.util.DefaultTaskExecutor.convertToException(Unknown Source) at org.jabref@5.12.30168/org.jabref.gui.util.DefaultTaskExecutor.lambda$getJavaFXTask$5(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at org.jabref.merged.module@5.12.30168/javafx.event.Event.fireEvent(Unknown Source) at org.jabref.merged.module@5.12.30168/javafx.concurrent.EventHelper.fireEvent(Unknown Source) at org.jabref.merged.module@5.12.30168/javafx.concurrent.Task.fireEvent(Unknown Source) at org.jabref.merged.module@5.12.30168/javafx.concurrent.Task.setState(Unknown Source) at org.jabref.merged.module@5.12.30168/javafx.concurrent.Task$TaskCallable.lambda$call$2(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source) at org.jabref.merged.module@5.12.30168/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) at org.jabref.merged.module@5.12.30168/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$10(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: Could not initialize class de.undercouch.citeproc.csl.internal.SCitationLayout at org.jabref.merged.module@5.12.30168/de.undercouch.citeproc.csl.internal.SCitation.(Unknown Source) at org.jabref.merged.module@5.12.30168/de.undercouch.citeproc.csl.internal.SStyle.(Unknown Source) at org.jabref.merged.module@5.12.30168/de.undercouch.citeproc.CSL.loadStyle(Unknown Source) at org.jabref.merged.module@5.12.30168/de.undercouch.citeproc.CSL.(Unknown Source) at org.jabref@5.12.30168/org.jabref.logic.citationstyle.CSLAdapter.initialize(Unknown Source) at org.jabref@5.12.30168/org.jabref.logic.citationstyle.CSLAdapter.makeBibliography(Unknown Source) at org.jabref@5.12.30168/org.jabref.logic.citationstyle.CitationStyleGenerator.generateCitations(Unknown Source) at org.jabref@5.12.30168/org.jabref.logic.citationstyle.CitationStyleGenerator.generateCitation(Unknown Source) at org.jabref@5.12.30168/org.jabref.logic.citationstyle.CitationStylePreviewLayout.generatePreview(Unknown Source) at org.jabref@5.12.30168/org.jabref.gui.preview.PreviewViewer.lambda$update$4(Unknown Source) at org.jabref@5.12.30168/org.jabref.gui.util.BackgroundTask$1.call(Unknown Source) at org.jabref@5.12.30168/org.jabref.gui.util.DefaultTaskExecutor$1.call(Unknown Source) at org.jabref.merged.module@5.12.30168/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) ... 1 more Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalAccessError: class de.undercouch.citeproc.csl.internal.SCitationLayout (in module org.jabref.merged.module) cannot access class org.apache.commons.lang3.CharSet (in module org.apache.commons.lang3) because module org.jabref.merged.module does not read module org.apache.commons.lang3 [in thread "pool-1-thread-2"] at org.jabref.merged.module@5.12.30168/de.undercouch.citeproc.csl.internal.SCitationLayout.(Unknown Source) ... 19 more

@Siedlerchr
Copy link
Member

Siedlerchr commented Dec 4, 2023

org.apache.commons.lang3.CharSet (in module org.apache.commons.lang3) because module org.jabref.merged.module does not read module org.apache.commons.lang3 [in thread "pool-1-thread-2"] at

This seems to be root cause

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

@wujastyk Thanks a lot for testing, Issue found and fixed here https://builds.jabref.org/pull/10689/merge
A local test with the generated image was working for me here on my mac but would like your feedback as well

@wujastyk
Copy link
Author

wujastyk commented Dec 4, 2023

Yes, that's fixed it. Thank you so much!

JabRef, GitHub, the community - all so great! What a nice world to live in.

@github-project-automation github-project-automation bot moved this to Normal priority in Prioritization Dec 4, 2023
@github-project-automation github-project-automation bot moved this from Normal priority to Done in Prioritization Dec 4, 2023
@wujastyk
Copy link
Author

JabRef 5.13--2024-03-25--3f19b21
Linux 6.5.0-25-generic amd64
Java 21.0.2
JavaFX 22+30

Today's version of JR brings this problem again. All previews are corrupted except the default standard one, which is okay.

image

@koppor
Copy link
Member

koppor commented Mar 25, 2024

@wujastyk Thank you for reporting back so timely. The issue should be fixed in the next build (available in ~30 min at https://builds.jabref.org/main/)

@wujastyk
Copy link
Author

Working again. Thanks!

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
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants