CFDocument Error Provider for class javax.xml.transform.TransformerFactory cannot be created

Description

since I upgrade my lucee from 5.3.4.80 to 5.3.5.92
when I generate pdf using cfdocument sometime I get error like:

"Provider for class javax.xml.transform.TransformerFactory cannot be created"

FYI, my pdf extention is pdf-extension-1.0.0.68

but if I run again the 2nd time, this error is gone.

Environment

None

Activity

Show:
Andri Senjaya
April 29, 2020, 10:07 AM

is it solved ?

Zac Spitzer
April 29, 2020, 10:51 AM

nope, but I think the problem may be that you are calling cfdocumentitem outside a cfdocument tag, i.e. inside the cfsavecontent?

Pothys - MitrahSoft
April 29, 2020, 11:31 AM

I've checked this ticket and confirmed the issue happened on lucee latest verion 5.3.7.16-SNAPSHOT also. Using pdf extension 1.0.0.80 throws an same error. But in pdf version 1.0.0.68 release works fine.

Andri Senjaya
May 29, 2020, 1:24 AM
Edited

For the error “org.lucee.extension.pdf.tag.DocumentItem.doStartTag“ I can solve it by change <cfdocumentitem type="pagebreak"> with css style pagebreak.

But for the error "Provider for class javax.xml.transform.TransformerFactory cannot be created"

I still have it, this error seems is not related with the pagebreak issue.

This error only happen at lucee version above 5.3.4.80

I have test with lucee:

  • 5.3.5.92 with pdf ext 1.0.0.68 and 1.0.0.80

  • 5.3.6.61 with pdf ext 1.0.0.68 and 1.0.0.80

the error "Provider for class javax.xml.transform.TransformerFactory cannot be created" will come after some hours. At the first lucee start all is good. Because of this, its hard for me to reproduce this.

FYI I set my pdf.type= classic and I use docker-commandbox 5.0 for my lucee environment.

in lucee 5.3.4.80 all is good.

Below is the error stacktrace I get from fussion reactor.

 

Andri Senjaya
May 29, 2020, 2:09 AM
Edited

I’ve got another info from my fusstionreactore the related error like:

javax.xml.transform.TransformerFactoryConfigurationError: Provider for class javax.xml.transform.TransformerFactory cannot be created

java.lang.RuntimeException: Provider for class javax.xml.transform.TransformerFactory cannot be created

java.util.ServiceConfigurationError: javax.xml.transform.TransformerFactory: Error reading configuration file

java.io.FileNotFoundException: /tmp/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl (No such file or directory)

 

maybe this can help?

Assignee

Michael Offner

Reporter

Andri Senjaya

Priority

Major

Labels

Fix versions

None

Affects versions

Configure