-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to generate CSV file after upgrading from 2.12.4 to 2.17.1 #478
Comments
|
You are using an outdated version of jackson-core. |
@yawkat Thanks for the help. The jackson-databind 2.17.1 by default adding older version of core and annotation dependencies. |
I am using jackson-dataformat-csv to generate CSV file.. previously I was using 2.12.4 version and this code to generate CSV.
FileWriter outputCpFile = new FileWriter(csvCpFile, true); PrintWriter cpWriter = new PrintWriter(outputCpFile); CsvMapper csvMapper = new CsvMapper(); CsvSchema csvSchema = csvMapper.schemaFor(CpTransactionLogs.class).withHeader(); csvMapper.enable(CsvGenerator.Feature.ALWAYS_QUOTE_EMPTY_STRINGS); String csvString = csvMapper.writer(csvSchema).writeValueAsString(transLogs); cpWriter.write(csvString);
After upgrading to 2.17.1 I'm getting following exception:
(java.lang.NoSuchMethodError) java.lang.NoSuchMethodError: 'void com.fasterxml.jackson.core.base.GeneratorBase.<init>(int, com.fasterxml.jackson.core.ObjectCodec, com.fasterxml.jackson.core.io.IOContext)'
Any workaround how to fix this issue.
Thanks in advance
The text was updated successfully, but these errors were encountered: