Skip to content

BAEL-787 (updated) - AWS S3 with Java #2296

Merged
maibin merged 3 commits intoeugenp:masterfrom
ramansahasi:master
Jul 20, 2017
Merged

BAEL-787 (updated) - AWS S3 with Java #2296
maibin merged 3 commits intoeugenp:masterfrom
ramansahasi:master

Conversation

@ramansahasi
Copy link
Copy Markdown
Contributor

Replaced manual handling of stream with apache commons FileUtils library.

Replacing manual handling of stream apache commons FileUtils library.
Replacing manual handling of stream apache commons FileUtils library.
@maibin maibin merged commit eab110d into eugenp:master Jul 20, 2017
@bijums
Copy link
Copy Markdown

bijums commented Sep 19, 2017

@ramansahasi / @maibin : sorry for adding my query here, i could not find the right PR for this aws.
I am new to AWS.
could you please help me to run https://github.com/eugenp/tutorials/tree/master/aws
I have tried to to test the Hello world Lambda function by following your steps mentioned here ,

For Lambda configuration, I am giving json input for "Configure test event" as {"input":"Baeldung"}, but it is throwing below error. please help me to find the solution for this issue.I think my json input is wrong.
If so , please guide me to correct the same.

{
"errorMessage": "An error occurred during JSON parsing",
"errorType": "java.lang.RuntimeException",
"stackTrace": [],
"cause": {
"errorMessage": "com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token\n at [Source: lambdainternal.util.NativeMemoryAsInputStream@64485a47; line: 1, column: 1]",
"errorType": "java.io.UncheckedIOException",
"stackTrace": [],
"cause": {
"errorMessage": "Can not deserialize instance of java.lang.String out of START_OBJECT token\n at [Source: lambdainternal.util.NativeMemoryAsInputStream@64485a47; line: 1, column: 1]",
"errorType": "com.fasterxml.jackson.databind.JsonMappingException",
"stackTrace": [
"com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)",
"com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:857)",
"com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:62)",
"com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11)",
"com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1511)",
"com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1102)"
]
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants