This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
Error runing queries on petclinic-jdbc native image #966
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged or decided on
label
Aug 11, 2021
oclay1st
changed the title
Error building petclinic-jdbc sample with MySQL
Error runing queries on petclinic-jdbc native image
Aug 11, 2021
I managed to solve this error adding -H:+AddAllCharsets as an argumment |
snicoll
removed
the
status: waiting-for-triage
An issue we've not yet triaged or decided on
label
Dec 2, 2021
Hi, oclay1st. I had similar error with you. java.nio.charset.UnsupportedCharsetException: CP1252
at java.nio.charset.Charset.forName(Charset.java:529)
at org.apache.poi.util.LocaleUtil.<clinit>(LocaleUtil.java:56)
at org.apache.poi.ss.usermodel.DataFormatter.<init>(DataFormatter.java:242)
at org.apache.poi.ss.usermodel.DataFormatter.<init>(DataFormatter.java:233)
at org.apache.poi.ss.formula.functions.TextFunction.<clinit>(TextFunction.java:33)
at org.apache.poi.ss.formula.atp.AnalysisToolPak.createFunctionsMap(AnalysisToolPak.java:82)
at org.apache.poi.ss.formula.atp.AnalysisToolPak.<init>(AnalysisToolPak.java:47)
at org.apache.poi.ss.formula.atp.AnalysisToolPak.<clinit>(AnalysisToolPak.java:33)
at org.apache.poi.ss.formula.udf.AggregatingUDFFinder.<clinit>(AggregatingUDFFinder.java:35)
at java.lang.Class.ensureInitialized(DynamicHub.java:518)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:155)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:226)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:214) Can you tell me how to add |
Hi @baofeidyz, sorry for the delay. You can add -H:+AddAllCharsets to the native-image command or you can add It as part of the NativeHint annotation. Just something like this: @NativeHint(options = "-H:+AddAllCharsets") |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I get this error after runing a native image of petclinic-jdbc
The text was updated successfully, but these errors were encountered: