java newbie.
Я скомпилировал с java 8
javac HelloWorld.java --release 8
и загрузил скомпилированный файл как лямбда-код aws.
Почему я получаюошибка, когда я запускаю ее в aws lambda?
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, World");
}
}
Ошибка
An error occurred during JSON parsing: java.lang.RuntimeException
java.lang.RuntimeException: An error occurred during JSON parsing
Caused by: java.io.UncheckedIOException: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: lambdainternal.util.NativeMemoryAsInputStream@ae45eb6; line: 1, column: 1]
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: lambdainternal.util.NativeMemoryAsInputStream@ae45eb6; line: 1, column: 1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)