Skip to content

java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.io.IOUtils #11397

@ryan-carpenter

Description

@ryan-carpenter

JabRef version

Latest development branch build (please note build date below)

Operating system

GNU / Linux

Details on version and operating system

openSUSE Tumbleweed with KDE Plasma 6.0.5

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

  1. Create new library
  2. File > Import > Import to current library
  3. Pick a file (PubMed text format)
  4. Wait for references to populate importer window.
  5. Exception, and no references are shown in the window

Appendix

...

Log File
java.lang.Exception: java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.io.IOUtils
	at org.jabref@5.14.190/org.jabref.gui.util.UiTaskExecutor.convertToException(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.util.UiTaskExecutor.lambda$getJavaFXTask$5(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at javafx.base@22.0.1/javafx.event.Event.fireEvent(Unknown Source)
	at javafx.graphics@22.0.1/javafx.concurrent.EventHelper.fireEvent(Unknown Source)
	at javafx.graphics@22.0.1/javafx.concurrent.Task.fireEvent(Unknown Source)
	at javafx.graphics@22.0.1/javafx.concurrent.Task.setState(Unknown Source)
	at javafx.graphics@22.0.1/javafx.concurrent.Task$TaskCallable.lambda$call$2(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication.enterNestedEventLoopImpl(Native Method)
	at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication._enterNestedEventLoop(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.glass.ui.Application.enterNestedEventLoop(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.glass.ui.EventLoop.enter(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(Unknown Source)
	at javafx.graphics@22.0.1/javafx.stage.Stage.showAndWait(Unknown Source)
	at javafx.controls@22.0.1/javafx.scene.control.HeavyweightDialog.showAndWait(Unknown Source)
	at javafx.controls@22.0.1/javafx.scene.control.Dialog.showAndWait(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.JabRefDialogService.showCustomDialogAndWait(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.importer.ImportCommand.importSingleFile(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.importer.ImportCommand.lambda$execute$0(Unknown Source)
	at java.base/java.util.Optional.ifPresent(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.importer.ImportCommand.execute(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.actions.JabRefAction.lambda$new$1(Unknown Source)
	at org.jabref.merged.module@5.14.190/org.controlsfx.control.action.Action.handle(Unknown Source)
	at org.jabref.merged.module@5.14.190/org.controlsfx.control.action.Action.handle(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at javafx.base@22.0.1/javafx.event.Event.fireEvent(Unknown Source)
	at javafx.controls@22.0.1/javafx.scene.control.MenuItem.fire(Unknown Source)
	at javafx.controls@22.0.1/com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.doSelect(Unknown Source)
	at javafx.controls@22.0.1/com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.lambda$createChildren$12(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at javafx.base@22.0.1/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at javafx.base@22.0.1/javafx.event.Event.fireEvent(Unknown Source)
	at javafx.graphics@22.0.1/javafx.scene.Scene$MouseHandler.process(Unknown Source)
	at javafx.graphics@22.0.1/javafx.scene.Scene.processMouseEvent(Unknown Source)
	at javafx.graphics@22.0.1/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.glass.ui.View.notifyMouse(Unknown Source)
	at javafx.graphics@22.0.1/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
	at javafx.graphics@22.0.1/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 org.apache.pdfbox.io.IOUtils
	at org.jabref.merged.module@5.14.190/org.apache.pdfbox.Loader.loadPDF(Unknown Source)
	at org.jabref@5.14.190/org.jabref.logic.xmp.XmpUtilReader.loadWithAutomaticDecryption(Unknown Source)
	at org.jabref@5.14.190/org.jabref.logic.xmp.XmpUtilReader.readXmp(Unknown Source)
	at org.jabref@5.14.190/org.jabref.logic.xmp.XmpUtilShared.hasMetadata(Unknown Source)
	at org.jabref@5.14.190/org.jabref.logic.importer.fileformat.PdfXmpImporter.isRecognizedFormat(Unknown Source)
	at org.jabref@5.14.190/org.jabref.logic.importer.ImportFormatReader.lambda$importUnknownFormat$1(Unknown Source)
	at org.jabref@5.14.190/org.jabref.logic.importer.ImportFormatReader.importUnknownFormat(Unknown Source)
	at org.jabref@5.14.190/org.jabref.logic.importer.ImportFormatReader.importUnknownFormat(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.importer.ImportCommand.doImport(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.importer.ImportCommand.lambda$importSingleFile$1(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.util.BackgroundTask$1.call(Unknown Source)
	at org.jabref@5.14.190/org.jabref.gui.util.UiTaskExecutor$1.call(Unknown Source)
	at javafx.graphics@22.0.1/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 org.apache.pdfbox.io.IOUtils (in module org.jabref.merged.module) cannot access class org.apache.commons.logging.LogFactory (in module org.apache.commons.logging) because module org.jabref.merged.module does not read module org.apache.commons.logging [in thread "pool-2-thread-3"]
	at org.jabref.merged.module@5.14.190/org.apache.pdfbox.io.IOUtils.<clinit>(Unknown Source)
	... 19 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions