| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
LTGM
Sorry, something went wrong.
|
With this update, I have the following error : java.io.UncheckedIOException: com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Joda date/time type `org.joda.time.DateTime` not supported by default: add Module "com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.datatype:jackson-datatype-joda" to enable handling at [Source: (BufferedInputStream); line: 13, column: 22] (through reference chain: com.amazonaws.services.lambda.runtime.events.SNSEvent["Records"]->java.util.ArrayList[0]->com.amazonaws.services.lambda.runtime.events.SNSEvent$SNSRecord["Sns"]->com.amazonaws.services.lambda.runtime.events.SNSEvent$SNS["Timestamp"]) When adding the following dependency: <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
<version>2.14.0</version>
</dependency>
and adding the JodaModule in com.amazonaws.services.lambda.runtime.serialization.events.LambdaEventSerializers: factory.getMapper().registerModules(new DateModule(), new DateTimeModule(classLoader), new JodaModule()); I have the following one: java.io.UncheckedIOException:
com.amazonaws.lambda.thirdparty.com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `org.joda.time.DateTime` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('2020-10-08T16:06:14.656Z')
at [Source: (BufferedInputStream); line: 13, column: 22] (through reference chain: com.amazonaws.services.lambda.runtime.events.SNSEvent["Records"]->java.util.ArrayList[0]->com.amazonaws.services.lambda.runtime.events.SNSEvent$SNSRecord["Sns"]->com.amazonaws.services.lambda.runtime.events.SNSEvent$SNS["Timestamp"])
Am I missing something? |
Sorry, something went wrong.
|
thanks for reporting that, do you mind sharing a unit test for this? |
Sorry, something went wrong.
|
if you update aws-lambda-java-tests with this new version and run tests, you'll get it. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description of changes:
Update Jackson dependencies, junit version, owasp plugin version
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.