mockito 异常Reason: java.io.IOException: invalid constant type: 18

原因:

mockito内部使用的javassit的版本不一致导致的,修改为一直版本即可。

mockito 异常Reason: java.io.IOException: invalid constant type: 18

异常内容:

/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=54916:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit-rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit5-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/tools.jar:/Users/zhanghuiwen/IdeaProjects/up_pk/uplive-pk-container/target/test-classes:/Users/zhanghuiwen/IdeaProjects/up_pk/uplive-pk-container/target/classes:/Users/zhanghuiwen/.m2/repository/com/asiainno/uplive-crm-api/1.1-SNAPSHOT/uplive-crm-api-1.1-20161020.103257-8.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/garuda-im-api/3.3-SNAPSHOT/garuda-im-api-3.3-20180619.091315-1.jar:/Users/zhanghuiwen/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar:/Users/zhanghuiwen/.m2/repository/org/powermock/powermock-module-junit4/1.6.6/powermock-module-junit4-1.6.6.jar:/Users/zhanghuiwen/.m2/repository/org/powermock/powermock-module-junit4-common/1.6.6/powermock-module-junit4-common-1.6.6.jar:/Users/zhanghuiwen/.m2/repository/org/powermock/powermock-core/1.6.6/powermock-core-1.6.6.jar:/Users/zhanghuiwen/.m2/repository/org/powermock/powermock-reflect/1.6.6/powermock-reflect-1.6.6.jar:/Users/zhanghuiwen/.m2/repository/org/powermock/powermock-api-mockito/1.6.6/powermock-api-mockito-1.6.6.jar:/Users/zhanghuiwen/.m2/repository/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19.jar:/Users/zhanghuiwen/.m2/repository/org/powermock/powermock-api-mockito-common/1.6.6/powermock-api-mockito-common-1.6.6.jar:/Users/zhanghuiwen/.m2/repository/org/powermock/powermock-api-support/1.6.6/powermock-api-support-1.6.6.jar:/Users/zhanghuiwen/.m2/repository/junit/junit/4.12/junit-4.12.jar:/Users/zhanghuiwen/.m2/repository/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1.jar:/Users/zhanghuiwen/.m2/repository/com/google/guava/guava/25.0-jre/guava-25.0-jre.jar:/Users/zhanghuiwen/.m2/repository/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.jar:/Users/zhanghuiwen/.m2/repository/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.jar:/Users/zhanghuiwen/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar:/Users/zhanghuiwen/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar:/Users/zhanghuiwen/.m2/repository/org/projectlombok/lombok/1.16.20/lombok-1.16.20.jar:/Users/zhanghuiwen/.m2/repository/com/jayway/jsonpath/json-path-assert/0.9.1/json-path-assert-0.9.1.jar:/Users/zhanghuiwen/.m2/repository/com/jayway/jsonpath/json-path/0.9.1/json-path-0.9.1.jar:/Users/zhanghuiwen/.m2/repository/net/minidev/json-smart/1.2/json-smart-1.2.jar:/Users/zhanghuiwen/.m2/repository/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar:/Users/zhanghuiwen/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-context/4.3.3.RELEASE/spring-context-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-expression/4.3.3.RELEASE/spring-expression-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-beans/4.3.3.RELEASE/spring-beans-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-core/4.3.3.RELEASE/spring-core-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-jdbc/4.3.3.RELEASE/spring-jdbc-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-aop/4.3.3.RELEASE/spring-aop-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-aspects/4.3.3.RELEASE/spring-aspects-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/aspectj/aspectjweaver/1.8.9/aspectjweaver-1.8.9.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-tx/4.3.3.RELEASE/spring-tx-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-web/4.3.3.RELEASE/spring-web-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-webmvc/4.3.3.RELEASE/spring-webmvc-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-test/4.3.3.RELEASE/spring-test-4.3.3.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/com/esotericsoftware/kryo/4.0.2/kryo-4.0.2.jar:/Users/zhanghuiwen/.m2/repository/com/esotericsoftware/reflectasm/1.11.3/reflectasm-1.11.3.jar:/Users/zhanghuiwen/.m2/repository/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/Users/zhanghuiwen/.m2/repository/com/esotericsoftware/minlog/1.3.0/minlog-1.3.0.jar:/Users/zhanghuiwen/.m2/repository/org/objenesis/objenesis/2.5.1/objenesis-2.5.1.jar:/Users/zhanghuiwen/.m2/repository/com/jolbox/bonecp-spring/0.7.1.RELEASE/bonecp-spring-0.7.1.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/mysql/mysql-connector-java/5.1.18/mysql-connector-java-5.1.18.jar:/Users/zhanghuiwen/.m2/repository/org/mybatis/mybatis/3.1.0/mybatis-3.1.0.jar:/Users/zhanghuiwen/.m2/repository/org/mybatis/mybatis-spring/1.1.0/mybatis-spring-1.1.0.jar:/Users/zhanghuiwen/.m2/repository/redis/clients/jedis/2.9.0/jedis-2.9.0.jar:/Users/zhanghuiwen/.m2/repository/org/apache/commons/commons-pool2/2.4.2/commons-pool2-2.4.2.jar:/Users/zhanghuiwen/.m2/repository/org/redisson/redisson/3.7.1/redisson-3.7.1.jar:/Users/zhanghuiwen/.m2/repository/io/netty/netty-common/4.1.25.Final/netty-common-4.1.25.Final.jar:/Users/zhanghuiwen/.m2/repository/io/netty/netty-codec/4.1.25.Final/netty-codec-4.1.25.Final.jar:/Users/zhanghuiwen/.m2/repository/io/netty/netty-buffer/4.1.25.Final/netty-buffer-4.1.25.Final.jar:/Users/zhanghuiwen/.m2/repository/io/netty/netty-transport/4.1.25.Final/netty-transport-4.1.25.Final.jar:/Users/zhanghuiwen/.m2/repository/io/netty/netty-resolver/4.1.25.Final/netty-resolver-4.1.25.Final.jar:/Users/zhanghuiwen/.m2/repository/io/netty/netty-resolver-dns/4.1.25.Final/netty-resolver-dns-4.1.25.Final.jar:/Users/zhanghuiwen/.m2/repository/io/netty/netty-codec-dns/4.1.25.Final/netty-codec-dns-4.1.25.Final.jar:/Users/zhanghuiwen/.m2/repository/io/netty/netty-handler/4.1.25.Final/netty-handler-4.1.25.Final.jar:/Users/zhanghuiwen/.m2/repository/javax/cache/cache-api/1.0.0/cache-api-1.0.0.jar:/Users/zhanghuiwen/.m2/repository/io/projectreactor/reactor-core/3.1.7.RELEASE/reactor-core-3.1.7.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/reactivestreams/reactive-streams/1.0.2/reactive-streams-1.0.2.jar:/Users/zhanghuiwen/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.7.9/jackson-dataformat-yaml-2.7.9.jar:/Users/zhanghuiwen/.m2/repository/org/yaml/snakeyaml/1.15/snakeyaml-1.15.jar:/Users/zhanghuiwen/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.7.9/jackson-core-2.7.9.jar:/Users/zhanghuiwen/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.7.9.2/jackson-databind-2.7.9.2.jar:/Users/zhanghuiwen/.m2/repository/net/bytebuddy/byte-buddy/1.8.11/byte-buddy-1.8.11.jar:/Users/zhanghuiwen/.m2/repository/org/jodd/jodd-bean/3.7.1/jodd-bean-3.7.1.jar:/Users/zhanghuiwen/.m2/repository/org/jodd/jodd-core/3.7.1/jodd-core-3.7.1.jar:/Users/zhanghuiwen/.m2/repository/com/google/collections/google-collections/1.0/google-collections-1.0.jar:/Users/zhanghuiwen/.m2/repository/org/slf4j/slf4j-api/1.7.13/slf4j-api-1.7.13.jar:/Users/zhanghuiwen/.m2/repository/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar:/Users/zhanghuiwen/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar:/Users/zhanghuiwen/IdeaProjects/up_pk/uplive-pk-api/target/classes:/Users/zhanghuiwen/IdeaProjects/up_pk/uplive-pk-common/target/classes:/Users/zhanghuiwen/.m2/repository/com/asiainno/uplive-ranking-api/3.2-SNAPSHOT/uplive-ranking-api-3.2-20180602.143740-7.jar:/Users/zhanghuiwen/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/base-utils/2.1.1-SNAPSHOT/base-utils-2.1.1-20180904.065027-10.jar:/Users/zhanghuiwen/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar:/Users/zhanghuiwen/.m2/repository/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar:/Users/zhanghuiwen/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.8.8/jackson-annotations-2.8.8.jar:/Users/zhanghuiwen/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.5/jackson-mapper-asl-1.9.5.jar:/Users/zhanghuiwen/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.5/jackson-jaxrs-1.9.5.jar:/Users/zhanghuiwen/.m2/repository/org/codehaus/jackson/jackson-mrbean/1.9.5/jackson-mrbean-1.9.5.jar:/Users/zhanghuiwen/.m2/repository/org/codehaus/jackson/jackson-smile/1.9.5/jackson-smile-1.9.5.jar:/Users/zhanghuiwen/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar:/Users/zhanghuiwen/.m2/repository/net/sf/json-lib/json-lib/2.2.1/json-lib-2.2.1-jdk15.jar:/Users/zhanghuiwen/.m2/repository/net/sf/ezmorph/ezmorph/1.0.4/ezmorph-1.0.4.jar:/Users/zhanghuiwen/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar:/Users/zhanghuiwen/.m2/repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar:/Users/zhanghuiwen/.m2/repository/org/apache/httpcomponents/httpmime/4.5.2/httpmime-4.5.2.jar:/Users/zhanghuiwen/.m2/repository/org/apache/httpcomponents/httpclient-cache/4.5.2/httpclient-cache-4.5.2.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/protobuf-uplive-java/3.3-SNAPSHOT/protobuf-uplive-java-3.3-20180913.203223-84.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/base-memcached/1.2-SNAPSHOT/base-memcached-1.2-20160601.110321-5.jar:/Users/zhanghuiwen/.m2/repository/com/googlecode/xmemcached/xmemcached/1.3.5/xmemcached-1.3.5.jar:/Users/zhanghuiwen/.m2/repository/net/spy/spymemcached/2.999.999-SNAPSHOT/spymemcached-2.999.999-20160309.100301-1.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/uplive-service-api/2.1-SNAPSHOT/uplive-service-api-2.1-20170816.031012-10.jar:/Users/zhanghuiwen/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar:/Users/zhanghuiwen/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar:/Users/zhanghuiwen/.m2/repository/org/jboss/logging/jboss-logging/3.2.1.Final/jboss-logging-3.2.1.Final.jar:/Users/zhanghuiwen/.m2/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/base-cache/1.3-SNAPSHOT/base-cache-1.3-20180728.085942-10.jar:/Users/zhanghuiwen/.m2/repository/org/apache/jcs/jcs/1.3/jcs-1.3.jar:/Users/zhanghuiwen/.m2/repository/concurrent/concurrent/1.0/concurrent-1.0.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/sensitive-words-api/1.1-SNAPSHOT/sensitive-words-api-1.1-20160517.084929-1.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/uplive/up_pk_api/1.0-SNAPSHOT/up_pk_api-1.0-20180409.022533-2.jar:/Users/zhanghuiwen/.m2/repository/com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar:/Users/zhanghuiwen/.m2/repository/com/googlecode/protobuf-java-format/protobuf-java-format/1.4/protobuf-java-format-1.4.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-context-support/4.3.8.RELEASE/spring-context-support-4.3.8.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/org/springframework/spring-orm/4.3.8.RELEASE/spring-orm-4.3.8.RELEASE.jar:/Users/zhanghuiwen/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/zhanghuiwen/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar:/Users/zhanghuiwen/.m2/repository/commons-fileupload/commons-fileupload/1.3.1/commons-fileupload-1.3.1.jar:/Users/zhanghuiwen/.m2/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar:/Users/zhanghuiwen/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/zhanghuiwen/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar:/Users/zhanghuiwen/.m2/repository/org/javassist/javassist/3.15.0-GA/javassist-3.15.0-GA.jar:/Users/zhanghuiwen/.m2/repository/org/jboss/netty/netty/3.2.5.Final/netty-3.2.5.Final.jar:/Users/zhanghuiwen/.m2/repository/org/apache/zookeeper/zookeeper/3.4.5/zookeeper-3.4.5.jar:/Users/zhanghuiwen/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar:/Users/zhanghuiwen/.m2/repository/com/github/sgroschupf/zkclient/0.1/zkclient-0.1.jar:/Users/zhanghuiwen/.m2/repository/commons-pool/commons-pool/1.5.5/commons-pool-1.5.5.jar:/Users/zhanghuiwen/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/zhanghuiwen/.m2/repository/org/aspectj/aspectjrt/1.7.4/aspectjrt-1.7.4.jar:/Users/zhanghuiwen/.m2/repository/cglib/cglib/2.2.2/cglib-2.2.2.jar:/Users/zhanghuiwen/.m2/repository/asm/asm/3.3.1/asm-3.3.1.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/uplive-user-api/2.8.59-SNAPSHOT/uplive-user-api-2.8.59-20180119.075835-6.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/uplive-room-api/2.4-SNAPSHOT/uplive-room-api-2.4-20180912.112341-7.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/garuda-a3s-chatroom-dubbo-api/2.6-SNAPSHOT/garuda-a3s-chatroom-dubbo-api-2.6-20180716.103817-19.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/base-kafka/1.1-SNAPSHOT/base-kafka-1.1-20160315.065445-1.jar:/Users/zhanghuiwen/.m2/repository/org/apache/kafka/kafka_2.10/0.8.2.1/kafka_2.10-0.8.2.1.jar:/Users/zhanghuiwen/.m2/repository/com/yammer/metrics/metrics-core/2.2.0/metrics-core-2.2.0.jar:/Users/zhanghuiwen/.m2/repository/org/scala-lang/scala-library/2.10.4/scala-library-2.10.4.jar:/Users/zhanghuiwen/.m2/repository/org/apache/kafka/kafka-clients/0.8.2.1/kafka-clients-0.8.2.1.jar:/Users/zhanghuiwen/.m2/repository/net/jpountz/lz4/lz4/1.2.0/lz4-1.2.0.jar:/Users/zhanghuiwen/.m2/repository/org/xerial/snappy/snappy-java/1.1.1.6/snappy-java-1.1.1.6.jar:/Users/zhanghuiwen/.m2/repository/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar:/Users/zhanghuiwen/.m2/repository/com/101tec/zkclient/0.3/zkclient-0.3.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/uplive-follows-api/1.2-SNAPSHOT/uplive-follows-api-1.2-20180914.112108-17.jar:/Users/zhanghuiwen/.m2/repository/com/asiainno/uplive-authority-api/1.0-SNAPSHOT/uplive-authority-api-1.0-20180911.112915-76.jar:/Users/zhanghuiwen/.m2/repository/com/alibaba/fastjson/1.2.47/fastjson-1.2.47.jar" com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 com.asiainno.uplive.pk.service.task.queue.PkMatchWaitingQueueTest

