java.lang.nosuchmethoderror:' void org.glassfish.jersey.model.internal.commonconfig。< init
我正在努力使用Web应用程序(Java Eclipse)中的嵌入式电子
java.lang.NoSuchMethodError: 'void org.glassfish.jersey.model.internal.CommonConfig.<init>
(javax.ws.rs.RuntimeType, java.util.function.Predicate)'
org.glassfish.jersey.client.ClientConfig$State.<init>(ClientConfig.java:140)
org.glassfish.jersey.client.ClientConfig.<init>(ClientConfig.java:496)
com.docusign.esign.client.ApiClient.buildHttpClient(ApiClient.java:1753)
com.docusign.esign.client.ApiClient.<init>(ApiClient.java:77)
com.docusign.esign.client.Configuration.<clinit>(Configuration.java:5)
com.docusign.esign.api.EnvelopesApi.<init>(EnvelopesApi.java:16)
com.uniquedeveloper.registration.test2.EmbeddedSigningTest(test2.java:141)
com.uniquedeveloper.registration.test2.doPost(test2.java:64)
javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
签名泽西岛,但他们都没有工作。
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Trial1</groupId>
<artifactId>Trial1</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>15</release>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
</plugin>
</plugins>
</build>
<properties>
<java.version>11</java.version>
<oauth2.version>2.5.6</oauth2.version>
<commonsio.version>2.11.0</commonsio.version>
<docusign.version>3.18.0</docusign.version>
<rooms.version>1.1.0</rooms.version>
<click.version>1.0.0</click.version>
<monitor.version>1.1.0</monitor.version>
<admin.version>1.0.0-BETA</admin.version>
</properties>
<dependencies>
<dependency>
I am working on use the embedded e-signature in my web app ( java eclipse) i get this error and i do not understand what it means ?:
java.lang.NoSuchMethodError: 'void org.glassfish.jersey.model.internal.CommonConfig.<init>
(javax.ws.rs.RuntimeType, java.util.function.Predicate)'
org.glassfish.jersey.client.ClientConfig$State.<init>(ClientConfig.java:140)
org.glassfish.jersey.client.ClientConfig.<init>(ClientConfig.java:496)
com.docusign.esign.client.ApiClient.buildHttpClient(ApiClient.java:1753)
com.docusign.esign.client.ApiClient.<init>(ApiClient.java:77)
com.docusign.esign.client.Configuration.<clinit>(Configuration.java:5)
com.docusign.esign.api.EnvelopesApi.<init>(EnvelopesApi.java:16)
com.uniquedeveloper.registration.test2.EmbeddedSigningTest(test2.java:141)
com.uniquedeveloper.registration.test2.doPost(test2.java:64)
javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Here is my updated pom file , i am still trying to work through the different versions of jersey but none of them have worked so far.
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Trial1</groupId>
<artifactId>Trial1</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>15</release>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
</plugin>
</plugins>
</build>
<properties>
<java.version>11</java.version>
<oauth2.version>2.5.6</oauth2.version>
<commonsio.version>2.11.0</commonsio.version>
<docusign.version>3.18.0</docusign.version>
<rooms.version>1.1.0</rooms.version>
<click.version>1.0.0</click.version>
<monitor.version>1.1.0</monitor.version>
<admin.version>1.0.0-BETA</admin.version>
</properties>
<dependencies>
<dependency>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我猜这是由于您的代码库中的多个版本的泽西 - 客户。 DocuSign的当前泽西 - 客户版本是2.29.1。您是否可以将其他版本更新为至少为此,还是可以在pom.xml中添加依赖项,以适用于此类特定版本: https://www.tutorialspoint.com/maven/maven_external_depperencies.htm 。请尝试一下,让我们知道。
I'm guessing that this is due to multiple versions of jersey-client in your codebase. Docusign's current jersey-client version is 2.29.1. Are you able to update your other versions to at least that, or you can add dependencies in your pom.xml for specific versions like so here: https://www.tutorialspoint.com/maven/maven_external_dependencies.htm. Please try that and let us know.
我遇到了同样的例外,尽管在稍微不同的上下文中,试图设置泽西服务器时,看起来您正在在泽西 - 客户的设置中遇到这一点,但我怀疑这个问题是相同的。
就我而言,我使用的是泽西服务器2.28(org.glassfish.jersey.core:jersey-server:2.28),并追踪了类:
org.glassfish.jersey.jersey.model.internal.internal.internal.commonconfig 来自Jersey-Common.jar(org.glassfish.jersey.core:jersey-common)。
看着我的班级路径中的罐子,我注意到
Jersey-Common-3.1.0.jar
已经进入了类路径,并相信这引起了问题。在删除了导致泽西 - 司令3.1.0被拉入班级路径的违法依赖之后,例外消失了。我怀疑您正在使用泽西 - 客户版本:2.x,但在class path中有一个泽西 - 塞米式3.x罐子
I ran into the same exception, although in a slightly different context, when trying to set up a jersey-server, and looks like you are encountering this in the setup of jersey-client, but I suspect the issue is the same.
In my case, I was using jersey-server 2.28 (org.glassfish.jersey.core:jersey-server:2.28), and tracked down that the class:
org.glassfish.jersey.model.internal.CommonConfig
comes from the jersey-common.jar (org.glassfish.jersey.core:jersey-common).Looking at the jars in my classpath I noticed that a
jersey-common-3.1.0.jar
had made it's way into the classpath and believe that was causing the issue. After removing the offending dependency that was causing jersey-common 3.1.0 to be pulled into the classpath, the exception went away.I suspect you are using jersey-client version: 2.x but have a jersey-common 3.x jar in the classpath
我有一个类似的问题,我把头发拉开了,可以跑步
,一切都在使用一个版本,看起来不错。原来,我在当地的Maven存储库中有多个版本的同一罐子。我删除了所有内容并重建了,没有更多的错误。
I had a similar problem that I was pulling my hair out over, where I could run
And everything was using a single version and looked fine. Turned out I had multiple versions of the same jar in my local Maven repository. I deleted everything and rebuilt, no more errors.