java.lang.VerifyError:Vertx、Dse应用程序上的AbstractePoll不安全异常
我正在尝试运行一个应用程序,它使用Datastax库进行DSE图形 项目pom.xml 编辑1:添加了java.lang.VerifyError:Vertx、Dse应用程序上的AbstractePoll不安全异常,java,maven,vert.x,datastax-java-driver,datastax-enterprise-graph,Java,Maven,Vert.x,Datastax Java Driver,Datastax Enterprise Graph,我正在尝试运行一个应用程序,它使用Datastax库进行DSE图形 项目pom.xml 编辑1:添加了mvn依赖项:树 [dependency:tree {execution: default-cli}] [INFO] my.app:app1:jar:0.0.1-SNAPSHOT [INFO] +- com.datastax.cassandra:java-dse-graph:jar:1.0.0-beta1:compile [INFO] | +- com.datastax.cassandra:
mvn依赖项:树
[dependency:tree {execution: default-cli}]
[INFO] my.app:app1:jar:0.0.1-SNAPSHOT
[INFO] +- com.datastax.cassandra:java-dse-graph:jar:1.0.0-beta1:compile
[INFO] | +- com.datastax.cassandra:dse-driver:jar:1.1.1-beta1:compile
[INFO] | | +- com.datastax.cassandra:cassandra-driver-core:jar:3.1.2:compile
[INFO] | | | +- io.netty:netty-handler:jar:4.0.37.Final:compile
[INFO] | | | | +- io.netty:netty-buffer:jar:4.0.37.Final:compile
[INFO] | | | | | \- io.netty:netty-common:jar:4.0.37.Final:compile
[INFO] | | | | +- io.netty:netty-transport:jar:4.0.37.Final:compile
[INFO] | | | | \- io.netty:netty-codec:jar:4.0.37.Final:compile
[INFO] | | | +- io.dropwizard.metrics:metrics-core:jar:3.1.2:compile
[INFO] | | | +- com.github.jnr:jnr-ffi:jar:2.0.7:compile
[INFO] | | | | +- com.github.jnr:jffi:jar:1.2.10:compile
[INFO] | | | | +- com.github.jnr:jffi:jar:native:1.2.10:runtime
[INFO] | | | | +- org.ow2.asm:asm:jar:5.0.3:compile
[INFO] | | | | +- org.ow2.asm:asm-commons:jar:5.0.3:compile
[INFO] | | | | +- org.ow2.asm:asm-analysis:jar:5.0.3:compile
[INFO] | | | | +- org.ow2.asm:asm-tree:jar:5.0.3:compile
[INFO] | | | | +- org.ow2.asm:asm-util:jar:5.0.3:compile
[INFO] | | | | \- com.github.jnr:jnr-x86asm:jar:1.0.2:compile
[INFO] | | | \- com.github.jnr:jnr-posix:jar:3.0.27:compile
[INFO] | | | \- com.github.jnr:jnr-constants:jar:0.9.0:compile
[INFO] | | \- com.google.guava:guava:jar:16.0.1:compile
[INFO] | +- org.apache.tinkerpop:gremlin-groovy:jar:3.2.3:compile
[INFO] | | +- org.apache.tinkerpop:gremlin-core:jar:3.2.3:compile
[INFO] | | | +- org.apache.tinkerpop:gremlin-shaded:jar:3.2.3:compile
[INFO] | | | +- commons-configuration:commons-configuration:jar:1.10:compile
[INFO] | | | | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | | +- org.yaml:snakeyaml:jar:1.15:compile
[INFO] | | | +- org.javatuples:javatuples:jar:1.2:compile
[INFO] | | | +- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] | | | +- com.jcabi:jcabi-manifests:jar:1.1:compile
[INFO] | | | | \- com.jcabi:jcabi-log:jar:0.14:compile
[INFO] | | | \- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] | | +- org.apache.ivy:ivy:jar:2.3.0:compile
[INFO] | | +- org.codehaus.groovy:groovy:jar:indy:2.4.7:compile
[INFO] | | +- org.codehaus.groovy:groovy-groovysh:jar:indy:2.4.7:compile
[INFO] | | | +- org.codehaus.groovy:groovy:jar:2.4.7:compile
[INFO] | | | +- jline:jline:jar:2.12:compile
[INFO] | | | \- org.codehaus.groovy:groovy-console:jar:2.4.7:compile
[INFO] | | | +- org.codehaus.groovy:groovy-swing:jar:2.4.7:compile
[INFO] | | | \- org.codehaus.groovy:groovy-templates:jar:2.4.7:compile
[INFO] | | | \- org.codehaus.groovy:groovy-xml:jar:2.4.7:compile
[INFO] | | +- org.codehaus.groovy:groovy-json:jar:indy:2.4.7:compile
[INFO] | | +- org.codehaus.groovy:groovy-jsr223:jar:indy:2.4.7:compile
[INFO] | | +- org.apache.commons:commons-lang3:jar:3.3.1:compile
[INFO] | | \- com.github.jeremyh:jBCrypt:jar:jbcrypt-0.4:compile
[INFO] | \- org.apache.tinkerpop:tinkergraph-gremlin:jar:3.2.3:compile
[INFO] +- io.vertx:vertx-core:jar:2.1.5:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.6.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.2.2:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.2.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.2.2:compile
[INFO] | +- io.netty:netty-all:jar:4.0.21.Final:compile
[INFO] | \- log4j:log4j:jar:1.2.16:compile
[INFO] +- io.vertx:vertx-hazelcast:jar:2.1.5:compile
[INFO] | \- com.hazelcast:hazelcast:jar:3.2.3:compile
[INFO] | \- net.sourceforge.findbugs:annotations:jar:1.3.2:compile
[INFO] +- io.vertx:vertx-platform:jar:2.1.5:provided
[INFO] +- redis.clients:jedis:jar:2.9.0:compile
[INFO] | \- org.apache.commons:commons-pool2:jar:2.4.2:compile
[INFO] +- junit:junit:jar:3.8.1:test
[INFO] \- org.json:json:jar:20160810:compile
从项目主文件夹执行以下命令 mvn依赖关系:树 并找到以下依赖项的版本
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
</dependency>
伊奥·内蒂
netty传输本地epoll
此依赖项可能有多个可用版本
如果需要,您可以从任何依赖项中排除任何特定版本,如下所示
<dependency>
<groupId>parent-dependency-group</groupId>
<artifactId>parent-dependency</artifactId>
<version>${parent.dependency.version}</version>
<exclusions>
<exclusion>
<groupId>parent-dependency-group</groupId>
<artifactId>parent-dependency</artifactId>
</exclusion>
</exclusions>
</dependency>
父依赖项组
父依赖
${parent.dependency.version}
父依赖项组
父依赖
根据依赖关系树,替换
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>2.1.5</version>
</dependency>
io.vertx
顶点核
2.1.5
与
io.vertx
顶点核
2.1.5
伊奥·内蒂
讨厌的
伊奥·内蒂
讨厌的
4.0.37.最终版本
在POM中,从项目主文件夹执行以下命令 mvn依赖关系:树 并找到以下依赖项的版本
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
</dependency>
伊奥·内蒂
netty传输本地epoll
此依赖项可能有多个可用版本
如果需要,您可以从任何依赖项中排除任何特定版本,如下所示
<dependency>
<groupId>parent-dependency-group</groupId>
<artifactId>parent-dependency</artifactId>
<version>${parent.dependency.version}</version>
<exclusions>
<exclusion>
<groupId>parent-dependency-group</groupId>
<artifactId>parent-dependency</artifactId>
</exclusion>
</exclusions>
</dependency>
父依赖项组
父依赖
${parent.dependency.version}
父依赖项组
父依赖
根据依赖关系树,替换
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>2.1.5</version>
</dependency>
io.vertx
顶点核
2.1.5
与
io.vertx
顶点核
2.1.5
伊奥·内蒂
讨厌的
伊奥·内蒂
讨厌的
4.0.37.最终版本
在您的POM中从Ubuntu主页的文件夹.mvn中删除JAR,然后再次尝试下载所有依赖项。可能是任何错误的版本依赖项位于不兼容的类路径上。尝试没有帮助。我在云上的两台ubuntu服务器上部署了这个,并得到了相同的错误。从ubuntu中你家的文件夹.mvn中删除JAR,然后再次尝试下载所有依赖项。可能是任何错误的版本依赖项都位于不兼容的类路径上。尝试没有帮助。我在云上的两台ubuntu服务器上部署了这个,得到了相同的错误。
mvn依赖项:tree | grep netty[INFO]| |+-io.netty:netty处理程序:jar:4.0.37.Final:compile[INFO]| |+-io.netty:netty缓冲区:jar:4.0.37.Final:compile[INFO]| | | | io.netty:netty公共:jar:4.0.37.Final:compile[INFO]netty:netty传输:jar:4.0.37.Final:compile[INFO]| | | | | | io.netty:netty编解码器:jar:4.0.37.Final:compile[INFO]|+-io.netty:netty all:jar:4.0.21.Final:compile
我通过运行这条命令获得了以上的输出mvn依赖关系:tree
,我不确定,因为我没有检查netty all dependency中的类,但是您可以试试。排除依赖项netty all,并在版本为4.0.37的pom文件中显式添加该依赖项。如何知道正在下载的库netty all
,以便排除依赖项可以通过分析依赖项树进行识别。如果仔细检查树,它会显示依赖关系层次结构。您可以从最顶端的父依赖项(pom中存在)中排除netty all。共享整个依赖关系树,我将尝试帮助您mvn依赖关系:tree | grep netty[INFO]| |+-io.netty:netty处理程序:jar:4.0.37.Final:compile[INFO]| |+-io.netty:netty缓冲区:jar:4.0.37.Final:compile[INFO]| | | | io.netty:netty公共:jar:4.0.37.Final:compile[INFO]netty:netty传输:jar:4.0.37.Final:compile[INFO]| | | | | | io.netty:netty编解码器:jar:4.0.37.Final:compile[INFO]|+-io.netty:netty all:jar:4.0.21.Final:compile
我通过运行这条命令获得了以上的输出mvn依赖关系:tree
,我不确定,因为我没有检查netty all dependency中的类,但是您可以试试。排除依赖项netty all,并在版本为4.0.37的pom文件中显式添加该依赖项。如何知道正在下载的库netty all
,以便排除依赖项可以通过分析依赖项树进行识别。如果仔细检查树,它会显示依赖关系层次结构。您可以从最顶端的父依赖项(pom中存在)中排除netty all。分享整个依赖关系树,我会尽力帮助你