Hello

The library switch isn't the pb because the pdf generation is realized by fop.

Parminder, I suggest to have a look on the view PartyPrefDocTypeTplAndCustomScreen, I suppose that you have a loop on your InvoiceType definition. Maybe you instanciate the SALES_INVOICE as parent of itself and the system to resolve the screen to print failed on infinite loop

Nicolas

On 11/11/2025 23:40, Enrico Migliore wrote:
Hi,

Take a look:

<https://issues.apache.org/jira/projects/OFBIZ/issues/OFBIZ-13300?filter=allissues>

They were recently talking about replacing the PDF it ext library by LibrePDF.




On November 11, 2025 10:53:51 PM GMT+01:00, "Parminder S. 
Lehal"<[email protected]> wrote:
Hello,

I have been using Ofbiz for the last 15 years. Today I tried to create
an invoice and it failed spectacularly at pdf creation. None of the old
invoice are able to be seen as PDF either.

I was using 24.09.01 so I upgraded to 24.09.03 today...but the same
results.

The error thrown is given below, if anyone can point to right direction,
Thanks in advance..:



HTTP Status 500 – Internal Server Error

Type Exception Report

Message Servlet execution threw an exception

Description The server encountered an unexpected condition that
prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: Servlet execution threw an exception
        org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.j
ava:51)
        org.apache.ofbiz.webapp.control.SameSiteFilter.doFilter(SameSit
eFilter.java:45)
        org.apache.ofbiz.webapp.control.ContextFilter.doFilter(ContextF
ilter.java:188)
        org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlF
ilter.java:274)
        javax.servlet.http.HttpFilter.doFilter(HttpFilter.java:53)
        org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jS
ervletFilter.java:70)

Root Cause

java.lang.StackOverflowError
        org.codehaus.groovy.reflection.ParameterTypes.correctArguments(
ParameterTypes.java:151)
        org.codehaus.groovy.reflection.ParameterTypes.coerceArgumentsTo
Classes(ParameterTypes.java:136)
        org.codehaus.groovy.runtime.dgm$1154.doMethodInvoke(Unknown
Source)
        groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1254)
        groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1030)
        org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(Invo
kerHelper.java:1024)
        org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerH
elper.java:1015)
        org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformat
ion.castToBoolean(DefaultTypeTransformation.java:197)
        org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformat
ion.booleanUnbox(DefaultTypeTransformation.java:86)
        org.apache.ofbiz.commonext.template.DocTypeTemplate.getCustomSc
reenTemplate(DocTypeTemplate.groovy:33)
        org.apache.ofbiz.commonext.template.DocTypeTemplate.getCustomSc
reenTemplate(DocTypeTemplate.groovy:52)
        org.apache.ofbiz.commonext.template.DocTypeTemplate.getCustomSc
reenTemplate(DocTypeTemplate.groovy:52)
        org.apache.ofbiz.commonext.template.DocTypeTemplate.getCustomSc
reenTemplate(DocTypeTemplate.groovy:52)
        org.apache.ofbiz.commonext.template.DocTypeTemplate.getCustomSc
reenTemplate(DocTypeTemplate.groovy:52)
        org.apache.ofbiz.commonext.template.DocTypeTemplate.getCustomSc
reenTemplate(DocTypeTemplate.groovy:52)
        org.apache.ofbiz.commonext.template.DocTypeTemplate.getCustomSc
reenTemplate(DocTypeTemplate.groovy:52)
        org.apache.ofbiz.commonext.template.DocTypeTemplate.getCustomSc
reenTemplate(DocTypeTemplate.groovy:52)
        org.apache.ofbiz.commonext.template.DocTypeTemplate.getCustomSc
reenTemplate(DocTypeTemplate.groovy:52)

.........................
.........................
--


Regards,


Parminder S. Lehal

Reply via email to