PDF conversion problem (java.lang.NoSuchFieldError: KEY_OXY_FOREGROUND_IMAGE)

Post here questions and problems related to editing and publishing DITA content.
susannecm
Posts: 109
Joined: Wed Mar 17, 2010 1:04 pm

PDF conversion problem (java.lang.NoSuchFieldError: KEY_OXY_FOREGROUND_IMAGE)

Post by susannecm »

Hi,
we have just updated our publishing engine and the publishing template to version 25.
Our IT colleague tried to make a test conversion, which failed with the following error:

Code: Select all

pdf-css.chemistry.embedded:
     [echo] =============================
     [echo] Oxygen PDF Chemistry
     [echo] Installation directory: /data/oxygen/plugins/com.oxygenxml.pdf.css/lib/oxygen-pdf-chemistry
     [echo] Processing: /tmp/temp20230303184730734/stage1.xml.pp
     [echo] Output file: /data/oxygen/out_pdf/UG_Doxis4_Gateway_SmartBridgeForTeams.pdf
     [echo] =============================
     [java] INFO  OxygenPDFChemistry - oXygen PDF Chemistry version 25.0 build 2023-01-18T00:17:06Z
     [java] INFO  OxygenPDFChemistry - Max memory available: 982Mb
     [java] INFO  c - Oxygen PDF Chemistry licensed to: SER Software Technology GmbH, start date: Oct 4, 2022, license version: 24
     [java] INFO  x - CSS: file:/data/oxygen/plugins/com.oxygenxml.webhelp.responsive/oxygen-webhelp/app/topic-page-print.css
     [java] INFO  x - CSS: file:/data/oxygen/plugins/com.oxygenxml.pdf.css/css/print/p-dita.css
     [java] INFO  x - CSS: file:/data/oxygen/plugins/com.oxygenxml.editlink/pdf-css.css
     [java] INFO  x - CSS: file:/data/oxygen/plugins/SER_WebHelp_Responsive_PDF/SER_PDF.css
     [java] INFO  x - CSS: file:/data/oxygen/plugins/SER_WebHelp_Responsive_PDF/SER_CommonCustomizations.css
     [java] Exception in thread "main" java.lang.NoSuchFieldError: KEY_OXY_FOREGROUND_IMAGE
     [java] 	at com.oxygenxml.chemistry.e.z.b(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.e.z.e(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.e.z.b(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.OxygenPDFChemistry.b(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.OxygenPDFChemistry.b(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.OxygenPDFChemistry.processInternal(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.OxygenPDFChemistry$1.b(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.OxygenPDFChemistry$1.run(Unknown Source)
     [java] 	at ro.sync.security.SandboxCore.runWithConfirmation(SandboxCore.java:258)
     [java] 	at ro.sync.security.ConnectionsSandbox.runWithConnectConfirmation(ConnectionsSandbox.java:263)
     [java] 	at ro.sync.security.Sandbox.runWithConnectConfirmation(Sandbox.java:355)
     [java] 	at com.oxygenxml.chemistry.OxygenPDFChemistry.process(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.OxygenPDFChemistry.process(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.OxygenPDFChemistry.process(Unknown Source)
     [java] 	at com.oxygenxml.chemistry.OxygenPDFChemistry.main(Unknown Source)
I have no idea what to make of this error message. Local conversions with the publishing template and the XML editor work. Any ideas?
Susanne
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

Re: PDF conversion problem (java.lang.NoSuchFieldError: KEY_OXY_FOREGROUND_IMAGE)

Post by julien_lacour »

Hello Susanne,

How are you running Oxygen Publishing Engine? Inside or outside Oxygen?

Regards,
Julien
susannecm
Posts: 109
Joined: Wed Mar 17, 2010 1:04 pm

Re: PDF conversion problem (java.lang.NoSuchFieldError: KEY_OXY_FOREGROUND_IMAGE)

Post by susannecm »

Separately.
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

Re: PDF conversion problem (java.lang.NoSuchFieldError: KEY_OXY_FOREGROUND_IMAGE)

Post by julien_lacour »

Susanne,

Could you copy the full console log of this error and attach the CSS stylesheet(s) you are using? I tried on my side but cannot obtain this error.
If you don't want to share the files you can send them directly to support@oxygenxml.com.

Regards,
Julien
susannecm
Posts: 109
Joined: Wed Mar 17, 2010 1:04 pm

Re: PDF conversion problem (java.lang.NoSuchFieldError: KEY_OXY_FOREGROUND_IMAGE)

Post by susannecm »

The files are on their way via email.
susannecm
Posts: 109
Joined: Wed Mar 17, 2010 1:04 pm

Re: PDF conversion problem (java.lang.NoSuchFieldError: KEY_OXY_FOREGROUND_IMAGE)

Post by susannecm »

The problem is solved. It was caused by outdated version 24 libraries in the /data/oxygen/plugins/com.oxygenxml.pdf.css/lib/oxygen-pdf-chemistry folder. After a fresh installation, the PDF conversion works again without errors.
Post Reply