【报错】ES报错找不到Gson类

报错信息

java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration

Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.autoconfigure.elasticsearch.jest.JestAutoConfiguration] from ClassLoader [[email protected]]

Caused by: java.lang.NoClassDefFoundError: com/google/gson/Gson

Caused by: java.lang.ClassNotFoundException: com.google.gson.Gson

解决

启动dubbo提供者报错:

发现:es找不到gson的类

将jest的gson排除,重新引入低版本的gson

5.x的jest引入的是2.8x版本的gson

排除后,引入2.6版本的gson,即可,项目顺利运行;

具体是什么原因,尚不明确,希望知道的大佬,能指出;

<dependency>
    <groupId>io.searchbox</groupId>
    <artifactId>jest</artifactId>
    <version>5.3.4</version>
    <exclusions>
        <exclusion>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.6</version>
</dependency>

原文地址:https://www.cnblogs.com/mussessein/p/12702791.html

时间: 2024-08-07 10:20:45

【报错】ES报错找不到Gson类的相关文章

windows7安装Office 2013后,安装Visio 2013报错:安装程序找不到office.zh-cn

虽然windows 8.1(cn_windows_8.1_professional_vl_with_update_x64_dvd_4050293.iso)是款不错的系统,但是由于我的无线一直不能正常使用且经常出现不能正常更新,还有桌面卡住的几率比之前多太多了等先重回windows7 X64. 我安装的是cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.iso,使用正常,且之前也是使用的这款很稳定,安装Office 2013(cn_office_pro

tomcat单独启动成功, eclipse启动tomcat报错, 错误一:找不到或无法加载主类 org.apache.catalina.startup.Bootstrap;错误二:端口被占用

针对刚遇到的tomcat单独启动成功,但是在eclipse启动tomcat就报错问题作出总结如下: 软件版本: 1. eclipse版本 ① Luna Service Release 2(4.4.2)    64位 ② Helios Service Release 2   64位 2. tomcat版本 ①apache-tomcat-6.0.14 ②apache-tomcat-6.0.35 3. JDK版本 jdk1.6.0_45 64位 错误详情: 1.  tomcat启动失败,错误提示: j

实例化DirContext的时候报了AuthenticationException,错误码为49

[+]这篇博文的原因 主要是因为犯了一个很愚蠢的错误,在实例化DirContext的时候报了AuthenticationException,错误码为49,我很疑惑,同样的方式通过ldapBrowser可以连接,在JNDI却不能连接了,同样尝试了Java的Apache Directory Studio插件也是不能连接,但是匿名连接却连接得上.基于这个原因便开始了探究初始化过程的分析,不过最后的结论却是--只是我的principal错了而已,我一直以为是我的credentials的问题.为什么同样用

[Qt解错篇]报错:error: undefined reference to vtable for ClassName

一.问题描述: 编译工程时报错:error: undefined reference to vtable for ClassName,如图示: 二.问题分析: 造成这种错误的原因很多,甚至在纯C++编程过程中也可能出现.下面根据自己情况,具体问题具体分析. 原因:在原先没有Q_OBJECT关键字的工程中添加了该关键字,但是没有执行qmake,直接编译导致出现该错误. 三.例子: 原先工程的类建立: class CAppConfig { public: CAppConfig(void); CApp

nginx对PHP文件报File not found.错

问题描述 nginx对PHP文件报File not found.错 配置nginx+php5.4的时候,配置完成后,浏览器打开php文件就提示File not found.错误. 解决办法: fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name; 改成如下这句,即可 fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

Laravel5.5执行 npm run dev时报错,提示cross-env找不到(not found)的解决办法

Laravel 5.4 Mix & Laravel5.5执行 npm run dev时报错,提示cross-env找不到(not found)的解决办法 首先进入package.json文件,将scripts下的所有cross-env删除掉,(devDependencies下的不能删除)处理结果代码如下: { "private": true, "scripts": { "dev": "npm run development&qu

Oracle 11g安装GI后,运行roothas.pl脚本报错libcap.so.1找不到

环境:RHEL6.4 + Oracle 11.2.0.3问题:需求是文件系统迁移到ASM,在安装GI后,运行roothas.pl脚本报错 1.运行root.sh后,按提示运行roothas.pl报错: [[email protected] mnt]# /u01/app/11.2.0/grid/crs/install/roothas.pl Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_p

idea 启动springboot项目报找不到主类

今天搭建的一个新springboot项目,运行启动类时控制报找不到主类错误 解决方法: 在idea控制台输入mvn clean install命令 原文地址:https://www.cnblogs.com/kingsonfu/p/10261167.html

台州OJ 3709: Number Maze (数组越界不报RE,报WA坑爹)

http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=3709 You are playing one game called "Number Maze". The map of an example is shown in the following figure. In the map, there are N*N+2 cells. When the game starts, you