PDF_image not working?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

PDF_image not working?

kimv
OS X 10.11.6 El Capitan
Java 6 (Apple legacy)
Java 8 - 1.8.0_121 (latest)
Lasso 9.3.2-b2 and 9.3.2-b4

Code sample (shortened version):

// Set permission for creating and writing PDF file
inline(-username=xxx,-password=xxx,-nothing) => {

// Create encrypted PDF document with print permissions
local(invoice) = pdf_doc(-file = #tempfile_location,
-size = 'LETTER',
-margins=(: 72.0, 72.0, 0.0, 0.0),
-useDate,
-title='Invoice',
-subject='',
-author='pnww.ca',
-ownerPassword='xxx',
-encryptStrong,
-permissions='print')

// Locate logo
local(logo_filename) = 'Logo_RGB.jpg'
local(logo_path) = '///Library/WebServer/Documents/admazing/webroot/_img/'
local(logo_file) = file(#logo_path + #logo_filename)
local(logo_image) = pdf_image(-file = #logo_path + #logo_filename)
log_critical('#logo_file exists?: ' + #logo_file->exists) // Indicates true
#invoice->add(#logo_image, -left=0.0, -top=0.0)

// Close the PDF document
#invoice->close

}


A) Lasso log from Lasso 9.3.2-b2:

Creating JVM
WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethod
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
- locked <0x0000000795586828> (a java.util.Vector)
- locked <0x0000000795586880> (a java.util.Vector)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
at java.lang.Runtime.load0(Runtime.java:809)
- locked <0x000000079559ae98> (a java.lang.Runtime)
at java.lang.System.load(System.java:1086)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
- locked <0x0000000795586828> (a java.util.Vector)
- locked <0x0000000795586880> (a java.util.Vector)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1842)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
- locked <0x000000079559ae98> (a java.lang.Runtime)
at java.lang.System.loadLibrary(System.java:1122)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1668)
at java.awt.Color.<clinit>(Color.java:275)
WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethodA
...
WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethodA
#logo_file exists?: true
WARNING in native method: JNI call made without checking exceptions when required to from CallObjectMethodA
...
WARNING in native method: JNI call made without checking exceptions when required to from CallObjectMethodA


B) Lasso log from Lasso 9.3.2-b4

Creating JVM
WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethod
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
- locked <0x0000000795586818> (a java.util.Vector)
- locked <0x0000000795586870> (a java.util.Vector)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
- locked <0x000000079559b4e0> (a java.lang.Runtime)
at java.lang.System.load(System.java:1086)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
- locked <0x0000000795586818> (a java.util.Vector)
- locked <0x0000000795586870> (a java.util.Vector)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
- locked <0x000000079559b4e0> (a java.lang.Runtime)
at java.lang.System.loadLibrary(System.java:1122)
at java.awt.Toolkit$3.run(Toolkit.java:1636)
at java.awt.Toolkit$3.run(Toolkit.java:1634)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
at java.awt.Toolkit.<clinit>(Toolkit.java:1668)
at java.awt.Color.<clinit>(Color.java:275)
WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethodA
...
WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethodA


**At one point Lasso reinitialized:

#logo_file exists?: true
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000000, pid=1269, tid=0x000000000000050f
#
# JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  0x0000000000000000
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /private/var/lasso/home/hs_err_pid1269.log // This log was emailed to Eric at Lasso

Has anyone (Jolle) experienced the same issue, and if so, what solution did you employ?

Thanks in advance for any help!!
---
Kim Vandenbroek
PacificNW Web