diff --git a/ChimeSMAFlow/pom.xml b/ChimeSMAFlow/pom.xml
index 6fa8a44..d8c6a04 100644
--- a/ChimeSMAFlow/pom.xml
+++ b/ChimeSMAFlow/pom.xml
@@ -23,19 +23,6 @@
1.0
-
- com.fasterxml.jackson.core
- jackson-core
-
-
- com.fasterxml.jackson.core
- jackson-annotations
-
-
- com.fasterxml.jackson.core
- jackson-databind
-
-
com.amazonaws
diff --git a/ChimeSMAFlow/src/main/java/cloud/cleo/chimesma/actions/AbstractFlow.java b/ChimeSMAFlow/src/main/java/cloud/cleo/chimesma/actions/AbstractFlow.java
index daa556e..2cfd67a 100644
--- a/ChimeSMAFlow/src/main/java/cloud/cleo/chimesma/actions/AbstractFlow.java
+++ b/ChimeSMAFlow/src/main/java/cloud/cleo/chimesma/actions/AbstractFlow.java
@@ -219,11 +219,25 @@ private Action getCurrentAction(SMARequest event) throws CloneNotSupportedExcept
return action;
}
+ /**
+ * Java 21 doesn't want to deserialize like 17 did, so we use our own mapper to handle things.
+ *
+ * @param in
+ * @param out
+ * @param cntxt
+ * @throws IOException
+ */
@Override
public void handleRequest(InputStream in, OutputStream out, Context cntxt) throws IOException {
mapper.writeValue(out, handleRequest(mapper.readValue(in, SMARequest.class), cntxt));
}
+ /**
+ * Worked direct in Java 17, but need above for 21.
+ * @param event
+ * @param cntxt
+ * @return
+ */
public final SMAResponse handleRequest(SMARequest event, Context cntxt) {
try {
log.debug(event);
diff --git a/pom.xml b/pom.xml
index 14b0b26..ca550f5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,22 +48,27 @@
pom
import
-
- software.amazon.awssdk
- netty-nio-client
-
-
- com.fasterxml.jackson.core
- jackson-core
-
-
- com.fasterxml.jackson.core
- jackson-annotations
-
-
+
+ software.amazon.awssdk
+ netty-nio-client
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+
+
+
-
+
com.amazonaws
aws-lambda-java-core
@@ -80,7 +85,7 @@
jackson-annotations
2.15.2
-
+
com.fasterxml.jackson.core
jackson-databind
2.15.2