I'm trying to get the Ortus PDF Lucee Extension wo...
# box-products
n
I'm trying to get the Ortus PDF Lucee Extension working, but I'm getting:
Copy code
Bad type on operand stack
Exception Details:
Location:
org/apache/pdfbox/pdmodel/PDDocument.<init>(Lorg/apache/pdfbox/io/MemoryUsageSetting;)V @224: invokevirtual
Reason:
Type 'org/apache/pdfbox/cos/COSInteger' (current frame, stack[2]) is not assignable to 'org/apache/pdfbox/cos/COSBase'
Current Frame:
bci: @224
flags: { }
locals: { 'org/apache/pdfbox/pdmodel/PDDocument', 'org/apache/pdfbox/io/MemoryUsageSetting', 'org/apache/pdfbox/io/ScratchFile', 'org/apache/pdfbox/cos/COSDictionary', 'org/apache/pdfbox/cos/COSDictionary', 'org/apache/pdfbox/cos/COSDictionary', 'org/apache/pdfbox/cos/COSArray' }
stack: { 'org/apache/pdfbox/cos/COSDictionary', 'org/apache/pdfbox/cos/COSName', 'org/apache/pdfbox/cos/COSInteger' }
Bytecode:
0000000: 2ab7 [...snip]
Exception Handler Table:
bci [28, 37] => handler: 40
bci [76, 87] => handler: 90
Stackmap Table:
full_frame(@40,{Object[#286],Object[#287],Object[#288]},{Object[#289]})
full_frame(@90,{Object[#286],Object[#287],Object[#288],Object[#289]},{Object[#289]})
chop_frame(@92,1)

The Error Occurred in
/cfc/OrtusPDF.cfc: line 193
called from /cfc/OrtusPDF.cfc: line 125
called from /cfc/OrtusPDF.cfc: line 99
called from /cfc/OrtusPDF.cfc: line 70
called from /pdfform.cfm: line 55
This is using the commandbox:latest docker image with
Copy code
javaruntime: OpenJDK Runtime Environment
javaversion: 11.0.18
servername: Lucee 5.3.10.120
Is it that this extension is using an older version of PDFBox?
b
@lmajano
l
I have never seen this before.
It’s a deep Java issue
Not sure what it is
Will investigate