java.lang.IllegalStateException: Failed to transform class with name com.pk.service.task.queue.PkMatchWaitingQueueTest. Reason: java.io.IOException: invalid constant type: 18

    at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:284)
at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:192)
at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass1(DeferSupportingClassLoader.java:77)
at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:67)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:161)
at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:48)
at org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.createTestDelegators(AbstractTestSuiteChunkerImpl.java:111)
at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.<init>(JUnit4TestSuiteChunkerImpl.java:71)
at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.<init>(AbstractCommonPowerMockRunner.java:32)
at org.powermock.modules.junit4.PowerMockRunner.<init>(PowerMockRunner.java:34)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:49)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.lang.RuntimeException: java.io.IOException: invalid constant type: 18
at javassist.CtClassType.getClassFile2(CtClassType.java:204)
at javassist.CtClassType.makeFieldCache(CtClassType.java:835)
at javassist.CtClassType.getMembers(CtClassType.java:826)
at javassist.CtClassType.getMethod0(CtClassType.java:1137)
at javassist.CtClassType.getMethod(CtClassType.java:1126)
at javassist.expr.MethodCall.getMethod(MethodCall.java:115)
at org.powermock.core.transformers.impl.AbstractMainMockTransformer$PowerMockExpressionEditor.edit(AbstractMainMockTransformer.java:347)
at javassist.expr.ExprEditor.loopBody(ExprEditor.java:192)
at javassist.expr.ExprEditor.doit(ExprEditor.java:91)
at javassist.CtClassType.instrument(CtClassType.java:1385)
at org.powermock.core.transformers.impl.ClassMockTransformer.transformMockClass(ClassMockTransformer.java:65)
at org.powermock.core.transformers.impl.AbstractMainMockTransformer.transform(AbstractMainMockTransformer.java:62)
at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:265)
... 26 more
Caused by: java.io.IOException: invalid constant type: 18
at javassist.bytecode.ConstPool.readOne(ConstPool.java:1113)
at javassist.bytecode.ConstPool.read(ConstPool.java:1056)
at javassist.bytecode.ConstPool.<init>(ConstPool.java:150)
at javassist.bytecode.ClassFile.read(ClassFile.java:765)
at javassist.bytecode.ClassFile.<init>(ClassFile.java:109)
at javassist.CtClassType.getClassFile2(CtClassType.java:191)
... 38 more Process finished with exit code 255
上一篇:代理咨询公司ISS建议Stratus股东反对被提名人Jim Leslie和毒丸防御


下一篇:java.lang.RuntimeException: java.io.IOException: invalid constant type: 15