The method's class, com.google.common.collect.FluentIterable, is available from the following locations

报以下错误,是因为guava版本冲突。

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug‘ enabled.
2019-11-13 14:00:06.535 ERROR 18640 --- [restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    springfox.documentation.spring.web.scanners.ApiListingScanner.scan(ApiListingScanner.java:117)

The following method did not exist:

    com.google.common.collect.FluentIterable.append(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable;

The method‘s class, com.google.common.collect.FluentIterable, is available from the following locations:

    jar:file:/D:/maven/.m2/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar!/com/google/common/collect/FluentIterable.class

It was loaded from the following location:

    file:/D:/maven/.m2/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of com.google.common.collect.FluentIterable

  

通过分析,排除16.0.1就可以了。

右击选择【Exclude】就可以了;

再看就没有报错了。

The method's class, com.google.common.collect.FluentIterable, is available from the following locations

原文地址:https://www.cnblogs.com/javalittleman/p/11848547.html

时间: 2024-10-03 18:41:46

The method's class, com.google.common.collect.FluentIterable, is available from the following locations的相关文章

java.lang.NoSuchMethodError: com.google.common.collect.Maps.newConcurrentMap()Ljava/util/concurrent/Concurren??tMap;

在启动topo的时候,报错: 原本代码中使用的下面两个jar包google-collections-1.0.jar guava-18.0.jar 解决办法删除google-collections-1.0.jarguava-18.0.jar 替换成guava-19.0.jar jar包下载路径: https://github.com/google/guava/wiki/Release19 然后重启storm和TOPO就OK了,亲测....

Caused by: java.lang.NoClassDefFoundError: com/google/common/base/MoreObjects

环境:jdk1.8 开发工具:IDEA 说明:今天在做springboot集成swagger2的时候,在启动程序的时候,报错 报错信息: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-02-24 19:32:26.026 ERROR 8660 --- [ restartedMain] o.s.boot.Sp

appium启动出现com.google.common.base.Throwables.throwI

大神链接:https://blog.csdn.net/yunfeng482/article/details/76737683 报错日志: Method arguments: "M6TGLMA721108530", "5190" 步骤1:启动------------>appium与应用 java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lan

org.jvnet.hudson.reactor.ReactorException: com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.mapper.CannotResolveClassException: maven2-moduleset

org.jvnet.hudson.reactor.ReactorException: com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.mapper.CannotResolveClassException: maven2-moduleset at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at h

Selenium 运行时出现错误(java.lang.NoClassDefFoundError: com/google/common/base/Function)

已经写好了java脚本,点击运行的过程中如果出现如下的错误提示时: java.lang.NoClassDefFoundError: com/google/common/base/Function 问题出现的原因是: 没有将Selenium server的相关包导入到“Referenced Libraries”中: 可以使用如下的方法解决这个问题: 将鼠标放到已经创建好的Project上,右键点击 -->“Build Path”-->"Configure Build Path"

浏览器启动不起来java.lang.NoClassDefFoundError: com/google/common/base/Function

java.lang.NoClassDefFoundError: com/google/common/base/Function 原因:只有以下两个包 解决方案:导入 selenium-server-standalone-2.44.0.jar 如果报json错就还需要导入json包json-20080701.jar

java.lang.NoSuchMethodError: com.google.common.hash.HashFunction.hashInt(I)Lcom/google/common/hash/HashCode; 解决办法

今天在java 上运行spark查询的时候出现一个问题: java.lang.NoSuchMethodError: com.google.common.hash.HashFunction.hashInt(I)Lcom/google/common/hash/HashCode; 后google 了一下找到了一篇相类似的问题 http://mail-archives.us.apache.org/mod_mbox/spark-user/201412.mbox/%3CD0A4C915.6E0D%[emai

用spring tool suite插件创建spring boot项目时报An internal error occurred during: "Building UI model". com/google/common/

本文为博主原创,未经允许不得转载 在用spring tool suite创建spring boot项目时,报一下异常: 查阅很多资料之后发现是因为装的spring tool suite的版本与eclipse版本不匹配. 我安装的eclipse版本是4.6.2,spring tool suite版本是3.9.2.在创建springboot项目时就遇到了这个问题. 解决方法: 进入spring tool suite官网:http://spring.io/tools/sts 点击红框就可以进入查看ec

好机会,我要帮女同事解决Maven冲突问题

任何一个故事起因最重要 任何一个职业,女生都有绝对的优势.更别提IT行业了,在部门中要是有女程序猿那肯定是香饽饽,备受呵护呀. 之前有一次,一位刚来的妹子遇到问题了,画风顿时就变成上面的图片了,群起而围之,但是最后的结果并不理想,还是得我出马(此处有点小吹牛). 妹子遇到的是Jar包冲突的问题,错误信息是 Caused by: java.lang.ClassNotFoundException,看错误要么就是缺少某个Jar包,要么就是冲突了. 其实在工作中经常会遇到这种冲突的问题,比如:Cause