Fork me on GitHub
#datomic
<
2024-03-02
>
az19:03:18

Hi everyone. I'm hitting a dependency conflict issue with ions. Using a recent version of Reitit with Jsonista, which requires Jackson version greater than 2.13 at least it seems. Datomic Cloud seems to be using Jackson 2.12.3. Any advice on how to resolve these types of conflicts?

az19:03:56

From cloudwatch

{
    "Msg": "LoadIonsFailed",
    "Ex": {
        "Via": [
            {
                "Type": "clojure.lang.Compiler$CompilerException",
                "Message": "Syntax error compiling . at (jsonista/core.clj:149:19).",
                "Data": {
                    "ClojureErrorPhase": "CompileSyntaxCheck",
                    "ClojureErrorLine": 149,
                    "ClojureErrorColumn": 19,
                    "ClojureErrorSource": "jsonista/core.clj",
                    "ClojureErrorSymbol": "."
                },
                "At": [
                    "clojure.lang.Compiler",
                    "analyzeSeq",
                    "Compiler.java",
                    7132
                ]
            },
            {
                "Type": "java.lang.NoClassDefFoundError",
                "Message": "com/fasterxml/jackson/core/exc/StreamWriteException",
                "At": [
                    "java.lang.Class",
                    "getDeclaredMethods0",
                    "Class.java",
                    -2
                ]
            },
            {
                "Type": "java.lang.ClassNotFoundException",
                "Message": "com.fasterxml.jackson.core.exc.StreamWriteException",
                "At": [
                    "jdk.internal.loader.BuiltinClassLoader",
                    "loadClass",
                    "BuiltinClassLoader.java",
                    641
                ]
            }
        ],
A similar issue on that missing class https://github.com/FasterXML/jackson-core/issues/797

joshkh21:03:41

plus_one for this. we’re getting the same Syntax error compiling . at (jsonista/core.clj:149:19). error when deploying our app using metosin/reitit {:mvn/version "0.7.0-alpha7"}. we’ve tried bumping jsonista down to 0.3.3 which depends on jackson 2.12.3 (https://github.com/metosin/jsonista/blob/master/CHANGELOG.md#033-2021-05-02), the same as the Ions override, without any luck and we haven’t yet found the magic recipe of dependency exclusions to reproduce the problem locally. any help getting the latest reitit / malli deployed to Ions would be much appreciated.

joshkh21:03:41

plus_one for this. we’re getting the same Syntax error compiling . at (jsonista/core.clj:149:19). error when deploying our app using metosin/reitit {:mvn/version "0.7.0-alpha7"}. we’ve tried bumping jsonista down to 0.3.3 which depends on jackson 2.12.3 (https://github.com/metosin/jsonista/blob/master/CHANGELOG.md#033-2021-05-02), the same as the Ions override, without any luck and we haven’t yet found the magic recipe of dependency exclusions to reproduce the problem locally. any help getting the latest reitit / malli deployed to Ions would be much appreciated.