Wrong character causes java.awt.IllegalComponentStateException: This component must have a parent in order to determine its locale on reports

Description

As reported by at:

https://groups.google.com/g/idempiere/c/9RDe-k0hIDQ/m/e4penE26BwAJ

 

Hi,

I have a report that cannot be executed because of a wrong character which generates a "java.awt.IllegalComponentStateException: This component must have a parent in order to determine its locale" error.

 

The reason is the presence of a specific character you can see in the attached csv (see the description, between the "l" and "avion"):

To reproduce, you just have to import the file on a Sales Order and click on the Report button.
For a draft order, is easy to replace the wrong character with the correct one.

But my concern is for processed records, as is more difficult to update.

wdyt?
What would be the best way to deal with this issue?

Thanks,

Nicolas

Environment

None

Attachments

1

Activity

Carlos Ruiz 
April 17, 2023 at 9:50 AM

Hi

Can you please test pull request 1785

I found this bug reported in OpenJDK:

https://bugs.openjdk.org/browse/JDK-8179665

and the workaround says:

“If the exception is caught in a global uncaught exception handler, it can be ignored. It doesn't seem to cause any problems.”

Regards,

Carlos Ruiz

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created April 17, 2023 at 9:47 AM
Updated June 1, 2023 at 12:17 PM
Resolved April 24, 2023 at 9:15 PM