I cannot connect to Corda nodes from an external application

I have a Coda development environment running: a notary and a single node with some cordapps installed on it. I also have a separate web server project (using Ktor) that should connect to Corda nodes. The problem is that when I get to the web server endpoint that is supposed to create the RPC connection and return some data from the node, it fails and the following is thrown in the console:

Aug 31, 2022 10:34:03 AM org.jboss.logmanager.JBossLoggerFinder getLogger
ERROR: The LogManager accessed before the "java.util.logging.manager" system property was set to "org.jboss.logmanager.LogManager". Results may be unexpected.
2022-08-31 10:34:03.700 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.BooleanConverter - Setting default value: false
2022-08-31 10:34:03.701 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.BooleanConverter - Converting 'Boolean' value 'false' to type 'Boolean'
2022-08-31 10:34:03.701 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.BooleanConverter -     No conversion required, value is already a Boolean
2022-08-31 10:34:03.703 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ByteConverter - Setting default value: 0
2022-08-31 10:34:03.704 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ByteConverter - Converting 'Integer' value '0' to type 'Byte'
2022-08-31 10:34:03.705 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ByteConverter -     Converted to Byte value '0'
2022-08-31 10:34:03.706 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.CharacterConverter - Setting default value:  
2022-08-31 10:34:03.706 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.CharacterConverter - Converting 'Character' value ' ' to type 'Character'
2022-08-31 10:34:03.706 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.CharacterConverter -     No conversion required, value is already a Character
2022-08-31 10:34:03.707 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.DoubleConverter - Setting default value: 0
2022-08-31 10:34:03.707 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.DoubleConverter - Converting 'Integer' value '0' to type 'Double'
2022-08-31 10:34:03.708 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.DoubleConverter -     Converted to Double value '0.0'
2022-08-31 10:34:03.711 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.FloatConverter - Setting default value: 0
2022-08-31 10:34:03.717 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.FloatConverter - Converting 'Integer' value '0' to type 'Float'
2022-08-31 10:34:03.719 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.FloatConverter -     Converted to Float value '0.0'
2022-08-31 10:34:03.721 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.IntegerConverter - Setting default value: 0
2022-08-31 10:34:03.722 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.IntegerConverter - Converting 'Integer' value '0' to type 'Integer'
2022-08-31 10:34:03.722 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.IntegerConverter -     No conversion required, value is already a Integer
2022-08-31 10:34:03.722 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.LongConverter - Setting default value: 0
2022-08-31 10:34:03.723 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.LongConverter - Converting 'Integer' value '0' to type 'Long'
2022-08-31 10:34:03.723 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.LongConverter -     Converted to Long value '0'
2022-08-31 10:34:03.724 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ShortConverter - Setting default value: 0
2022-08-31 10:34:03.724 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ShortConverter - Converting 'Integer' value '0' to type 'Short'
2022-08-31 10:34:03.724 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ShortConverter -     Converted to Short value '0'
2022-08-31 10:34:03.726 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.BigDecimalConverter - Setting default value: 0.0
2022-08-31 10:34:03.727 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.BigDecimalConverter - Converting 'BigDecimal' value '0.0' to type 'BigDecimal'
2022-08-31 10:34:03.727 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.BigDecimalConverter -     No conversion required, value is already a BigDecimal
2022-08-31 10:34:03.728 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.BigIntegerConverter - Setting default value: 0
2022-08-31 10:34:03.728 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.BigIntegerConverter - Converting 'BigInteger' value '0' to type 'BigInteger'
2022-08-31 10:34:03.728 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.BigIntegerConverter -     No conversion required, value is already a BigInteger
2022-08-31 10:34:03.728 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.BooleanConverter - Setting default value: false
2022-08-31 10:34:03.728 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.BooleanConverter - Converting 'Boolean' value 'false' to type 'Boolean'
2022-08-31 10:34:03.728 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.BooleanConverter -     No conversion required, value is already a Boolean
2022-08-31 10:34:03.728 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ByteConverter - Setting default value: 0
2022-08-31 10:34:03.728 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ByteConverter - Converting 'Integer' value '0' to type 'Byte'
2022-08-31 10:34:03.728 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ByteConverter -     Converted to Byte value '0'
2022-08-31 10:34:03.735 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.CharacterConverter - Setting default value:  
2022-08-31 10:34:03.735 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.CharacterConverter - Converting 'Character' value ' ' to type 'Character'
2022-08-31 10:34:03.735 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.c.CharacterConverter -     No conversion required, value is already a Character
2022-08-31 10:34:03.736 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.DoubleConverter - Setting default value: 0
2022-08-31 10:34:03.736 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.DoubleConverter - Converting 'Integer' value '0' to type 'Double'
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.DoubleConverter -     Converted to Double value '0.0'
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.FloatConverter - Setting default value: 0
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.FloatConverter - Converting 'Integer' value '0' to type 'Float'
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.FloatConverter -     Converted to Float value '0.0'
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.IntegerConverter - Setting default value: 0
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.IntegerConverter - Converting 'Integer' value '0' to type 'Integer'
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.IntegerConverter -     No conversion required, value is already a Integer
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.LongConverter - Setting default value: 0
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.LongConverter - Converting 'Integer' value '0' to type 'Long'
2022-08-31 10:34:03.737 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.LongConverter -     Converted to Long value '0'
2022-08-31 10:34:03.738 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ShortConverter - Setting default value: 0
2022-08-31 10:34:03.738 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ShortConverter - Converting 'Integer' value '0' to type 'Short'
2022-08-31 10:34:03.738 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ShortConverter -     Converted to Short value '0'
2022-08-31 10:34:03.739 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.StringConverter - Setting default value: 
2022-08-31 10:34:03.739 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.StringConverter - Converting 'String' value '' to type 'String'
2022-08-31 10:34:03.755 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Z@68e6c059
2022-08-31 10:34:03.755 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'boolean[]' value '[Z@68e6c059' to type 'boolean[]'
2022-08-31 10:34:03.756 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a boolean[]
2022-08-31 10:34:03.756 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [B@54e0ae50
2022-08-31 10:34:03.757 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'byte[]' value '[B@54e0ae50' to type 'byte[]'
2022-08-31 10:34:03.757 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a byte[]
2022-08-31 10:34:03.757 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [C@5e7498fa
2022-08-31 10:34:03.758 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'char[]' value '[C@5e7498fa' to type 'char[]'
2022-08-31 10:34:03.758 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a char[]
2022-08-31 10:34:03.758 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [D@44ae96a2
2022-08-31 10:34:03.758 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'double[]' value '[D@44ae96a2' to type 'double[]'
2022-08-31 10:34:03.759 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a double[]
2022-08-31 10:34:03.759 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [F@1a947266
2022-08-31 10:34:03.759 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'float[]' value '[F@1a947266' to type 'float[]'
2022-08-31 10:34:03.759 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a float[]
2022-08-31 10:34:03.759 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [I@4bd7dd4a
2022-08-31 10:34:03.760 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'int[]' value '[I@4bd7dd4a' to type 'int[]'
2022-08-31 10:34:03.760 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a int[]
2022-08-31 10:34:03.760 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [J@319e2f82
2022-08-31 10:34:03.760 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'long[]' value '[J@319e2f82' to type 'long[]'
2022-08-31 10:34:03.760 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a long[]
2022-08-31 10:34:03.761 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [S@1b5a495
2022-08-31 10:34:03.761 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'short[]' value '[S@1b5a495' to type 'short[]'
2022-08-31 10:34:03.761 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a short[]
2022-08-31 10:34:03.761 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.math.BigDecimal;@388bf187
2022-08-31 10:34:03.761 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'BigDecimal[]' value '[Ljava.math.BigDecimal;@388bf187' to type 'BigDecimal[]'
2022-08-31 10:34:03.761 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a BigDecimal[]
2022-08-31 10:34:03.762 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.math.BigInteger;@de18244
2022-08-31 10:34:03.762 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'BigInteger[]' value '[Ljava.math.BigInteger;@de18244' to type 'BigInteger[]'
2022-08-31 10:34:03.762 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a BigInteger[]
2022-08-31 10:34:03.762 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.Boolean;@46bcd404
2022-08-31 10:34:03.762 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Boolean[]' value '[Ljava.lang.Boolean;@46bcd404' to type 'Boolean[]'
2022-08-31 10:34:03.762 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Boolean[]
2022-08-31 10:34:03.763 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.Byte;@10e8a099
2022-08-31 10:34:03.763 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Byte[]' value '[Ljava.lang.Byte;@10e8a099' to type 'Byte[]'
2022-08-31 10:34:03.763 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Byte[]
2022-08-31 10:34:03.763 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.Character;@51860bf3
2022-08-31 10:34:03.763 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Character[]' value '[Ljava.lang.Character;@51860bf3' to type 'Character[]'
2022-08-31 10:34:03.764 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Character[]
2022-08-31 10:34:03.764 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.Double;@71bae933
2022-08-31 10:34:03.764 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Double[]' value '[Ljava.lang.Double;@71bae933' to type 'Double[]'
2022-08-31 10:34:03.764 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Double[]
2022-08-31 10:34:03.764 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.Float;@62c56655
2022-08-31 10:34:03.764 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Float[]' value '[Ljava.lang.Float;@62c56655' to type 'Float[]'
2022-08-31 10:34:03.764 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Float[]
2022-08-31 10:34:03.765 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.Integer;@2528a240
2022-08-31 10:34:03.765 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Integer[]' value '[Ljava.lang.Integer;@2528a240' to type 'Integer[]'
2022-08-31 10:34:03.765 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Integer[]
2022-08-31 10:34:03.765 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.Long;@75264482
2022-08-31 10:34:03.765 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Long[]' value '[Ljava.lang.Long;@75264482' to type 'Long[]'
2022-08-31 10:34:03.765 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Long[]
2022-08-31 10:34:03.766 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.Short;@3c1863bd
2022-08-31 10:34:03.766 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Short[]' value '[Ljava.lang.Short;@3c1863bd' to type 'Short[]'
2022-08-31 10:34:03.766 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Short[]
2022-08-31 10:34:03.766 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.String;@568cc20b
2022-08-31 10:34:03.766 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'String[]' value '[Ljava.lang.String;@568cc20b' to type 'String[]'
2022-08-31 10:34:03.766 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a String[]
2022-08-31 10:34:03.775 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.lang.Class;@36d65038
2022-08-31 10:34:03.776 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Class[]' value '[Ljava.lang.Class;@36d65038' to type 'Class[]'
2022-08-31 10:34:03.777 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Class[]
2022-08-31 10:34:03.777 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.util.Date;@71130034
2022-08-31 10:34:03.777 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Date[]' value '[Ljava.util.Date;@71130034' to type 'Date[]'
2022-08-31 10:34:03.777 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Date[]
2022-08-31 10:34:03.777 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.util.Calendar;@3e45976c
2022-08-31 10:34:03.777 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'Calendar[]' value '[Ljava.util.Calendar;@3e45976c' to type 'Calendar[]'
2022-08-31 10:34:03.777 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a Calendar[]
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.io.File;@53edf2ca
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'java.io.File[]' value '[Ljava.io.File;@53edf2ca' to type 'java.io.File[]'
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a java.io.File[]
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.sql.Date;@32b0ba4
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'java.sql.Date[]' value '[Ljava.sql.Date;@32b0ba4' to type 'java.sql.Date[]'
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a java.sql.Date[]
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.sql.Time;@37cacaf3
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'java.sql.Time[]' value '[Ljava.sql.Time;@37cacaf3' to type 'java.sql.Time[]'
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a java.sql.Time[]
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.sql.Timestamp;@4589ed6e
2022-08-31 10:34:03.778 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'java.sql.Timestamp[]' value '[Ljava.sql.Timestamp;@4589ed6e' to type 'java.sql.Timestamp[]'
2022-08-31 10:34:03.779 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a java.sql.Timestamp[]
2022-08-31 10:34:03.779 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Setting default value: [Ljava.net.URL;@478cf698
2022-08-31 10:34:03.779 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter - Converting 'java.net.URL[]' value '[Ljava.net.URL;@478cf698' to type 'java.net.URL[]'
2022-08-31 10:34:03.779 [eventLoopGroupProxy-4-1] DEBUG o.a.c.b.converters.ArrayConverter -     No conversion required, value is already a java.net.URL[]
2022-08-31 10:34:05.074 [eventLoopGroupProxy-4-1] DEBUG n.c.c.r.i.RPCClientProxyHandler - Client address: rpc.client.user1.8876294823212557526
2022-08-31 10:34:05.225 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class rx.Observable"
2022-08-31 10:34:05.228 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="interface net.corda.core.concurrent.CordaFuture"
2022-08-31 10:34:05.232 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class rx.Notification"
2022-08-31 10:34:05.232 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="interface java.security.PublicKey"
2022-08-31 10:34:05.237 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.lang.Throwable"
2022-08-31 10:34:05.237 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.lang.StackTraceElement"
2022-08-31 10:34:05.239 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.math.BigDecimal"
2022-08-31 10:34:05.239 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.math.BigInteger"
2022-08-31 10:34:05.241 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.util.Currency"
2022-08-31 10:34:05.242 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class net.corda.core.utilities.OpaqueBytesSubSequence"
2022-08-31 10:34:05.243 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.time.Instant"
2022-08-31 10:34:05.244 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.time.Duration"
2022-08-31 10:34:05.247 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.time.LocalDate"
2022-08-31 10:34:05.251 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.time.LocalDateTime"
2022-08-31 10:34:05.251 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.time.LocalDate"
2022-08-31 10:34:05.251 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.time.LocalTime"
2022-08-31 10:34:05.252 [eventLoopGroupProxy-4-1] TRACE n.c.s.i.a.CachingCustomSerializerRegistry - action="Registering custom serializer", class="class java.time.LocalTime"
2022-08-31 10:34:05.354 [eventLoopGroupProxy-4-1] DEBUG n.c.c.rpc.internal.DistributionMux - Not distributing onDisconnect as connection never been established
2022-08-31 10:34:05.369 [eventLoopGroupProxy-4-1] INFO  n.c.client.rpc.internal.RPCClient - Failed Startup took 1702 msec
2022-08-31 10:34:05.384 [eventLoopGroupProxy-4-1] ERROR Application - Unhandled: GET - /customer
java.lang.ExceptionInInitializerError: null
	at net.corda.serialization.internal.amqp.AMQPSerializationScheme.registerCustomSerializers(AMQPSerializationScheme.kt:179)
	at net.corda.serialization.internal.amqp.AbstractAMQPSerializationScheme.registerCustomSerializers(AMQPSerializationScheme.kt:83)
	at net.corda.serialization.internal.amqp.AbstractAMQPSerializationScheme.access$registerCustomSerializers(AMQPSerializationScheme.kt:44)
	at net.corda.serialization.internal.amqp.AbstractAMQPSerializationScheme$getSerializerFactory$1.apply(AMQPSerializationScheme.kt:136)
	at net.corda.serialization.internal.amqp.AbstractAMQPSerializationScheme$getSerializerFactory$1.apply(AMQPSerializationScheme.kt:44)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2406)
	at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1916)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2404)
	at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2387)
	at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:108)
	at net.corda.serialization.internal.amqp.AbstractAMQPSerializationScheme.getSerializerFactory(AMQPSerializationScheme.kt:128)
	at net.corda.serialization.internal.amqp.AbstractAMQPSerializationScheme.serialize(AMQPSerializationScheme.kt:160)
	at net.corda.serialization.internal.SerializationFactoryImpl$serialize$1$1.invoke(SerializationScheme.kt:139)
	at net.corda.serialization.internal.SerializationFactoryImpl$serialize$1$1.invoke(SerializationScheme.kt:86)
	at net.corda.core.serialization.SerializationFactory.withCurrentContext(SerializationAPI.kt:78)
	at net.corda.serialization.internal.SerializationFactoryImpl$serialize$1.invoke(SerializationScheme.kt:139)
	at net.corda.serialization.internal.SerializationFactoryImpl$serialize$1.invoke(SerializationScheme.kt:86)
	at net.corda.core.serialization.SerializationFactory.asCurrent(SerializationAPI.kt:93)
	at net.corda.serialization.internal.SerializationFactoryImpl.serialize(SerializationScheme.kt:139)
	at net.corda.core.serialization.SerializationAPIKt.serialize(SerializationAPI.kt:337)
	at net.corda.core.serialization.SerializationAPIKt.serialize$default(SerializationAPI.kt:336)
	at net.corda.client.rpc.internal.RPCClientProxyHandler.invoke(RPCClientProxyHandler.kt:334)
	at jdk.proxy2/jdk.proxy2.$Proxy13.getProtocolVersion(Unknown Source)
	at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:108)
	at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:36)
	at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:228)
	at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:218)
	at net.corda.client.rpc.internal.RPCClient.start(RPCClient.kt:81)
	at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:587)
	at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:542)
	at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:496)
	at net.corda.client.rpc.CordaRPCClient.start$default(CordaRPCClient.kt:494)
	at ktor.routes.CustomerRoutesKt$customerRouting$1$1.invokeSuspend(CustomerRoutes.kt:19)

The following is my build.gradle file for the web server project:

plugins {
    // Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
    id 'org.jetbrains.kotlin.jvm' version '1.7.10'

    // Apply the application plugin to add support for building a CLI application in Java.
    id 'application'
    id 'io.ktor.plugin' version '2.1.0'
    id 'org.jetbrains.kotlin.plugin.serialization' version '1.7.10'
}

repositories {
    // Use Maven Central for resolving dependencies.
    mavenCentral()

    // used to download corda-rpc deps
    maven { url 'https://software.r3.com/artifactory/corda' }
}

dependencies {
    // Align versions of all Kotlin components
    implementation platform('org.jetbrains.kotlin:kotlin-bom')

    // Use the Kotlin JDK 8 standard library.
    implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'

    // This dependency is used by the application.
    implementation 'com.google.guava:guava:31.0.1-jre'

    // required to run app
    implementation "io.ktor:ktor-server-core:2.1.0"
    implementation "io.ktor:ktor-server-netty:2.1.0"
    implementation "ch.qos.logback:logback-classic:1.2.11"

//    implementation "org.apache.logging.log4j:log4j-slf4j-impl:2.17.1"
//    implementation "org.apache.logging.log4j:log4j-web:2.17.1"
//    implementation "org.slf4j:jul-to-slf4j:2.0.0"

    implementation "net.corda:corda-rpc:4.9.2"

    // plugins
    implementation "io.ktor:ktor-server-content-negotiation:2.1.0"
    implementation "io.ktor:ktor-serialization-kotlinx-json:2.1.0"
}

testing {
    suites {
        // Configure the built-in test suite
        test {
            // Use Kotlin Test test framework
            useKotlinTest()
        }
    }
}

application {
    // Define the main class for the application.
    getMainClass().set('io.ktor.server.netty.EngineMain')
}

This is the deployNodes task defined in the cordapp project:

task deployNodes(type: Cordform, dependsOn: ['jar']) {
    nodeDefaults {
        projectCordapp {
            deploy = false
        }
        runSchemaMigration = true
    }

    node {
        name "O=Notary,L=London,C=GB"
        notary = [validating : true]
        p2pPort 10002
        rpcSettings {
            address("localhost:10003")
            adminAddress("localhost:10023")
        }
        sshdPort 2222
    }
    node {
        name "O=PartyA,L=London,C=GB"
        p2pPort 10005
        rpcSettings {
            address("localhost:10006")
            adminAddress("localhost:10024")
        }
        cordapp project(":workflows")
        cordapp project(":contracts")
        cordapp "com.r3.corda.lib.tokens:tokens-workflows:1.2.3"
        cordapp "com.r3.corda.lib.tokens:tokens-contracts:1.2.3"
        rpcUsers = [[user: "user1", "password": "test", "permissions": ["ALL"]]]
        sshdPort 2223
    }
}

And this is the code trying to make the RPC connection:

fun Route.customerRouting() {
    route("/customer") {
        get {
             try {
                  val rpcAddress = NetworkHostAndPort("localhost", 10006)
                  val rpcClient = CordaRPCClient(rpcAddress)
                  val rpcConnection = rpcClient.start("user1", "test")

                  val proxy = rpcConnection.proxy

                  call.respond(proxy.nodeInfo().legalIdentities.first().name)
             } catch (e: Exception) {
                  call.respondText("exception")
             }
        }
    }
}