Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Apr 10, 2026 12:56 pm

Hi,
we have a server with 2 appication nodes, in both cases the license key is stored into the DB but in one of the two nodes when I generate a pdf this excpetion arises:

java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 39873 out of bounds for byte[1704]
at java.lang.System.arraycopy(Native Method) ~[?:?]
at com.spire.pdf.packages.sprpow.spr▏‡—(LicenseFile.java:190) ~[spire.pdf-11.9.6.jar:11.9.6]
at com.spire.pdf.packages.sprpow.spr╗†—(LicenseFile.java:40) ~[spire.pdf-11.9.6.jar:11.9.6]
at com.spire.pdf.packages.sprfuw.spr—†—(LicenseProvider.java:263) ~[spire.pdf-11.9.6.jar:11.9.6]

And it creates a 0 byte pdf,

Suggestions on the cause?

Thanks

cosimo_de
 
Posts: 2
Joined: Thu Apr 02, 2026 1:03 pm

Mon Apr 13, 2026 3:35 am

Hello,

Sorry for the delayed response due to the weekend on our end.
Our latest version of Spire.PDF for Java is 12.4.0. Please update to this version and re-test. If the issue persists, please provide us with your test code and the input/output PDF files. You can upload the files as attachments or send them to the following email address: [email protected]. We will conduct further investigation accordingly. Thank you in advance for your cooperation.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Return to Spire.PDF