[
https://issues.apache.org/jira/browse/OFBIZ-12734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17655677#comment-17655677
]
Jacques Le Roux commented on OFBIZ-12734:
-----------------------------------------
Thanks Huang,
I reproduce locally but I'm still unsure of the situation. Because my
environnement, including my IDE (last Eclipse), is set to use JDK 17 (WIP for
OFBIZ-12400) and I cross a lot of issues in the IDE while debugging.
Currently I get this error in log
{noformat}
2023-01-07 10:42:14,759 |jsse-nio-8443-exec-4 |ConfigXMLReader
|I| controller loaded: 0.004s, 380 requests, 153 views in
file:/C:/projectsASF/Git/ofbiz-framework/applications/order/webapp/ordermgr/WEB-INF/controller.xml
2023-01-07 10:42:14,771 |jsse-nio-8443-exec-4 |ModelScreenWidget
|E| Error rendering screenlet in screen named [invoiceOverview]:
java.io.IOException: java.lang.NullPointerException: Cannot invoke
"org.w3c.dom.Element.getAttribute(String)" because "formElement" is null
at
org.apache.ofbiz.widget.renderer.macro.MacroScreenRenderer.renderScreenletPaginateMenu(MacroScreenRenderer.java:758)
~[main/:?]
at
org.apache.ofbiz.widget.renderer.macro.MacroScreenRenderer.renderScreenletBegin(MacroScreenRenderer.java:688)
~[main/:?]
{noformat}
Please confirm you are using JDK 11, and get the same error, TIA
> Error when showing invoice of project time/material
> ---------------------------------------------------
>
> Key: OFBIZ-12734
> URL: https://issues.apache.org/jira/browse/OFBIZ-12734
> Project: OFBiz
> Issue Type: Bug
> Components: projectmgr
> Affects Versions: 22.01.01
> Environment: Release 22.01
> JDK 11.0.7
> Reporter: yannong huang
> Assignee: Jacques Le Roux
> Priority: Major
> Attachments: Screenshot 1.png, Screenshot 2.png, Screenshot 3.png
>
>
> Within the Project plugin,
> # Screenshot 1, create an invoice after entering and completing
> timesheet/time-entry. Hourly rate is set under Accounting/GL.
> # Screenshot 2, generate invoice.
> # Screenshot 3, errors happen when showing overview of the invoice.
>
> Reproduced in local environment. When commenting out the “timeEntries”
> section in the InvoiceScreens.xml, the issue seems to go away …
> <!-- section>
> <condition>
> <not><if-empty field="timeEntries"/></not>
> </condition>
> <widgets>
> <screenlet title="${uiLabelMap.AccountingInvoiceTimeEntries}"
> navigation-form-name="ListTimeEntries">
> <include-form name="ListTimeEntries"
> location="component://accounting/widget/InvoiceForms.xml"/>
> </screenlet>
> </widgets>
> </section -->
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)