Searching for the error message I found this in a comment:

https://stackoverflow.com/questions/69151291/java-16-modularisation-illegalaccessexception-java-nio-spring-boot

|--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED|


Tilman

On 15.03.2024 18:48, Matthew Hardy wrote:
Hi Andreas,

I've upgraded to pdfbox 3.0.2, I'm no longer getting the 
ExceptionInilizationError when instantiating an empty PDDocument. However, I'm 
now receiving this error message-

ERROR [org.apache.pdfbox.io.IOUtils] (EE-ManagedExecutorService-default-Thread-1) 
Unmapping is not supported.: java.lang.reflect.InaccessibleObjectException: Unable to 
make public jdk.internal.ref.Cleaner java.nio.DirectByteBuffer.cleaner() accessible: 
module java.base does not "opens java.nio" to unnamed module @18f5234c

The PDDocument still instantiates, and I'm able to use it, but I'm concerned 
about this error message.

Matt Hardy
Software Developer
Perform Air International
463 South Hamilton Court
Gilbert, Arizona 85233
Phone: (480) 610-3500
Fax: (480) 610-3501
matt.ha...@performair.com
www.PerformAir.com

-----Original Message-----
From: Andreas Lehmkühler<andr...@lehmi.de.INVALID> Sent: Tuesday, March 12, 2024 9:50 AM
To:users@pdfbox.apache.org
Subject: Re: Help with NullPointerException org.apache.io.IOUtils.LOG

Hi Matthew,

this is a known issue with 3.0.1, see [1] for further details.

The upcoming version 3.0.2 includes a fix. Unless nothing unforeseen happens, 
the new version will be available in about 2 days from now.

Andreas

[1]https://issues.apache.org/jira/browse/PDFBOX-5758


Am 12.03.24 um 17:40 schrieb Matthew Hardy:
Hello,

We've recently upgraded to pdfbox 3.0.1. When attempting to instantiate an 
empty PDDocument, we receive the following error.

Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.commons.logging.Log.error(Object, java.lang.Throwable)" because 
"org.apache.pdfbox.io.IOUtils.LOG" is null
          at 
deployment.aeroxchange-edi.ear//org.apache.pdfbox.io.IOUtils.unmapper(IOUtils.java:278)
          at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
          at
deployment.aeroxchange-edi.ear//org.apache.pdfbox.io.IOUtils.<clinit>(
IOUtils.java:64)

This is a Jakarta EE 10 EJB maven project, running on Java 17 in Wildfly 
30.0.1.Final. commons-logging 1.2 has been added as a dependency.

Any help would be greatly appreciated!

Matt Hardy
Software Developer
Perform Air International
463 South Hamilton Court
Gilbert, Arizona 85233
Phone: (480) 610-3500
Fax: (480) 610-3501
matt.ha...@performair.com<mailto:matt.ha...@performair.com>
www.PerformAir.com<http://www.performair.com/>


---------------------------------------------------------------------
To unsubscribe, e-mail:users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail:users-h...@pdfbox.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail:users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail:users-h...@pdfbox.apache.org

Reply via email to