Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/314.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Springboot 2.1 Java.lang.LinkageError_Java_Spring Boot_Websphere 8_Linkageerror - Fatal编程技术网

Java Springboot 2.1 Java.lang.LinkageError

Java Springboot 2.1 Java.lang.LinkageError,java,spring-boot,websphere-8,linkageerror,Java,Spring Boot,Websphere 8,Linkageerror,因此,我正在尝试将Spring引导应用程序升级到2.1。我已经让它在本地运行,但是当部署到WebSphere8.5.5.13时,我得到了一个java链接错误。我从中得到的是,这个ConfigFileApplicationListener类已经加载了两次(一个来自gradle jars,一个在服务器上),并且存在冲突?所以我的解决方案应该是从gradle构建中排除它?唯一的问题是,我不知道是什么样的Spring依赖将其引入。有什么建议吗 R Caused by: java.lang.Linkage

因此,我正在尝试将Spring引导应用程序升级到2.1。我已经让它在本地运行,但是当部署到WebSphere8.5.5.13时,我得到了一个java链接错误。我从中得到的是,这个ConfigFileApplicationListener类已经加载了两次(一个来自gradle jars,一个在服务器上),并且存在冲突?所以我的解决方案应该是从gradle构建中排除它?唯一的问题是,我不知道是什么样的Spring依赖将其引入。有什么建议吗

R Caused by: java.lang.LinkageError: loading constraint violation 
when overriding method "org/springframework/boot/context/config/
ConfigFileApplicationListener$DocumentFilterFactory.getDocumentFilter
(Lorg/springframework/boot/context/config/ConfigFileApplicationListener$Profile;)
Lorg/springframework/boot/context/config/ConfigFileApplicationListener$DocumentFilter;" 
during creation of class "org/springframework/boot/context/config/ConfigFileApplicationListener
$Loader$$Lambda$762/000000002F6368A0": loader "java/lang/InternalAnonymousClassLoader@4b4313e6"     
of class "org/springframework/boot/context/config/ConfigFileApplicationListener$Loader$$Lambda$762/000000002F6368A0" 
and loader "com/ibm/ws/classloader/CompoundClassLoader@da9f4ecb" of class 
"org/springframework/boot/context/config/ConfigFileApplicationListener$DocumentFilterFactory" 
have different types for the method signature

该错误是由Websphere错误()引起的。升级到IBM JDK 8.0.5.10修复了此问题。

关于最后一个问题:如果您需要了解更多关于项目中(可传递的)依赖项的信息,请查看:确认IBM JDK 8.0.5.6的此错误