我使用Ignite缓存。我有一个在服务器上运行的服务器节点,几个远程客户端节点和一个在本地的客户端节点。当我运行spring启动应用程序的jar文件时,它会给出和class o.a.i.IgniteCheckedException: Failed to deserialize object with given class loader: org.springframework.boot.loader.LaunchedURLClassLoader@5010be6
我检查了其他客户端节点,所有这些节点都连接到了服务器。因此,我的jar文件没有运行。我附上这个错误的日志。
2021-04-28 12:07:50.170 WARN [project,,,] 2263 --- [project] o.a.i.spi.discovery.tcp.TcpDiscoverySpi : Failed to reconnect to cluster (will retry): class o.a.i.IgniteCheckedException: Failed to deserialize object with given class loader: org.springframework.boot.loader.LaunchedURLClassLoader@5010be6
2021-04-28 12:08:20.969 WARN [project,,,] 2263 --- [project] o.a.i.spi.discovery.tcp.TcpDiscoverySpi : Failed to reconnect to cluster (will retry): class o.a.i.IgniteCheckedException: Failed to deserialize object with given class loader: org.springframework.boot.loader.LaunchedURLClassLoader@5010be6
2021-04-28 12:08:53.732 WARN [project,,,] 2263 --- [project] o.a.i.spi.discovery.tcp.TcpDiscoverySpi : Failed to reconnect to cluster (will retry): class o.a.i.IgniteCheckedException: Failed to deserialize object with given class loader: org.springframework.boot.loader.LaunchedURLClassLoader@5010be6
2021-04-28 12:09:27.436 WARN [athens,,,] 2263 --- [project] o.a.i.spi.discovery.tcp.TcpDiscoverySpi : Failed to reconnect to cluster (will retry): class o.a.i.IgniteCheckedException: Failed to deserialize object with given class loader: org.springframework.boot.loader.LaunchedURLClassLoader@5010be6
2021-04-28 12:09:59.415 WARN [project,,,] 2263 --- [project] o.a.i.spi.discovery.tcp.TcpDiscoverySpi : Failed to reconnect to cluster (will retry): class o.a.i.IgniteCheckedException: Failed to deserialize object with given class loader: org.springframework.boot.loader.LaunchedURLClassLoader@5010be6
很可能,您在IgniteConfiguration中使用了一些类,但这些类并没有出现在所有节点上。
由于没有堆栈跟踪,我们无法具体知道是哪一个。确保所有节点都具有类路径上的所有依赖项。