[ 
https://issues.apache.org/jira/browse/OFBIZ-12735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656324#comment-17656324
 ] 

yannong huang commented on OFBIZ-12735:
---------------------------------------

Jacques,

I reproduced in 2 different environments:

1. macOS/MYSQL 8.0.31/ofbiz 22.01/ jdk 11.07
2. Windows 2022/MYSQL 8.0.31/ofbiz 22.01/ jdk 11.07

Thx

On 1/9/23, 6:42 AM, "Jacques Le Roux (Jira)" <[email protected] 
<mailto:[email protected]>> wrote:




[ 
https://issues.apache.org/jira/browse/OFBIZ-12735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656131#comment-17656131
 
<https://issues.apache.org/jira/browse/OFBIZ-12735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=17656131#comment-17656131>
 ] 


Jacques Le Roux commented on OFBIZ-12735:
-----------------------------------------


Hi Huang,


I don't reproduce on demos : trunk (CI1) nor next (8010). Could you please 
reproduce there?








--
This message was sent by Atlassian Jira
(v8.20.10#820010)


> Accounting Invoice Overview - PDF failed
> ----------------------------------------
>
>                 Key: OFBIZ-12735
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12735
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: 22.01.01
>         Environment: jdk 11.07
> macOS
>            Reporter: yannong huang
>            Priority: Major
>         Attachments: Screenshot 2023-01-08 at 10.31.30 AM.png, stacktrace.rtf
>
>
> When clicking “PDF” button in the invoice view, it failed with 
> “java.lang.StackOverflowError” (see stack trace below).
> A quick fix:  
> in def getCustomScreenTemplate(String entityTypeName, String fieldTypeValue), 
> template/DocTypeTemplate.groovy,  
> Change: 
> parentTypeValue = 
> from(entityTypeName).where().cache().queryFirst().parentTypeId 
> To: 
> String parentTypeValue = from(entityTypeName).where("invoiceTypeId", 
> fieldTypeValue).cache().queryFirst().parentTypeId



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to