添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
幸福的水煮肉  ·  TOXRIC: ...·  2 周前    · 
帅气的柑橘  ·  react + antd ...·  1 月前    · 
开朗的烤红薯  ·  vue ...·  2 月前    · 

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

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


spring boot 整合 duboo+zookeeper报错信息如下:

org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper

***************************
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:

org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:29)

The following method did not exist:

org.apache.zookeeper.ZooKeeper.<init>(Ljava/lang/String;ILorg/apache/zookeeper/Watcher;Z)V

The method's class, org.apache.zookeeper.ZooKeeper, is available from the following locations:

jar:file:/D:/javaHj/maven/maven-repository/org/apache/zookeeper/zookeeper/3.3.3/zookeeper-3.3.3.jar!/org/apache/zookeeper/ZooKeeper.class

It was loaded from the following location:

file:/D:/javaHj/maven/maven-repository/org/apache/zookeeper/zookeeper/3.3.3/zookeeper-3.3.3.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.apache.zookeeper.ZooKeeper

解决方法:

只需要在zkclient中去除zookeeper依赖

<dependency>
<groupId>com.github.sgroschupf</groupId>
<artifactId>zkclient</artifactId>
<version>0.1</version>
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>
</dependency>



JAVA: An attempt was made to call the method com.google.gson.GsonBuilder.setLenient()Lcom/google/gso

可能是Gson版本过低,com.google.code.gsongson2.7即可

SpringBoot项目启动提示:An attempt was made to call the method org.apache.coyote.AbstractProtocol.setAccept

场景在Eclipse中新建SpringBoot项目后启动项目提示:具体报错信息如下: .

Springboot中使用GSON报错 An attempt was made to call the method com.google.gson.GsonBuilder.setLenient

错误如下:Description:An attempt was made to call the method com.g

10013: An attempt was made to access a socket in a way forbidden by its access permissions

nginx的error.log日志报错: 2018/01/25 11:55:22 [emerg] 3380#15488: bind() to 0.0.0.0:20003 failed (10013: An attempt was made to access a socket in a way fo

bind: An attempt was made to access a socket in a way forbidden by its access permissions.

场景发现原先可以

Correct the classpath of your application so that it contains a single, compatible version of org.apache.ibatis.session.Configuration

***************************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:

Correct the classpath of your application so that it contains a single, compatible version of javax.

前言***************************APPLICATION FAILED TO START***************************Description:An attempt was made to call a method that does not exist. The attempt was made from the following locatio

Correct the classpath of your application so that it contains a single, compatible version of…

Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: org.springframework.cloud.cli

nginx: [emerg] bind() to 0.0.0.0:8082 failed (10013: An attempt was made to acce ss a socket in a wa

nginx.exe 启动报错nginx: [emerg] bind() to 0.0.0.0:8082 failed (10013: An attempt was made to acce ss a socket in a wa端口占用netstat -aon|findstr "8082"TCP 127.0.0.1:80 0.0.0.0:0...

docker启动报错 bind: An attempt was made to access a socket in a way forbidden by its access permissions

解决方法,命令行输入以下命令后重启即可。 net stop winnat net start winnat

Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program
报错调试 An attempt has been made to start a new process before the current process has finished its bootstrapping phase

在走这段代码的时候报错了,记录一下我的调试过程,感觉有个思路来走就挺好的。 1、报错与解决 文件名字:ClassifierTest.py import torch import torchvision import torchvision.transforms as transforms from ...